From: gburri Date: Thu, 25 Sep 2014 19:05:36 +0000 (+0200) Subject: Ajout de l'ensemble du workspace. X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=8d08c12b29c2a14684f35c023ee39e694bb80d25;p=GPU.git Ajout de l'ensemble du workspace. --- diff --git a/WCudaMSE/.recommenders/caches/identified-project-coordinates.json b/WCudaMSE/.recommenders/caches/identified-project-coordinates.json new file mode 100755 index 0000000..40fe0a3 --- /dev/null +++ b/WCudaMSE/.recommenders/caches/identified-project-coordinates.json @@ -0,0 +1 @@ +[[{"location":"G:\\CBI\\HEARC\\RAD\\Running\\CudaTuto\\02_Scientifique\\01_Code\\WCudaMSE\\API_Bilat_Canvas_JNI\\JAR\\Bilat_Canvas_JNI.jar","type":"JAR","hints":{}},"ABSENT"],[{"location":"G:\\CBI\\HEARC\\RAD\\Running\\CudaTuto\\02_Scientifique\\01_Code\\WCudaMSE\\JTuto_Graphe_JNI","type":"PROJECT","hints":{}},"ABSENT"],[{"location":"G:\\CBI\\HEARC\\RAD\\Running\\CudaTuto\\02_Scientifique\\01_Code\\WCudaMSE\\JTuto_Image_JNI","type":"PROJECT","hints":{}},"ABSENT"],[{"location":"C:\\Soft\\java64\\jdk","type":"JRE","hints":{}},"jre:jre:1.8.0"],[{"location":"G:\\CBI\\HEARC\\RAD\\Running\\CudaTuto\\02_Scientifique\\01_Code\\WCudaMSE\\JTuto_ImageCuda_JNI","type":"PROJECT","hints":{}},"ABSENT"],[{"location":"G:\\CBI\\HEARC\\RAD\\Running\\CudaTuto\\02_Scientifique\\01_Code\\WCudaMSE\\JTuto_Canvas_JNI","type":"PROJECT","hints":{}},"ABSENT"]] \ No newline at end of file diff --git a/WCudaMSE/.recommenders/caches/manual-mappings.json b/WCudaMSE/.recommenders/caches/manual-mappings.json new file mode 100755 index 0000000..9e26dfe --- /dev/null +++ b/WCudaMSE/.recommenders/caches/manual-mappings.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fdt b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fdt new file mode 100755 index 0000000..049188e Binary files /dev/null and b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fdt differ diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fdx b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fdx new file mode 100755 index 0000000..9a66b2a Binary files /dev/null and b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fdx differ diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fnm b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fnm new file mode 100755 index 0000000..a3b6104 --- /dev/null +++ b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.fnm @@ -0,0 +1,4 @@ +ýÿÿÿ + +coordinate fingerprintssymbolic-names +classifiercallovrdselfcovrpselfmovrm \ No newline at end of file diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.frq b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.frq new file mode 100755 index 0000000..3fdfc98 --- /dev/null +++ b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.frq @@ -0,0 +1,652 @@ +ãIï!ï‰­<‘ Ý/Ñëá0û£“• ѯÇ(ýï÷;·!“á6› у…ñ'­(Ó +É0Éû4ý“‡Í‰Dû…;鍝'Ë +ë(¿—&Ë §Á ï§· «£ ™Ó/·9µ¹1ûËË—õ4½ÅAïÁ<™/Í…÷Óíëí3—ŸÇ!™õ÷?½ µ4ç £:õñ5íÅßï+‘ÏÝó@» ½/ûÃù +¡5Ç©*Å«!ÝÙ.‹ ›;Ë:³N‹;ƒ<•"ûÕ*ó7Ñà ‰CÏ7±LÑ9ŸNï1ÇFÝ +;å ³.ç2‹ã5Ù=‡<ý )»A× ±³'Ë2Ù"ý6ÅË'*Ñ­BñãKåÑN¥-­7¥åß6ù$Á)×Ù"ßF¿Ý<“<»¥H•&ë:Ù;‡!‡/¿/Ÿ2ѹù•÷sÝ<õ+ÁùŸ³ +8ã4Á¥¥ç!ÕÅ灹$ñ«¡1¡ —©-ýï40áB³õ ϳE—£ý·Ï‡ï<ó‹*™"ó)£ +Ñ$¯ý?±2‡ù@Ý ¥Ù µEͧw½Ûñ­ í“ÛåD¯›±ƒ‡'™ á3µ±:Ã…3ó©/鿃› ½9¯­<Û寱 Åà ›ƒÍ…‹A㣍‡©›={¹6 §µá…‹©P± Û ÇJÁÅ ‹é•;ǁ£½ çÕD¡õù.ÿ§÷± ÑÉÉ í¯,ÿMé§ +³>ß½Ë Ç#ÅÝ-…Õ­ ]AÕCY±a¥G§ û÷"åK» ÷¿¹ñ‡Cëß7¡Ÿá$ÓÙO‰5ÅÃ>«ÓÙãLÛG·(£5FñI÷N‡½AÉù2™‹2ýEç.ÏMÿ3Ý6…™!Á7«õ +6Ã5ë¯ýCµãNÑבB׃ ‰û#é.Lå+³)«“0ÍÁ¡8—§ùÉ ŸŸ,Ù‘ ™E +Ï—4éD™7ƒ!ÁŸ5¿+¡ÛL¹ ‡Ïí·$á¡'Ó2µAÛÉ +¡»IƒÓ-ë¯F(éÙ¹#§"#Ï ¯ ã#Ïé?«=Õ4™2ã­íO•(E¹Ï §Lýݯ"!©:‹ ‡DÕŸ7û +Çù:¥ ¹ç—½£§O‘Pý Ç-Ë>ùÛó ù?›/ßç#Í<Û·‰ó1ÕïÍ)“»×…Bm³!ó¡—K£=㠝ÕI™=‹ù*A%£áåù)«ë áý$1I)­§2ד;“$ÇAÛ,@Ÿ-Ÿ ½IÁ×(ËË ƒ»8ÇÃ;ý)¡@áƒPƒ0£»9‘#7Ñ#ÍKƒG½Oo—cŸË£é/Ùû1É5åFûO»'×C½Û­L«&ÍI‘=ÇçÁFí¡MÙE±1yÇ'ǧF¹é>ù0õÿ³5»+¿Kɣ磹:ÿ áDñDÕ™8¡LÕ;é¯AÁ á"£@™ o‡%ý9‘¿"Á ËëDõHÃÓ +«Á9Ë"¹ãC÷=_·á!‹=Å:ÁEç7§ é1Õç å3÷ ‡AÃFÍL±ÃBŸ"áNáùï8ûÅ3ç?‡*ã'óß"Á*‘IBÑJåDÁÉG‰4Ã9·»L£*ÙD³<‘õÛÿý?Ë •Pûƒ5ý‘8É™‹‰)ѝIÍ)Ç-¿7å)ÙB£ÛO«/ý'¯C­8“?±9Õñ-ó1*•5÷&©%KÑ&£ ³»<ãï +ã6Ç¥PËóM¹,ýÏ9½Jyñç)ã"©ÏÍ¡%½!Ç#“1µ™Igã wÉÇ‹ñKÑ¡Aѝ0½+…:›±F—ß3—Ï Ÿ£DÅ%© +¯ÉOÉ™ ÅG³Í1‰Bߟ1屟á.—'K­.±B‰I[ß.‹?ûB=•» Ë=Óó/Í­-Á@· +ͳ§¯û“+‡¹*©!Ç!·ƒ•DÝ›íƒGÿÉ Õ%ãù›ÿ‹+±ù&‰ƒßý"ëÇNs÷ã%Ù»‹¡Ç(·7静à +ŸEµ +Ã7“&á*­Ýù ‰.ùD³»8ûÝÕ)™ û8Ï µ2÷8‰ù&Ç ¯ÿ:ÑÓA± »µ)ÙÉ ­ÇÑÍ0«-Ï(å­»2Ç“›1í9³Fë§&§áå.Ý«"Ù‘û%Ÿ(¯Û ã(ýÁãU ‹é#Ç õ7$É)Í›³DË9¿õJ +ý ý +é6¯0ÝÛË¥0µ Õ ÝÉ¡ “2­ÿá‘ ‹­ñß©!Ý ™ƒ3¿™?«¹‘‹ ×)ƒ"!½@çÅEÅ>½8¡&ß$¡"ÿ…‡ ÓïDé£ Ç6½• ³KÇÉ8›,×!ÅÛ™ ç™…­3¹‡:‹>× +•*‘Ÿ:÷¹ +—í1ù¹ ±&Ñ;á» éKoß,õ‹Ñ!ƒ±ß“3ý‘ Ï;‹³.5‰×¹EÙ-ƒ1ù½«8÷ï.Á#µ ËÓ+“÷'™×Å)Á(¯½ +•*FÝñ‰!͍×Û +“#Í5É/ó ýÑBà © ï?‡ëç(Å×Oƒ/ï óAé(£½ û ¿!™ÑÇ­ßÁÁ?Í‘—$—EÉ·ÛשGŸ±ƒµ5ý +û ÝHó· «2‰³ ¥+½EÉ,ÕmÉ¿) —=‹3‰N¯•*·3÷5±+½Å?ÁÏI¥ñ,õ ƒ›Ý'-Í+û ‹Ç#›(ó)Í.é@‡ç*Ý ËÉ› û÷·*£í›/¿ Ý?á ™:kåÿ=É ï*™û6Ã$å Í>+õD•:ÅéMÓ*‡6Ëïçÿ8Ó>«+Ó.¹KŇ×$ó •J• å8…÷ ÿ;ï¹-#Ë;éý<ï…(³A¯:×KñF­0µ$Á Ÿ)ã/Ÿ «7ÿ ëË?µ/—¯)ßC·… «L©Ÿ(ß<ïLÝ(Ç.½“5(ë9ýL¹9ç ñÿïN‡(Ë-»N8Ç&ÁJã! ±"—MÕ9¯NÓÝ÷¡P“'•0ÿÝ7³û'“D­×K±…4¹!á +'± ± Å» ·õN¯å5¥£A‡  Ý+í#ݹ« ƒýãñÍ6ÍŸB£©Ç +©ÕM…Aï ÷õ"ƒ¿ ßÝ¡-ÓNÕ§@õÁ‰#¥@³2‡4§ƒ&ÕO‰·…!<±CqÃ'ƒÝ%•Oéß ¡Í=½#™:0Ù0ÇL?ë3ù;Õí™Õû1›á8Û5å‡1§«'»í;ÉE« +õ!« 5‹&É%¥&Å·1¿ ÷1Û•ÛÙ· ¿;•—>Ç0…åû×½=é-'«“û)¡•¹(ÏïÏ<—,‘í>Ù× å&µ ñ.× Ù ·%§'× çŸ:¥ Å¿å™+•…ûIïÛ‰ù“ ç1Ó#Á!ÿ5§Ï6­Á1í哃§ï<íóó9ïÙNá+¿EÛ8ýѱ*ÑË2Éá íLËÓ6© é5³ ·‡ßDZñ¥é2Ñ-ƒ3¹çÁ Ù¹ƒ… ÙÅ »(í ³?ï#Ù%#ÉÁ³•Ý=§$ƒ!É1õóç Ýó“!û‹Á™*Ó§?Ó÷… ÛNÙ«¯™ËŸ+… 땝B³0í Å ¿É•+× +Ÿ±÷6Ç÷%ã—ëÕ>ÃO¿ÓýHã ÷)óõ.í6ƒ#å%3÷/»)©?¥å#㷝ÛEù¯‹ ŸOÿÑFÝ‹O¥D§Ó ç8ÛëŸ-çP¯H“6‘±£4å¡E­±PÉHçå<«1ß“ ÅùFÃ@­*Õ-ïý7—Bã.Í ãÕE³;›ëµ‡‡Eå ¡>Ÿ#5-—Å2‘3Ë.‰ «5ß=ͧNÛ'…Í2áCÿK±JÕA•ñÃHÏ!§"É4×Å›JåL› …/‘F¹4©ñý&Ýù ­/Ãû› )•ÁÓÕÏ“Ë©%£¥éû!íD“÷0áß¡ éC%ý í՝"‹ý2‡Mó>¡9å6·.Ÿç ß.—ûHïÕ5ù,ÇŸÓ¡"Ù ¹óý"ÕÑ•é,í½ &½LóË8­*½ùŸ¹ï » ›&ãáÇÅ2ûÿ2ÍG÷<Áᏽ¹3ŸÛ(Ÿ õ(Û0‘›Û&¡©(ëÇ¿õ!ßJé× û:£Óµ'…¿<§§9¹Mç ×#ËÁ<§“¹í©&±é +õAÑ ÿ7ý;¯¥3Õ«)»Ï³ §Åõ1o—ù!Óƒ1ÓLÑ©L¹LÍ ù"ÿ éD™.×6µ0×IÉÅFч3㠟C«*ñ«E£³>½ 9Ïÿ—"Ï5³§Õ?ÿNëƒ'¯‡)á…@­>¥C¿"Õ/»ñé'ƒ*¹ +í ׃Ñ!ë"— ±÷5¡  ©«.á»1Ùÿ'‘¹Ÿõ&ûý»‡!»‘"ÿ¯›&ßÃ6Ƀ4½“8ÕÅÏ «Ãá8ƒï‰?“é*— +¡Ù)í}é'‰3ùõBç +µÝÝ&Ù&û‡G™'—-“ƒ%‘û&Ù©÷Ë § óEýñ“›‡×!—ש Ï1Έ-óÃÝû‰ ™;Ã0•­‹—É‹+ݧAµ ß»«< +ƒ ý#ó½D¥5û«ï•ë#™ éõ ß µ Í!õ½ÿ)…#í ÓéóÍ<Ëõ ³ £±1Ñ%à ·Eé§×Óû¿×ý,“—! ¯©‘×….³«Ÿ5 ­#ç%ÁíÓJ™Ká'ïɉ#÷.ç'™õ™E«-¥åãÓó›.‰×6© É%µá§£+©ƒ›0Á¥ýí;Ç··íý3½í9©-ß8ÉÁ&Ÿï«Å=û«±%ýù2Û ÛŸ;9Ï,Õ ý¹%ÁŸ=Ÿ‘åL‘ +ù.ï2í*¥+×íEÇEçµ%ù¡,õÃOé¯2¥ Õ…FÑ óBÇ:å±E¡0÷K‡#³PŸPÃ,ñý%÷-× Ãë7ß헁B‹#å ×™Cñ ÙGѱ™«Á +™«&Ñ<ó#÷ן±/Ç +³»+ý‘ã™'‹'ß å4áõ3•7Ë7¥(‘•Ïç<£½4Å ƒ!Ã(ƒ ‹C½¹™…µ+›õù?“#·…4µ"ËE‡KåJõ¥:“:ÿ+×9ùNµOá)³Å +Ÿ!åß-Ù é ¿»ó—½0µ¯¿­;ÓBÑ ÿ±$Ÿ*ƒ2íI‰¡÷á-ICÉ-£"Û#‡)ŸÕM›Gé&Í@‰íÏ&õ +ëý Í¥<çA¡ +ÙÓ‘ ¹:ñ"é'ï9•ï%µ½;¯DÁõÕûÁµë0•ó*ß5± ‰¯L±N­ó íN‘NÝ:Ù½‡ ›Ó:Ëõµƒ³8û “%Ó±AÕ½ñ=ÿÁ + Éù™@÷Ç=ÍMýó‹2Ë(µå¯ « +á5·… ¿:Ý· +õ(ÿ +§ +Ã=ßÿ¹)ßý»Á— ›Ëµ ½ +› -™“Û—+½(·í ¡Ñ6Ù Çó0Ã Û ï5Ý2‡û³ û1¿0å ÿ »@í+× µ$å«5µJ¯ß6•-Ó×%ñ +õ8×Å"£%¥•Mï£ß4—¯4Ý!‡,¹• ›Û#“… +×ñ#§)"…³— Å ¹•/õË•ù+¯*×¹ Ï%ù3ÝãßßÇ +Ç$£ÕÏ*§Ñ!ÿ)• Ç›,§çó4¿ëÁ<‹ ½ñáL½ûÓ¯.Ù›"¿$çÑBùÛ©å-á Û ‘47›ç9ùAý1©7ÇIÙ,é +á=õ;ƒÁ<ÿ%õ gÏÍ8…§ ãã…ÁBñÑ0Ï¿;§:ç—A³:¯J™?µ&±-­4ñÛç)ã;Ý3ïÿéEŸ=…ƒÅ(§%,¿#‹ßÓ‹­ïË +Ïë*Ù¥A‹Í:… +© £>­Ï%·L‰‹µ;õ­‡>‰ ¹"›?• Éë&±™5Ë‹ å2ƒ;Ùá©$Ÿ/û+‰$Åÿ¡J½)Ñ?©‘Oû;í/ƒDÃ6¿C£Á6ß(÷ ‰å4£C“ ™­…,ë?{¥IÏ¿ +¹<ñ µ/· ëÅ‡Ûá§"±6«¯Ó#Í Ÿ7Ë •‘©Aç>¡¯6Ñ@¹2»ÑGïK3ó3û3Ý ÅCíH¥*Ñ'‘1ßL‘L±F—P‰“ŸDù§ÛßÅ)—: ƒƒ@…*µÓ$¹3ß*ߏ¯K‰#‘6û½>× é™Á³$¯ÓO‰û?û,Û;§å5›6Éó Û<Ã:˵û¡DÛÇ ·@Ñý¯%E “‘-õ÷'»-¥NÓ1ݹõÁÇ•6ÝFƒ§.÷!‹»¡Û&å­ ·ßëKEÓ õÅ-é9áÝ?ï + ¹9™Ÿ ³4…Ÿ ë.‰í!é Å,¿ õ÷ñ*© óË)'¡.½Å=Å;ÿ-ƒ“‰DÃ&ëï3“ÉI›=éAÇ=© ‹ÍŸ«'µù-É ÃL¿ËÁ,ñ9¡ +ÍÙï"íÓ ±é ­ +ïÕ<ë ‡·Ï@Ý ¡¥õå'µï=㏠ó4ë¹ï ñ(×¹.Ça§?Ïõ Ï ¿4…û<í±9Ó ç2ÉÝ õ ¡ƒ  ¡ß9Ù+Á‘!Áë>Óõ6ÙÃ8Å—>Ù*ï"+ɉ%Û!Ã!·ë +;ß:—µÏý:à "Á³ý »F·—:ùƒ +±,ƒá*×&é"ƒ(ë%ù/DZ Í;ÃÃ-­ÑÍ55ë™÷µ ¹×3—Ï2£ ë/Í ë»¡/Á +íñ…ã/ù¿­×@íý Á  ™5©1ùå=¡ûÅ ‡0¯ ë ¯·Ÿ +—@¿ ‹‘2ù“³@÷›Ó!—·Ó ›!»"ßÁ:ÿÑ.› +Å ÿÓ‘ï6Ç«# ÿ»½Ù$Á—ý&IùáH­ ±³¥Ï ÅÁ©&Å£Ù'Å(㷁߉$«8¥¥™£‰ñ1ß +Á3­ +Ï#Ý¿&£ýÝIïõ‰Í ͳÝ$=³5ÝÕ5ã?¡÷GÏ'«6ã3Õ0ÿÇHßϧÏë2Û™0ù6­©'ɽ5‰"Çÿ?•…,¹$‰+í¥IÑËFÅÝ.{¯$ë õŸ ‘,Ñ “4ÓF‡"Kù³5#ýåó:ñCó—)ٝ ë)µ!»%Ç ™§4õ¹½ãóIý 1Å Må/Á§CmÛ)kÿÝÁƒù—Ï?å ÕÓÁ8•Lû.ýK‘2ë2Í'™í íÍ*õ!ËÍG¯/û·¹‹·•*ã +Ç>«ýï+‰!›8¯ç=ŏ áÃ6íF£×G­Ó3í H‰“G­• ‰OñLŸ%Ýë%ŸA«Ná +©‰;Ç Ÿ½6“M••'±>­:Ñ »"ùá« —@í©©5½ƒ,ñÑé+©,ã!ùJ•Ë%­ ÝÉ9áÓ!ƒ-É‹%»Í.½2©…ÿÕƒçÑ"µ…<«×¯#Á*ù—‘‰ó(í•/¹(Ï +‰ûC"å«·J›É0Å6?ƒ ï¹) ¿=£;+‹ïÙõ?§P¹‹ +û·M—9Ñóé;û¥2©“ +¯(ù «™)Ϲ߷-Á «/é<õ +»Ë0ŸõÕ+™DßÙ¡%¯ ±E»é•7Ÿ Û“)ÍÃ+¿ÏÃ=» “C·«µ»7óÙÁ'›åH£H‹,Ë!… û*­§/­K‰Ù/¯ï?½›,ù›%F×,Õ­Å#™F³9Ïå>…1ïëNáÑEé±ã—5Ñ:÷E«™-ËC…J¹B³Õ8Õ Ã­9£!¹Jë#­ ¹“«.ë$ÕÇ¡ ­/ñAõù &£ »:ç »Ë3‡,ã$çG›<¹ —?ËI'«B …O±…5ë1‹<ÃAÓ7³&ñ@±‡9·JÓG•Á+Ï$éÉ#¥ë=©#ßÅ5ç$ã6·ïJåýƒ,ñ4›Á!‰+Á4»¥Û@Ù!› +ᓹ;£Ë)»9ÿOµLƒ—4Ó×Hé7û ý —F·+ý0Cß;‹‘A£#¡Å&©Mï. +ÑK‹:‘JËw×<ƒFñ&¯7¿-¯M×›Fû>¿ë QÛMãé$³OóG)‘‰-í%%¥"Õ"Ç1Ë0“ß4™%Á÷ ™Ÿ—3“H«A½‡¿ÝCÉýN«>˱á ý/ùÝ;¹ÝíA‰0Óõ$Ù3ÉNÝõ@á2•,•@Ç÷$é ÙI¡É$ó-Ùù7½£7¡#óKƒý=û0åIû8Á%i§+ãHŸOÃ3É!ýAƒN…-ѯ™@¡BÛ-éC…Å1÷ +…÷D·ó2É2Á=Å9¹ëHý—õIÇåÛ í5Í/§1,•$×5ã-å:ËN&©2íF¯½« ÛÕÝN— £ •3Ã×7¥%Ó«I‹ ­½ß$‘Ùï-ñEá•‹0»M•#»CßßMç ƒ¡áË5‘íëÏ8Û(‰õ‹8Ý8ýÿF•F‹Eµ9ÝAéñ6Å$à +<ç£K?ÕGY¿‘/±Ÿ<“»“£FÁ5…2‰&óCÇ7é×F—³=Û?¡‰ã×1³‘•ë,¯8· ã)Û.óŸ6•¹Cѱƒ+ÁNñïFÕ1£O=“"ý-‘"ý­0µ,™ ûA•Eë«ï&¯ ñ—™G©Ýå¹Cu‡ Ë>ÓŸÁý+»$ݍ-— +§—I¡¿ÏN§Iñ%Ñ0ùó'éÁGÙ×JÙ#‡=à ¥$“P‰<»Ñ=á&$ñ×#¡ +Ç;‘ßH™ +7©£2Ãß ·“<¹ +÷.« ‹«å7Ï4¹'÷;ÿ ©<¯;÷ƒJã,‹P©>ßB«•ƒBÅOíýMÿE¹&³-‹B£ É=­!£$©35¡(Ñ/˝;å ¹IÁ0å +­HÍë!Ç/§›*×>ï(çDÏBË#Á ×LÃñÛAÛÅ.Õ!ë…í$éH¹?±.8靭)©§B K6ßOá%3µû";£Lÿ—%¿AÝM‰­G‡½$ßù%ÅËKÙM·IñÝÇŸ0£G‘ë ¡:“9¥7Ë‹H›¥-¥‹$ã2Õ5£Áá £.‡Û³BáûK‹"±ÿ"‰ É;ÝEµ!¿ ×*‰EßÛ"ù(ï'§0åÑý@©½=»á6«C·"Ñ ©>ë ã »1­3ç*—/³+é'Ç¥3‡7 ㍻‘û/͇Ã2Ó ³*Mó%… ‰û=å1çF•ãÓ(©;ÍN…8Íï:©CùK‹/Õ¯(ŸõEÍÛËLñ »2£-õ#ç5©DÓ&õ*‰HÍE—H±Ë+ËÁ/•½%¡F¡$å0û÷Ý0ÇÙýGýíÏÙó9»5Ù4Ñ)M© ½9¯+».ù1éëû2á‡û.Ñ +éFÃIÕå,å<çù'›©ééNÅB룛P—¿÷4Å<ï>í8ƒI‰2Ã/ñ'Ç8ÝK‡Oû•%á…$‰Ù/Ÿµ å!µý(‡Í9³,·)ïÙ%¹Ñ*••“#ñ‡ …—‘¹Ÿ +ãß ƒ‡“1#×?ÏÝ%×—.«H¥ÿBÅ4Ï0 ç÷±5õ ÷́å+÷>ÿ/7³,Ó8§é)‹…0à åƒOëIçÅÁ…HçKÓûŸIGáIÿ•¯ +É@ùOï Õ,¡2“.‡.×Ã*µN¡+½÷BÙ‘ «4ãA¯ƒ'ý!»K3Ù2» ã…'å ï$»J›$ƒ¡—Jí.±G¥ +…?—<ÅKÏÝù§ÏE×'9›2Õádz"É*¥,MÏH¡!ýBå.•.•=Û!‘7¯@Ñ8µ Ï/û÷(‰@“AãûLÝI³/É<…C­¥ÃÏC?¿#µ­'Ó ¿*Ñ>ù+·Dí&—‡>ñ Õ ó$Û…6ëG·H³“×N± ß?‹5ñ>ù ÉLã*ÑO•<Ã<ՍÕ?ÍAŸJã<÷ ç×Ý*ÛFå c×O½?ÇDÙC‘%÷OéGۍK™H—$ß åïñ$û-• åÙ8×÷¥‘.ÝA£)©9Å/¡—·ÿ(‰©8ÓM£,‘0‰1©O¡=ÁH¡‘Û• + —O‘‘;.µDù›ÿ#>…‡$ÑÁÇ+ý­PÓ0·&í2ã1í§>ÙA—Ï«Á Ë&Ãñ ³C1¹6É õG…­NÇ­ó¥½G/§Dû<³ûã Õ=Í%± +Ýõß"׏ +å;•µ#íJÅ'÷7Ç>Í0.¯Å- Ñ¥ÿ<»!ÅëE›4CÝ Ñ2õ:ß3Ï)Õ$ûF‡é0­5Ë;ý×Û1óÑ"Ëë± Ý1µù.“û‘ýó Õ­‰ +“1Ý5±WÇ5ñ)‹D ¥ƒË1Ý—Ñ5Á•¡;ƒ³#)ÿãÙ4½<™ Ñ Ë«%Á‹ ñ8Õ¯1‰÷» +á ý2§ó·­$¿› …-±#½Û+݁¹+ïËBó + …8ùÛ:ý#™‰D‹Ù6á‡FÉC‹6•ß ïãÉ'Í ƒAç,™ƒ9‹Õß÷ ¡K‘$ñH÷+Ãá#•ù"ÛŸ&¡Ç…MÙ·Ù0Ï‰Ÿ&ÿ©!ÃÕݝ$··:õ,Á£JóÇ.¹%“=Ó±7Ù@Ë/ûG³ƒ?¹ýý3÷é£ÕÍ“Çõ*É…Ù$ÿÅ ‰ ÏÅ!á…=׉LÃ4ËDÅ£ ­·?Á×"ãËÿ×.Ç +Í$Û2ƒÝßïA‘ÿ>ëµáGÏ™©Ñ+Ã?“7÷I«O§ÿ Ã8é ͝%­Á“ Ó5—#›3õLí6¿(“Kí•A÷!‹%-¿ -Ÿ9¹NÏ‹«Áƒ%Ÿ4û7©@±'Õ +¯—>ËÕû(ó Ç¥8Ÿåå.ÇÉß +±?‡…™Ù9ßA-‡!‰¯í +“/Ó»:£Ñ0ç@ûóçש)ß靥ÕGÿ™½*½õÉDçÿ½<‰*‹Í'½ ‘é‰áí ç£Hï&©!ýÓHÃïµñ9·6¹SÓ8ë6*£ ­Ý ¥á÷Å«9õë+é=Í ¿¯ûÛ9åG›&•9á5Dµ·&£&ã0û í(³ÿ¹ =™9‘:•‘ÿ&‹½FÛ«4‘ÅDµé ó<¡&ïEÏD­ Ã$M¿™/»“Fé á™&‹ +‡ —BǯJë£!‘>ù ßç…IŸÛé%A™ ßÿ+·½ ű ›O»#ßÃ)ï‘<é÷Ý·Ÿ +¹7ÏÍ,•C¿'ã4ç#ùãÁ$ÓÏ"Õ*×<Ó'¹Á¥ Û$Ç*½³,±?1ŸÝ÷*·4û —Ã/Õ:ù#ßIµ7íí0ñÑ$¿ï»O)Ççéõ ¡å£ åM×¹ñóëó?»6Ï » +É#Ñ¥E™ù…7Õ«4Ïã>¡7Ë×#ß±MéO«ÑÉD¯5ï“>©»&¥4ß6ß1/Ý,ƒ³ñ*«;‰ÿ@ç%‰'³CÅ›"¥‹1µHÇËAï¥ … ¯Í?éJ•IÓ,åó +ç:ã­+£ç$ù« ÷L$ŸÉ¯E³9‡ Iÿ‰óD©HÑI£(¹… ýﱕHß@É™½›‰=½3Åï7ɉÿ¿.‡ëÍ)Ÿ$«µ)éñ3¯ û +á=“6ñó"ßåÿ½Ù›óµ‹½Û4­õ/Á·Ûá/™Í¹ ± ÿ'ùŸ¯Õ2¥'$ç+U!å*ýIý©5‹$ÍÝïÅ€ ÿÿ|žþÿÿ0€€€`€€€€€€À€€€ð€€€ €€Ð€€€€€€€°€€à€€€€€€À€€€ð€€€ €€€Ð€€€€€€€°€€€à€€€€€€À                                                                                                                        fúÿÿ0耀`Š€€è€€À耀𗀀 ó€€Ð€€€ÿ€€°æ€€àꀀ„€€Àõ€€ð"!! !                                                                                                                        fúÿÿ0耀`Š€€è€€À耀𗀀 ó€€Ð€€€ÿ€€°æ€€àꀀ„€€Àõ€€ð"!! !                                                                                                                        fúÿÿ0耀`Š€€è€€À耀𗀀 ó€€Ð€€€ÿ€€°æ€€àꀀ„€€Àõ€€ð"!! !                                                                                                                        fúÿÿ0退`Œ€€ì€€À䀀𖀀 ó€€ÐŽ€€€þ€€°ç€€à쀀„€€Àõ€€ð# !  #                                                                                           nÝÿÿ0Ó€€`û€€â€€ÀØ€€ð€€€ á€€ÐÞ€€€ó€€°î€€àÞ€€á€€À퀀ð쀀 "ãI‹7ï!÷ï½H­<Ý/­AëË9 û§“ÿÑÇ(ÃEïåCÉ6·!áF› ëŸ'ƒ…õ5ÿ2­(É0‘H÷Cû4“™ÕFÍÿAûéõ)'ç1ë(©=á1—&§ç‹§ÝÍ$«™ëCë@·9¹1Õ@ûÅ0á#Ëõ4±OÅA³IÁÍCå2™/…‘'÷É9í×:í3ƒHŸå$%™÷?³L›@µ4£:—NÝJñ5Å£3ï+ÿG«$Ïó@­M½/ûÃù +¡5Ç©*ï)ÅݵM‹ ¥GË:³N‹;ƒ<•"ûÕ*ó7Ñà ‰CÏ7±LÑ9ŸNï1ÇFÝ +;å ³.ç2‹ã5Ù=‡<ý )»A× ±³'Ë2Ù"ý6ÅË'*Ñ­BñãKåÑN¥-Ñ;­7ÃMåù$Á)ׯ<ßF¿Ý<“<»¥H•&ë:Ù;‡!‡/¿/ïCŸ2±3¹‹(•sÏ=õ+µF—2ù¿B³ +£Iã4¥É»*ç!« Ź$ý5ËM«¯ ¡ —¿5ýï40áB§-³ÏL—Ÿ£·… +õM‡ý>ó™"‹Ló.£ +¯«D±2·8ÕJù@ý¥µEG§½—ñ/íÿÛ¿FÉ(¯±³(‡'Ÿ3á3•N±:ó;…3÷H‘M©/¿Á"×B› ÛB¯¿?Û¯ß#‡&Ł›#ƒÏ%…‹AíG£¯&•)‡©ÃD{³7 ³µ•19…©P± ‹-‡PÇJÅ ó,‹ÛI•;£/½ £'ÕDõKí4õÿ§§!÷Ñ™#µÉ ¯,ÿMçO§ +ÙH›ß‘Ë ç#áEÝ- ՝]ÕC­D±‘ 륡 § ÷"÷#¯å» ÷µ(ƒ=¹</µ.éÇ“›ÑL…Lµ±Í&­+§“….Ë6)™O¯3¿>ñ‡Cëß7¡Ÿá$ÓÙO‰5ÅÃ>«ÓÙãLÛG·(£5FñI÷N‡½AÉù2™‹2ýEç.ÏMÿ3Ý6…™!Á7«õ +AÃ5ë¯ýCµãNÑבB׋ƒ û#é.Lå+³)«“0ÍÁ¡8—½ ùç'É Ÿ,÷@‘ ¥O™Eå&Ϗ4éD™7ƒ!ßGÁ¿+ûN¡¿%¹ »Ï—;·$¡'Ó2µAÛÉ +¡»IƒÓ-½5¯F(…;Ù¹#ßE#ë0¯ ã#±)é?«=Õ4ûE™2­íO•(E¹Ï §LÙ.ý¯"!©:³G‡DÕŸ7û +¿NÇ¥ ¹ý¹0磧O‘Pý Ã7Ë>Ó"ùëLó ›/ßÅ@Í<§M·¿ ó1Õï»0“Í(×ñB…B³!ó¡—K£=…IÕI™=‹ù*Aeƒ£å£+ù)Ëë ý$­%µIIÓE­×“Í“$ÇAÛ,@½:Ÿ-½IÁÃá<—(Í +Ë »8ÇÃ;ý)¡@áƒPƒ0£ó»‘#Ç#Ñ#ÍKɃ½O«P—ù韣é/Ùû1É5åFûO»'×C½Û­L«&ÍI‘=ÇçÁFí¡MÙE±1yÇ'ǧF¹é>ù0õÿ³5»+¿Kɣ磹:ÿ áDñDÕ™8¡LÕ;é¯AÁ á"£@™ ‡ ‡%ý9‘ÿ.¿"ËëDõHÃß'Ó +«Á9Ë"¹ãC÷=_·á!‹=Å:ÁEç7§ é1Õç å3÷ ‡AÃFÍL±ÃBŸ"áNáùï8ûÅ3ç?‡*ã'óß"Á*‘IBÑJåDÁÉG‰4Ã9·»L£*ÙD³<‘õÛÿý?Ë •Pûƒ5ý‘8É™‹‰)ѝIÍ)Ç-¿7å)ÙB£ÛO«/ý'¯C­8“?±9Õñ-ó1*•5÷&©%KÑ&£ ³»<ãï +ÑAÇ¥PËóMµ1¹,Ï9µK½J×Cñã"‹*›-Ï¡¯>ƒE½!Ç9“1™IÿIÙ +ã ÉÇ‹ñKÑ¡Aѝ0½+…:ËH›—õCå'—Ÿ£DÅ%© +¯ÉOÉ™ ÅG³Í1‰Bߟ1屟á.—'K­­F±B‰I¹/[‹?ûB£>=» …KÓó/Í­-Á@÷JÍÿ§¯û“+‡¹*áKý%Ç!—GƒÝ›íƒG‹É ·CÕ%ù“(‰/ÿ±;ù&á;ƒý"çBÇN¹O÷»?ã%Å»ç0¡ŸH·7™ÛŸE÷Aµ +“&¡?á*­Ýù ‰.ùDí@³û×0Õ)“B™ Ï µ2÷8‰:õ%Ç ÿ:ÏAƒKÓA»ïGÙ¡­ó8EÑ«·GÏ(³H­çCÇ­I“í9³Fë‘(§áÅI‡+Ýé3Ù™Nû%¯‰7ã(ßH£ÁÕ Uó+‹Ç »EÉM$çÍõJ³D‘9¿³Mý* +ý +åA‹F¯0Û¥!¥0Ù<±;Õ é+É¿8“2ß,ÿ›'‘ !­‡5ßõÝ G×M¿ã«‘›)ÙK×)!Ý@ç«GÅ>ÑMÝ9½8&ûJ¡"Ÿ8…‹!ÓÁM‹éÇ6½• ³KÇÉ8›,×!Åó Ûçÿ!±K…¹¿L‹>× +ë4‘¯?¯ ÷³% +í1åN¹ é2ÃÓC›"áéKÍ-o‹õ‹Û:ƒ³ñMߍýí;‹½K5•G׏HÙ-Û/•D1çJ½÷åBÁ#õ0ËÁCÓ+‡¿“÷'¥.×›+ï/Á(½ +Ñ4ùIFñÕ2‰!ãÛ +í-Í5É/»=ýÍFà ©ýJ ñ‡ç(«@ëOƒ/ï óAé(£·½ ¿!é!™Çó*Ÿ ߍHÁ?§<‘—EÿÉÛ±,©GÇO±³µ5±@û ÏOÝH· «2³8×4³ ½EÉ,Jµm¿)Í4—=‹3‰N¯•*·3÷5±+½Å?ÁÏI¥ñ,õ ƒ›Ý'‰(Í+Ç5‹Ñ7›(ó)Í.é@‡íC§%Ý Éãûñ#·*Ù>í‡8¿ ›Ká ùGkÏÿ=ÇKï*‡?û6Ã$å Í>+õD•:ÅéMÓ*‡6Ëïçÿ8Ó>«+Ó.¹KŇ×$ó •J• å8…÷ ÿ;ï¹-#Ë;éý<ï…(³A¯:×KñF­0µ$Á Ÿ)ã/Ÿ «7ÿ ëË?µ/—¯)ßC·… «L©Ÿ(ß<ïLÝ(Ç.½“5(ë9ýL¹9ç ñÿïN‡(Ë-»N8Ç&ÁJã! ±"—MÕ9¯NÓÝ÷¡P“'•0ÿÝ7³û'“D­ƒMµC±¹!™,¿2'± õñ7» õN£På5‰M©J£Aù4 í#É>¹ã&ÿ$ƒãÓ%™;Í6ŸBÁI©ï©ýO…AóL‰÷3õ"¿ Ý¡-ÓNÕ§@õÁ‰#¥@³2‡4§ƒ&ÕO‰·…!<±CqÃ'ƒÝ%•Oéß ¡Í=½#™:0Ù0ÇL?ë3ù;Õ…+íÏJÕ›û9¿JÛ5‡1­E««(»§JÉEóOõ!Ÿ.5ÓK‹&¥&é:·1¿Û Ñ3÷1ï •Û7ÃõF· •«MË4Ç0åß“O×é-'·A“û)›CÍ•Ï;(ï½@§H—,í>ÅM× »3ѵÇ;ñ.Ù /§'ý2ç…Né6¥ ¿£9­,™+ÿJ…É+ù>“ “EÓ#¥Lÿ5Ï6ûI­JÁ1å÷©ƒï<ß/íáMó9ÙNá+¿E×=Û8сH›IÑ©ÉíLËÓ6© ›Aé5½,·¥#ß¡4±D¥Ñ-ÑC»;ƒ3ç§Ù‘&‡ƒÙ»(§E ³Jï#Ç@G%ɉ,³Ç,Ý>§$©E½7É1óÙÝó7“!‹Ë™*ë<§?ùM÷… ÛNÙƒ$¯Ç ËéI… B³0±í ‡ +¿•+ë5ŸÏ.÷6½;÷%Ù5—1Õ>—DOéõýHÙ7ã ó·5õ.­6ƒ#å%3÷/»)©?¥Ç4å#·ÛEù¯‹ ŸOÿÑFÝ‹O¥D§Ó ç8Û‰FëçP¯H“6‘±£4‡H¡EÍJ±PÉHË@ç«1‰6“ ÅùFÃ@­*Õ-ïý7—Bã.Í ãÕE³;›ëµ‡‡Eå ¡>Ÿ#5-—Å2‘3Ë.‰ «5ß=ͧNÛ'…Í2áCÿK±JÕA•ñÃHÏ!§"É4×Å›JåL› …/‘F¹4©ñÙ:ý&ù ­¹5ý.› ›4Õ •§ÓÏá,Ëó&£¥éã=ïDíD“‰Gá߉P¡ %ý.íÁ"‡N‹‡Mó>¡9å6·.Ÿç ß.—ûHÃNï¿3ù,ŸÓó6Ù «!¹ý‹)Õ¥)ýD•í©"&½Ló÷MË8*½µ×2Ÿï ©›§7ãáÇ‹KùEûÍG÷<Áïá½õ9Ÿù<Ÿ õ(ëJÛ0õ-›¡É)±<ë³?¿ßJé× =û:Óµ'¹A¿<ÍH§¹M½1ç ‹M˹§¹í•?±™ÅNõAÿ7ý;¯ÓDÿ,¹GÕϳ ÙŹ8§9—3Óƒ1ÓLÑ©L¹LÍ ù"ÿ çN™.×6µ0×IɍMïч¹㠟C«*›Nñ£³>½ 9ÍÏ—"Ï5³ûD§ÿNëí:¯•>á…@­>¥CÛ=Õ/B(…Gƒ*»4Ã í ƒÓ<ë",§K±¡ ½©ÓI›9á×DÙÉ ‘Ÿ“@û÷»Á0»Ë*­.ÿ§5›¡1ßË<ƒ6¿Dƒ4çM“8“Åí«á:áƒñ<‰?›Mÿ4é*¿¡Å8Ù)å(}‰3JõBç +›!¹@ÝÓ@Ù&‡G™'—-©Fƒ%‘û&Ó/©Ÿñ+Ë óEµG­&½“­‡Ý)—7!×ÿÏ1¯B¿Ç2óµ6Ý×-‰ ¡HÃ0×8­·#—ß)ç3‹+ÛL§Aß™$«<·Fÿ0ƒ ¯Ió¥5ŸF™«ÿ1•§#éÝß “-Í!ÁA½»D…#ñ/Ó»$ó¿@Ë¿,Õ#³ ½C“3Ñ%·EŸG§ý(ÓÍ¿•4ý,“—! »©¹Û>×Ý ³Ÿ5»>“I­#­2ÁÓJ™KÏGá'ÉÑ(ÝB÷.¿'õL«-ÏFåÇ<ÓÅ+›.£1ÿC×6Õ7É%•2µ§É?«0©Û6›0± ýé#;ÕK·íéDí½©B©-ß8§GÁ&Ÿ«ï?û¥±8±%ýõ7Û µ-×;Ÿ;Ï,£8ýµ=Áß>¯-ŸóN‘ +‰9ï2í*õ'¥¥+×íEÇEçµ%­?¡,õÃOé¯2¥ Õ…FÑ óBÇ:å±E¡0÷K‡#³PŸPÃ,í,ñ÷-× Ãë7÷:ßíƒ"B‹#ï,×™Cñ ÙGÑ™1«ë'Ã.™Ñ<ó#÷õ&×÷9±/³í?ý8û5ã‹'é4ÅFå4õ3•7Ë7µ8¥(•Ïç<£½4Ç*Å Ã(ƒ ‹C½Ñ$¹…µ+›"ù?“#É&…4µ"ËE‡KåJõ¥:“:ÿ+×9ùNµOá)³Å +Ÿ!ƒ7ß-ç&Ù é ù¿ó—½0ñ2¯¿­;ÓBÑ Ï±$Ÿ*ƒ2íI©4ŸL‰á-©.CÉ-£"Û#‡)ŸÕM›Gé&Í@‰õÃ1Ï&ç"ëñOÍçA‡LÙ«"ÉF‘ ÙJñ"ï9ƒ>ï%µñJïI¯DÉõ»&ûµŸ?•‡Bß5C‰·O±NŸ+­íN‘NÝ:Ùý›Ó:Ë¿µµ<ƒû “%Óñ±Õ‘*ñ=ïBÏÁ +Éù‘C½D÷ÍMýóý4ÿ6‘GË(ã9« +‹@»·¿:›L· +«3ÿ +¥¡NÃ=ÿ·=ßÛ3û(»±&— ËÙ ñµ  +§™A-í"“—+ó<½(í ¡Ñ6ŸÙ µ>ó0ÉAÛ Ý2ãEû­=³ ¿0¡I£<»@í+× ‹.å:µJF¯•-Ó©'ñ +Ë=õ8Å"Ç?£%•Mï7£—Å7ãMÝ!¹Í›õ1“— ×Ç)ÃK§)·-…Û— ¹ÍDõ¿1•J…<¯*‡F¹ ÕNù3Á.ãߥÇ$Ç3÷£õ2Ï*ÏKÑ!• ÇáA+§Dó۝ë«?‹ Ç%ñáL·0½ÓMÙó=¿$çÑBùÛ©å-á Û ‘47›ç9ùAý1©7ÇIÙ,é +á=õ;ƒÁ<ÿ%õ gÏÍ8…§ ãã…ÁBñÑ0Ï¿;§:ç—A³:¯J™?µ&±-­4ñÛç)ã;Ý3ïÿéEŸ=‡…ëMÅ(ËO,‹é"ÓÝ­›™ Ë +ÃCë*¥A¯OÍ:ÑDËG© û@­·L¿M™(©Kµ;³E­‰ Á-¯L›?É›Bë&ã:™5ï;‹ ƒ;ÛKá©$Ÿ/û+‰$Åÿ¡J½)Ñ?©‘Oû;í/ƒDÃ6¿C£Á6ß(Õ6íK‰±H£C«)“ ­±0ë?å@¥IóJ÷F¿ +ñ ¥;¡)· Ñ,‡á0‡:áÛD±6¯@ëBÍ Ë ß%‘©Aç>¡¯6Ñ@¹2»ÑGïK3ó3û3Ý ÅCíH¥*Ñ'‘1ßL‘L±F—P‰“ŸDù§ÛßÅ)—: ƒƒ@…*µÓ$¹3ß*ߏ¯K«‰‘6‹G½>“Lé™Á³$¯ÓO‰û?û,Û;‹9§›6Éó Û<Ã:˵û¡DÛÇ ·@Ñý¯%E “‘-õ÷'»-¥NÓ1ݹõÁÇ•6ÝFƒ§.÷!‹»¡Û&å­ ·•!ëK— E¹"å"õÉKé9Ý?ËJ ÅE™· ·N³4Ÿ óHë.í!ÕBƒ:Å,õ÷…õ<© ½BãBóÝD¡.Å=Å;ÿ->“›H­@Ã&ï3“ÉI›=éAÇ=© ³ ëÍ«'ß9ù-Á;PÃL‹IËñ9‘D¥/ÍÛ*ï"Ó á™±›­ +¿HÕ<½"‡«JÏ@¡ÅõÙ?£Nµñãó4ÝO¹§*ñ(ÇB¹.ÿÉ¥•õ ƒ ¡ÿHÙ+™BÑ5‘!½Në>‘Eõ6Ù›>ÛCÅÙ*ÇM+å?‰%ãFù:Ã!¥ ë +õ>ß:ƒ8µý:¿G"Á>¯!³»FñG—:A³6ƒ +ãDƒ¿I×&íMƒ(ù/¿4Í"± PÍ;Ã-ïH™6ѝ8ëE57™µ í'×3íBñ?Ï2·;ë/¥<ëá9¡/íÝ#…çL·/ùÉ.­×@ÃGý ½- ¥B¡3©1å=…P¿ûµP‡0™)ë Õ&·—@ÕL‹›Eù‹ÁD³@‘÷é8Ó!·‰8›»™4»"Á:¿OÑ.ë8Ã"Å Óãï6µ:«# ‡÷,»Ù$™>“C—ÁIáHÝ­ ³×Ï “ Ï>Á©&Åç-Ù'P™ãßç6«8ÏL¥™« £Ï<ñ1í=Á3Ï#«,á7¿&ýÙLïã8Õ(‰ÿ)ÍÝ$=ï5±=Ýã?¡÷GÏ'«6ã3Ó4Õ0¥JÇHÏ駏ùBÛó5ù6¥F©©(É…>Ï3‰"ÿ?±…,ÁO¹$í‘KяNËF×/Ý.¯$™0õ“*á8‘,“4ÓF‡"Kù«K‰A#åó:ñCó—)õÙë)ŸK»%/¿9™­"õŸ>½ó»ý ­ Å ‘å/¥1§CíÅ*Û)Û%ÿÃ%Áù—Ï?åñ0Õ§ Á8•Lû.ýK‘2ë2Í'™Ù(í ÁLÍ*—LË©6¯/·ï‹·Ë,ã +©I«§4¡6ï™É:›8ç=ÅÓá£?íùL£×G­Ó3í H‰“G­• ‰OñLŸ%Ýë%ŸA«Ná +©‰;Ç Ÿ½6“M•¡*•'±>­:ýF×(Ù1ùÁK« ýíÑH©¿½«EÿѹE‹N©,NùJË%÷2Ý¥=³3áƒ-ÉÓ)‡ ».6½2åEƒ)…Õ×ç·<¹Dµ«ïM¯#1ù‘™ ßDó(•/‡3¹(‰ûC"ñ:«áOãJ›Å6?ñ)ƒ ¹) ¿=£;™J+Çïõ?§P¹…)‹ +·M—9ÑÃé;ã@ÍB¥2Á2“ +ù «§,χ •Kßë;Á ÝGé<»…EŸ“;Õ+™D·2ß­C¡%¯ ßN×"éý8Ÿ ùß+“)Ã+4‘?ÏÍO» ·á4µÑ ­O»7ÙÁ'›åH£H‹,Ï-Ë!û*§2§/­Ká@‰¯G×½,‡J›%F×,Õ­Å#™F³9Ïå>…1ïëNáÑEé±ã—5Ñ:÷E«™-ËC…J¹B³Õ8Õ Ã­9£!¹Jë#­ ¹“«.ë$ÕÇ¡ ­/ñAõù &£ »:ç »Ë3‡,ã$çG›<¹ —?ËI'«B …O±…5ë1‹<ÃAÓ7³&ñ@±‡9·JÓG•Á+Ï$éÉ#¥ë=©#ßÅ5ç$ã6·ïJåýƒ,ñ4›Á!‰+Á4»¥Û@Ù!› +ᓹ;£Ë)»9ÿOµLƒ—4Ó×Hé7û ý —F·+ý0Cß;‹‘A£#¡Å&©Mï. +ÑK‹:‘JËw×<ƒFñ&¯7¿-¯M×›Fû>¿ë QÛMãé$³OóG)‘‰-í%%¥"Õ"Ç1Ë0“ß4™%Á÷ ™Ÿ—3“H«A½‡¿ÝCÉýN«>˱á ý/ùÝ;¹ÝíA‰0Óõ$Ù3ÉNÝõ@á2•,•@Ç÷$é ÙI¡É$ó-Ùù7½£7¡#óKƒý=û0åIû8Á%i§+ãHŸOÃ3É!ýAƒN…-ѯ™@¡BÛ-éC…Å1÷ +…÷D·ó2É2Á=Å9¹ëHý—õIÇåÛ í5Í/§1,•$×5ã-å:ËN&©2íF¯½« ÛÕÝN— £ •3Ã×7¥%Ó«I‹ ­½ß$‘Ùï-ñEá•‹0»M•#»CßßMç ƒ¡áË5‘íëÏ8Û(‰õ‹8Ý8ýÿF•F‹Eµ9ÝAéñ6Å$à +<ç£K?ÕGY¿‘/±Ÿ<“»“£FÁ5…2‰&óCÇ7é×F—³=Û?¡‰ã×1³‘•ë,¯8· ã)Û.óŸ6•¹Cѱƒ+ÁNñïFÕ1£O=“"ý-‘"ý©NÍ7µ,ûA•EÿL™<ÇG«‡ñ™G©…"åß22û uÅJÓñ;±Dý+»É'éBݽ&— +—I¯.í<ÏN§Iñ%í7ùó'éÁGÙ×JÙ#‡=à ¥$“P‰<»Ñ=á&áJÇCñçE¡ +‘ïOÏ +™ +©£2ß!Ãû ÉJ·¹ +¯9« µ*«å7Ï4¹'÷;ÿ ©<¯;÷ƒJã,‹P©>ßB«•ƒBÅOíýMÿE¹&³-‹B£ É=­!£$©35¡(Ñ/˝;å ¹IÁ0å +­HÍë!Ç/§›*×>ï(çDÏBË#Á ×LÃñÛAÛÅ.Õ!ë…í$éH¹?±.8靭)©§B K6ßOá%3µû";£Lÿ—%¿AÝM‰­G‡½$ßù%ÅËKÙM·IñÝÇŸ0£G‘û!¡:¯=¥7Ë‹H›¥-¯'¥ã2Õ5£Áá £.‡Û³BáûK‹"±ÿ"‰ É;ÝEµ!¿ ×*‰EßÛ"ù(ï'§0åÑý@©½=»á6«C·"Ñ ©>ë ã »1­3ç*—/³+é'Ç¥3‡7•BãïË»û/ÓÍÃ2Ó ÿ*³*÷0ó%‰û=å1çF•ãÓ(©;ÍN…8Íï:©CùK‹/Õ¯(ŸõEÍÛËLñ »2£-õ#ç5©DÓ&õ*‰HÍE—H±Ë+ËÁ/•½%¡F¡$å0û÷Ý0ÇÙýGýíÏÙó9»5Ù4Ñ)M© ½9¯+».ù1éëû2á‡û.Ñ +éFÃIÕå,å<çù'›©ééNÅB룛P—¿÷4Å<ï>í8ƒI‰2Ã/ñ'Ç8ÝK‡Oû•%á…$‰Ù/Ÿµ å!µ±*‡Í9³,·)ïÙ%‘@Ñ*••§=÷)ñ…›1‘É"Ÿ +á(ß ‡™L#×?Ï«:×—.«H¥ÿBÅ4Ï0 ç÷±5õ ÷Íå9÷>ÿ/7é,ù9Ó8é)‹…0à åƒOëIçÅÁ…HçKÓûŸIGáIÿ•¯ +É@ùOï Õ,¡2“.‡.×Ã*µN¡+½÷BÙ‘ «4ãA¯ƒ'ý!»K3Ù2» ã…'å ï$»J›$ƒ¡—Jí.±G¥ +…?—<ÅKÏÝù§ÏE×'9›2Õádz"É*¥,MÏH¡!ýBå.•.•=Û!‘7¯@Ñ8µ Ï/û÷(‰@“AãûLÝI³/É<…C­¥ÃÏC?¿#µ­'Ó ¿*Ñ>ù+·Dí&ƒC‡>ñ Õ ó$Û…6ëG·H³“×N± ß?‹5ñ>ù ÉLã*ÑO•<Ã<ՍÕ?ÍAŸJã<÷ ç×Ý*ÛFå c×O½?ÇDÙC‘%÷OéGۍK™H—$ß åïñ$û-• åÙ8×÷¥‘.ÝA£)©9Å/¡—·ÿ(‰©8ÓM£,‘0‰1©O¡=ÁH¡‘Û• + —O‘‘;.µDù›ÿ#>…‡$ÑÁÇ+ý­PÓ0·&í2ã1í§>ÙA—Ï«Á Ë&Ãñ ³C1¹6É õG…­NÇ­ó¥½G/§Dû<³ûã Õ=Í%± +õÓ;׏ +å;•µ#íJÅ'÷7Ç>Í0.¯Å- í)£E¥»!ÅëE››:éLCÑ2õ:ß3Ï)Õ$ûF‡é0­5×AÓ=ýÍ3Û1Ñ"›7›ë‘5Ý1ù.‹J‹ûï ýՁ›;‰ +OÝ5W6ñ™‹D™P§&¥§8Ë1çH—ÁÕ3£B¡;³#:)ã»HÕH½<Ñ ›5«%·BÁË$ÅHñ8¯1·K÷±!Ý"á §32ó©0ëA­$› ŸM±#½Û+·?§;¹+ËB½M ¡CùÓ?•8ý#“J‰DåOÙ6áçIåIÉCŸ:‹6Íß ã«FÍ ƒAç,™ƒ9‹Õß÷ ¡K‘$ñH÷+ã6<•ÛŸ&ç;¡…MÙ·OÝ+‰§6ÿ§(—1Ãݝ$··:õ,µ3£J¹=ó¹%¯P“=Ó±7Ù@Ë/ûG³ƒ?¹µ ý3ÛJóF÷£Íß&»GÇÉ…Ý&ÿÉ ×+Å!á…=׉LÃ4ËDÅç/ãO­—8Áã+É3Ë×.“/Ç +Û2ÝLÝ»/ïA‘ÿ>ëµáGÏ™©Ñ+Ã?“7÷I«O§ÿ Ã8é ͝%­Á“ Ó5—#›3õLí6¿(“Kí•A÷—·%‹%ë ¿ Ÿ9¹NÙϫ맃±4Ÿ4û7©@±'Õ +¯—>ËÕÏ+ó ¹ÃJ¥8åÉ7Çß +J‡‹4™Ù9ßA-“N‰·,ÿ9í +?ÓóI£ç@íû½'ç©)‡2…%é¥ùH—0ÿ½*ùC‘¯GÉDÿ»B“,‰*Íóͽ ñ!éáÍ#ç‰Kï&¥6©!ÓHßKñ(µ¥?·6ï=S¥9ë6¿6*­Ý ¥…&÷Å«9Ÿ@ë+é=Í ¿¯ûÛ9åG›&•9á5Dë-µ£&ã0Ý=í(³ÿ¹F¹ ™9¥>‘:‘ÿ&‰>½FÛ…D‘ÅDµÛHé ¡&ïEÏD­ ï0M×E¿»“FÉé ™&£0O‡ õOǍ=ë‰J‘>Š߇IŸù8é%õ=¥MAßÝ4ó!·Åõ›O™3»#Ã)±I‘<ù=÷Ó9·Õ'‡>¹7Í,•C¡<¿'4ç4ç#ùãÁ$“9£MÏ"åKÓ'¹-ù!¡OÛ$ï@½á?±?Ÿû$÷*±A·4ÙF—Õ:ù#ßIµ7¡Gí0Á,ñ¿­1»O)ãGÏ:çõ ¡¯4å£ åM2×ñóëó?»6Ï ƒ.» +Ñ¥E™‘)…7Õ«4Ïã>ëF¡7×#µ@±MéO«Ñ™ML¯5“>ã7©¥4ß62ß1Ý,µƒñ*«;‰ÿ@ç%‰'³Cß0Å¥‹1µHûMËA¹H¥ ³… ³Í?éJ•IÓ,åó +ç:@㣉:£ù÷L$ŸÉ¯E³9‡ Iÿ‰óD©HÑI£(¹… ýﱕHß@ÉÕ.™›‰=N½3ï7·P‡-‰ÅL¿.·>ëÉBŸ$<µ)ñ3©+¯ áá>“6ñNÑ1ó"ãå˽óÙó§ ‹Ç"Û4‡;õ/µ?‘+·ù5á/µBÍ…9ÿ'›Dù—*ƒL¯¥'¥Kç+»,!å*ýIý©5×%‹$Ýï³1·,‹‰í0ó(ƒ#¹>Ù<¡ÅÑ ¡ËJ¥3­LµÕ/×Hñ‰Ï‘#ÃË,—AÓÉAóùÁ +­F¯"Í-±8ßGõéKßñ&ƒO¯Bƒ"µ>ù™4ÛÝ›<Ë'©KÇ÷ ÇÅG·‘7Å*PçùN¯A×BÅOã=ÍHÑ!ïé3……Lûƒ*÷@ǽEÏ/í@ß ÷û&¥!&‡á>û5á%퉑:É+ï ‹Á5µ/ÙAíDQÓ@½!»0±»HÅ9™·ÕFûË ³2ÛA‰Kÿ(oÁ;Ý-“é ­#·3ïKË-»Oµ‡Hƒã µ2ÿ"…D»¡-¡/éJÓ1Ë7£$—݃¡M¥FÃD¡+›ãK§8—0µBçµ!£»ÃLáÿAÉ›.ÅÛ×ãE§3݃Lß/ßN•¡‹Põã.…5»­‘%ý!×D¥.Ñ5éF¹Ÿ:Ù9£,³Ë×õ —,ÍL»õFÓ§,Ã?õOå)™ ó Û;ñ—Ý9‘%ë(ÉÓ4¹7ñN»*û9û¿IÕÿ)× × —'Ó.™ÝJ«ï<£<¡4·L³"ãB£ƒF¹‡0÷7¿.‘gó$O› +å"ÁM¡ é#¥@Ÿ"¯Hã³8ë » ÿ@».ëã4É(¯ƒ.׳LË©ãåçÃ2Ã0Õ +ñ,ãÑ6$½“;ë2ó-Í&­ñ(¿ #§Õ%› ùß:ïÝ*µ.ý4¡!…'ŸN‹M¡K¹#±0ß7»/£½NùÕÉ.‡‰ùÝ +«@™!—í Å÷*û1‰9½-£O×2Ÿ2ÍB'µN¥=Y™L£Éå'ÑHË™ ±Có<«á$›D×7“?‡ åA¿ƒÍE÷CÙ.µ7¯'÷óF¥(ÑýÉ,±I£ +Ë8åB­ õ í9± íOǯ2§‘ÇE« ¹K߁K·#›Ï ™=¹A‹Nù,ÿBÍ;ã0±+8¥ÙI« +¿Bõ Ùý'õ‹F³O¹:‹U“Ù>ù(— Ã+á7¿(ƒ +¥Jõ0‰Hñ ·0ŸD‹>ÇÑK• á;“ ¡A³7ñ>½»ÝC¡“Û*ï ±;å§F¿E…ß6ùBÓ»<«.Ç(åãOå!-5§£/D…%¿6Ã/É• ‘ƒ)Ï¥C«9½Ÿ å2H×=Ë=Ù':Ëý›û7½5©F©-©G­ƒC™ëÛ-áFý>ÍÝ ¯Ñ(Ï,ÉEõJË>“"á3÷"Áí%ñ<Ç%›@“%¯û ûý ± ÿñ“ í ›=«8$©6¿;‡Nÿ;±"­;£Aç Å1Õ1×0ÿá7µÿï—ó9¥*ã$—ÁFßC¹;…&ƒG³ñ&‘ÝíAëDƒ2©1åFÇ8­&³‰7Ù%­(Ñ·ïù4£ …N™%ç,Ï™›/¥é ×/ç#ÝNÙƒ9ã8•<÷AÃñ2Ç ÿ!Á»K͏)Ñ1Á"óM·'ã9·ËD‹•'õ—%‰× ýÅC›±¹Å?‰P¥ÕC­2(­5•PÓ+½×!ó3¹ J±Pã5™3ç+õ3»7Ï6ËÍ)¹‰E±‡$×KýF…§+ñWïFÏ:ëL·™£Çû(«7‹;×'ýÅÃ8¯>ÿÉM» ›Ç¯4§N×ûAËGëC÷±7§K¿ïI‡ÓDïHßDý¡"C“7ýG¥í*¡*‹é>§µDͽ<ù ËL‹«Ãã õ*¡¥2“*¥—>׉N««3“(ûK‰¿÷Ë%™Kí/‘<¥«ã-‡+ÃK«óǝß%µFË™Å(Í +í%µ<‰4Ñ—*õ£@…— ©5óù¿!¡•³ +±@çDË © óO¯1ó&áNß›£NÛH»ó ÃM¹=ÕB£“ ù!û+…û<‘ ×<ÓM…›HçñJ#§6ûC×õ+ 7É5ƒ:•¡?Ñ?áC‡ ‘¿4Ï"í.­í!“™Ó!™B}ã@Ó/ÕNá‹—Fçû•+¯$ó%Ç,µ íK…;é;©(á?¥ Ñ‹ í©å ¿Jï‡4ÓIƒH™Ié40‡ã:£.ÿ/ÝÁE÷&Ÿ(çH‹2µ?™H³‰2¹Ù#£0çM³.ç0ñOéÛß@ñB1¥>û/*·Dý:‹ ÝHµ3ë$‘LûÍ:¥ ¿1“?»¯•$á +©éÏ@Óù‹•-•½3­¡4Í$»3÷ý3ÁÅEß4¥;ύ۱¯?· ½åÁ?ïùEŸJÑÛ#ùDý?µ-™5Ÿ@³›£ ËŸ<—3$Ÿ#ïß=Å ñ"…Ëñ;«2É"ÿáJÓH³Bϵ:‘­OßL ù@›û6û±©9Á¹IÓAçÑ"»6ÉLñ9‡ µ³DËñGÑ‘1å5­©*Ñ$ñ É)É—™­©ÅùAéÛ'ç$µ;á#™ýOÝDÃ5·7ÏA9›™NÉ û*ß?Ç…¥<çK½Há ù<£‹,ýMƒãJï·Å+J¹É:•.Ë?©¡ãN÷K+õÛÇ<‘IµMÓJGÇ6ÕGå@“NÝ.£ ¯@“@ŸC‡ÑJ™"ñÑ +]¿ +Í=¯#ÛL§Bë?»¹ ç%/§-¡ Pó›ƒ4—õKË…9‘³+ÕEíN‘¹H“…BÕ‡ŸP—D¥Eßéí­E©ÍN›EŸû'ó…K;­3ƒ8{›#§…1ÿ£1ç)… +ÿ…•á!:¡Pµ)û@« ¹!å(±4ëJ¡¿+™µ6»>¥+µ½.³F*á,áO9—N­+Ó)Ó:ë ¥P@µ@ÕO ¹F©á)Ù ÿ³#£+£“ +é8ËÁõ™)» Ÿ;ý +»!çOÅ8‡Û=Í6ÕÉ +¿HßOÍÙ›3ó+Û<é7ûO‹‹Ã>‡@¯ý,å;LÓ3ñ3©H«Å×.µJÁ7Ñ­-Ý/ûMË*—CÅ=£!ó§ +Û‡6͍AŸIÍ… ‰¯Á#§× ­$©"ý@é ?½DÏñ6ƒ3ÉIõ í3µ«1‡ +ý+­Á!ñÇF×8×Iÿ6Ý0ÉF¿,ï(—Åõý­@“ÍCï˧Måß·I™Å5­ Å Û$ß+Õ3ŸBå½/ƒPçE ÏF»•8ÙOí…ŸÃ;›½ ™,Áã ٠ͣ ß>«GÍ4³PÑD™7µ…<ý$ÕIÇ"ëù:é(¡#ŸÁ6=“-ÅIã2Hù.©ç"Á(í‰6ÙG³4«:<‘+íJ×…IÉD±)ÕD½§Ç*³ã>ñƒMßíL¡$¯ñ£B½Gá?¡B‡ùCчAï=Ï5›éHÁ Å%©:ï é)Ç«ë-ç¿>ß!û.Í,í,§Ë³'Í<ƒ Ñ-½=ãCÝ=ã7ûß“Hû Ÿ-µ³‰@×9Û.¿N—=£Ké=ƒÏ9ã!·JKãAù5·8á-¯å1Ë ­ ½J™ + §)õ8‡Ï÷1Ë‡Õ ¡EÇ·@ÇAó§:ÍD¥&+‹.Ý;õŸK•GÇ“I÷ ‰8­!ûýáI‰$™<Ñ ß‰FóNç/ó2ËAç3‹D—·Mß&ÅJµ£=¹+ý•áÕA“ã2ÁËõ=­4íÙÃA“)…>«‹#¹9é9Ãñ$Éõ@ƒ0“½(ñ !'Û ±OÁ.Å¥9ã1ó)Ë2‘·:ÉG—ËB‘½I3…CŸ ‘4ãÏH«ƒÅ6‰=‡/ÙHÓ‹/Nù?<ç(Ÿ?áÁB“/Ù ¡)‡)û$‘N÷5½@“L¿G³IōD“ñó7Ûû- ù'óE×û ÇOÑË"é§9÷‰ŸI“JËÙ!¿CƒJ¡;ã<Ù“6ã+× “G£L×,6‘@ß3¡Jƒ Õ*ýåKë÷¥'·H.ÝI· Å#—Lݝ#Ùû³1ÿ Ëå‘ÁÛ+ƒ!Áρ§?£&ç¡Ù*Ç)™/Á'­ ‹=M‘*Ù8Ñ£ Õ ÕJ‘¹¡'‰OéÉ=×4çN‘-õ2#Ž:…-׳££áE÷%±ÏM7“Õ­‹<™³Nß8™C‡<Û6áLµ ¡5Á%§5ë8Ó(‰>§@ß9‘$ÏLÓ÷4É¡:ÿ%…0µLÿ«Hß5 +Å>™'‡?‘Տ/ÛKCåëã6­Í?Ù)‰&Ù©­6›+‹»#"™Gñ:¹Ÿ¿%Á&õ¥ +Ç?ï™M•³0O…*ß0ïáû"ñM‘'é.¹&¯Ñ4Ù=ÑBñ'É3¥#ÿ §.ý6­CåEŸÛ7õBu› Í ¿-åL§ÇÕH›Mµ¡ +Ÿ1ùH×$ã4Ñ,«B«Ï»Ï!£áÛ"ñë·2—KË:£6Á:»@ç9ëMaÝñHñD‰Ïá0•9å4™JíMÇ>‘Cç.çï&éý8Ë&§£3שÏ;ó§A£Dï0¯8Ù$ß »+÷2:Í›0åÉ2ßÕ7·‹½%‘8Ÿ÷>DZ“MÝ›N‰ã/óå—“+ó?˽ý2ËFSï*ï;¡<¯Nó‡"¡LÇ$‘ƒ<—O‰ Á4«,™Cý5«)¹µ*ýÃ#³CBÍ›!Ïé:ù)‡I¡Dåó5³ýñ+ùL‹É“¥?›ƒ1‘9ÑN»$¯LÓ +‹?Ã3‰(³-—¯ çI­.¥5ÿ-³$‰.å<á¹<ÉÕ«Eë;ï%åOçCÿ ¹8Ï +ñ—© íëE‹L¯ç&±-› ¹0õóIɳϛP¯ ¯7¯G­G™-á.ëI…Oƒ¿…Ë<©;«‘ ·÷)½,¯ßµ÷.µGçÁ>­9§<ë,•>•MÃ(ãéB>›1ç·û4ãM·£¥K—:¡ I¯ ¡6ýLÓ ýÍõA“5Ëÿ<‡>—#§L8ã"õ·£ÏNá(ëFÑ/A7I¹ýKÕ(ï“1¿3±… ×N·<ƒ7ƒ³Gé +•—¿ÉC—Pï5ë.Ç+M…?ÝF»­Hó*³<ëíC•JÙ;é+ïLõ)ƒ>Å¡F·õ71Å—Å»'óÁCŸO¥HÃJÁ¯EÕ5‰‘³ …A÷¯Fß"­ç@‘ ÿ$Ÿ¡ /.ÇHÉ1Ë!›5›6å ù"±*ã%ýAÏÉ8­J¡.ÛŸHËE÷$!Ñ«;Û ±á8Ká±?ãF©0‘J·Fµ¯¡ñ5ë&ï¡ßE¡"ÿÝ+»"ß1© ­DóíïÛ?ÛÝGñ¹$…4·)ñ õÁ ±A«6ÇBµO‘.Ó'Ù1É<™µE•,ÿ»Ï0›AÓ—7é5ñIÕM÷=Ë/‹*‹O‘Oç1Á-ÿOÿ‡-¿»:ç8ÅNÕ2‹@£‰"›I“Ý:ßMùIñ*¹ ï1ñFÓ©M¹1÷-±E£ç¯¯… Ë9¥çÑ¥ÿ:éÕF›2Ï Ã›,ó;ó#£(ƒ “$õLÃÏåGÛ  +ÅÍ• ‹:ÿ +íGÓ7ýãý£5Í2·;Ç:Ï%É4‘›;å"›%í‡DÛ,³©¥Ý2¿Û·?‹‡'«·&¹Õ í8ó:ß›O×E‰0ÓÅùMù0Ù0¿Oñ=›"¹ë@¡O›å=Ý ÿµ&Ï Ñ3íã Ó<Ó-í+ɏ½Û&«×F³6å7õ4•ƒBá5ûDÍß»3»G ù-ý ¥ßï3Ñ9ÝÙ©ƒ6ýD·%ëAå#ÓÙ:£*ñ/ÿµ•)•7%Íÿ2»2Å×Jù9Ñ …2LÁ,Á8³)™÷›&…ÿåD­›(ÁÏáMë‹+Ÿ.£1J©ÇËC¡©ùÑ# ¿Ó#í&½Cû0ËK‡9÷«!<§4­NÍ ÷Mƒ&©IûG…ç¥7‹§C£F»M¥Õó¯Iù é1ÿ#ÛJűFÏ*§ùŸ/½4«%ù÷IËí:™ñÝ8çJŸó,ãGƒ‡ ÛB±,ù›µý ­=ýJ»(±D×(ý-ß-Û%¯(Íí<Ó$±ã'Í/áÙ@Ý1©?§½0÷·4¿"»C·-ûLÕëÇ0“3ƒIË4±ù³@§2·GÁ/ÍGý ÕÙ-éÅ£M»8‹AMï‡3÷+ç‹…!½‘/‰1±L·ÁHÕ#ñ)÷Eç͇!éÙJõ÷Û9ã—;±'ëO·.‡LÁ½;Ç7—Áû·6•?Ó;³M«&§;µ±>ã¹Åû…Eé ùû‘—Iá©'Ç2·Cç5³¹?Å,ß*‰ ›CáÉJï!±G…ÁJ‘¯+™AB6‰B§/å‰DÍ•FÑ;³=³Há:“8Å:§' ý"·+ïMíB‹'Å3ï?½©Ó Õ&å á Ÿ½+›$¿Ó=û×ï8……Ý(…HÝ cÓ‰à ÇÙ™OÍ9§ ã +ƒ-íõ6é&éD™:Ç ¡@‡ åNÁ@ƒ' +áÍK³É ÷Jù2ùF«J¥ù3‡©D…Mõ™E¥BµK¯;ÏJÍ Ãç-·!Å)‘Eã¿ÑÓ“=§Ï'á9Õ)Í" “»AÙ ³/±Mí7Å@Ï#ÙFá&Ï ï:é"åI™0«Pãý<½,ë7‡PßûÙ· +£#ƒ‰ßA£J­P‰'§ ÙÑ ½MÙN³Ù6é!ÅH§—BÙ +Ÿ•;Ï>Å.¯µ‘HÓŸ8‘&w·Õ9Å&ç;ù/»Dý«5“ëÏ8§±—ë/—@·•Ký*“F‰9‡‰¥I¿Ë)íá»;)Ÿ»›FïÅDí$é©2›µ5ƒáDë0“>Õ!•2¥1Ý)ó­MÇ4£!ÇÛ(¿9ç:Õ½O…+µá/ã™Ñ¹3Ÿ›>Ý<×%ÁÃÓ9Õ-/߇OÿJµÍÿ4ûEíÑïB3ïñE÷#K»‘;Gí Áñ%Õ×ùÍ(ó.Û'µC×*»ÿ&«-¥¯ ¹(‹7ÿC½ÇNñÑÇóD±«L±N³É½?é/íE÷<»,ëK•™(éÛ4‰ ¡C©J÷;)ÃB‹(Ÿ +¹Ní;ß«•NÅB›:å&¹4à ÁI‡8Ù?áG±¹5Ã.Ó ¡N‘ïÓ,ùÇ3C›‰×;@ÿ0—û:‡Õ0Ë˝‹9ß Ñ+³&‡=‡&Á¿@ɱ&ÛF«­IÇ#•L÷¯±9ï6à +ͱáBÇŸ7ûJŸ$­©%‰#‡2§8Ù—!«Í>¯3Ï&áÃû Ç‹‰Åµ0‡“É ¡9£-ÝÝ ó0“Ý6•*µ Ï?ß#ãÝ@ÏIí)•¿#×?±#å•0Ÿ9Í©)—ÇLà ³Ó5ã&±/ßH!‰×«—¯¯½Ý7ù§G‰Jï2Ý$Ï«$ŸÕ=ý1©/ùµP•!ÓNïNÍ+õÉ‘‡GÉ/÷NCã«/›¿2»óBÅLÛ ,§7ßÇ ÷?…7™.Ç1ݹ“,Áù7×»%Ý>³Ã$ÉB‘>B‡ï/͝×<éOé׏Ÿé ¡¯-ÇC­µ'ß%í—Eï½>ë%÷Õ,ó ÍÛÑÑõ-±H5í?É6é6Í5ù$§ÑG—M©AÑ¿:¿É?©ó ‡ëHµ9å/£7«Ÿ×3™*«(ë9¹MÓ£Õ@¥"ë¯KûIÝ£GÓ8ý×Ë+ß½2íF±=¥“:½*‹1 µAÍIë1Û0[“EÏ2å.ƒÉ&‹Ó ÿ5§ ¿ÃåJÓ©EÓ>£å—$•Eƒ@íçõÅ2¹"ñ#Õ‹0… ¯¿/óGÉ@§=ÏCÓF¥$Ýå,P•(•¯ËOË@¹EÕ:ëÉ'³:í ë"£;I­Kç*ó1‡B¯!ñù Ï ÃCù«<ñ0§éÛ‰õ“ ƒ«M8·"•© ¿?ŸG3á>߁)û™@³ ýƒ•‰1ù‹é@Ã*õDÙ«Ý¡IɳãýÃóí6½»J¡©=©Å‡1…×6¯)½Lõ?ûÉ;Ç'± ï4ÿ.‰Á•%¹*éÙ"É É9ïç4ïDï7©O¯Mó•7·Ï‡;‰ +ÝýC¥L“2ñƒ;ՏJ¥/§"í ±Bý)Û>ã,Ÿ³(™·µ4éGÍ3¿ó>á“õGûBË1‹8ñKÛ/©-·OóÓO“Cõ>Ç©#¿ ±Jß ÏB÷ÓÙߟM¿ ÏKÕÿFÑ.¥ÑE¹L½ §%ó +¹,«#ó4…±!Ï)³ ß +³µIõIßF‘(õ90ñC·$á@± ùK…Õ ÁÛç<ÁK»E— ýH¿á'ÛÿH™á=¯í4‘5÷D‘D½ ±çG£"ï'‰M•‰ ¿ £>.õ%ïë)³%¹B »N‡F•BóJ™>­ÇM³ +å:«>ç=·Bã— +ó!¥DÝLù‡­ ÏG÷FÛ5¹ ß'¿Fù·>¹@Ãå6ï›Bã ß×A™1±íH“ó"DZ‹ µHÛ›84£'½Bõ:Ù¿Ã6¡<>Ù2õ;­,§ Ã<Û!¡¿K¿AÏ<ç>‰)“9Å!‹6)­ùíÃÅ'ÅÝ3ÑL³JéNÕÕL‹%1ë<“O‡M÷!ï>Ÿ>Á9«"½#éõ,ÿ7½ ƒ/…§Ié½ù=éIÝ!—/;³5ï)ƒO©>Ë +Ý"3ƒ+«Nƒã£:«ÿD©,—2¥ Ù3á<Ã4Ï1£)©8½ÿK‰ÑFÿ ý#ÿÛ2éCÇ.ÿ3»?í(½Må‹Iƒ?»=Ùë ©‘6•@Ó*ÉÓÛ­ý.Õ+Õ.ŸE¹Õ×5……$ÉKÇD³A¹‹4™PñÁA‹)û…3áK§¥8Ã9ù1é0ɧ!ƒ Kɹ‰*‘0ã(íIãD¿M‰L¿5Ý4û!Å é‰%Ï»1•4™—)ƒ(×MË Å"Ë(“!ÿL×—» ¥ û)ï,çFå‹C½9;¹Dñ7Ç/‹ «+›‹ÏGûF‰AåŸ*§‹KÁ ‹ Eû×:Í@÷*•CÍMñ4«4Ù ³Õ¹.ÇGõ +:ó*O‹Eƒ=Ë Õ;™+µ›»9¹=ý‡7ƒEÉ7ýÑŸ ¿'ÃÓ%HÝ?2õñÿŸ)PãáH¥Ÿ=ƒDG›)ýNíÙëï ŸÁ1½Ï=“AÇKó6‘,•=á+Å ½¯¿*©NÙ5ͱ1¥Ñ¹-í>ëG§Jé$½'•6Ë#£Pá"Ã:݉2ûN“»¹ ã3µ+õCÃ,=­1ýƒ5ý9ó@§EÁOïA÷çA• •Ë;÷H³?ã?×ß¹Ó?Ó"·P—+©$‡#“Pí á9×õ ·…8“.±½$¿8™Dû‰!/µã)¯:Óå±2§‰CÉHÍ0FÇ&­÷¡>BÙ(çóAë÷ ,Ï$­ÿI¿É-¹-‡C!­'ƒ¹×)%Ý©7é·£Aç +?Õ'õ‹!ëN•H¯=÷O»-á2©PÕ4ý0õHË3ïC™ï§0éM¯&$­©!ûŸ0Å-¥N÷½)ÿ1û,ÙLß(ý¥-¿=_‘3åс­Õ éEçé?«'ñ +ÁDñ µ(¹)NÉË0å +…Ýù•O·ÙD“'é%ÏeŸAßI¯5›*ÿ+Ÿ‘M×L™$Ñ<ë ë…õ…PÇ!>—8ïG¯%· ³3ÿ'ÃOù%÷3ù ÷“#¯ "¥‰-©Ç-ŸLçGã­?Õ?ùGõÏ+ù*ãÁ©.ï#•1ã'ƒÍO­0ëë+ã­%ÙM•½ù8Íí#‰GÍ!«=ëÁ §>Û×@½ï µ­ç“<±.ãLÝ,§Oï-Ý5Û:×&Ÿ ¯Cñå$¡³³K³9ñ1÷á4ßÙñ?©—?“ ç«»©BÉ$‘K‹‘?ãHÅ™9§÷:‹§6Ñ7Õ6Ã7ù÷LƒFÿ¯,ÍFÁ뱏2áA•Dë6‡JÍë0ñ@íË.‡ +ñA×-ÓÙ4ù+©Lë=¯™ÑM“ÁLßB›K¯P—(Ñ*±­/ñ©<«‰IËI ÝMƒÑI‹Ç;»ÃïÉÿ=ß<¹2׿ ‰;û8±$¥6µ=ßK¯9Û ÛÇ +Ñ« ±K™ÕÝ ¹½Kí2‹5×G™ ãÇÛDá­8£C­ ¡×+µ¯Ï-…)á‡Ã!Ç Çñmç7£©@Á+· Ñ0í¥0›-¯Dí5ßã*•‰5• ûÛ³ëMñíµ#§*çB¹Oå*Ù7ƒ%É0é© ¿ÛEō ·Eûû>¥4õÝOýEõ"ç'ÍAÛC»4¯0¹'á¡¡ …=Ñ>óå0ÍJ¿<ýIß;½ ¿D5Ù/Û)É÷0¹%»5ÿÃ"ë½ëB¿›¯/û +óK‹Á=ë§åM»Iß$‰+áÕ8£?±6ó'Ÿ5•"×»·Nÿ9,å+ÁË$Ñ:¥û‹H‡£Eå?Ù‡,Ù+‘=ë…ÿ­Aý&¿…,+åÇJ•/ ·K—9÷Ñ2ŸÅû3ïEë*»)‘‰?EÁ$…(“4ƒA­<ó¡%ËŸ•3÷/Ãé<§&Ó2‡:ÓEç½é'EÛ1Ù‰:‹Bõ&™ ñ#Û8ã;Í ·/ׁDÍ*ç….Õ<‡å¡2‡éA5ãï9«*á ‘ý=¥ÃGÁ3÷ ù6ãË¥:ÿ,Û3Ã)§PÓ½F±<…:×Ù³…#› ù>ƒ$Û@ñ•:ÅA&µ ½6Ÿß.ëéLŸ+?¡±(µ$Í#é*û?“D§#«K›±ËMáÅ7³*±­"ó8ÝÉ «‹-ÅK½¹E«AÝAÕûÏŸ3» i4ÿ™A¯óÙ,•#‰<¿±åóƒN+ÓG·—5¡± ñ!‡*ƒ§'H—Hå3Ñ&û;³,¿§H» +…FóLÇ ïJç!éÅÓ&³;“B¯.½ +ÛG·µ,ÕÑOA«O‘Gû2F½&÷‹J¹/'“;«F¯*™õLÛ÷ +ÓB­BÙÝBŸÿÃ=« Ó …"åHë µ¹6ÙEáóɯJ¿$‘ £2ÃÅFÅ$‘2õ< ó-¯O›³E©ï@í'ÿ>Í%­çÑ ±•‡.ÉO©C— 0ÝKÍë5»LÕKÑ%(=«?¹Ñõ/é™;ï"Óá å³É>õ'ý/©ƒóCÁ0ÅMË6ÃNõM÷™8Åõ(»ÿ›?ÿ%Ñ8“‰3÷±%—"Ùå>ÛËN›Lý%›Á2ƒƒK­ç »ë#ßJñLß‹&Í'¥)û ­)¡ý(Ãí-±5—Ó»FÁ£%É*åCß ÏE¡Hë:Á»&ý;¹‰ÿM¡,¯<‘B—Ï©¹— ­:› ë4ÛÇI‘)ûH‰,Ñ)…J×1•Në!ó=í"‡EÏ.Ÿ'ÿË5é‡5½7‹$Õ$ùOë'××O§$…@-õ"• +‘"ýç2Ÿ6· Ñ@@‹ +‡ …ñ8¡=‘PÛïOß‘FÓ0¯6¡(퇳±3Ó‘Ÿ&Ç5Ëÿ?ï.û%§ ‘ +•Aéí·›¡G©&•Á)•5ÿGÅ ÓCë±:å%·=ÇÛ±.Ÿ™6§DÃFÕÛIû#Ñ'Ã-å9·9ËH×"Á ÏOÁ<í…6‘AO™&»£ë3¹J½1í1ÛOýÏ7¿… ›J÷,÷6õ›9•&™2sÇ“KÇ9Ã@‰/‘‹×C¥%ù#Ÿ,ù +‹G÷Bõ5›GÙK @Ùƒ“÷ ‘!¥Ý·(›ÿ«¡8Ï4¥÷(‹3µ +·¯—.5ý7ÛMÝϹGÙ÷9‰µ ‰¹C·1ÁGÝ—Ñÿ8Ÿ4ÿ*Ã'ÏD¥A£9‰ Õ>Ù•õ1å ×ÑA¥,£Iýù&‡%Ã1— Í8ϱ +Í7—JÝõ#ç?å Å;Ýÿ ÏÇ@á1Ý%µé2™Fó·AÓ6­7ŸFŸ!ƒÅ +³!›7¯ +ïç6£0Ûå8× +à ©4—4ï$…/Õ© +鍏™?ß)Å/Í¥Mñ-ÿEÉ%“å¡1§1­½8÷'¿—ѧ(»¿7£8¡3Õà ŸýBõ!« ç ·*—GÉóHÍ —&é-—-¹ +LÝÁ­ +­*ù›4÷·•Iµ¥OÃEE×>ٝ»­>Ç=ƒ,Ï3•¡¿£4‘ ëÍ.¿&‹Å4Ñ=½AÛõ.¡0ÛN«Dé,ù ¿0í +Ã&—6=Ï(“ç ß2Û +¥Ý©ó•É½ù;Ý'‡ ç é¥G&ï+‹"«Iƒ ³ õ8™ ó/Á*í…GÉNÉ#…ï +©+ý «¥¡Ý#¿ñÃ%¿L£ë +û·5ÓµÙC÷8kýIÁ qáDõÕ£‡(‘»BùJÏÙ&á6Õ"ùÑC³ÓÃIí=67‡KÙBÝ&õNëÓK©3ñ.(9ë>×;§ÓçLÍ1ãIï‰Ý/Ñëá0û£“• ѯÇ(ýï÷;á6› у…ñ'û4ý“‡û…;ë(¿—&Ë §Á «£ ¹1ûËË—õ4½ÅAïÁ<÷ÓŸÇ!÷?½ £:õï+‘Ïݽ/ûÃù +©*Å«!‹ ›;Ë:³N‹;ƒ<ûó7à ‰CÏ7±LÑ9ÇF³.ã5‡<ý )±Ù"ý6ÅË'Ñ­BåÑN-­7¥åß6ù$Á)×Ù"ßF¿“<¥H•&ë:Ù;‡!‡/Ÿ2Ñ•÷õ+ÁùŸ³ +8ã4Á¥¥ç!ÕÅ灹$ñ«¡1¡ —©-ýï4áB³õ ϳE‡ï<ù@Ý ¥Ù ñ­ í“ÛåD¯›±ƒ‡'™ ±:Ã…3ó©/鿃› ½9¯­<Åà ›ƒÍÇJÁÅ ‹é£½ çõù.§÷± ÑÉÉ í¯,§ +³>ß½Ë Ç#ÅÝ-…Õ­ ]A§ û÷"÷¿¹ñß7¡ŸÙO‰5Ã>«ÓÙÛG·(£5F÷N‡É™‹2ýEç.ÏMÿ3…™!Á7«õ +6Ã5ÑבB׃ ‰û#é.«—§É ŸŸ,Ù™E +Ï—4é™7ÁŸ5¿+¡ÛL¹ ‡Ïí·$áÓ2µAƒÓ-ë¯F(é¹#§"#Ï ¯ ã#Ïé?™2ã­¹§Lýݯ"!©:‹ ‡DŸ7û +Çù:¥ ¹ç—½£§O‘Pý Ç-Ë>ùÛ›/ßç#Í<Û·‰ó1ÕïÍ)×…Bm³!¡—K£=㠝ÕI‹ù*A%£áåý$1I)­§2ד;“$ÇAÛ,@Ÿ-Ÿ —(ËË ƒÃ;ý)¡ƒPƒ0»9‘#7ÍK½Oo—cŸË£Ã—CÛ­L«&ÍI‘=ÇçÁFí¡MÙE±1yÇ'ǧF¹é>õÿ³5¿Kɣ磹:áDñDÕ™8¡LÕ;é¯AÁ á"£@™ o‡%ý9¿"Á ËëDõHÝ«_·á!‹=Å:ÁEç7§ é1Õç å3÷ ‡AÃFÍLŸ"áNá‘IBåD·»LÙD³<‘õÛÿý?Ë •Pûƒ5ý‘8IÍ)Ç-¿7å)ý'¯C±9Õñ-ó1*•5÷&©%KÑ&»<ãï +ã6ÇËóM¹,ý½Jyñç)ã"©ÏÍ¡%½!Ç#“1µã wÇ‹ñK½+…:›±F—ß3—Ï Ÿ£DÅ%¯ÉOɉBߟ1Ÿá.ûB=•Óó/­-Á@· +ͳ¯‡ƒ•D›íÿÉ Õ%ãù›ƒß÷ã%Ù»‹¡Ç(·7é™à +ŸE“&á*­ù ‰.³»8™ û8÷8‰ù&Ç ¯ÿ:ÑÓA± ÙÉ ­ÇÑÍ0«-Ï(å­»2Ç“›1ë§&§Ý«"û%Ÿ(¯Û ã(ýÁãU Ç õ7Í›‹9¿õJ +ý ¯0ÝÕ ÝÉ¡ “2­ÿáß©!ƒ3«¹×)ƒ"…‡ ÓïDÇ6½• ³K×!ÅÛ™ …­3¹‡:‹>× +•*í1ù¹ ±&Ñ;‹Ñ!ƒ±ý‘ Ï;‹³.5‰×¹EÙ-ƒ½«8÷ï.ËÓ+“·'™×Å)Á(¯½ +•*ñ‰!͍×Û +“#Í5É/ó ýÑBà © ï?‡ëç(Åï £½ û ¿!™ÑßÁÉ·ÛשGŸ±ƒµ5ý +û ÝHó³ ¥+É,ÕmÉ¿) —=‹3‰N¯•*·3÷5±+½Å?ÁÏI¥õ ƒ›Ý'-‹Ç#Í.é@Ý ËÉ› û÷·*£á ™:kåÿ=É ï*™û6Ã$Í>+õD‡6Ëïçÿ8Ó>¹KŇ×$ó •J• å8…÷ …(³A¯:×KñFµ$Ÿ)ã/Ÿ ÿ Ë?¯)·«LŸ(ß<(ë9ýL ÿ»NÇ&ÁJ—MÓ÷“'•0ÿÝ7³û'“D­×K±…4¹!á +'± ± Å» ·õN¯£A‡ í#ÝãñÍ6ÍŸB£©Ç +©ÕM…Aï õ"ƒ§@õÁ‰#¥@³2‡4§ƒ&±Cq•Oéß ¡Í=½#?ë3ù;í™Õû1›á8»í;‹&É%·1÷1Û•ÛÙåû×½='«“û)¡•¹ïÏ<—,‘× å&µ Ù ·%§'× çŸ:¥ Å¿åïÛ‰ù“ ç1Ó#Á!Ï6­Á1탧ï<íóó9ïá+Û8ýѱ*Éá é5³ ·‡ßDZñÑ-çÁ Ù¹ƒ… »(í ³?ï#ÙÉÁ³•Ý=§$ƒ!É1õÝó“!û‹Á™*Ó§?Ó÷ÛN¯™… 땳0í Å ¿ÉŸ±÷6Ç÷%ã—ëO¿Óã ÷)óõ.í6ƒ#å%÷/»)©?¥å#㷝ÛEù¯¿ÑFÝ§Ó ç8ÛëŸ-“6‘£4å¡E­ÉHçå<«1ß“ ÅùFÃ@Õ-ï—Bã.Í ãÕEµ‡‡E5Å2‘3Ë.‰ «5ß=§NÍ2±JÃH§"É4×Å›J› ‘F¹4©ñý&Ýù ­/› )•ÁÓÕÏ“¥éû!íDáßíÕ‡Mó>¡9å6Ÿ—ïÕ5ù,ÇÓ¡"¹óý"ÕÑ•é,í½ ½LóË8­*½ùŸ¹ï » ›&áÇÅ2ûÿ2ÍG÷<Ááõ(Û0‘›Û&ëÇ¿õ!éû:£Óµ'…§§9¹Mç ×#ËÁ<§“±é +õAÑ ÿ7ý;¯¥3Åõ1oÓƒ1ÓLÑ©L¹LÍ ù"ÿ éD™.—6µ0×IÉÅFч3㠟C«*ñ«E£½ —"³§Õ?ÿNëƒ'¯‡)á…@­>¥C¿"ñƒ*¹ +ƒÑ!ë"— ±÷5¡  ©«.á»1‘¹Ÿõ&ûý»‡!»‘"ÿ¯›&ßÃ6Ƀ4½“8ÕÅÏ «Ãá8ƒï‰?“é*— +Ù)í}é'‰3ùç +µÙ&û‡G™'—-“ƒ%û&ÙË § ‡×ש Ï1áóÃÝû‰ ™;Ã0•§Aµ ß»«< +ó½D¥5û«ï™ ß µ Í!õ½ÿ)Ëõ ³ £±1Ñ%à §×Óû¿×“×….³«­#ç%ÁíÓJá'ïõ™E«-¥ÓóÉ%µá§£+©ƒýí½í9ß8ÉŸï«Å=û«±%ýù2Ï,Õ ý¹%ÁŸ=åL‘ +ù.ï2í*×íEÇEçµ%ù¡,õÃOé¥ …FÑ Ç:÷K‡#ŸPÃ,ñý%÷-Ãë7ß헁B×™Cñ Ñ±™«Á +™«&Ñ<ó#÷ן±/Ç +³»+ý‘‹'ß å4áõ3•7Ë7¥(‘•Ïç<£½4Å ƒ!Ã(ƒ ‹C½µ+›õù?“#·…4µ"ËE‡KåJõ“:ùNá)³Å +Ÿ!åß-Ù é ¿»ó—½0µ¯¿­;Ñ ÿ±$Ÿ*ƒ2íI‰¡÷á-I‡)Ÿé&Í@‰íëý Í¥<ÙÓ‘ ¹:ï9•ï%µ½;¯DÁõÕûÁµë0•ó*ß5± íNÝ:Ù½‡ ›Ó:Ëõµƒ³8û “%Ó±AÕ½Á + Éù™@÷Ç=ýó‹2Ë(µå¯ « +á5·… ¿:Ý· +õ(ÿ +§ +Ã=ßÿ¹)ßý»Á— ›Ëµ ½ +› “Û—+½(·¡Ñ6Ù Çó0à Ý2‡û³ û1¿0å ÿ »@× µ$µJ¯ß6•-£%¥•Mï£ß4›Û#¹•/õËù3ÝßÇ +Ï*§Ñ!ÿ)• §çó4¿ëÁ<‹ ½áLÓ¯.Ù›"©å-‘4ý1é +á=ƒÁ<ÿ%õ g§ ã…ÁBñÑ0Ï¿;§:ç³:ç)ÿŸ=…ƒ,¿#Ó‹Ë +Ï¥A‹© £>­Ï%·L‰Éë&±‹ å2á©$û+‰$ÿ¡JÑ?û;í/Ã6Á6£C­…,ë?{¯Ó#Ë •©Aç>¡¯6Ñ@3ó3û3íH‘L±F—P‰ÛßÅ)—: ƒƒ@ß*¯K‰#½>× ™Áû?û,Û;§å5›6Éó Û<Ã:˵ûÛÇ ý¯%E ‘-÷'¥NÓ1ݹõÁǃ÷!å­ ·ßEÓ õÅ-é9áÝ?ï +™Ÿ ³4…ë.‰÷ñ*óË)'¡.½Å=ÿ-ƒ“‰DÃ&ë“éAÇ=ÍŸ«'µËÁ,ñ9¡ +ÍÙï"í±é ­ +ïÕ<ë Ï@Ý ¡¥õå'µï=㏠ó4ëa§?Ïõ í±9Ó ç2ÉÝ õ ¡ƒ  ¡ß9Ù+Á‘!Áë>Óõ6ÙÃ8Å—>Ù*ï"+ɉ%Û!Ã!·ë +;ß:—"Á³ý »F·ƒá*×&é"ƒ(ë%± Í;ÃÃ-­5ëµ ¹Ï2£ ë/Í íñ­ý Á ûÅ ‡0¯ ù“Ó!—·Ó Ñ.› +ï6Ç«# ÿ»½Ù$Á—ý&IùáH­ ±³¥Ï ÅÁ©&Å£Ù'Å(㷁߉$¥£‰ñ1ß +Á3­ +Ï#ÝýÝI‰Í =³5ÝÕ5¡Ï'ã3Õ0ÿ§Ãë2Û™0ù6­©'ɽ5‰"Çÿ?•ËFů$ë õŸ ‘,Ñ “4ÓF‡"Kåó:ñCó—)ٝ ™§4½ãý 1Å Må/ÁmÛ)kÿÝÁƒùÕÓÁ8•Lû.ýK‘2ë2í íÍ*õ!¯/û·¹‹·•*«ýï+‰!›8¯ç=ŏ áÃ6íF£×GÓ3H‰“G­• ‰OñLŸ%Ýë%ŸA«Ná +©‰;Ç Ÿ½6“M•±>­:Ñ ùá« —@í½ƒ,ñ©,ã!ùJ•Ë%­ ÝÉ9áÓ!»Í.ÕƒçÑ"µ…<«×ù—‘‰¹(Ï +‰ûC"å«·J›É0Å6?ƒ ï¹) +‹ïÙõ?§P¹‹ +û·M—9Ñó¥2©“ +¯(ù «™)é<õ +»Ë0Õ+™DßÙ¡%¯ ±Eé•7Ÿ Û“)ÍÃ+¿ÏÃ=» “C·«µÙÁ'£H‹,Ë!… û*­§/‰Ù/,ù›%F­Å#³9Ïáé㍗5Ñ:÷E™-ËC…J¹B³Õ í9¹J­ ¹«.¡ ­/ñAù &£ »:Ë3‡,çG¹ —?ËI'«B …5ë1‹<ÃA³&±‡9·JÁ+É#¥ë=©#ßç$ã6·åýƒ,Á!‰+Á4¥Û@Ù!› +ᓹ;Ë)»9ÿOµLƒ×Hé7û —F·+ý0Cß;‘A£#¡©M +ÑK‹:Ë×<ƒFñ&¯7¿-¯Më QÛMãé$óG)‘‰-¥"Ë0“ß4Á÷ ™Ÿ“H«A½‡¿ÝCÉýN«>˱á ý/Ý;¹íA‰0Ù3á2•,÷$é ÙI¡É$ó-Ù£7¡#óKƒý=û0åIû8Á%ãHŸOÃ3É!ýAƒNÑ¯™@¡BÅ1÷ +…Á=Å9¹ëHý—õIÇåÛ í5Í/§1•$×5ã-å:ËN&©2½« ÝN— £ ×7Ó«IÙï-á•»M•#»CßßM¡Ë5ëÏ8Û(‰õ‹8Ý8ýÿF•F‹Eµ9à +<ç£K?ÕGY¿‘/±Ÿ<“»“£FÁ5…2‰&óCÇ7é×F—³=Û?¡‰ã³‘•óŸ6•¹CÑÁNñïFÕ1£O=“"ý-‘"ý­0µ,™ ûA•Eë«ï&¯ ñ—™G©Ýå¹Cu‡ Ë>ÓŸÁ»$ݍ-— +§—I¡¿ÏN§IÑ0ùéÙ×J‡=»Ñ=á&$ñ×#¡ +Ç;™ +7£2·“<¹ +÷.«å7Ï4¹'÷;÷ƒJã,‹PßB«í£ É=­!£$5¡(Ñ/˝;0å +›*×>ï(çDÏBÃÕ!ë…革§BKßOµû"£L¿A­G‡ù%£G‘ë ¡:“9Ë‹H¥‹$ã2Õ5á áûK‹"ÿ"‰ É;×*ßÛ"ù(ï'§0åÑý@©½=»á6«C·"Ñ ©>ë ã »1­3ç*—/é'Ç¥3‡7 ㍻‘³*Mó%… û=çF•ãÓ(ÍN…8Íï:©CùK‹/¯(ŸõEÓ&õ*‰HÁ/•½%¡Fû÷ÇýGýíÙó9»5Ù4Ñ)© ½9éû2áûéFÃIÕå,ù'›©é÷4ƒI‰2ñ'Ç8ÝK‡Oá…$‰µý(‡Ù%¹Ñ*•“#…—ß ƒ‡“1#×?ÏÝ%×¥ ÷å+÷>ÿ/7³,Ó8§…0ëIÁ…HûŸIGáIÿ•Õ,¡2“.‡.×Ã*µN¡+«4ãA¯ƒ'ý!»K» ã…'å ï$»J›$ƒ¡—Jí.±G¥ +…?—<ÅKÝ×'9›2ÕáÉ*¥,MÏHÑ8µ ãûLÝI³/É<…C­¥ÃÏC?µ­'·Dí&—>ñ ó$Û…6ëG·H³“×N± ‹5ñ>ù Ã<ՍÕ?ÍAŸJã<÷ ç×Ý*ÛFå c½?ÇDÙC‘%÷OéGK™Håñ$û-å×÷¥£)©9¡·ÿ(‰©8ÓM£,‘0‰1©O¡=¡‘Û• + —O‘‘;.ùÿ#‡$ÑÁýÓ0ã1í§>ÙAÏ«Á ñ ³C1É õGó¥/³ûã Õ=Í%± +Ýõß" +íJÅ'÷7Ç>Í0.¯Å- Ñ¥ÿ<»!ŁE›4CÝ õ:ß3­5Ë;ý×Û1óÑ"Ëë± Ý1µù.“û‘ýó Õ­‰ +“1Ý5±WÇ5ñ)‹D ¥ƒ—Ñ5Á•¡;ƒ)ÿãÙ4½<™ Á‹ á ýó·­$¿› …-±#Û+Ýý#™‰D‹Ù6ÉC‹6•ãÉ'Í ç,™ƒ9ß÷ ¡K‘$ñH÷+Ãá#•ù"Ÿ&¡Ç…Mÿ©!ÃÕݝ$·:õ,Á£JóÇ.“=±7³¹ýý3÷éÍ“Çõ*É…Ù$ÿÅ á…=׉LÃ4ËDÅ£ ­·?Á×"ãÇ +Í$Û2ƒïAëµáGÏ™©Ñ+Ã?é ͝%­Á“ Ó5õLí6¿(í•A¿ -¹Nû7¯Õû(ó Ç¥8Ÿåå.ÇÉß +±?‡…™-‡!‰¯í +“/Ó»:ç@çש)ßéÿ™½*½õÉDçÿ½<‰*‹Í'½ ‘é‰ç£Hï&©!ýÓHÃïµñ9·6¹SÓ8ë6*£ ­Ý ¥á÷Å«9õë+é=Í ¯Û9åG•9á5D£&ã0û ¹ =‘:•ÿ&‹½FÛ«4é ó<ïE­ Ã$¿™/»“Fé á™&‹ +‡ —BǯJë£!‘>ù ßç…IŸÛé%A™ ű »#ßÃ)ï‘<éÍ,•C¿'ãç#ãÁ$ӏ×<Ó'¹Á¥ Û$Ç*½³,—Ã/Õ:ù#ßIµ7íí0ñÑ$¿ï»O)Ççéõ ¡å£ ×¹ñ»6Ï » +É#¥E™ù…7Õ«4Ïã>¡7Ë×#ßéO«ÑÉD¯5ï“>©»&ß6ß1/Ý,ñ*«;ç%‰'³CÅ›"¥‹1ËAï¥ … ¯Í?Ó,åã­+£ç$$ŸÉ¯E³9‡ Iÿ‰ÑI£(ýﱕHß@É™½›½3Åï7É¿.‡ëÍ)Ÿ$«µ)éñ3¯ û +á=6ñó"ß½Ù›‹½õ/Á·Ûá/™Í¹ ± ÿ'ùŸ¯Õ2¥'$ç+Uå*©5‹$ÍÝïÅãIï‰Ý/Ñëá0û£“• ѯÇ(ýï÷;á6› у…ñ'û4ý“‡û…;ë(¿—&Ë §Á «£ ¹1ûËË—õ4½ÅAïÁ<÷ÓŸÇ!÷?½ £:õï+‘Ïݽ/ûÃù +©*Å«!‹ ›;Ë:³N‹;ƒ<ûó7à ‰CÏ7±LÑ9ÇF³.ã5‡<ý )±Ù"ý6ÅË'Ñ­BåÑN-­7¥åß6ù$Á)×Ù"ßF¿“<¥H•&ë:Ù;‡!‡/Ÿ2Ñ•÷õ+ÁùŸ³ +8ã4Á¥¥ç!ÕÅ灹$ñ«¡1¡ —©-ýï4áB³õ ϳE‡ï<ù@Ý ¥Ù ñ­ í“ÛåD¯›±ƒ‡'™ ±:Ã…3ó©/鿃› ½9¯­<Åà ›ƒÍÇJÁÅ ‹é£½ çõù.§÷± ÑÉÉ í¯,§ +³>ß½Ë Ç#ÅÝ-…Õ­ ]A§ û÷"÷¿¹ñß7¡ŸÙO‰5Ã>«ÓÙÛG·(£5F÷N‡É™‹2ýEç.ÏMÿ3…™!Á7«õ +6Ã5ÑבB׃ ‰û#é.«—§É ŸŸ,Ù™E +Ï—4é™7ÁŸ5¿+¡ÛL¹ ‡Ïí·$áÓ2µAƒÓ-ë¯F(é¹#§"#Ï ¯ ã#Ïé?™2ã­¹§Lýݯ"!©:‹ ‡DŸ7û +Çù:¥ ¹ç—½£§O‘Pý Ç-Ë>ùÛ›/ßç#Í<Û·‰ó1ÕïÍ)×…Bm³!¡—K£=㠝ÕI‹ù*A%£áåý$1I)­§2ד;“$ÇAÛ,@Ÿ-Ÿ —(ËË ƒÃ;ý)¡ƒPƒ0»9‘#7ÍK½Oo—cŸË£Ã—CÛ­L«&ÍI‘=ÇçÁFí¡MÙE±1yÇ'ǧF¹é>õÿ³5¿Kɣ磹:áDñDÕ™8¡LÕ;é¯AÁ á"£@™ o‡%ý9¿"Á ËëDõHÝ«_·á!‹=Å:ÁEç7§ é1Õç å3÷ ‡AÃFÍLŸ"áNá‘IBåD·»LÙD³<‘õÛÿý?Ë •Pûƒ5ý‘8IÍ)Ç-¿7å)ý'¯C±9Õñ-ó1*•5÷&©%KÑ&»<ãï +ã6ÇËóM¹,ý½Jyñç)ã"©ÏÍ¡%½!Ç#“1µã wÇ‹ñK½+…:›±F—ß3—Ï Ÿ£DÅ%¯ÉOɉBߟ1Ÿá.ûB=•Óó/­-Á@· +ͳ¯‡ƒ•D›íÿÉ Õ%ãù›ƒß÷ã%Ù»‹¡Ç(·7é™à +ŸE“&á*­ù ‰.³»8™ û8÷8‰ù&Ç ¯ÿ:ÑÓA± ÙÉ ­ÇÑÍ0«-Ï(å­»2Ç“›1ë§&§Ý«"û%Ÿ(¯Û ã(ýÁãU Ç õ7Í›‹9¿õJ +ý ¯0ÝÕ ÝÉ¡ “2­ÿáß©!ƒ3«¹×)ƒ"…‡ ÓïDÇ6½• ³K×!ÅÛ™ …­3¹‡:‹>× +•*í1ù¹ ±&Ñ;‹Ñ!ƒ±ý‘ Ï;‹³.5‰×¹EÙ-ƒ½«8÷ï.ËÓ+“·'™×Å)Á(¯½ +•*ñ‰!͍×Û +“#Í5É/ó ýÑBà © ï?‡ëç(Åï £½ û ¿!™ÑßÁÉ·ÛשGŸ±ƒµ5ý +û ÝHó³ ¥+É,ÕmÉ¿) —=‹3‰N¯•*·3÷5±+½Å?ÁÏI¥õ ƒ›Ý'-‹Ç#Í.é@Ý ËÉ› û÷·*£á ™:kåÿ=É ï*™û6Ã$Í>+õD‡6Ëïçÿ8Ó>¹KŇ×$ó •J• å8…÷ …(³A¯:×KñFµ$Ÿ)ã/Ÿ ÿ Ë?¯)·«LŸ(ß<(ë9ýL ÿ»NÇ&ÁJ—MÓ÷“'•0ÿÝ7³û'“D­×K±…4¹!á +'± ± Å» ·õN¯£A‡ í#ÝãñÍ6ÍŸB£©Ç +©ÕM…Aï õ"ƒ§@õÁ‰#¥@³2‡4§ƒ&±Cq•Oéß ¡Í=½#?ë3ù;í™Õû1›á8»í;‹&É%·1÷1Û•ÛÙåû×½='«“û)¡•¹ïÏ<—,‘× å&µ Ù ·%§'× çŸ:¥ Å¿åïÛ‰ù“ ç1Ó#Á!Ï6­Á1탧ï<íóó9ïá+Û8ýѱ*Éá é5³ ·‡ßDZñÑ-çÁ Ù¹ƒ… »(í ³?ï#ÙÉÁ³•Ý=§$ƒ!É1õÝó“!û‹Á™*Ó§?Ó÷ÛN¯™… 땳0í Å ¿ÉŸ±÷6Ç÷%ã—ëO¿Óã ÷)óõ.í6ƒ#å%÷/»)©?¥å#㷝ÛEù¯¿ÑFÝ§Ó ç8ÛëŸ-“6‘£4å¡E­ÉHçå<«1ß“ ÅùFÃ@Õ-ï—Bã.Í ãÕEµ‡‡E5Å2‘3Ë.‰ «5ß=§NÍ2±JÃH§"É4×Å›J› ‘F¹4©ñý&Ýù ­/› )•ÁÓÕÏ“¥éû!íDáßíÕ‡Mó>¡9å6Ÿ—ïÕ5ù,ÇÓ¡"¹óý"ÕÑ•é,í½ ½LóË8­*½ùŸ¹ï » ›&áÇÅ2ûÿ2ÍG÷<Ááõ(Û0‘›Û&ëÇ¿õ!éû:£Óµ'…§§9¹Mç ×#ËÁ<§“±é +õAÑ ÿ7ý;¯¥3Åõ1oÓƒ1ÓLÑ©L¹LÍ ù"ÿ éD™.—6µ0×IÉÅFч3㠟C«*ñ«E£½ —"³§Õ?ÿNëƒ'¯‡)á…@­>¥C¿"ñƒ*¹ +ƒÑ!ë"— ±÷5¡  ©«.á»1‘¹Ÿõ&ûý»‡!»‘"ÿ¯›&ßÃ6Ƀ4½“8ÕÅÏ «Ãá8ƒï‰?“é*— +Ù)í}é'‰3ùç +µÙ&û‡G™'—-“ƒ%û&ÙË § ‡×ש Ï1áóÃÝû‰ ™;Ã0•§Aµ ß»«< +ó½D¥5û«ï™ ß µ Í!õ½ÿ)Ëõ ³ £±1Ñ%à §×Óû¿×“×….³«­#ç%ÁíÓJá'ïõ™E«-¥ÓóÉ%µá§£+©ƒýí½í9ß8ÉŸï«Å=û«±%ýù2Ï,Õ ý¹%ÁŸ=åL‘ +ù.ï2í*×íEÇEçµ%ù¡,õÃOé¥ …FÑ Ç:÷K‡#ŸPÃ,ñý%÷-Ãë7ß헁B×™Cñ Ñ±™«Á +™«&Ñ<ó#÷ן±/Ç +³»+ý‘‹'ß å4áõ3•7Ë7¥(‘•Ïç<£½4Å ƒ!Ã(ƒ ‹C½µ+›õù?“#·…4µ"ËE‡KåJõ“:ùNá)³Å +Ÿ!åß-Ù é ¿»ó—½0µ¯¿­;Ñ ÿ±$Ÿ*ƒ2íI‰¡÷á-I‡)Ÿé&Í@‰íëý Í¥<ÙÓ‘ ¹:ï9•ï%µ½;¯DÁõÕûÁµë0•ó*ß5± íNÝ:Ù½‡ ›Ó:Ëõµƒ³8û “%Ó±AÕ½Á + Éù™@÷Ç=ýó‹2Ë(µå¯ « +á5·… ¿:Ý· +õ(ÿ +§ +Ã=ßÿ¹)ßý»Á— ›Ëµ ½ +› “Û—+½(·¡Ñ6Ù Çó0à Ý2‡û³ û1¿0å ÿ »@× µ$µJ¯ß6•-£%¥•Mï£ß4›Û#¹•/õËù3ÝßÇ +Ï*§Ñ!ÿ)• §çó4¿ëÁ<‹ ½áLÓ¯.Ù›"©å-‘4ý1é +á=ƒÁ<ÿ%õ g§ ã…ÁBñÑ0Ï¿;§:ç³:ç)ÿŸ=…ƒ,¿#Ó‹Ë +Ï¥A‹© £>­Ï%·L‰Éë&±‹ å2á©$û+‰$ÿ¡JÑ?û;í/Ã6Á6£C­…,ë?{¯Ó#Ë •©Aç>¡¯6Ñ@3ó3û3íH‘L±F—P‰ÛßÅ)—: ƒƒ@ß*¯K‰#½>× ™Áû?û,Û;§å5›6Éó Û<Ã:˵ûÛÇ ý¯%E ‘-÷'¥NÓ1ݹõÁǃ÷!å­ ·ßEÓ õÅ-é9áÝ?ï +™Ÿ ³4…ë.‰÷ñ*óË)'¡.½Å=ÿ-ƒ“‰DÃ&ë“éAÇ=ÍŸ«'µËÁ,ñ9¡ +ÍÙï"í±é ­ +ïÕ<ë Ï@Ý ¡¥õå'µï=㏠ó4ëa§?Ïõ í±9Ó ç2ÉÝ õ ¡ƒ  ¡ß9Ù+Á‘!Áë>Óõ6ÙÃ8Å—>Ù*ï"+ɉ%Û!Ã!·ë +;ß:—"Á³ý »F·ƒá*×&é"ƒ(ë%± Í;ÃÃ-­5ëµ ¹Ï2£ ë/Í íñ­ý Á ûÅ ‡0¯ ù“Ó!—·Ó Ñ.› +ï6Ç«# ÿ»½Ù$Á—ý&IùáH­ ±³¥Ï ÅÁ©&Å£Ù'Å(㷁߉$¥£‰ñ1ß +Á3­ +Ï#ÝýÝI‰Í =³5ÝÕ5¡Ï'ã3Õ0ÿ§Ãë2Û™0ù6­©'ɽ5‰"Çÿ?•ËFů$ë õŸ ‘,Ñ “4ÓF‡"Kåó:ñCó—)ٝ ™§4½ãý 1Å Må/ÁmÛ)kÿÝÁƒùÕÓÁ8•Lû.ýK‘2ë2í íÍ*õ!¯/û·¹‹·•*«ýï+‰!›8¯ç=ŏ áÃ6íF£×GÓ3H‰“G­• ‰OñLŸ%Ýë%ŸA«Ná +©‰;Ç Ÿ½6“M•±>­:Ñ ùá« —@í½ƒ,ñ©,ã!ùJ•Ë%­ ÝÉ9áÓ!»Í.ÕƒçÑ"µ…<«×ù—‘‰¹(Ï +‰ûC"å«·J›É0Å6?ƒ ï¹) +‹ïÙõ?§P¹‹ +û·M—9Ñó¥2©“ +¯(ù «™)é<õ +»Ë0Õ+™DßÙ¡%¯ ±Eé•7Ÿ Û“)ÍÃ+¿ÏÃ=» “C·«µÙÁ'£H‹,Ë!… û*­§/‰Ù/,ù›%F­Å#³9Ïáé㍗5Ñ:÷E™-ËC…J¹B³Õ í9¹J­ ¹«.¡ ­/ñAù &£ »:Ë3‡,çG¹ —?ËI'«B …5ë1‹<ÃA³&±‡9·JÁ+É#¥ë=©#ßç$ã6·åýƒ,Á!‰+Á4¥Û@Ù!› +ᓹ;Ë)»9ÿOµLƒ×Hé7û —F·+ý0Cß;‘A£#¡©M +ÑK‹:Ë×<ƒFñ&¯7¿-¯Më QÛMãé$óG)‘‰-¥"Ë0“ß4Á÷ ™Ÿ“H«A½‡¿ÝCÉýN«>˱á ý/Ý;¹íA‰0Ù3á2•,÷$é ÙI¡É$ó-Ù£7¡#óKƒý=û0åIû8Á%ãHŸOÃ3É!ýAƒNÑ¯™@¡BÅ1÷ +…Á=Å9¹ëHý—õIÇåÛ í5Í/§1•$×5ã-å:ËN&©2½« ÝN— £ ×7Ó«IÙï-á•»M•#»CßßM¡Ë5ëÏ8Û(‰õ‹8Ý8ýÿF•F‹Eµ9à +<ç£K?ÕGY¿‘/±Ÿ<“»“£FÁ5…2‰&óCÇ7é×F—³=Û?¡‰ã³‘•óŸ6•¹CÑÁNñïFÕ1£O=“"ý-‘"ý­0µ,™ ûA•Eë«ï&¯ ñ—™G©Ýå¹Cu‡ Ë>ÓŸÁ»$ݍ-— +§—I¡¿ÏN§IÑ0ùéÙ×J‡=»Ñ=á&$ñ×#¡ +Ç;™ +7£2·“<¹ +÷.«å7Ï4¹'÷;÷ƒJã,‹PßB«í£ É=­!£$5¡(Ñ/˝;0å +›*×>ï(çDÏBÃÕ!ë…革§BKßOµû"£L¿A­G‡ù%£G‘ë ¡:“9Ë‹H¥‹$ã2Õ5á áûK‹"ÿ"‰ É;×*ßÛ"ù(ï'§0åÑý@©½=»á6«C·"Ñ ©>ë ã »1­3ç*—/é'Ç¥3‡7 ㍻‘³*Mó%… û=çF•ãÓ(ÍN…8Íï:©CùK‹/¯(ŸõEÓ&õ*‰HÁ/•½%¡Fû÷ÇýGýíÙó9»5Ù4Ñ)© ½9éû2áûéFÃIÕå,ù'›©é÷4ƒI‰2ñ'Ç8ÝK‡Oá…$‰µý(‡Ù%¹Ñ*•“#…—ß ƒ‡“1#×?ÏÝ%×¥ ÷å+÷>ÿ/7³,Ó8§…0ëIÁ…HûŸIGáIÿ•Õ,¡2“.‡.×Ã*µN¡+«4ãA¯ƒ'ý!»K» ã…'å ï$»J›$ƒ¡—Jí.±G¥ +…?—<ÅKÝ×'9›2ÕáÉ*¥,MÏHÑ8µ ãûLÝI³/É<…C­¥ÃÏC?µ­'·Dí&—>ñ ó$Û…6ëG·H³“×N± ‹5ñ>ù Ã<ՍÕ?ÍAŸJã<÷ ç×Ý*ÛFå c½?ÇDÙC‘%÷OéGK™Håñ$û-å×÷¥£)©9¡·ÿ(‰©8ÓM£,‘0‰1©O¡=¡‘Û• + —O‘‘;.ùÿ#‡$ÑÁýÓ0ã1í§>ÙAÏ«Á ñ ³C1É õGó¥/³ûã Õ=Í%± +Ýõß" +íJÅ'÷7Ç>Í0.¯Å- Ñ¥ÿ<»!ŁE›4CÝ õ:ß3­5Ë;ý×Û1óÑ"Ëë± Ý1µù.“û‘ýó Õ­‰ +“1Ý5±WÇ5ñ)‹D ¥ƒ—Ñ5Á•¡;ƒ)ÿãÙ4½<™ Á‹ á ýó·­$¿› …-±#Û+Ýý#™‰D‹Ù6ÉC‹6•ãÉ'Í ç,™ƒ9ß÷ ¡K‘$ñH÷+Ãá#•ù"Ÿ&¡Ç…Mÿ©!ÃÕݝ$·:õ,Á£JóÇ.“=±7³¹ýý3÷éÍ“Çõ*É…Ù$ÿÅ á…=׉LÃ4ËDÅ£ ­·?Á×"ãÇ +Í$Û2ƒïAëµáGÏ™©Ñ+Ã?é ͝%­Á“ Ó5õLí6¿(í•A¿ -¹Nû7¯Õû(ó Ç¥8Ÿåå.ÇÉß +±?‡…™-‡!‰¯í +“/Ó»:ç@çש)ßéÿ™½*½õÉDçÿ½<‰*‹Í'½ ‘é‰ç£Hï&©!ýÓHÃïµñ9·6¹SÓ8ë6*£ ­Ý ¥á÷Å«9õë+é=Í ¯Û9åG•9á5D£&ã0û ¹ =‘:•ÿ&‹½FÛ«4é ó<ïE­ Ã$¿™/»“Fé á™&‹ +‡ —BǯJë£!‘>ù ßç…IŸÛé%A™ ű »#ßÃ)ï‘<éÍ,•C¿'ãç#ãÁ$ӏ×<Ó'¹Á¥ Û$Ç*½³,—Ã/Õ:ù#ßIµ7íí0ñÑ$¿ï»O)Ççéõ ¡å£ ×¹ñ»6Ï » +É#¥E™ù…7Õ«4Ïã>¡7Ë×#ßéO«ÑÉD¯5ï“>©»&ß6ß1/Ý,ñ*«;ç%‰'³CÅ›"¥‹1ËAï¥ … ¯Í?Ó,åã­+£ç$$ŸÉ¯E³9‡ Iÿ‰ÑI£(ýﱕHß@É™½›½3Åï7É¿.‡ëÍ)Ÿ$«µ)éñ3¯ û +á=6ñó"ß½Ù›‹½õ/Á·Ûá/™Í¹ ± ÿ'ùŸ¯Õ2¥'$ç+Uå*©5‹$ÍÝïÅãIï‰Ý/Ñëá0û£“• ѯÇ(ýï÷;á6› у…ñ'û4ý“‡û…;ë(¿—&Ë §Á «£ ¹1ûËË—õ4½ÅAïÁ<÷ÓŸÇ!÷?½ £:õï+‘Ïݽ/ûÃù +©*Å«!‹ ›;Ë:³N‹;ƒ<ûó7à ‰CÏ7±LÑ9ÇF³.ã5‡<ý )±Ù"ý6ÅË'Ñ­BåÑN-­7¥åß6ù$Á)×Ù"ßF¿“<¥H•&ë:Ù;‡!‡/Ÿ2Ñ•÷õ+ÁùŸ³ +8ã4Á¥¥ç!ÕÅ灹$ñ«¡1¡ —©-ýï4áB³õ ϳE‡ï<ù@Ý ¥Ù ñ­ í“ÛåD¯›±ƒ‡'™ ±:Ã…3ó©/鿃› ½9¯­<Åà ›ƒÍÇJÁÅ ‹é£½ çõù.§÷± ÑÉÉ í¯,§ +³>ß½Ë Ç#ÅÝ-…Õ­ ]A§ û÷"÷¿¹ñß7¡ŸÙO‰5Ã>«ÓÙÛG·(£5F÷N‡É™‹2ýEç.ÏMÿ3…™!Á7«õ +6Ã5ÑבB׃ ‰û#é.«—§É ŸŸ,Ù™E +Ï—4é™7ÁŸ5¿+¡ÛL¹ ‡Ïí·$áÓ2µAƒÓ-ë¯F(é¹#§"#Ï ¯ ã#Ïé?™2ã­¹§Lýݯ"!©:‹ ‡DŸ7û +Çù:¥ ¹ç—½£§O‘Pý Ç-Ë>ùÛ›/ßç#Í<Û·‰ó1ÕïÍ)×…Bm³!¡—K£=㠝ÕI‹ù*A%£áåý$1I)­§2ד;“$ÇAÛ,@Ÿ-Ÿ —(ËË ƒÃ;ý)¡ƒPƒ0»9‘#7ÍK½Oo—cŸË£Ã—CÛ­L«&ÍI‘=ÇçÁFí¡MÙE±1yÇ'ǧF¹é>õÿ³5¿Kɣ磹:áDñDÕ™8¡LÕ;é¯AÁ á"£@™ o‡%ý9¿"Á ËëDõHÝ«_·á!‹=Å:ÁEç7§ é1Õç å3÷ ‡AÃFÍLŸ"áNá‘IBåD·»LÙD³<‘õÛÿý?Ë •Pûƒ5ý‘8IÍ)Ç-¿7å)ý'¯C±9Õñ-ó1*•5÷&©%KÑ&»<ãï +ã6ÇËóM¹,ý½Jyñç)ã"©ÏÍ¡%½!Ç#“1µã wÇ‹ñK½+…:›±F—ß3—Ï Ÿ£DÅ%¯ÉOɉBߟ1Ÿá.ûB=•Óó/­-Á@· +ͳ¯‡ƒ•D›íÿÉ Õ%ãù›ƒß÷ã%Ù»‹¡Ç(·7é™à +ŸE“&á*­ù ‰.³»8™ û8÷8‰ù&Ç ¯ÿ:ÑÓA± ÙÉ ­ÇÑÍ0«-Ï(å­»2Ç“›1ë§&§Ý«"û%Ÿ(¯Û ã(ýÁãU Ç õ7Í›‹9¿õJ +ý ¯0ÝÕ ÝÉ¡ “2­ÿáß©!ƒ3«¹×)ƒ"…‡ ÓïDÇ6½• ³K×!ÅÛ™ …­3¹‡:‹>× +•*í1ù¹ ±&Ñ;‹Ñ!ƒ±ý‘ Ï;‹³.5‰×¹EÙ-ƒ½«8÷ï.ËÓ+“·'™×Å)Á(¯½ +•*ñ‰!͍×Û +“#Í5É/ó ýÑBà © ï?‡ëç(Åï £½ û ¿!™ÑßÁÉ·ÛשGŸ±ƒµ5ý +û ÝHó³ ¥+É,ÕmÉ¿) —=‹3‰N¯•*·3÷5±+½Å?ÁÏI¥õ ƒ›Ý'-‹Ç#Í.é@Ý ËÉ› û÷·*£á ™:kåÿ=É ï*™û6Ã$Í>+õD‡6Ëïçÿ8Ó>¹KŇ×$ó •J• å8…÷ …(³A¯:×KñFµ$Ÿ)ã/Ÿ ÿ Ë?¯)·«LŸ(ß<(ë9ýL ÿ»NÇ&ÁJ—MÓ÷“'•0ÿÝ7³û'“D­×K±…4¹!á +'± ± Å» ·õN¯£A‡ í#ÝãñÍ6ÍŸB£©Ç +©ÕM…Aï õ"ƒ§@õÁ‰#¥@³2‡4§ƒ&±Cq•Oéß ¡Í=½#?ë3ù;í™Õû1›á8»í;‹&É%·1÷1Û•ÛÙåû×½='«“û)¡•¹ïÏ<—,‘× å&µ Ù ·%§'× çŸ:¥ Å¿åïÛ‰ù“ ç1Ó#Á!Ï6­Á1탧ï<íóó9ïá+Û8ýѱ*Éá é5³ ·‡ßDZñÑ-çÁ Ù¹ƒ… »(í ³?ï#ÙÉÁ³•Ý=§$ƒ!É1õÝó“!û‹Á™*Ó§?Ó÷ÛN¯™… 땳0í Å ¿ÉŸ±÷6Ç÷%ã—ëO¿Óã ÷)óõ.í6ƒ#å%÷/»)©?¥å#㷝ÛEù¯¿ÑFÝ§Ó ç8ÛëŸ-“6‘£4å¡E­ÉHçå<«1ß“ ÅùFÃ@Õ-ï—Bã.Í ãÕEµ‡‡E5Å2‘3Ë.‰ «5ß=§NÍ2±JÃH§"É4×Å›J› ‘F¹4©ñý&Ýù ­/› )•ÁÓÕÏ“¥éû!íDáßíÕ‡Mó>¡9å6Ÿ—ïÕ5ù,ÇÓ¡"¹óý"ÕÑ•é,í½ ½LóË8­*½ùŸ¹ï » ›&áÇÅ2ûÿ2ÍG÷<Ááõ(Û0‘›Û&ëÇ¿õ!éû:£Óµ'…§§9¹Mç ×#ËÁ<§“±é +õAÑ ÿ7ý;¯¥3Åõ1oÓƒ1ÓLÑ©L¹LÍ ù"ÿ éD™.—6µ0×IÉÅFч3㠟C«*ñ«E£½ —"³§Õ?ÿNëƒ'¯‡)á…@­>¥C¿"ñƒ*¹ +ƒÑ!ë"— ±÷5¡  ©«.á»1‘¹Ÿõ&ûý»‡!»‘"ÿ¯›&ßÃ6Ƀ4½“8ÕÅÏ «Ãá8ƒï‰?“é*— +Ù)í}é'‰3ùç +µÙ&û‡G™'—-“ƒ%û&ÙË § ‡×ש Ï1áóÃÝû‰ ™;Ã0•§Aµ ß»«< +ó½D¥5û«ï™ ß µ Í!õ½ÿ)Ëõ ³ £±1Ñ%à §×Óû¿×“×….³«­#ç%ÁíÓJá'ïõ™E«-¥ÓóÉ%µá§£+©ƒýí½í9ß8ÉŸï«Å=û«±%ýù2Ï,Õ ý¹%ÁŸ=åL‘ +ù.ï2í*×íEÇEçµ%ù¡,õÃOé¥ …FÑ Ç:÷K‡#ŸPÃ,ñý%÷-Ãë7ß헁B×™Cñ Ñ±™«Á +™«&Ñ<ó#÷ן±/Ç +³»+ý‘‹'ß å4áõ3•7Ë7¥(‘•Ïç<£½4Å ƒ!Ã(ƒ ‹C½µ+›õù?“#·…4µ"ËE‡KåJõ“:ùNá)³Å +Ÿ!åß-Ù é ¿»ó—½0µ¯¿­;Ñ ÿ±$Ÿ*ƒ2íI‰¡÷á-I‡)Ÿé&Í@‰íëý Í¥<ÙÓ‘ ¹:ï9•ï%µ½;¯DÁõÕûÁµë0•ó*ß5± íNÝ:Ù½‡ ›Ó:Ëõµƒ³8û “%Ó±AÕ½Á + Éù™@÷Ç=ýó‹2Ë(µå¯ « +á5·… ¿:Ý· +õ(ÿ +§ +Ã=ßÿ¹)ßý»Á— ›Ëµ ½ +› “Û—+½(·¡Ñ6Ù Çó0à Ý2‡û³ û1¿0å ÿ »@× µ$µJ¯ß6•-£%¥•Mï£ß4›Û#¹•/õËù3ÝßÇ +Ï*§Ñ!ÿ)• §çó4¿ëÁ<‹ ½áLÓ¯.Ù›"©å-‘4ý1é +á=ƒÁ<ÿ%õ g§ ã…ÁBñÑ0Ï¿;§:ç³:ç)ÿŸ=…ƒ,¿#Ó‹Ë +Ï¥A‹© £>­Ï%·L‰Éë&±‹ å2á©$û+‰$ÿ¡JÑ?û;í/Ã6Á6£C­…,ë?{¯Ó#Ë •©Aç>¡¯6Ñ@3ó3û3íH‘L±F—P‰ÛßÅ)—: ƒƒ@ß*¯K‰#½>× ™Áû?û,Û;§å5›6Éó Û<Ã:˵ûÛÇ ý¯%E ‘-÷'¥NÓ1ݹõÁǃ÷!å­ ·ßEÓ õÅ-é9áÝ?ï +™Ÿ ³4…ë.‰÷ñ*óË)'¡.½Å=ÿ-ƒ“‰DÃ&ë“éAÇ=ÍŸ«'µËÁ,ñ9¡ +ÍÙï"í±é ­ +ïÕ<ë Ï@Ý ¡¥õå'µï=㏠ó4ëa§?Ïõ í±9Ó ç2ÉÝ õ ¡ƒ  ¡ß9Ù+Á‘!Áë>Óõ6ÙÃ8Å—>Ù*ï"+ɉ%Û!Ã!·ë +;ß:—"Á³ý »F·ƒá*×&é"ƒ(ë%± Í;ÃÃ-­5ëµ ¹Ï2£ ë/Í íñ­ý Á ûÅ ‡0¯ ù“Ó!—·Ó Ñ.› +ï6Ç«# ÿ»½Ù$Á—ý&IùáH­ ±³¥Ï ÅÁ©&Å£Ù'Å(㷁߉$¥£‰ñ1ß +Á3­ +Ï#ÝýÝI‰Í =³5ÝÕ5¡Ï'ã3Õ0ÿ§Ãë2Û™0ù6­©'ɽ5‰"Çÿ?•ËFů$ë õŸ ‘,Ñ “4ÓF‡"Kåó:ñCó—)ٝ ™§4½ãý 1Å Må/ÁmÛ)kÿÝÁƒùÕÓÁ8•Lû.ýK‘2ë2í íÍ*õ!¯/û·¹‹·•*«ýï+‰!›8¯ç=ŏ áÃ6íF£×GÓ3H‰“G­• ‰OñLŸ%Ýë%ŸA«Ná +©‰;Ç Ÿ½6“M•±>­:Ñ ùá« —@í½ƒ,ñ©,ã!ùJ•Ë%­ ÝÉ9áÓ!»Í.ÕƒçÑ"µ…<«×ù—‘‰¹(Ï +‰ûC"å«·J›É0Å6?ƒ ï¹) +‹ïÙõ?§P¹‹ +û·M—9Ñó¥2©“ +¯(ù «™)é<õ +»Ë0Õ+™DßÙ¡%¯ ±Eé•7Ÿ Û“)ÍÃ+¿ÏÃ=» “C·«µÙÁ'£H‹,Ë!… û*­§/‰Ù/,ù›%F­Å#³9Ïáé㍗5Ñ:÷E™-ËC…J¹B³Õ í9¹J­ ¹«.¡ ­/ñAù &£ »:Ë3‡,çG¹ —?ËI'«B …5ë1‹<ÃA³&±‡9·JÁ+É#¥ë=©#ßç$ã6·åýƒ,Á!‰+Á4¥Û@Ù!› +ᓹ;Ë)»9ÿOµLƒ×Hé7û —F·+ý0Cß;‘A£#¡©M +ÑK‹:Ë×<ƒFñ&¯7¿-¯Më QÛMãé$óG)‘‰-¥"Ë0“ß4Á÷ ™Ÿ“H«A½‡¿ÝCÉýN«>˱á ý/Ý;¹íA‰0Ù3á2•,÷$é ÙI¡É$ó-Ù£7¡#óKƒý=û0åIû8Á%ãHŸOÃ3É!ýAƒNÑ¯™@¡BÅ1÷ +…Á=Å9¹ëHý—õIÇåÛ í5Í/§1•$×5ã-å:ËN&©2½« ÝN— £ ×7Ó«IÙï-á•»M•#»CßßM¡Ë5ëÏ8Û(‰õ‹8Ý8ýÿF•F‹Eµ9à +<ç£K?ÕGY¿‘/±Ÿ<“»“£FÁ5…2‰&óCÇ7é×F—³=Û?¡‰ã³‘•óŸ6•¹CÑÁNñïFÕ1£O=“"ý-‘"ý­0µ,™ ûA•Eë«ï&¯ ñ—™G©Ýå¹Cu‡ Ë>ÓŸÁ»$ݍ-— +§—I¡¿ÏN§IÑ0ùéÙ×J‡=»Ñ=á&$ñ×#¡ +Ç;™ +7£2·“<¹ +÷.«å7Ï4¹'÷;÷ƒJã,‹PßB«í£ É=­!£$5¡(Ñ/˝;0å +›*×>ï(çDÏBÃÕ!ë…革§BKßOµû"£L¿A­G‡ù%£G‘ë ¡:“9Ë‹H¥‹$ã2Õ5á áûK‹"ÿ"‰ É;×*ßÛ"ù(ï'§0åÑý@©½=»á6«C·"Ñ ©>ë ã »1­3ç*—/é'Ç¥3‡7 ㍻‘³*Mó%… û=çF•ãÓ(ÍN…8Íï:©CùK‹/¯(ŸõEÓ&õ*‰HÁ/•½%¡Fû÷ÇýGýíÙó9»5Ù4Ñ)© ½9éû2áûéFÃIÕå,ù'›©é÷4ƒI‰2ñ'Ç8ÝK‡Oá…$‰µý(‡Ù%¹Ñ*•“#…—ß ƒ‡“1#×?ÏÝ%×¥ ÷å+÷>ÿ/7³,Ó8§…0ëIÁ…HûŸIGáIÿ•Õ,¡2“.‡.×Ã*µN¡+«4ãA¯ƒ'ý!»K» ã…'å ï$»J›$ƒ¡—Jí.±G¥ +…?—<ÅKÝ×'9›2ÕáÉ*¥,MÏHÑ8µ ãûLÝI³/É<…C­¥ÃÏC?µ­'·Dí&—>ñ ó$Û…6ëG·H³“×N± ‹5ñ>ù Ã<ՍÕ?ÍAŸJã<÷ ç×Ý*ÛFå c½?ÇDÙC‘%÷OéGK™Håñ$û-å×÷¥£)©9¡·ÿ(‰©8ÓM£,‘0‰1©O¡=¡‘Û• + —O‘‘;.ùÿ#‡$ÑÁýÓ0ã1í§>ÙAÏ«Á ñ ³C1É õGó¥/³ûã Õ=Í%± +Ýõß" +íJÅ'÷7Ç>Í0.¯Å- Ñ¥ÿ<»!ŁE›4CÝ õ:ß3­5Ë;ý×Û1óÑ"Ëë± Ý1µù.“û‘ýó Õ­‰ +“1Ý5±WÇ5ñ)‹D ¥ƒ—Ñ5Á•¡;ƒ)ÿãÙ4½<™ Á‹ á ýó·­$¿› …-±#Û+Ýý#™‰D‹Ù6ÉC‹6•ãÉ'Í ç,™ƒ9ß÷ ¡K‘$ñH÷+Ãá#•ù"Ÿ&¡Ç…Mÿ©!ÃÕݝ$·:õ,Á£JóÇ.“=±7³¹ýý3÷éÍ“Çõ*É…Ù$ÿÅ á…=׉LÃ4ËDÅ£ ­·?Á×"ãÇ +Í$Û2ƒïAëµáGÏ™©Ñ+Ã?é ͝%­Á“ Ó5õLí6¿(í•A¿ -¹Nû7¯Õû(ó Ç¥8Ÿåå.ÇÉß +±?‡…™-‡!‰¯í +“/Ó»:ç@çש)ßéÿ™½*½õÉDçÿ½<‰*‹Í'½ ‘é‰ç£Hï&©!ýÓHÃïµñ9·6¹SÓ8ë6*£ ­Ý ¥á÷Å«9õë+é=Í ¯Û9åG•9á5D£&ã0û ¹ =‘:•ÿ&‹½FÛ«4é ó<ïE­ Ã$¿™/»“Fé á™&‹ +‡ —BǯJë£!‘>ù ßç…IŸÛé%A™ ű »#ßÃ)ï‘<éÍ,•C¿'ãç#ãÁ$ӏ×<Ó'¹Á¥ Û$Ç*½³,—Ã/Õ:ù#ßIµ7íí0ñÑ$¿ï»O)Ççéõ ¡å£ ×¹ñ»6Ï » +É#¥E™ù…7Õ«4Ïã>¡7Ë×#ßéO«ÑÉD¯5ï“>©»&ß6ß1/Ý,ñ*«;ç%‰'³CÅ›"¥‹1ËAï¥ … ¯Í?Ó,åã­+£ç$$ŸÉ¯E³9‡ Iÿ‰ÑI£(ýﱕHß@É™½›½3Åï7É¿.‡ëÍ)Ÿ$«µ)éñ3¯ û +á=6ñó"ß½Ù›‹½õ/Á·Ûá/™Í¹ ± ÿ'ùŸ¯Õ2¥'$ç+Uå*©5‹$ÍÝïÅãIï‰Ý/Ñëá0û£“• ѯÇ(ýï÷;á6› у…ñ'û4ý“‡û…;ë(¿—&Ë §Á «£ ¹1ûËË—õ4½ÅAïÁ<÷ÓŸÇ!÷?½ £:õï+‘Ïݽ/ûÃù +©*Å«!‹ ›;Ë:³N‹;ƒ<ûó7à ‰CÏ7±LÑ9ÇF³.ã5‡<ý )±Ù"ý6ÅË'Ñ­BåÑN-­7¥åß6ù$Á)×Ù"ßF¿“<¥H•&ë:Ù;‡!‡/Ÿ2Ñ•÷õ+ÁùŸ³ +8ã4Á¥¥ç!ÕÅ灹$ñ«¡1¡ —©-ýï4áB³õ ϳE‡ï<ù@Ý ¥Ù ñ­ í“ÛåD¯›±ƒ‡'™ ±:Ã…3ó©/鿃› ½9¯­<Åà ›ƒÍÇJÁÅ ‹é£½ çõù.§÷± ÑÉÉ í¯,§ +³>ß½Ë Ç#ÅÝ-…Õ­ ]A§ û÷"÷¿¹ñß7¡ŸÙO‰5Ã>«ÓÙÛG·(£5F÷N‡É™‹2ýEç.ÏMÿ3…™!Á7«õ +6Ã5ÑבB׃ ‰û#é.«—§É ŸŸ,Ù™E +Ï—4é™7ÁŸ5¿+¡ÛL¹ ‡Ïí·$áÓ2µAƒÓ-ë¯F(é¹#§"#Ï ¯ ã#Ïé?™2ã­¹§Lýݯ"!©:‹ ‡DŸ7û +Çù:¥ ¹ç—½£§O‘Pý Ç-Ë>ùÛ›/ßç#Í<Û·‰ó1ÕïÍ)×…Bm³!¡—K£=㠝ÕI‹ù*A%£áåý$1I)­§2ד;“$ÇAÛ,@Ÿ-Ÿ —(ËË ƒÃ;ý)¡ƒPƒ0»9‘#7ÍK½Oo—cŸË£Ã—CÛ­L«&ÍI‘=ÇçÁFí¡MÙE±1yÇ'ǧF¹é>õÿ³5¿Kɣ磹:áDñDÕ™8¡LÕ;é¯AÁ á"£@™ o‡%ý9¿"Á ËëDõHÝ«_·á!‹=Å:ÁEç7§ é1Õç å3÷ ‡AÃFÍLŸ"áNá‘IBåD·»LÙD³<‘õÛÿý?Ë •Pûƒ5ý‘8IÍ)Ç-¿7å)ý'¯C±9Õñ-ó1*•5÷&©%KÑ&»<ãï +ã6ÇËóM¹,ý½Jyñç)ã"©ÏÍ¡%½!Ç#“1µã wÇ‹ñK½+…:›±F—ß3—Ï Ÿ£DÅ%¯ÉOɉBߟ1Ÿá.ûB=•Óó/­-Á@· +ͳ¯‡ƒ•D›íÿÉ Õ%ãù›ƒß÷ã%Ù»‹¡Ç(·7é™à +ŸE“&á*­ù ‰.³»8™ û8÷8‰ù&Ç ¯ÿ:ÑÓA± ÙÉ ­ÇÑÍ0«-Ï(å­»2Ç“›1ë§&§Ý«"û%Ÿ(¯Û ã(ýÁãU Ç õ7Í›‹9¿õJ +ý ¯0ÝÕ ÝÉ¡ “2­ÿáß©!ƒ3«¹×)ƒ"…‡ ÓïDÇ6½• ³K×!ÅÛ™ …­3¹‡:‹>× +•*í1ù¹ ±&Ñ;‹Ñ!ƒ±ý‘ Ï;‹³.5‰×¹EÙ-ƒ½«8÷ï.ËÓ+“·'™×Å)Á(¯½ +•*ñ‰!͍×Û +“#Í5É/ó ýÑBà © ï?‡ëç(Åï £½ û ¿!™ÑßÁÉ·ÛשGŸ±ƒµ5ý +û ÝHó³ ¥+É,ÕmÉ¿) —=‹3‰N¯•*·3÷5±+½Å?ÁÏI¥õ ƒ›Ý'-‹Ç#Í.é@Ý ËÉ› û÷·*£á ™:kåÿ=É ï*™û6Ã$Í>+õD‡6Ëïçÿ8Ó>¹KŇ×$ó •J• å8…÷ …(³A¯:×KñFµ$Ÿ)ã/Ÿ ÿ Ë?¯)·«LŸ(ß<(ë9ýL ÿ»NÇ&ÁJ—MÓ÷“'•0ÿÝ7³û'“D­×K±…4¹!á +'± ± Å» ·õN¯£A‡ í#ÝãñÍ6ÍŸB£©Ç +©ÕM…Aï õ"ƒ§@õÁ‰#¥@³2‡4§ƒ&±Cq•Oéß ¡Í=½#?ë3ù;í™Õû1›á8»í;‹&É%·1÷1Û•ÛÙåû×½='«“û)¡•¹ïÏ<—,‘× å&µ Ù ·%§'× çŸ:¥ Å¿åïÛ‰ù“ ç1Ó#Á!Ï6­Á1탧ï<íóó9ïá+Û8ýѱ*Éá é5³ ·‡ßDZñÑ-çÁ Ù¹ƒ… »(í ³?ï#ÙÉÁ³•Ý=§$ƒ!É1õÝó“!û™*Ó§?Ó÷ÛN¯™… 땳0í Å ¿ÉŸ±÷6Ç÷%ã—ëO¿Óã ÷)óõ.í6ƒ#å%÷/»)©?¥å#㷝ÛEù¯¿ÑFÝ§Ó ç8ÛëŸ-“6‘£4å¡E­ÉHçå<«1ß“ ÅùFÃ@Õ-ï—Bã.Í ãÕEµ‡‡E5Å2‘3Ë.‰ «5ß=§NÍ2±JÃH§"É4×Å›J› ‘F¹4©ñý&Ýù ­/› )•ÁÓÕÏ“¥éû!íDáßíÕ‡Mó>¡9å6Ÿ—ïÕ5ù,ÇÓ¡"¹óý"ÕÑ•é,í½ ½LóË8­*½ùŸ¹ï » ›&áÇÅ2ûÿ2ÍG÷<Ááõ(Û0‘›Û&ëÇ¿õ!éû:£Óµ'…§§9¹Mç ×#ËÁ<§“±é +õAÑ ÿ7ý;¯¥3Åõ1oÓƒ1ÓLÑ©L¹LÍ ù"ÿ éD™.—6µ0×IÉÅFч3㠟C«*ñ«E£½ —"³§Õ?ÿNëƒ'¯‡)á…@­>¥C¿"ñƒ*¹ +ƒÑ!ë"— ±÷5¡  ©«.á»1‘¹Ÿõ&ûý»‡!»‘"ÿ¯›&ßÃ6Ƀ4½“8ÕÅÏ «Ãá8ƒï‰?“é*— +Ù)í}é'‰3ùç +µÙ&û‡G™'—-“ƒ%û&ÙË § ‡×ש Ï1áóÃÝû‰ ™;Ã0•§Aµ ß»«< +ó½D¥5û«ï™ ß µ Í!õ½ÿ)Ëõ ³ £±1Ñ%à §×Óû¿×“×….³«­#ç%ÁíÓJá'ïõ™E«-¥ÓóÉ%µá§£+©ƒýí½í9ß8ÉŸï«Å=û«±%ýù2Ï,Õ ý¹%ÁŸ=åL‘ +ù.ï2í*×íEÇEçµ%ù¡,õÃOé¥ …FÑ Ç:÷K‡#ŸPÃ,ñý%÷-Ãë7ß헁B×™Cñ Ñ±™«Á +™«&Ñ<ó#÷ן±/Ç +³»+ý‘‹'ß å4áõ3•7Ë7¥(‘•Ïç<£½4Å ƒ!Ã(ƒ ‹C½µ+›õù?“#·…4µ"ËE‡KåJõ“:ùNá)³Å +Ÿ!åß-Ù é ¿»ó—½0µ¯¿­;Ñ ÿ±$Ÿ*ƒ2íI‰¡÷á-I‡)Ÿé&Í@‰íëý Í¥<ÙÓ‘ ¹:ï9•ï%µ½;¯DÁõÕûÁµë0•ó*ß5± íNÝ:Ù½‡ ›Ó:Ëõµƒ³8û “%Ó±AÕ½Á + Éù™@÷Ç=ýó‹2Ë(µå¯ « +á5·… ¿:Ý· +õ(ÿ +§ +Ã=ßÿ¹)ßý»Á— ›Ëµ ½ +› “Û—+½(·¡Ñ6Ù Çó0à Ý2‡û³ û1¿0å ÿ »@× µ$µJ¯ß6•-£%¥•Mï£ß4›Û#¹•/õËù3ÝßÇ +Ï*§Ñ!ÿ)• §çó4¿ëÁ<‹ ½áLÓ¯.Ù›"©å-‘4ý1é +á=ƒÁ<ÿ%õ g§ ã…ÁBñÑ0Ï¿;§:ç³:ç)ÿŸ=…ƒ,¿#Ó‹Ë +Ï¥A‹© £>­Ï%·L‰Éë&±‹ å2á©$û+‰$ÿ¡JÑ?û;í/Ã6Á6£C­…,ë?{¯Ó#Ë •©Aç>¡¯6Ñ@3ó3û3íH‘L±F—P‰ÛßÅ)—: ƒƒ@ß*¯K‰#½>× ™Áû?û,Û;§å5›6Éó Û<Ã:˵ûÛÇ ý¯%E ‘-÷'¥NÓ1ݹõÁǃ÷!å­ ·ßEÓ õÅ-é9áÝ?ï +™Ÿ ³4…ë.‰÷ñ*óË)'¡.½ÿ-ƒ“‰DÃ&ë“éAÇ=ÍŸ«'µËÁ,ñ9¡ +ÍÙï"í±é ­ +ïÕ<ë Ï@Ý ¡¥õå'µï=㏠ó4ëa§?Ïõ í±9Ó ç2ÉÝ õ ¡ƒ  ¡ß9Ù+Á‘!Áë>Óõ6ÙÃ8Å—>Ù*ï"+ɉ%Û!Ã!·ë +;ß:—"Á³ý »F·ƒá*×&é"ƒ(ë%± Í;ÃÃ-­5ëµ ¹Ï2£ ë/Í íñ­ý Á ûÅ ‡0¯ ù“Ó!—·Ó Ñ.› +ï6Ç«# ÿ»½Ù$Á—ý&IùáH­ ±³¥Ï ÅÁ©&Å£Ù'Å(㷁߉$¥£‰ñ1ß +Á3­ +Ï#ÝýÝI‰Í =³5ÝÕ5¡Ï'ã3Õ0ÿ§Ãë2Û™0ù6­©'ɽ5‰"Çÿ?•ËFů$ë õŸ ‘,Ñ “4ÓF‡"Kåó:ñCó—)ٝ ™§4½ãý 1Å Må/ÁmÛ)kÿÝÁƒùÕÓÁ8•Lû.ýK‘2ë2í íÍ*õ!¯/û·¹‹·•*«ýï+‰!›8¯ç=ŏ áÃ6íF£×GÓ3H‰“G­• ‰OñLŸ%Ýë%ŸA«Ná +©‰;Ç Ÿ½6“M•±>­:Ñ ùá« —@í½ƒ,ñ©,ã!ùJ•Ë%­ ÝÉ9áÓ!»Í.ÕƒçÑ"µ…<«×ù—‘‰¹(Ï +‰ûC"å«·J›É0Å6?ƒ ï¹) +‹ïÙõ?§P¹‹ +û·M—9Ñó¥2©“ +¯(ù «™)é<õ +»Ë0Õ+™DßÙ¡%¯ ±Eé•7Ÿ Û“)ÍÃ+¿ÏÃ=» “C·«µÙÁ'£H‹,Ë!… û*­§/‰Ù/,ù›%F­Å#³9Ïáé㍗5Ñ:÷E™-ËC…J¹B³Õ í9¹J­ ¹«.¡ ­/ñAù &£ »:Ë3‡,¹ —?ËI'«B …5ë1‹<ÃA³&±‡9·JÁ+É#¥ë=©#ßç$ã6·åýƒ,Á!‰+Á4¥Û@Ù!› +ᓹ;Ë)»9ÿOµLƒ×Hé7û —F·+ý0Cß;‘A£#¡©M +ÑK‹:Ë×<ƒFñ&¯7¿-¯Më QÛMãé$óG)‘‰-¥"Ë0“ß4Á÷ ™Ÿ“H«A½‡¿ÝCÉýN«>˱á ý/Ý;¹íA‰0Ù3á2•,÷$é ÙI¡É$ó-Ù£7¡#óKƒý=û0åIû8Á%ãHŸOÃ3É!ýAƒNÑ¯™@¡BÅ1÷ +…Á=Å9¹ëHý—õIÇåÛ í5Í/§1•$×5ã-å:ËN&©2½« ÝN— £ ×7Ó«IÙï-á•»M•#»CßßM¡Ë5ëÏ8Û(‰õ‹8Ý8ýÿF•F‹Eµ9à +<ç£K?ÕGY¿‘/±Ÿ<“»“£FÁ5…2‰&óCÇ7é×F—³=Û?¡‰ã³‘•óŸ6•¹CÑÁNñïFÕ1£O=“"ý-‘"ý­0µ,™ ûA•Eë«ï&¯ ñ—™G©Ýå¹Cu‡ Ë>ÓŸÁ»$ݍ-— +§—I¡¿ÏN§IÑ0ùéÙ×J‡=»Ñ=á&$ñ×#¡ +Ç;™ +7£2·“<¹ +÷.«å7Ï4¹'÷;÷ƒJã,‹PßB«í£ É=­!£$5¡(Ñ/˝;0å +›*×>ï(çDÏBÃÕ!ë…革§BKßOµû"£L¿A­G‡ù%£G‘ë ¡:“9Ë‹H¥‹$ã2Õ5á áûK‹"ÿ"‰ É;×*ßÛ"ù(ï'§0åÑý@©½=»á6«C·"Ñ ©>ë ã »1­3ç*—/é'Ç¥3‡7 ㍻‘³*Mó%… û=çF•ãÓ(ÍN…8Íï:©CùK‹/¯(ŸõEÓ&õ*‰HÁ/•½%¡Fû÷ÇýGýíÙó9»5Ù4Ñ)© ½9éû2áûéFÃIÕå,ù'›©é÷4ƒI‰2ñ'Ç8ÝK‡Oá…$‰µý(‡Ù%¹Ñ*•“#…—ß ƒ‡“1#×?ÏÝ%×¥ ÷å+÷>ÿ/7³,Ó8§…0ëIÁ…HûŸIGáIÿ•Õ,¡2“.‡.×Ã*µN¡+«4ãA¯ƒ'ý!»K» ã…'å ï$»J›$ƒ¡—Jí.±G¥ +…?—<ÅKÝ×'9›2ÕáÉ*¥,MÏHÑ8µ ãûLÝI³/É<…C­¥ÃÏC?µ­'·Dí&—>ñ ó$Û…6ëG·H³“×N± ‹5ñ>ù Ã<ՍÕ?ÍAŸJã<÷ ç×Ý*ÛFå c½?ÇDÙC‘%÷OéGK™Håñ$û-å×÷¥£)©9¡·ÿ(‰©8ÓM£,‘0‰1©O¡=¡‘Û• + —O‘‘;.ùÿ#‡$ÑÁýÓ0ã1í§>ÙAÏ«Á ñ ³C1É õGó¥/³ûã Õ=Í%± +Ýõß" +íJÅ'÷7Ç>Í0.¯Å- Ñ¥ÿ<»!ŁE›4CÝ õ:ß3­5Ë;ý×Û1óÑ"Ëë± Ý1µù.“û‘ýó Õ­‰ +“1Ý5±WÇ5ñ)‹D ¥ƒ—Ñ5Á•¡;ƒ)ÿãÙ4½<™ Á‹ á ýó·­$¿› …-±#Û+Ýý#™‰D‹Ù6ÉC‹6•ãÉ'Í ç,™ƒ9ß÷ ¡K‘$ñH÷+Ãá#•ù"Ÿ&¡Ç…Mÿ©!ÃÕݝ$·:õ,Á£JóÇ.“=³¹ýý3÷éÍ“Çõ*É…Ù$ÿÅ á…=׉LÃ4ËDÅ£ ­·?Á×"ãÇ +Í$Û2ƒïAëµáGÏ™©Ñ+Ã?é ͝%­Á“ Ó5õLí6¿(í•A¿ -¹Nû7¯Õû(ó Ç¥8Ÿåå.ÇÉß +±?‡…™-‡!‰¯í +“/Ó»:ç@çש)ßéÿ™½*½õÉDçÿ½<‰*‹Í'½ ‘é‰ç£Hï&©!ýÓHÃïµñ9·6¹SÓ8ë6*£ ­Ý ¥á÷Å«9õë+é=Í ¯Û9åG•9á5D£&ã0û ¹ =‘:•ÿ&‹½FÛ«4é ó<ïE­ Ã$¿™/»“Fé á™&‹ +‡ —BǯJë£!‘>ù ßç…IŸÛé%A™ ű »#ßÃ)ï‘<éÍ,•C¿'ãç#ãÁ$ӏ×<Ó'¹Á¥ Û$Ç*½³,—Ã/Õ:ù#ßIµ7íí0ñÑ$¿ï»O)Ççéõ ¡å£ ×¹ñ»6Ï » +É#¥E™ù…7Õ«4Ïã>¡7Ë×#ßéO«ÑÉD¯5ï“>©»&ß6ß1/Ý,ñ*«;ç%‰'³CÅ›"¥‹1ËAï¥ … ¯Í?Ó,åã­+£ç$$ŸÉ¯E³9‡ Iÿ‰ÑI£(ýﱕHß@É™½›½3Åï7É¿.‡ëÍ)Ÿ$«µ)éñ3¯ û +á=6ñó"ß½Ù›‹½õ/Á·Ûá/™Í¹ ± ÿ'ùŸ¯Õ2¥'$ç+Uå*©5‹$ÍÝïÅï‰Ý/Ñëá0û£“• ѯÇ(ýï÷;á6› у…ñ'û4ý“‡û…;éë(¿—&Ë §Á §· «£ ¹1ûËË—õ4½ÅAïÁ<÷ÓíëŸÇ!™õ÷?½ £:õï+‘ÏÝó@» ½/ûÃù +Ç©*Å«!‹ ›;Ë:³N‹;ƒ<ûó7à ‰CÏ7±LÑ9ÇF³.ã5‡<ý )±Ù"ý6ÅË'Ñ­BåÑN-­7¥åß6Á)×Ù"ßF¿“<¥H•&ë:Ù;‡!‡/Ÿ2Ñ•÷õ+ÁùŸ³ +8ã4Á¥¥ç!ÕÅ灹$ñ«¡1¡ —©-ýï40áB³õ ϳE‡ï<ù@Ý ñ­ í“ÛåD¯›±ƒ‡'™ ±:Ã…3ó©/鿃› ½9¯­<¯± Åà ›ƒÍÇJÁÅ ‹é£½ çõù.§÷± ÑÉÉ í¯,§ +³>ß½Ë Ç#ÅÝ-…]A§ û÷"÷¿¹ñß7¡ŸÙOÃ>«ÓÙÛG·(F÷N‡É™‹2ýEç.ÏMÿ3…™!Á7«õ +6Ã5ÑבB׃ ‰û#é.³)«Í—§É ŸŸ,Ù™E +Ï—4éD™7ƒ!ÁŸ5¿+¡ÛL¹ ‡Ïí·$áÓ2µAƒÓ-ë¯F(é¹#§"#Ï ã#Ïé?™2ã­íO¹§Lýݯ"!©:‹ û +Çù:¥ ¹ç—½£§O‘Pý Ç-Ë>ùÛ›/ßç#Í<Û·‰ó1ÕïÍ)“»×…Bm£=㠝ÕI‹ù*A%£áåý$1I)­§2ד;“$ÇAÛ,@Ÿ-Ÿ —(ËË ƒÃ;ý)áƒPƒ0»9‘#7ÍK½Oo—cŸË£Ã—C½Û­L«&ÍI‘=ÇçÁFí¡MÙE±1yÇ'ǧF¹é>õÿ³5»+¿Kɣ磹:áDñDÕ™8¡LÕ;é¯AÁ á"£@™ o‡%ý9¿"Á ËëDõHÃÓ +«Á9Ë"÷=_·á!‹=Å:ÁEç7§ é1Õç å3ÃFÍLŸ"áNáï8‘IBåD·»LÙD³<‘õÛÿý?Ë •Pûƒ5ý‘8IÍ)Ç-¿7å)«/ý'¯C­8“?±9Õñ-ó1*•5÷&©%KÑ&ï +ã6Ç¥PËóM¹,ýÏ9½Jyñç)ã"©ÏÍ¡%½!Ç#“1µ™Igã wÇ‹ñKÑ¡A½+…:›±F—ß3—Ï Ÿ£DÅ%¯ÉOÉÍ1‰Bߟ1åŸá.±B‰IûB=•Óó/Í­-Á@· +ͳ§¯‡ƒ•D›íƒGÿÉ Õ%ãù›ÿ‹+ƒß÷ã%Ù»‹¡Ç(·7é™à +ŸE“&á*­ù ‰.³»8Õ)™ û8µ2÷8‰ù&Ç ¯ÿ:ÑÓA± ÙÉ ­ÇÑÍ0«-Ï(å­»2Ç“›1ë§&§Ý«"û%Ÿ(¯Û ã(ýÁãU Ç õ7Í›‹9¿õJ +ý ¯0ÝÕ ÝÉ¡ “2­ÿáß©!ƒ3«¹×)ƒ"&ß$…‡ ÓïDÇ6½• ³K×!ÅÛ™ ç™…­3¹‡:‹>× +•*í1ù¹ ±&Ñ;‹Ñ!ƒ±ý‘ Ï;‹³.5‰×¹EÙ-ƒ½«8÷ï.ËÓ+“·'™×Å)Á(¯½ +•*ñ‰!͍×Û +“#Í5É/ó ýÑB© ï?‡ëç(Å×Oï £½ û ¿!™ÑßÁÉ·ÛשGŸ±ƒµ5ý +û ÝHó³ ¥+É,ÕmÉ¿) —=‹3‰N¯•*·3÷5±+½Å?ÁÏI¥õ ƒ›Ý'-Í+û ‹Ç#Í.é@Ý ËÉ› û÷·*£á ™:kåÿ=É ï*™û6Ã$Í>+õD‡6Ëïçÿ8Ó>¹KŇ×$ó •J• å8…÷ ý<…(³A¯:×KñFµ$Á Ÿ)ã/Ÿ «7ÿ Ë?¯)·«LŸ(ß<(ë9ýL¹9 ÿ»NÇ&ÁJ —MÓÝ÷“'•0ÿÝ7³û'“D­×K±…4¹!á +± Å» ·õN¯£A‡ í#ݹ« ãñÍ6ÍŸB£©Ç +©ÕM…Aï õ"ƒ§@õÁ‰#¥@³2‡4§ƒ&±Cq•Oéß ¡Í=½#™:?ë3ù;í™Õû1›á8‡1§»í;ÉE« +‹&É%¥&Å·1¿ ÷1Û•ÛÙåû×½='«“û)¡•¹ïÏ<—,‘× å&µ Ù ·%§'× çŸ:¥ Å¿åïÛ‰ù“ ç1Ó#Á!Ï6­Á1í哃§ï<íóó9ïá+¿EÛ8ýѱ*ÑË2Éá íL© é5³ ·‡ßDZñÑ-çÁ Ù¹ƒ… »(í ³?ï#ÙÉÁ³•Ý=§$ƒ!É1õÝó“!û™*Ó§?Ó÷ÛN¯™… 땳0í Å ¿ÉŸ±÷6Ç÷%ã—ëO¿Óã ÷)óõ.í6ƒ#å%3÷/»)©?¥å#㷝ÛEù¯¿ÑFÝ¥D§Ó ç8ÛëŸ-“6‘£4å¡E­±PÉHçå<«1ß“ ÅÃ@Õ-ïã.ÕE‡‡E5‘3«5ß=§NÛ'Í2ÃHÏ!§"É4×Å›JåL› ‘Fý&Ýù ­/› )•ÁÓÕÏ“Ë©%éû!íD߁%ý í՝"‹ý2‡Mó>¡9å6Ÿ—ûHïÕ5ù,ÇÓ¡"¹óý"ÕÑ•é,í½ ½LóË8­*½ùŸ¹ï » ›&áÇÅ2ûÿ2÷<ᏽ¹3ŸÛ(õ(Û0‘›Û&ëÇ¿õ!ßJéû:£µ'…§§9¹Mç ×#ËÁ<§“¹í©&±é +õAÑ ÿ7ý;¯¥3Õ«)»Åõ1oÓƒ1ÓLÑ©L¹LÍ ù"ÿ éD™.—6µ0×IÉÅFч3㠟C«*ñ«E£½ 9—"³§Õ?ÿNëƒ'¯‡)á…@­>¥C¿"ñé'ƒ*¹ +ƒÑ!ë"— ±÷5¡  ©«.á»1‘¹Ÿõ&ûý»‡!»‘"ÿ¯›&ßÃ6Ƀ4½“8ÕÅÏ «Ãá8ƒï‰?“é*— +Ù)í}é'‰3ùç +µÙ&û‡G™'—-“ƒ%‘û&ÙË § ‡×ש Ï1áóÃÝû‰ ™;Ã0•§Aµ ß»«< +ó½D¥5û«ï™ ß µ Í!õ½ÿ)óÍ<Ëõ ³ £±1Ñ%à §×Óû¿×“×….³«­#ç%ÁíÓJ™Ká'ïõ™E«-¥ÓóÉ%µá§£+©ƒýí··½í9ß8ÉŸï«Å=û«±%ýù2Ï,Õ ý¹%ÁŸ=åL‘ +ù.ï2í*¥Ñ×íEÇEçµ%ù¡,õÃOé¯2¥ …FÑ Ç:±E÷K‡#³PŸPÃ,ñý%÷-ë7í—B×™Cѱ™«Á +™«&ó#÷ן±/Ç +³»+ý‘‹'ß å4á¥(‘•Ïç<£Å ƒ!Ã(ƒ ‹C½¹™…µ+›õù?“#·…4µ"ËE‡KåJõ“:ùNá)³Å +Ÿ!åß-Ù é ¿»ó—½0µ¯¿­;ÓBÑ ÿ±$Ÿ*‰¡÷á-I‡)Ÿé&Í@‰íëý Í¥<ÙÓ‘ ¹:ï9•ï%µ½;¯DÁõÕûÁµë0•ó*ß5± ‰¯LíN‘NÝ:Ù½‡ ›Ó:Ëõƒ³8û “%Ó±AÕ½Á + Éù™@÷Ç=ýó‹2Ë(µå¯ « +á5·… ¿:Ý· +õ(ÿ +§ +Ã=ßÿ¹)ßý»Á— ›Ëµ ½ +› “Û½(·Ñ6Ù Çó0Ã Û ï5Ý2‡³ û1¿0å ÿ »@× µ$å«5µJ¯ß6•-£%¥£ß4—¯4›Û#×ñ#¹•/õËù3ÝßÇ +Ï*§Ñ!ÿ)• §çó4¿ëÁ<‹ ½Ó¯.Ù›"©å-‘4›ùAý1Ù,é +á=ƒÁ<ÿ%õ g§ ã…ÁBñÑ0Ï¿;§:ç—A³:ç)ÿŸ=…ƒ,¿#Ó‹Ë +Ï¥A‹© £>­Ï%·L‰Éë&±‹ å2á©$û+‰$ÿ¡Jû;í/Ã6Á6£C“ ™­…,ë?{¿ +¹<· ë‡Û±6«¯Ó#Í Ÿ7Ë •‘©Aç>¡¯6Ñ@3ó3û3íHÑ'‘L±F—P‰ÛßÅ)—: ƒƒ@ß*¯K‰#‘6û½>× é™ÁÓO‰û?û,Û;§å5›6Éó Û<Ã:˵ûÛÇ ý¯%E ‘-÷'¥NÓ1ݹõÁÇÝFƒ÷!å·ßEÓ õÅ-é9áÝ?ï +™Ÿ ³4…ë.‰÷ñ*óË)'¡.½Å=ÿ-ƒ“‰DÃ&ë“éAÇ=ÍŸ«'µËÁ,ÍÙï"í±é ­ +ïÕ<ë Ï@Ý ¡¥õå'µï=㏠ó4ë¹ï a§?Ïõ í±9Ó ç2ÉÝ õ ¡ƒ  ¡ß9Ù+Á‘!Áë>Óõ6ÙÃ8Å—>Ù*ï"+ɉ%Û!Ã!·ë +;ß:—"Á³ý »F·ƒá*×&é"ƒ(ë%± Í;ÃÃ-­5ëµ ¹ë/Í íñ­ý Á ûÅ ‡0¯ ‹‘2ù“Ó!—·Ó »"ßÑ.› +ï6Ç«# ÿ»½Ù$Á—ý&IùáH­ ±³¥Ï ÅÁ©&Å£Ù'Å(㷁߉$¥™£‰ñ1ß +Á3­ +Ï#ÝýÝI‰Í =³5ÝÕ5¡Ï'ã3Õ0ÿ§Ãë2Û™0ù6­©'ɽ5‰"Çÿ?•ËFů$ë õŸ ‘,Ñ “4ÓF‡"Kåó:ñCóٝ ™§4½ãý 1Å Må/ÁmÛ)kÿÝÁƒùÕÓÁ8•Lû.ýK‘2ë2í íÍ*õ!¯/û·¹‹·•*«ýï+‰!›8¯ç=ŏ áÃ6íF£×GÓ3H‰“G­• ‰OñLŸ%Ýë%ŸA«Ná +©‰;Ç Ÿ½6“M•±>­:Ñ ùá« —@í½ƒ,ñ©,ã!ùJ•Ë%­ ÝÉ9áÓ!É‹%»Í.…ÿÕƒçÑ"µ…<«×¯#Á*ù—‘‰ó(í•/¹(Ï +‰ûC"å«·J›É0Å6?ƒ ï¹) +‹ïÙõ?§P¹‹ +û·M—9Ñó¥2©“ +¯(ù «™)é<õ +»Ë0Õ+™DßÙ¡%¯ ±Eé•7Ÿ Û“)ÍÃ+¿ÏÃ=» “C·«µÙÁ'£H‹,Ë!… û*­§/‰Ù/¯ï?,ù›%F­Å#³9ÏëNáÑEé±ã—5Ñ:÷E™-ËC…J¹B³Õ8Õ Ã­9¹Jë#­ ¹“«.ë$Ç¡ ­/ñAù &£ »:Ë3‡,›<¹ —?ËI'«B …5ë1‹<ÃAÓ7³&±‡9·JÓG•Á+É#¥ë=©#ßç$ã6·åýƒ,›Á!‰+Á4»¥Û@Ù!› +ᓹ;»9ÿOµLƒ×Hé7û —F·+ý0Cß;‘A£#¡Å&©M +ÑK‹:Ëw×<ƒFñ&¯7¿-¯M×›Fë QÛMãé$óG)‘‰-¥"Ç1Ë0“ß4Á÷ ™Ÿ“H«A½‡¿ÝCÉýN«>˱á ý/Ý;¹ÝíA‰0Ù3á2•,÷$é ÙI¡É$ó-Ù£7¡#óKƒý=û0åIû8Á%i§+ãHŸOÃ3É!ýAƒNÑ¯™@¡BÅ1÷ +…Á=Å9¹ëHý—õIÇåÛ í5Í/§1,•$×5ã-å:ËN&©2½« ÝN— £ ×7Ó«I½Ùï-á•»M•#»CßßM¡Ë5ëÏ8Û(‰õ‹8Ý8ýÿF•F‹Eµ9ÝAà +<ç£K?ÕGY¿‘/±Ÿ<“»“£FÁ5…2‰&óCÇ7é×F—³=Û?¡‰ã³‘•ë,óŸ6•¹CÑÁNñïFÕ1£O=“"ý-ý­0µ,™ •Eë«ï&¯ ñ—™G©Ýå¹Cu‡ Ë>ÓŸÁý+»$ݍ-— +§¡¿ÏN§IÑ0ùÙ×J»Ñ=á&$ñ×#¡ +Ç;‘ßH™ +7©£2ß ·“<¹ +÷.«å7Ï4¹'÷;÷ƒJã,‹P©>ßB«í£ É=­!£$5¡(Ñ/˝;å +›*ï(çDÏBË#ÃÕ!녏8革§BKßOá%3µû";£L¿A­G‡½$ßù%ñŸ0£G‘ë ¡:“9Ë‹H¥-¥‹$ã2Õ5á áûK‹"ÿ"‰ É;µ!×*ßÛ"ù(ï'§0åÑý@©½=»á6«C·"Ñ ©>ë ã »1­3ç*—/é'Ç¥3‡7 ㍻‘͇Ã2³*Mó%… û=çF•ãÓ(ÍN…8Íï:©CùK‹/Õ¯(ŸõEËL»2Ó&õ*‰HË+Á/•½%¡Få0û÷ÇýGýíó9»5Ù4Ñ)© ½9éû2áû.Ñ +ÃIÕå,å<ù'›©é£÷4Å<ï>ƒI‰2Ã/ñ'Ç8ÝK‡Oá…$‰µý(‡³,·)Ù%¹Ñ*•“#ñ‡ …—‘¹Ÿ +ãß ƒ‡“1#×?ÏÝ%×¥ ÷́å+÷>ÿ/7³,Ó8§é)…0à ƒOëIÁ…HûŸIGáIÿ•Õ,¡2“.‡.×Ã*µN¡+Ù«4ãA¯ƒ'ý!»K» ã…'å ï$»J¡—Jí.±G¥ +…?—<ÅKÏÝ×'9›2ÕáÉ*¥,MÏHÛ!‘7¯@Ñ8µ “AãûLÝI³/É<…C­¥ÃÏC?¿#µ­'Ó ¿*Ñ>ù+í&—>ñ ó$Û…6ëG·H³“×N± ‹5ñ>ù ÉL•<Ã<ՍÕ?ÍAŸJã<÷ ç×Ý*ÛFå c½?ÇDÙC‘%÷OéGK™H—$ß åñ$û-åÙ8×÷¥‘.£)©9¡·ÓM£,‘0‰1• + —O‘.µDù‡$ÑÁýÓ0í2ã1í§>ÙAÏ«Á 1Çó¥½G/³ûã Õ=Í%± +Ýõß"Å'÷7Ç>Í0.¯Å- Ñ¥ÿ<»!Å›4CÝ õ:ß3­5Ë;ý×Û1óÑ"Ëë± Ý1µù.“û‘ýó Õ­‰ +“1Ý5±WÇ5ñ)‹D ¥ƒË1Ý—Ñ5Á•¡;ƒ)ÿãÙ4½<™ «%Á‹ ñ8Õ¯1‰á ýó·­$¿› …-±#Û+Ýý#™‰D‹Ù6á‡FÉC‹6•ãÉ'Í ™ƒ9ß÷ ¡K‘$Ãá#•ù"¡Ç…MÙ·Ù0Ï‰Ÿ&ÿ©!ÃÕݝ$õ,Á£JóÇ.“=Ó³¹ýý3÷éÍ“Çõ*É…Ù$ÿÅ áÅ£ ­·?Á×"ãÇ +Í$Û2ƒïAëµáGÏ™©Ñ+Ã?“7÷Ié ͝%­Á“ Ó5õLí6¿(“Kí•A÷!¿ -Ÿ9¹NÏ‹û7©@Õ +¯ËÕû(ó Ç¥8Ÿåå.ÇÉß +±?‡…™Ù9-‡!‰¯í +“/Ó»:£Ñ0çש)ßéÿ™½*½ÉDçÿ½<Í'½ ‘é‰ç£Hï&©!ýÓHµñ9·6¹SÓ8ë6*£ ­Ý ¥á÷Å«9õé=Í ¯•9Dµ·&ã0û ¹ =‘:•ÿ&‹Û«4é ó<ïE­ Ã$¿™/»é á™&‹ +‡ —BǯJë£!‘>ù ßç…IŸÛé%A™ ßÿ+ű »#ßÃ)ï‘<é·Ÿ +¹7Ï•C¿'ãç#Á$ÓÏ"Õ*×<Ó'¹Á¥ Û$Ç*½³,±?1ŸÝ—Ã/µ7íñÑ$¿ï)Çç顏׹ë»6Ï » +É#Ñ™ù«4ã>¡7Ë×#ßéO«ÑÉD¯5ï“>©»&ß6ß1/Ý,ñ*«;ç%‰'³CÅ›"¥‹1ËAï¥ … ¯Í?Ó,åã­+£ç$ù« $ŸÉ¯E³9‡ Iÿ‰ÑI£(ýﱕHß@É™½›‰=½3Åï7É¿.‡ëÍ)Ÿ$«µ)éñ3¯ û +á=6ñó"ß½Ù›‹½õ/Á·Ûá/™Í¹ ± ÿ'ùŸ¯Õ2¥'$ç+Uå*ý©5‹$ÍÝïÅï‰ï!Ý/Ñ­<‘ ëá0û£Ñ¯“• Ç(ýá6ï÷;·!“ƒ› Ñ…ñ'­(Ó +É0Éû4ý“‡Í‰Dû…;éë(¿'Ë +—&Ë §Á §· ï¹1«£ ·9µ™Ó/ûËË—õ4½Á<ÅAïó@» ÷Ó™/Í…í3—íëŸÇ!™õ÷?½ µ4ç £:õñ5íÅßï+‘Ïݽ/ûÃù +¡5Ç©*Å«!ÝÙ.‹ ›;Ë:³N‹;•"ƒ<ûÕ*‰Có7Ñà Ñ9Ï7±LÇFŸNï1ç2Ý +;å ³.ã5‹ý Ù=‡<±)»A× ý6³'Ë2Ù"ÅË'*Ñ­BåñãKÑN¥-­7¥åß6ù$Á)×Ù"•&ßF¿“<Ý<¥H»ë:‡/Ù;‡!¿/Ÿ2ѹù•÷sÝ<ùŸõ+Áã4Á³ +8ç!Õ¥¥¹Åç¡ $ñ«¡1³õ —©-ï4ýáB0ϳE£ý—‡ï<·Ï™"ó)ó‹*¥Ù ±2‡£ +Ñ$¯ý?ù@Ý §wµEͽÛñ­ í“ÛåD›¯›±ƒ‡'™ á3µ…3ó±:é/é› ½9¿ƒ¯­<Û寱 Åà § +³>ƒÍÇJÁ…‹A㣍‡©›={¹6 §µá…‹©P± Û Å ‹é•;ǁ£½ çÕD¡õù.ÿ§÷± ÑÉÉ í¯,ÿMéß½Ë ÇÝ-…#ÅÕ­ ]AÕCY±a¥G§ û÷"åK» ÷¿¹ñ‡Cëß7Ÿ¡á$ÓÙO‰5ÅÃ>Ó«ÛGÙãL·(£5‹2FñI‡÷NɽA™ù2ýEç.ÏMÿ3Ý6™!…«Á7õ +6Ã5뵯0¯Ï;×»>чû#ï +ƒ ‰—§Lå+«³)“0ÍÁ¡8ùÉ ŸŸ,Ù‘ ™E +Ï—ÁŸ54éD™7ƒ!·$á¹ ‡¿+¡ÛLÏí¡'ÛµAÓ2¡É +ƒ»IÓ-ë¯F(éÙ¹#§"#Ï ¯ ã#Ïé?«=Õ4™2ã­íO•(§LE¹Ï ýݯ"!Çù:©:‹ Õ‡DŸ7û +¥ ¹ç—½£Ë>§O‘Pý Ç-ùۏó ù?ßç#›/Í<Û·‰ó1ïÍ)Õ…Bm׏“»³!ó¡—K£=㠟-Ÿ ÕI™=ù*‹­§2A%å£áë áù)«ý$1I)“;ד$@ÇAÛ,½I¡Ã;ÃÁË ƒ—(ËÇ»8¡@ý)Ã0ƒP£‘#7»9ÍKÑ#½OoƒGŸË—cé/£û1ÙåFÉ5»'ûOçÛ×C½ÍI­L«&‘=ÇÁFí¡MÇÙEy±1Ç'§F¹é>õù0³5ÿ»+É¿Kç£áD£¹:ÿ ñD™8ÕÕ;¡LÁ ¯Aé£@á"™ o‡%ý9‘¿"Á ËëDõHÝË"÷«©á!«é9¹«)_Ù§ Á*Å:ý +Õ•ç ÿ÷ ‘5ÃF‹Ÿ"Ã,±“+áù÷2ûˇ*áóñß"ãB…Á‰9åDí‰4»·…F£*·‘£#õçÿÿ=Ë ËBû‰0™1ý•‹ÿ ÑÍEÍ)ûå)Û «/± £·4ý'³­8çÕÝï³Û**‰ ©%ÏÑ&Í$£ ‘ãÙ ï +ã6óMÇ¥P˹,ýÏ9½Jyñç)ÏÍã"©¡%½!Ç#“1µã w™IgÉÿ‹çDÑÑ"ÑÍÅ%ß½+É—ß3›±F—Ï Ÿ‰ù&© +¯Í1½³ÉOÉ™ ÅGßÁ埱á.±BÙ—'K­.[ß.ûB‹?=•» Ë=ӡͳͭ-Á@· +§¯¡Ç(“+û¹*©!‡Ç!·ƒ•DÿÝ훃GÕ%ãÉ ù›ÿ‹+±ù&‰ƒßý"ëã%ÙÇNs÷»‹­µ'·7é™à +ŸEµ +Ã7“&ÝùDù ‘!³»8ûÝÕ)™ û8µ2Ï ÷8Ç ¯ÓA± ÿ:Ñ»µ)Ï(åÙÉ ­ÇÑÍ0«-­»2Ç“›1í9³FÝ«"ë§&§áå.û%Ÿ(Ù‘¿õJ¯Û ã(ýU ÁãÇ õ7‹é#Í›$É)‹9³DÃÉ¡  +ý ý +é6¯0ÝÕ ÝÛË¥0µ ÿá“2­‘ ‹­ñ«¹ß©!Ý ™¿™?ƒ3×)ƒ"‘‹ çÅE!½@Å>…‡ ½8¡&ß$¡"ÿé£ ÓïD½‹ • Ÿ?Ç›,¯ Å“Û™ µ5ý +癹‡:…­3‹>½«8Ñ;¹ ±&× +•*‘Ÿ:í1ù÷¹ +—á» éKoß,‹³.‹Ñ!õƒ±ý‘ ß“3Ï;5‰×¹EÙ-ƒ1ù÷ï.Á#µ ËÓ+·'“Í™×Å)Á(¯‰!ͽ +•*FÝñç(ō×Û +“#Í5É/ó ýÑB©à  ï?‡ë×O£ƒ/ï é(óAÛ×½ û ¿!™ÑÇ­ßÁÁ?Í‘—$—EÉ·±ƒ©GŸû É,Õ³ ¥+ÝHó«2‰· ½E¿) mÉ›é‰N—=‹3•*¯·3÷5½±+Å?ÏIÁõ ¥ñ,Ý'-‹Ç#Í+û é@›(Í.ó)ï*™Ý ˇç*É› û÷kå·*£í›/¿ Ý?á ™:ÿ=É ÿ8ÕÃ$û6+õå é2ÅÑ$Ó*—#ˇ6牫+Ó.¹Kó åŇ•Jå8• ÷ …ÿ;¹-ï#Ë;éý<ïñF…(×K³A¯:Á õ­0ã/Ÿ)Ÿ «7ÿ Ë?ëµ/¯)—·ßC… «LŸ(©(ß<ïLÝ(Ç.½“5¹9ýLë9 çÿñïN‡(»NË-Ç&8ÁJã! —M±"Õ9¯NÝÓ“'÷¡PÝ7•0ÿ“D³û'±…4­×K» ·¹!á +'± ± Å£A‡ õN¯å5¥ Ý+í#Ýãñ¹« ƒýŸB£Í6Í©ÕM©Ç +õ"ƒ…Aï ÷¿ ßÁÉÝ¡-³!Õõ³8§Ýù2³2ó ÕO‰·qÁB…!ýÃ'ƒ±/Ý%ß Ãé­K™:½#0Ù0ÇLù;?ë3í™Õ›á8Õû1Û5å‡1§«'»í;ÉE« +‹&É%õ!« 5¥&Å·1¿ •¹÷1Û•ÛÙ· ¿;•—>åûÇ0…'«×½=é-“û)¡§'× µ (ÏïÏ<—,‘í>Ù× å&Ù ·%ñ.× çŸ:¥ ʼnù¿å™+•…ûIïÛÁ1í“ ç1Ó#Á!ÿ5§Ï6­ó9ï哃§ï<íóÙNá+¿EÛ8ýѱ*ÑË2Éá íLËÓ6© é5³ óç Ñ-ßÇ·‡±ñ¥é2ï#Ùƒ3¹Ù¹çÁ »(탅 ÙÅ  ³?%#³•ÉÁÉ1õÝ=§$ƒ!Ý—§?Ó“!û‹Á™*ÓÛN÷… í Å ¯™Ù«… ëËŸ+•³0B¿ÉŸ±•+× +÷6Ç—ë÷%ãÕ>ÃO¿Óã ÷)ýHå#ã­6óõ.Ã#å%÷/3©?»)¥·Ó ÛE¯ù¿ŸO‹ ÃÝÑF¥D‹O§ëŸ-ç8Û¡E­“6çP¯H‘£4å±ÉH±Pçå<«1ßÅ“ ùFÃ@­*ïÕ-ý7—Bã.Í ãÕE³;‡E뛵‡¡>å 5Ÿ#-—Å2‘3Ë.‰ «5ß=§NÍÛ'…Í2áCÿK±JÕA•ñÃHÏ!§"ÅÉ4×›J› åL…/‘F¹4©ñý&Ý­/ù Ãû› )•ÁÏ“ÓÕË©%£éû!¥íDß“÷0á"¡ éC%ý íÕ‹ý2‡M¡9ó>å6Ÿ·.ç ß.—ûHïÕ5ù,ÇŸÓ¡"¹óÙ ý"•é,ÕÑí½ &½LóË8­½ù*Ÿ¹›&ï » ãáûÿ2ÇÅ2ÁÍG÷<ᏽ¹3ŸÛ(¿õ!õ(Ÿ Û0‘›Û&ëÇ¡©(ßJéû:£× µ'…Ó§§9¿<ËÁ<¹Mç ×#§“í©&¹±é +õAÑ ÿ7ý;¯¥3Õ«)»³ §ÏÅõ1o—ù!ƒ1Óÿ éDÑ©L¹LÍ ù"ÓL™.×6ѵ0ÉÅF×Iñ«E‡3ã «*ŸC£³>½ 9Ïÿ§Õ?³—"Ï5ÿNëƒ'…@‡)¯á¥C­>¿"¡  ñÕ/»é'±÷5ƒ*¹ +ƒÑ!í ×ë"— ©«.ƒ4½á»1Ùÿ'‘¹ûýŸõ&»‡!ÿ¯»‘"›&ƒ6ÉßëÃÅÏ “8Õá8ƒï‰?“é*— +¡}é'Ù)í‰3ùõBÙ&ûç +µÝÝ&™'‡G—-“ƒ%û&Ù‘Ï1á‡×©÷Ë § óEýñ“›×© !—¿‰-óÃÝû‰ ™;§Aµ Ã0•­‹—É‹+Ý«ïß»«< +ƒ ý#ó½D¥5û½ÿ)•ë#™ ß µ éõ Í!õ…#í ÓéóÍ<Ëõ ³ £Ñ%à ±1§×·EéÁíÓû¿×ý,—!“ ¯©‘×….³«Ÿ5 ­#ç%ÓJ™KÓóá'ïɉ#'™÷.çõ™E«-¥åã×6© ›.‰É%µá©ƒ§£+›0Á½í9¥ýí;Ç··íý3ß8É©-Á&Ÿï«Å=û«±%åLýù2Ÿ;9Û ÛÏ,Õ ý¹%ÁŸ=Ÿ‘‘ +ù.í*ï2¥Ñ¡,¥+×—0çá?µ%ùõÃOé¯2¥ …FÕÑ óBÇ:å±E¡0÷K‡#³PŸPÃ,ñý%÷-× Ãë7í—ß‹#å Bѱ™×™Cñ ÙG™«&«Á +÷Ñ<ó#ý‘ן±/Ç +³»+å4áã™'‹'ß õ3¥(‘Ë7•7ƒ ç<Ï•£½4Å ƒ!Ã(‹C½…5™µ+›õë“#·½ µ"ËE½åJõ¥:“:ùNÿ+×9µOá)³Å +Ÿ!Á ¥ é ñ¿µ—¯µ¿­;ÓBá-IÑ ÿ±$ƒ2Ÿ*‰¡÷íIé&åCÉ-£"Û#Ÿé ›G»‰íÏ&õ +ëý Í¥<ÙÓçA¡ +‘ ¹:ñ"é'ï9•ï%µ½;¯DÁõÕûÁµë0•ó*ß5± ‰¯L±N­ó íN‘NÝ:Ù½‡ ›Ó:ËõË(µå¯ ƒ³8µÕ½û “%Ó±AÁ + ñ=ÿÉù™@÷Ç=ýÍMó‹2· +õ(« +á5·… ¿:Ýÿ +§ +ßýÃ=ßÿ¹)»Á— ›Ë +› µ ½-™“Û½(·—+í Ù ÇÑ6¡Ý2‡ó0Ã Û ï5³ û1û¿0å ÿ »@í+× µ$å«5¯ß6µJ•-Ó×%õ8×ñ +Å"£%¥ïÙ›"£ß4—¯4Ý!‡,¹• ›Û#“… +×ñ#§)"…³— Å õ˹•/•ù+¯*×¹ Ï%ù3ÝãßßÇ +Ç$£ÕÏ*§Ñ!ÿ)Ç›,• §çó4¿ëÁ<‹ ½áLñ½ûÓ¯.ÛçÙÑBù©½(á ‘4Û ç9“7›ý1©7é +Ù,ïá=õ;ƒÿ%ÁÍ:… +­Ï%·L‰‹µ;õ­‡>‰ ¹"›?• Éë&±™5˃;Ù£Ÿ0áÉû+¥‰$Å»¡J½)Ñ?©‘Oû;í/Ã6Á ¿C‰å4ß(÷ £C“ ™­…,ë?{¿ +¹<¥IÏ· ëñ µ/‡ÛÅ±6«á§"¯Ó#Í Ÿ7Ë •‘™?»ÿ0¡Ç;¯6£ +ïKÑG3ó3 Ý é"±FáíHÑ'Õ‘1ωO“ŸDùÛ…§Å)—: ƒƒ@µÑ%Ó$çß*ߏ¡.‰#‘6û½>× ™© 鯅#‰Ë7û?§å5û,á›6Éó Û<Ã:Ëëû¡DÇ •·@Ñý¯% ƒ%“‘-õ÷'»-Ó1Óݹ½ Á‡•6ÝFƒ§.ë‹»å÷¡·ß­ EÓ ëKõÅ-Ý?ï +é9፠¹9³4…™Ÿ ë.‰Ÿ í!é Å,¿ õ÷ñ*óË)'© ¡.½Å=Å;ÿ-ƒ“‰DÃ&ëÇ=ï3“ÉIéA›=ù-É © ‹ÍŸ«'µÃL¿ËÁ,±é ñ9¡ +ÍÙÓ ï"í­ +ïÕ<ë ‡·Ï@Ý ã õå'¡¥µï=ó4ë¹ï ñ(×a§?¹.ÇÏõ Ï ¿4…û<ë +;Ó ç2í±9ÉÝ õ ¡ƒ  ¡ß9Ù+Áë>Ó‘!Áõ6ÙÃ8Ù*ï"Å—>+ɉ%Û!Ã!·ß:—ý:à µÏ"Á³ý »F·—:ùƒ +±,ƒá*×&é"ƒ(ë%ù/ÇÃ-­± Í;õ ¹5ëÑÍ5™÷ë/Í ×3—Ï2£ ‡0¯ íñ¡/Á +ë»…ã/ý Á ­ù¿×@í ™5ûÅ å=¡©1ù·Ÿ +ë ¯ù“‹‘2—@¿ ÷›³@Ó!—·Ó ›!Ñ.› +»"ßÁ:ÿÓ‘Å ÿï6Ç«# ÿ»½Ù$Á—ý&áHIù­ ±©&³¥Ï ÅÁÅ£Ù'Å(ã·ß‰$«8¥¥™£‰ñ1ß +Á3­ +Ï#Ý¿&£ýÝIïõ‰Í ͳÝ$=³5ÝÕ5ã?¡÷Gã3Ï'«6Õ0ÿÇHßϧÃÛ™0ë2ɽ5ù6­©'‰"ǝ•ÿ?í¥I…,¹$‰+ѯ$ë ËFÅÝ.{õŸ ‘,Ñ “4Á‡"û(ù³5#ýå'óÿ0—)ٝ ë)µ!»%Ç ™§4õ¹½ãóIý 1Å Må/Á§CmÛ)kÿÝÁƒù—Ï?å ÕÓÁ8Õû.‘2íë2Í'™í íÍ*õ!ËÍG¯/û·¹‹·•*ã +Ç>«ýï+‰!›8¯ç=ŏ áÃ6íF£µ3­‰•DÓ3í “G­• õ.Ÿ%Ó'ݏƒ+á +ËC©á6Ÿ©½6“MáÓ!­:Ñ ••'±>»"ùá©©5« —@í½ƒ,©,ã!ñÑé+ÝÉ9ùJ•Ë%­ ƒ-‘‰É‹%»Í…ÿ.½2©ÕƒçÑ"µ…<«×ù—¯#Á*¹(Ï +ó(í•/‰ûC"åË!… ›É0«·Jƒ ïÅ6½ ¹ +‹¿=£;ïÙ¹õ?§P‹ +û—9·MÑó“ +¯(é;û¥2©ù ³™)é<õ +Ϲ߷-Á «/»Ë0ŸõÕ+ßÙ™D¯ ±E¡%»Ÿ Ûé•7Ã+¿“)Í» “CÏÃ=µ·«»7ó‹,™Ùé›Ë*û*­,ù§/­K¯ï?‰Ù/½››%õ Õƒ9—­™!³çB…1á ïëNáÑE靱㍳—5Ñ:÷E«ËC™-…J¹B­9Õ8Õ Ã£!¹Jë#­ ¹“«.ë$ÕÇ¡ õñA­/ù —‡,Å£ ™/ç Տ 6ã$…#›<'Ë"¹ ß1‹<¹ë1›±ÕH³³&¡±Á8‡9·J•¿*éçßËÉ#¥Çç$ß·­ ïJÁ4åý‡ñ4›‰+Á!¥—Û@Ù!› +Ç“§!£©»9Ń³KÓÅ!é7ï‘Aû ý ý0—F·+Cß;‹¡£#Å&å&ï.+ ËÇ7‹:Çwá;ñ&“¯7¿-¯J×›FQ› ¿½$ãù7é$³OóG)‘‰-¥"í%%Õ"Ë0}“Áß4™%™÷ Ÿ—3½K«Aéé ¿Ÿ(ɵ9Ëá7±á #ù•¹¥'݉0åõ@õ$ÓÙ3ÝÉN•,Í•@ÇÕ¡ÙIÉ$« ½½)¡#ƒƒñ/û0ƒ å/ŸÅFÁ%»i¿*Ã3¿É!µ ÷K…-Ñß ™@‰Û-…å$Å1…ó·Á5É2+Á=ýï7¹—ß1ÇÛ “)Í/§1,•$ã-õå:ç&1¯¿4« “ — Ç.Ûû£ ÓÕ3×7¥%«I­ß½‘ÏÙ—•ñEá•#§*‹0»C߁Hç ƒ¡áË5í¥‰Ó!ëå(ýá"õ—6µ9× •Fkéõ>Å$­ç½-à +Í1Yç?—G±‘/“©“-‰&ý Á5ãéï)Ç7­ ¡»%—#‘…㧳¥ë,•‹#¯8· ­óé,Õ1›ñÑKÑé'±Ó#£O=“"ë µ,™ ‘"ý­0•EëûA«ï&¯ ñ—™G©Ýå¹Cu‡ Ë>ÓŸÁý+»$ݍ-¡¿— +§—IÏN§Iñ%Ñ0ùéó'‡=ÁG×JÙÙ#à ¥$“P‰<Ñ=»ñ×#á&$¡ +Ç;‘ßH™ +7©£2Ãß ·“<¹ +÷.« ‹ŸÏ4—¹'¿ÿ «0¯;÷8ã,©#©ç-­!÷«µ0•ƒBÅO‹BíýMÿE¹&³-£ §©3¡(ý Ñ/;Ëå ¹I0Áå +­HÍë!Ç/§›*ï(éÏB™Ë#Á ×Là ñہ=Å.Õ!ë›í$éH¹?8±.éµ­)©§B K6ßOá%3µÇ ;éKÿ™ ¿A‰ÕG‡§Aßß ù%ÅËKÙM·IñÝÇŸ0£G‘ë “(“9¥7Ë‹H›¥-¥‹$ã2Õ5£Áá £.‡Û³Bá‹"ñ)±Ï‰ ÁÝEµ!¿ ×*‰Eßù(Û"ï'§0åÑý@©½=»«Cá6Ñ ·"ë ©>»1㠗/­3ç*³+Çé'»‘™¥3㏠û/ó%ÁMù͇ñÓ ‰å1û=çF•ãñ%©;…8ÍNÍï:»‹/ïÕ¯(ŸÍõEËLÛñ Ó&£»2£-õ#ç5©DÍE‰H±ç.•­Ë+Ë¡F½%å0¡$÷…ÇÝ0ÙýñýGÏÙó9»5Ù4Ñ)M© ½9».¯+ù1éëû2ûᇍ.Ñ +éFÃIÕå,å<©›ù'çéëéNÅB£›P—¿÷4Å<ï>í8ƒI‰2Ã/ñ'Ç8‡OÝK…$û•%á‰Ù/Ÿµ å!µý(‡³,Í9·)ïÙ%¹Ñ*•ß ƒ•“#ñ‡ …—‘¹Ÿ +㇓1#×?ÏÝ%×—.«H¥ÿBÅ4Ï0 ç÷±5õ ÷́å+ÿ/÷>7³,Ó8§é)‹…0ƒOà åëIçß +û¥0Ó•/ÁÅ*•ëGÕï ‹C¯ +›6“.Õ,¡+•#‡(×í‘ É½»&«ããA¯Õý!¿)å¡%Ù2)ãÙ 㠁 »Jƒ™í.«¡±G¥ +á4—<ÅKÏÝù§ÏE›2×'9áuÉ*ÝÇíÏHÁÃãµ +¡!ýB•.QÛ!»‘7¯@ûÕã±0÷(“ÝIŸ³/— ­Ù)?Áµ‹­'Ó í ù+Ùí&—·DŸJó$>‡ñ Õ “Û·H…6ëG³×N‹5± ß?ñ>ù ÉLã*ÑO•<ÕÃ<Õ?ÍAã<ç÷ ×ÛFÝ*cå ½?×OÇD‘%ÙCéG÷OKÛ¥™H—$ß ñ$ïåû-Ù8• å÷ב.ÝA©9£)¡Å/·—ÿ(‰©8ÓM£,‘0‰1¡=©OÁH¡‘Û• + —O‘‘;.µDùÿ#›>…‡$ýÑÁÇ+Ó0­P·&—í2ã1ÙAí§>Ï«Á Ë&Ãñ ³C1¹6É õG­N…Ç­ó¥½G/§D³û<ã ûÕ=Í%õß"± +ÝíJ׏ +å;•µ#÷7Å'Ç>.Í0¯Å- Ñ¥ÿ<»!ÅëE›4CÝ Ñ2õ:ß3Ï)Õ$ûF‡é0­5á‡FË;ý×Ñ"ËÛ1óë± Ý1µù.“û‘‹D ýó Õ­‰ +“1Ý5±WÇ5ñ)—Ñ5¥ƒË1ÝÁ•¡;ƒ³#)ÿãÙ4½<™ Ñ Ë«%Á‹ ñ8Õ¯1‰÷» +ó·á ý2§Ù6­$¿› …-±#½Û+Ýý#™¹+ïËBó + …8ùÛ:‰D‹ÉC‹6•ß ïãÉ'Í ƒAç,™ë‹Ë÷ é‘$‘'ñH÷+Ãá#Û•ù"¡ÇŸ&…MÃÕÙ·Ù0Ï‰Ÿ&ÿ©!$Ý·:·Ýßõ,Á£JóÇ.“=¹%Ó±7Ù@Ë/ûG³ƒ?¹ýý3÷éÍ“£ÕÉÇõ*ÿÅ …Ù$‰ ÏËDÅ!á…=׉LÃ4Å£ ã­·?Á×"ËÿÛ2ƒÇ +Í$×.ïAëË‘ï+™‘ +Ï“@Ñ+ó“7å¿(¯§…Hÿ Å͝­ñÁ“ Ó5—#…õL“Kí•A÷!‹%-¿ -¹NŸ9Ï‹«Áƒ%Ÿ4û7©@±'Õ +—>¯Ë‡…ó ÇÕû(¥8Ÿåå.ÇÉß +±?™Ù9ßA-‡!£Ñ0‰¯í +“/Ó»:½*½ç@ûóéçש)ߥÕGÿ™õç£Hÿ½<ÉDçÍ'‰*‹½ ‘é‰áí ÓHï&©!ýÃïSÓ8µñ9·6¹ë6*£ ­Ý ÷¥á«9õÅé=ë+Í ¯¿á5ûÛ9åG•9›&Dµ·&ã0û £&í(¹ =ÿ³‘:•™9ÿ&‹‘Û«4½F‘é ó<µÅDïE¡&­ Ã$ÏD¿™/Mé ồF™&‹ +‡ —B‘>ù ǯJë£!ßç…IŸÛé%A™ ßÿ+·½ ű »#ß›OÃ)ï‘<é÷ݹ7Ï·Ÿ +Í,¿'ã•Cç#4Á$Óãù×<Ï"Õ*¹Á¥ Ó'—Ã/Û$Ç*½³,ŸÝ±?1÷*·4û ¿ïù#Õ:µ7íßIñÑ$í0çé»O)ǝ¡õ å×¹åM£ ñëóó?» +•µ »6Ñ™ù¥E…7«4ÕÏ¡7Ëã>×#ß±MéOÑÉD«¯5ï©»&“>¥4ß1/ß6Ý,ƒ³‰ñ*«;ÿ@ç%¥¡ ›"‰'³ëA… ¯‹1µHÇËAï¥ ›ÿ ½åÍ?éJ•IÓ,ó +õ/ã­+£ç$ù« ÷L$Ÿ« ³9ý ÿ‹‡ ‰)£(¯!óD·ï¹Í±åEÉ—&ç+U½3ʼn=ëÍ)ï7ɉÿ¿.‡Ÿ$«µ)éñ3á=¯ û +“ó"߁6ñåÿõ/ÁÙ›½óµ‹½Û4­·ÛùŸá/™Í¹ ± ÿ'¥'$¯Õ2©5!å*ýIý‹$ÍÝïÅ \ No newline at end of file diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.nrm b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.nrm new file mode 100755 index 0000000..f756001 --- /dev/null +++ b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.nrm @@ -0,0 +1 @@ +NRMÿ|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||vvvvv|vw|yvvyyv|v|||v|vvy|vvyvvvvv|v||vvvvvv|vvvvvvyvv|v|vyv|vvvv|vv|vvvvvvvvvv|||yv|v||vv|v|vvvwvvvy|vv|vvvvvvvvv|vv|vvvvv|vvv||vvvvvvyyvvvv|vvvv|vvvvv|vvv|vv|v|v|v||||vvvvvvvv|v|vv|vvv|vvv||vvvy||vw||yvyvvvvvvvvvvvvv||vvv||v|vvvv|yyv||vvyvvvvvvvvyv||vvyvv|vv|vvvv|vvvvvv|vyvvv||v|vvvvvv|||y|v|vvvvv|||v|yvv|v|wvvy|vvvvvv|||yv|vvyvv|vv|vvvv|vv|vvvv||w|vv|vvyv|vyvvvvvvvvvvvv|vv||vvvvvyv|xvv|vv|yv|vv|vvvvvv|vvvyvyv|vv|vvvvvvvv|v|vvv|v|yvvv|vvvvvvv|vvvv||yvvvvvvvwvw||v|y|vyv||vvvvvvvvyv|||vv|vvvvvyy|vvvvv|vvvvvv|vv|v|yv|vvvwvv|v|vvv|vvv|vvvvvvv|vyvvvvvwv|vyvvv||v|vv|vvvvvvvvv|wvvv|vvvvv||v|vvvvvvvvvyv|v||wvvvvv|vyvvv|||vv||vvvvwvvvvvvvv||vvvvwvvvvvv|yv|vv|vv|vv|vvvvyvvvv|vvvyyyvvv|vv|vvvvvv||vvvv|vvv|v|||v|v||vv|vvvvvvvv||vv|vvv|vvvvvvy|vvv|vyvvvv||v||v|vvwvv||vv|v|v|vvyvv|vv||vvv||vvvv||vvv||||vwvvvvv|vvvvvvvv|v|v|||vvvyvvv|vvvv|||vv|vvvvvwvv|vvwv|v|v|vvyyvvvvv|v|v|||vyvv|vvv|vwvwvvvv|v|v|vvvvvv||vvvyv|vvvv|vvvvvvv|||vvvvvy|yv|v||vvv|vvvv||vv|v||vvv|||v|vvvv||vv|vvvvv|vvvvvv|vv|vvvv|||vvvv|vvvyvv||vvvv||v|vvvvvvvy|y|vv||vvv|v|v|v|yvvvvvvvv|||v||vvv||v||vv|vvvv|||v||v||v|vvvyv|vvvvwvv|||v|vv||vv|vvvvvvvv||v|vvvv|yvvvvv|yvvvy|v|vvvv|vvvvvvvv|||vvvvvvvyv|vvvvvv||vvvvvvvvvvvvvvvvv|vvyv|vwwvvv|vvvvvvyvv|v|vvvy|||vvvv||vwvwv|vvvvvvyyy|vvwvvvvvv|vvy|w|vvvvvvvvv||vvv|vv||vv|vvyv|v||vvyvv|v|v|vvvwvvvvyv|vvvxvvvv|vv|vv|vvv|vvv||vvv|yvvwvvwvvvvvv|vv|vwvvvvvvvvv||vvv|vy||v||v|vyvvvvvvvwvy|vvwv|v||vvvv|vvv|v||vvyvv|v|v|v||v|vvv||vvvv|yvv|vywwvvvvvvwvvvvvv||v|vvvv|v|v|vvv|yvv|v|v|vvvvv|y|||vvvvvvvvvvvvvvvvvy|yy|vvvvvyvvvvvvvvvvvv|y||v|vvvvvvvvvvvwv|vvv|vvv|vvvvvv|v||vvv|vvvv|y|vvyvvvvy|vvvvv||vvvvv|vvvvvvvy||vvvv|vvvyvvv|vvyv|yv|v|vwv|v|vvvv|v|vvvv||v|vv|vvvv||vvvvvwvvv|v|vvv||vv|vv|vvvyvv|wvvvv|||||vvvv|yv|vv||vvv|vvv|yvvyvv|v|vvvvvvvvvvyvvvvvyvv||vvv|vvy|vvv|vvwv|vvvvvv|vvvvvvv|v|vvvv|vvvvv||yvvvvvvvvv|y||vvvvvvvvvv|vv|vvv|||vv|vwyvvvv|wvvv|vvv|vwvy|v|w|v|vvyv|v|vwyv|yvv|v|vvvvvvw||v||vv|vvv|vvvvvvvvvwvvvv||||v|||||v|yv|vvv|vv|yv|v|vvvv||vvyvvv|||vvvv|v|vvy|v|vwvv|v|yv|vv||v|v|y|vvvv|v|v|v|v|vvvv|vvvvy|vv||y|vw||vvw|v|vvvvv|vvwv|vv|vy|vvvvvvvvvv|yvwv||vv|vvvv|vvvvwv||v|vy|v|v|vvv|vvv|vvvv||y|vvvv|vvv|vv|v|||vvvvv|wy|vvvvvv||vvvyvvvvvy||v||vv|||v||vvvvyvvvvvvvvwv|v||yv||vvvv|v||vvvy|vv||vyyvyvv||vvv|vvvv|vvv|vvvvv|v|v|vv||vvvv|vvv|vvvvvvvyv|||vvvy|vvvvy|v|vvv||vyvvvvvyvvvv|vwvvw||vvvvvvvvvyvwvv|v|vvvvvv|vv||y|vv||vvv|y||vvv||||vvvy|vvv|vwyv|yvvvv|y|vv|||vvvvv|vvyvvv|v|||vvvvvvvvvvvvvvvv|vyvvvvv|v|vvvvv|v|vvvvvvvvvvvv|yw|wyvvv||vv|||vv||vyvv|v|vv|vv|vvvyvvvvvvvyvv|vvvvvvvvvvw|v||v||v|vvv|vvv||vvv|vvv|vvvv|vyvyvvyvvv|vvvvvvv||vvvvv|vv|vvvvvv|v||vvvvvvv||vwvvvvvvvvv|vvvyv|vv|vv||vvvv|v|v|yv|vvvwvyvv|vvvvv|w||vvyvv|vy|vvyvyvv|vvvvy|wv|vyyvvvv|v|vvy|vvv|yy|vv|vv||wvv|vvvvvvvv|||yvv||vv|v|vvy|vvvvvvvv||vvvvvv|vvv|vvv|v|vvvvv|vvv|vvv||w|vv|v||yv|v|v|vv|yvvvvv|vyyvvvv|vvyvvv|vvw|vv|vwyvy|vv|vvvvvvwvvv|yvvvvvvv|vvyvvvvvvvv|vvvwv|vv|yvvvvvvwvyv||vvvvv|y||||v|vvvvvvvvvv||yv|vv|||||||vv|vvv|||vvvvvv|vvvvvv|yvvvvvv|vvvvvvvvvyvyv||v|v|v|v|vvvv|vv||||v|v||vwvvv|v|v|||vv|vvvv|||v|vvyv|||vyvvvvvyv|vv||vvvvyvvvv||||v|vy||v|v|vv|||vvvvvvv|vvv|vvv||vvwvvvv||yv|vvv||y|v|vvv|vvvv|vvvvvvv||vv|vvv||v|vyvyv|vwv|v|v|vv|vv|yvvvv|v|vvv|vv|vv|vvyvvvvvvvvv|vyvyyvvvv|vvvvvv||vvv|vvvv||v||wvvvvvvvvvvvvvvvvvvv|vy|vyv|y|wvyw|||vw|vvv|vvvvv||vvyvv|vv|vv|||vvvvy|vv||v|vv||v||vvw|vvv|vvvvv|||vvvvvv|vv|v|vv||v||vvwvvvvvvvvv|vvvvvv|yv||vv|vvv|v|v||wvw|vw|vv|vvvv|vv|yvvvvvvvvv|vvv|vvvvvvvwvvvv|vv||v||wvvvvvv|vvvvvvvvv|y|vv|vvvvv|vvwv||v|vv|vvvv|v|vvvvvv|vyv|v|vvvvvvyv|vvy|vv|vvvvvvv|vvvv|||v||vvvvvvvvv|vvvvvvvvvwvv|v|yyw|vv|wvv|v|yvvx|vvy|vvvvyvvwvvvyvvvvvv|vvvvvvvvvvv|v|v||v|vvvyvvvvvv|||vvyw|y|v|v|v||vv|vv|v|vvvyvyvvvv|vvvv|yyv|vvvvvyvvvvvv|vvvv|vvyvvvvvvvvvvv|yvvvy|vvvv|yv|||yw|v|vv|vv|vwvyvvvvvv|v|vvvyvv||yvvvvv|vvvvvvvvwvvvv|vvvvv|vvvwyvvvvv|v|yvvvvvvvvv|v||v|vv||w||vvvv|v||||vv|v||vv|vv|v||v|v|vvv|vvvvv||v||vvvv|vvvv||v|v|vvvvvyvvyvvvv|||v|vvvvvvwv|vvy|vvvvwvvv|v|vvvyvvvvvvvvvy|y|vvwwyvvvvv|v||vvwvvvv|vvvvvvvvv|vvwvv|v|vvvv|vvvvv|vvvvv|vvyvvvvvvvyvvvyvvv|vv|v|vvvvvvvv|vvv|vvvv|vvvvvyv|wvvvvvv|vvv|yvvvvv|||v|vvv|vvvyyv||vvvvvvvvv|yvvv|vv||vvvvvv|w|vvvvv|y|v|vvvvw|vvvvvvvvvv|v|vvv||v|vv|vvvyvvyv|v||vvyvvvv|vvvvvv||v|vv|vwv|vv|y|vvvv|v|vw||v|vyvy|v|vyvvvvvvv|vvvv||vvvvvyvvvvv|vv|y||v||vvvvv|v|ywvvv|vvv|v|vvvwvv|vvv|vvvvvy|vyvvvvv|||v|vv|y|v|v|vvvv|vy||v|||vv|||vv|vvvvvvvvvvvv|vv|vvvvvwvvvvv|v||vvvvvvv|vvvv|||vv|||vvvvvvv||v|vwvv|vwv||vvy||vy||||vv|ywvvvv|||vvwv||v||vyvyvvvv|vvvv|v||vv|wvvv|v|vvvv|vyvvvvwvvvyvy||||v|yvv|vyv||yvvvvv|vvv|v|vvv||vvvvv|vvv|vvvvvwvv|y|vvvvvvv|vv|vvvvwvvvvvvvvvvv|vvvyvvv|vwv|vvv|yw|vv|yyv|yvvvvvvv|y|vvvvv|vvvv|vyvy||||v|vwv|yvv|vvvvvwxvv||vvw|v|vvv|vvvv|v|vv|vvvvvvvv||||vv|vvv|v|vy|vvvv|vvvvvvvvv|v|vvvwvvv|y|vvvvvyvvvvv|wyyvvvv|v|vvvvvv||||vvv|||vvvvvvvv|vwvwvy|vwv|yvy|v|yvvvvvv|v|vvvvvvvvv|vvvv|wvvvvvv|vvvvvvvv|vvv|v|yvvvv|vw|v||vvyv|vv|vvvvv|y|wy|v|vvvv|||vvvvyvvvvv|vvv|vvvv|vv|vv||v|||||vv|vvvv|vvv|w|v|vvv|vvvvvv|vvvv|vvvvvvvvv|v|yyv|vv||vvv|w|y|v|y|vvv|vvvvvvvv|vvvvvwvvv|vvyvvv|yv|v|vvv|vvv|v|v|v|v|||v|vv||v||vy|vvvv|||vvvyvvvvyv|vvvv|vvvvvv|||vvvvvvvvvv||vvvv|vv|vvvv|vv|yv|vvvvvvvvvy|vv|vy|vvvv|v|vvvvw||vv||y|wv||v|vvvvv|y||v|vvvvv|vyyyvyvv||vv|v|v|v|vv|vvv|vv|vyv|v|vyyvv|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| \ No newline at end of file diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.prx b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.prx new file mode 100755 index 0000000..37b83ae Binary files /dev/null and b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.prx differ diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.tii b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.tii new file mode 100755 index 0000000..a21e151 Binary files /dev/null and b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.tii differ diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.tis b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.tis new file mode 100755 index 0000000..cec602b Binary files /dev/null and b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_0.tis differ diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/segments.gen b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/segments.gen new file mode 100755 index 0000000..63a7ec9 Binary files /dev/null and b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/segments.gen differ diff --git a/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/segments_1 b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/segments_1 new file mode 100755 index 0000000..b6775a6 Binary files /dev/null and b/WCudaMSE/.recommenders/index/http___download_eclipse_org_recommenders_models_luna_/segments_1 differ diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/_remote.repositories b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/_remote.repositories new file mode 100755 index 0000000..5eceb23 --- /dev/null +++ b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/_remote.repositories @@ -0,0 +1,3 @@ +#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice. +#Fri Jul 18 15:59:52 CEST 2014 +jre-1.0.0-20140604.182659-5-ovrm.zip>models= diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/jre-1.0.0-20140604.182326-1-call.zip.lastUpdated b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/jre-1.0.0-20140604.182326-1-call.zip.lastUpdated new file mode 100755 index 0000000..a5f6437 --- /dev/null +++ b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/jre-1.0.0-20140604.182326-1-call.zip.lastUpdated @@ -0,0 +1,4 @@ +#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice. +#Fri Aug 01 12:32:22 CEST 2014 +@default-models-http\://download.eclipse.org/recommenders/models/luna/.lastUpdated=1406889142749 +http\://download.eclipse.org/recommenders/models/luna/.error=Could not transfer artifact jre\:jre\:zip\:call\:1.0.0-20140604.182326-1 from/to models (http\://download.eclipse.org/recommenders/models/luna/)\: Connection to http\://download.eclipse.org refused diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/jre-1.0.0-20140604.182659-5-ovrm.zip b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/jre-1.0.0-20140604.182659-5-ovrm.zip new file mode 100755 index 0000000..b95d9b5 Binary files /dev/null and b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/jre-1.0.0-20140604.182659-5-ovrm.zip differ diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/maven-metadata-models.xml b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/maven-metadata-models.xml new file mode 100755 index 0000000..df7ebb9 --- /dev/null +++ b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/maven-metadata-models.xml @@ -0,0 +1,45 @@ + + + jre + jre + 1.0.0-SNAPSHOT + + + 20140604.182659 + 5 + + 20140604182659 + + + ovrm + zip + 1.0.0-20140604.182659-5 + 20140604182659 + + + ovrp + zip + 1.0.0-20140604.182646-4 + 20140604182646 + + + ovrd + zip + 1.0.0-20140604.182632-3 + 20140604182632 + + + selfc + zip + 1.0.0-20140604.182613-2 + 20140604182613 + + + call + zip + 1.0.0-20140604.182326-1 + 20140604182326 + + + + diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/resolver-status.properties b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/resolver-status.properties new file mode 100755 index 0000000..88cb9f2 --- /dev/null +++ b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/jre/jre/1.0.0-SNAPSHOT/resolver-status.properties @@ -0,0 +1,4 @@ +#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice. +#Fri Aug 01 12:32:21 CEST 2014 +maven-metadata-models.xml/@default-models-http\://download.eclipse.org/recommenders/models/luna/.lastUpdated=1406889141718 +maven-metadata-models.xml.error=Could not transfer metadata jre\:jre\:1.0.0-SNAPSHOT/maven-metadata.xml from/to models (http\://download.eclipse.org/recommenders/models/luna/)\: Connection to http\://download.eclipse.org refused diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/_remote.repositories b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/_remote.repositories new file mode 100755 index 0000000..8c805de --- /dev/null +++ b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/_remote.repositories @@ -0,0 +1,3 @@ +#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice. +#Fri Jul 18 15:59:49 CEST 2014 +index-0.0.0-20140605.014212-1.zip>models= diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/index-0.0.0-20140605.014212-1.zip b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/index-0.0.0-20140605.014212-1.zip new file mode 100755 index 0000000..1bd4917 Binary files /dev/null and b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/index-0.0.0-20140605.014212-1.zip differ diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/maven-metadata-models.xml b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/maven-metadata-models.xml new file mode 100755 index 0000000..9f95b90 --- /dev/null +++ b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/maven-metadata-models.xml @@ -0,0 +1,20 @@ + + + org.eclipse.recommenders + index + 0.0.0-SNAPSHOT + + + 20140605.014212 + 1 + + 20140605014212 + + + zip + 0.0.0-20140605.014212-1 + 20140605014212 + + + + diff --git a/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/resolver-status.properties b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/resolver-status.properties new file mode 100755 index 0000000..ed6e9d8 --- /dev/null +++ b/WCudaMSE/.recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/resolver-status.properties @@ -0,0 +1,3 @@ +#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice. +#Fri Jul 18 15:59:47 CEST 2014 +maven-metadata-models.xml.lastUpdated=1405691987173 diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/.classpath b/WCudaMSE/API_Bilat_Canvas_JNI/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/.project b/WCudaMSE/API_Bilat_Canvas_JNI/.project new file mode 100755 index 0000000..2a89457 --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Canvas_JNI + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/BIN/.project b/WCudaMSE/API_Bilat_Canvas_JNI/BIN/.project new file mode 100755 index 0000000..b497573 --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Canvas_JNI + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/BIN/gcc/libBilat_Canvas_JNI_001_64.so b/WCudaMSE/API_Bilat_Canvas_JNI/BIN/gcc/libBilat_Canvas_JNI_001_64.so new file mode 100755 index 0000000..ef3bbc2 Binary files /dev/null and b/WCudaMSE/API_Bilat_Canvas_JNI/BIN/gcc/libBilat_Canvas_JNI_001_64.so differ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/BIN/gcc_arm/libBilat_Canvas_JNI_001_ARM.so b/WCudaMSE/API_Bilat_Canvas_JNI/BIN/gcc_arm/libBilat_Canvas_JNI_001_ARM.so new file mode 100755 index 0000000..6f1a113 Binary files /dev/null and b/WCudaMSE/API_Bilat_Canvas_JNI/BIN/gcc_arm/libBilat_Canvas_JNI_001_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/BIN/visual/Bilat_Canvas_JNI_001_64.dll b/WCudaMSE/API_Bilat_Canvas_JNI/BIN/visual/Bilat_Canvas_JNI_001_64.dll new file mode 100755 index 0000000..6826f84 Binary files /dev/null and b/WCudaMSE/API_Bilat_Canvas_JNI/BIN/visual/Bilat_Canvas_JNI_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/INC/CanvasNative.h b/WCudaMSE/API_Bilat_Canvas_JNI/INC/CanvasNative.h new file mode 100755 index 0000000..725c157 --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/INC/CanvasNative.h @@ -0,0 +1,112 @@ +#ifndef CANVAS_NATIVE_H +#define CANVAS_NATIVE_H +#include "envCanvasJNI.h" +#include "Displayable_A.h" +#include "Panel_A.h" +#include "Context.h" +#include +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_CANVAS_JNI CanvasNative: public Panel_A + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + CanvasNative(Displayable_A* ptrDisplayable); + + virtual ~CanvasNative(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + virtual void init(JNIEnv *env, jobject canvas); + + virtual void reshape(int w, int h, JNIEnv *env, jobject canvas); + + virtual void display(JNIEnv *env, jobject canvas); + + virtual void release(JNIEnv *env, jobject canvas); + + virtual void onKeyPressed(const KeyEvent &keyEvent, JNIEnv *env, jobject canvas); + + virtual void onMousePressed(const MouseEvent &e, JNIEnv *env, jobject canvas); + + virtual void onMouseReleased(const MouseEvent &e, JNIEnv *env, jobject canvas); + + virtual void onMouseMoved(const MouseEvent &e, JNIEnv *env, jobject canvas); + + virtual void onMouseWheel(const MouseWheelEvent &e, JNIEnv *env, jobject canvas); + + protected: + + virtual void onPaintGL(JNIEnv *env, jobject canvas); + + void repaint(JNIEnv *env, jobject canvas); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + public: + + virtual TextRenderer_A* getTextRenderer() + { + return txtRender; + } + + virtual FontLoader_A* getFontLoader() + { + return fontLoader; + } + + Displayable_A* getDisplayable() + { + return ptrDisplayable; + } + + inline int getID() const + { + return id; + } + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + public: + inline void setID(int id) + { + this->id = id; + } + + private: + + //Inputs + Displayable_A* ptrDisplayable; + + // Tools + int id; + TextRenderer_A* txtRender; + FontLoader_A* fontLoader; + bool isInit; + Context* ptrContext; + + static std::atomic_int ID_COUNTER; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/INC/CanvasNativeService.h b/WCudaMSE/API_Bilat_Canvas_JNI/INC/CanvasNativeService.h new file mode 100755 index 0000000..477b78a --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/INC/CanvasNativeService.h @@ -0,0 +1,78 @@ +#ifndef CANVAS_NATIVE_SERVICE_H +#define CANVAS_NATIVE_SERVICE_H +#include "envCanvasJNI.h" +#include "CanvasNative.h" +#include + +using std::map; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ +/** + * Singleton + * Not thread Safe! + */ +class CBI_CANVAS_JNI CanvasNativeService + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + private: + + CanvasNativeService(); + + CanvasNativeService(const CanvasNativeService& src); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + public: + + virtual ~CanvasNativeService(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + int registerCanvasNative(CanvasNative* ptrCanvasNative); + + void unregister(int id); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public : + + CanvasNative* getCanvasNative(int id); + + static CanvasNativeService* getInstance(); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + //Tools + map mapIdNativeCanvas; + + //Singleton + static CanvasNativeService* INSTANCE; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/INC/Scenario.h b/WCudaMSE/API_Bilat_Canvas_JNI/INC/Scenario.h new file mode 100755 index 0000000..acf5c94 --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/INC/Scenario.h @@ -0,0 +1,65 @@ +#ifndef SCENARIO_H_ +#define SCENARIO_H_ + +#include "envCanvasJNI.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Un scénario - Un CanvasNative + * + * getCanvasNativeID doit être redefinie avec un canvasNativeID valide. + */ +class CBI_CANVAS_JNI Scenario + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + Scenario(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~Scenario(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * Doit être appelé après avoir construit le scénario + * MyScenario* ptrMyScenario=new MyScenario(); + * ptrMyScenario->registry(); + */ + void registry(); + + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + + /** + * Il faut retourner impérativement le canvasNativeID d'un CanvasNative précèdement instancié. + */ + virtual int getCanvasNativeID()=0; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/INC/ScenarioManager.h b/WCudaMSE/API_Bilat_Canvas_JNI/INC/ScenarioManager.h new file mode 100755 index 0000000..39b49d7 --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/INC/ScenarioManager.h @@ -0,0 +1,77 @@ +#ifndef SCENARIOMANAGER_H_ +#define SCENARIOMANAGER_H_ +#include "envCanvasJNI.h" +#include "Scenario.h" + +#include +using std::map; + +#include +//#include +using std::mutex; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +// Probleme: + // La destruction de l'objet Scenario + // + // Solution: + // Enregistrer cette instance dans le ScenarioManager + // + // Implementation: + // ScenarioManager est une map de type + // + // Principe: + // + // Lorsque cote java la methode finalize est appeler sur la canvasJava, l'id du CanvasNative associe est passer en natif. + // Ce canvasNativeID est passer au ScenarioManager qui se charge de d�rtuire le secenario associ� � cet id + // + // ScenarioManager::getInstance()->unregister(canvasNativeID) // efface le scenario, fait automatiquement, transparent pour l'utilisateur + // + // Conclusion: + // Il est necessaire de registrer tout nouveau scenario! + // Ceci se fait en appelant la methode d'instance register sur votre scenario apr�s son instanciation + // + // myScenarion->register() + // + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_CANVAS_JNI ScenarioManager + { + public: + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~ScenarioManager(); + + static ScenarioManager* getInstance(); + + void registerScenario(Scenario* ptrScenario); + + void unregister(int canvasNativeID); + + Scenario* getScenario(int canvasNativeID); + + private: + ScenarioManager(); + private: + //Tools + map mapPanelIDImageScenario; + mutex mutexMap; + + // Singleton + static ScenarioManager* instance; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/INC/envCanvasJNI.h b/WCudaMSE/API_Bilat_Canvas_JNI/INC/envCanvasJNI.h new file mode 100755 index 0000000..66f76a7 --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/INC/envCanvasJNI.h @@ -0,0 +1,28 @@ +/** + * Bilat_Canvas_JNI + * + * version : 001 + * + * Cédric Bilat cedric.bilat@he-arc.ch + * Stähli Joaquim joaquim.stahli@he-arc.ch + */ + +#ifndef ENV_CANVAS_JNI_H +#define ENV_CANVAS_JNI_H + +#include "dllHelper.h" + +#ifdef CBI_CANVAS_JNI_DLL + #ifdef CBI_CANVAS_JNI_EXPORT + #define CBI_CANVAS_JNI HELPER_DLL_EXPORT + #else + #define CBI_CANVAS_JNI HELPER_DLL_IMPORT + #endif + #define CBI_CANVAS_JNI_LOCAL HELPER_DLL_LOCAL +#else + #define CBI_CANVAS_JNI + #define CBI_CANVAS_JNI_LOCAL +#endif + + +#endif //ENV_CANVAS_JNI_H diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/INC/private/Context.h b/WCudaMSE/API_Bilat_Canvas_JNI/INC/private/Context.h new file mode 100755 index 0000000..3e7fe6f --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/INC/private/Context.h @@ -0,0 +1,32 @@ +#ifndef CONTEXT_H_ +#define CONTEXT_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Context + { + public: + virtual ~Context() + { + + } + + virtual void makeCurrent()=0; + + virtual void release()=0; + + virtual void swapBuffer()=0; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/JAR/Bilat_Canvas_JNI.jar b/WCudaMSE/API_Bilat_Canvas_JNI/JAR/Bilat_Canvas_JNI.jar new file mode 100755 index 0000000..14d7055 Binary files /dev/null and b/WCudaMSE/API_Bilat_Canvas_JNI/JAR/Bilat_Canvas_JNI.jar differ diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/LIB/visual/Bilat_Canvas_JNI_001_64.lib b/WCudaMSE/API_Bilat_Canvas_JNI/LIB/visual/Bilat_Canvas_JNI_001_64.lib new file mode 100755 index 0000000..e9a3a46 Binary files /dev/null and b/WCudaMSE/API_Bilat_Canvas_JNI/LIB/visual/Bilat_Canvas_JNI_001_64.lib differ diff --git a/WCudaMSE/API_Bilat_DLL_Tools/.classpath b/WCudaMSE/API_Bilat_DLL_Tools/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_DLL_Tools/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_DLL_Tools/.project b/WCudaMSE/API_Bilat_DLL_Tools/.project new file mode 100755 index 0000000..6c42fb1 --- /dev/null +++ b/WCudaMSE/API_Bilat_DLL_Tools/.project @@ -0,0 +1,17 @@ + + + API_Bilat_DLL_Tools + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_DLL_Tools/INC/dllHelper.h b/WCudaMSE/API_Bilat_DLL_Tools/INC/dllHelper.h new file mode 100755 index 0000000..50a9b5e --- /dev/null +++ b/WCudaMSE/API_Bilat_DLL_Tools/INC/dllHelper.h @@ -0,0 +1,21 @@ +#ifndef DLL_HELPER_H +#define DLL_HELPER_H + +// Generic helper definitions for shared library support +#if defined _WIN32 || defined __CYGWIN__ + #define HELPER_DLL_IMPORT __declspec(dllimport) + #define HELPER_DLL_EXPORT __declspec(dllexport) + #define HELPER_DLL_LOCAL +#else + #if __GNUC__ >= 4 + #define HELPER_DLL_IMPORT __attribute__ ((visibility ("default"))) + #define HELPER_DLL_EXPORT __attribute__ ((visibility ("default"))) + #define HELPER_DLL_LOCAL __attribute__ ((visibility ("hidden"))) + #else + #define HELPER_DLL_IMPORT + #define HELPER_DLL_EXPORT + #define HELPER_DLL_LOCAL + #endif +#endif + +#endif /*DLL_HELPER_H*/ diff --git a/WCudaMSE/API_Bilat_Displayable/.classpath b/WCudaMSE/API_Bilat_Displayable/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_Displayable/.project b/WCudaMSE/API_Bilat_Displayable/.project new file mode 100755 index 0000000..00ffc77 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Displayable + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Displayable/BIN/.project b/WCudaMSE/API_Bilat_Displayable/BIN/.project new file mode 100755 index 0000000..00ffc77 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Displayable + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Displayable/BIN/gcc/libBilat_Displayable_004_64.so b/WCudaMSE/API_Bilat_Displayable/BIN/gcc/libBilat_Displayable_004_64.so new file mode 100755 index 0000000..d95815d Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/BIN/gcc/libBilat_Displayable_004_64.so differ diff --git a/WCudaMSE/API_Bilat_Displayable/BIN/gcc_arm/libBilat_Displayable_004_ARM.so b/WCudaMSE/API_Bilat_Displayable/BIN/gcc_arm/libBilat_Displayable_004_ARM.so new file mode 100755 index 0000000..98cbc88 Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/BIN/gcc_arm/libBilat_Displayable_004_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Displayable/BIN/intelLinux/libBilat_Displayable_004_64.so b/WCudaMSE/API_Bilat_Displayable/BIN/intelLinux/libBilat_Displayable_004_64.so new file mode 100755 index 0000000..15b4ad4 Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/BIN/intelLinux/libBilat_Displayable_004_64.so differ diff --git a/WCudaMSE/API_Bilat_Displayable/BIN/intelWin/Bilat_Displayable_004_64.dll b/WCudaMSE/API_Bilat_Displayable/BIN/intelWin/Bilat_Displayable_004_64.dll new file mode 100755 index 0000000..2d1feac Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/BIN/intelWin/Bilat_Displayable_004_64.dll differ diff --git a/WCudaMSE/API_Bilat_Displayable/BIN/mingw/libBilat_Displayable_004_64.dll b/WCudaMSE/API_Bilat_Displayable/BIN/mingw/libBilat_Displayable_004_64.dll new file mode 100755 index 0000000..d4cb407 Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/BIN/mingw/libBilat_Displayable_004_64.dll differ diff --git a/WCudaMSE/API_Bilat_Displayable/BIN/visual/Bilat_Displayable_004_64.dll b/WCudaMSE/API_Bilat_Displayable/BIN/visual/Bilat_Displayable_004_64.dll new file mode 100755 index 0000000..74e922e Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/BIN/visual/Bilat_Displayable_004_64.dll differ diff --git a/WCudaMSE/API_Bilat_Displayable/DOC/Bilat_Displayable_004_64.doc.tar.gz b/WCudaMSE/API_Bilat_Displayable/DOC/Bilat_Displayable_004_64.doc.tar.gz new file mode 100755 index 0000000..fd642d2 Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/DOC/Bilat_Displayable_004_64.doc.tar.gz differ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/Displayable_A.h b/WCudaMSE/API_Bilat_Displayable/INC/Displayable_A.h new file mode 100755 index 0000000..b42da42 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/Displayable_A.h @@ -0,0 +1,80 @@ +#ifndef DISPLAYABLE_A_H +#define DISPLAYABLE_A_H + +/** + * version : 0.0.2 + * Date 02.06.2014 + * + * v 0.0.2 : remove de la méthode repaint + */ +#include "envBilatDisplayable.h" +#include "KeyListener_I.h" +#include "MouseListener_I.h" +#include "TextRenderer_A.h" +#include "FPSCounter.h" +#include "Panel_A.h" +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE Displayable_A + { + public: + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + Displayable_A(); + virtual ~Displayable_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + void displayRoot(Panel_A &panel); + virtual void init(Panel_A &panel)=0; + virtual void reshape(Panel_A &panel, int w, int h)=0; + virtual void display(Panel_A &panel)=0; + virtual void release(Panel_A &panel)=0; + + /** + * Non! + * Car sinon il faut cr�er un Displayable par "Context" (par exemple un pour GLUT et un pour X11) + * S1 ) setTextRenderer(TextRenderer* ...) + * S2 ) display(TextRenderer* ...) + */ + //virtual TextRenderer_A* getTextRenderer() = 0; + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + KeyListener_I* getKeyListener(); + MouseListener_I* getMouseListener(); + int getFPS() const; + + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setKeyListener(KeyListener_I* ptrKeyListener); + + void setMouseListener(MouseListener_I* ptrMouseListener); + private: + KeyListener_I* ptrKeyListener; + MouseListener_I* ptrMouseListener; + FPSCounter fpsCounter; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/FPSCounter.h b/WCudaMSE/API_Bilat_Displayable/INC/FPSCounter.h new file mode 100755 index 0000000..54a7a43 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/FPSCounter.h @@ -0,0 +1,27 @@ +#ifndef FPS_COUNTER_H +#define FPS_COUNTER_H + +#include "envBilatDisplayable.h" +#include + +class CBI_DISPLAYABLE FPSCounter + { + public: + FPSCounter(); + + virtual ~FPSCounter(); + + void frame(); + + int getFPS() const; + + private: + //Output + int fps; + + // Tools + int frameCount; + time_t startTimeMs; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_Displayable/INC/FontLoader_A.h b/WCudaMSE/API_Bilat_Displayable/INC/FontLoader_A.h new file mode 100755 index 0000000..d5ad325 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/FontLoader_A.h @@ -0,0 +1,44 @@ +#ifndef FONT_LOADER_A_H +#define FONT_LOADER_A_H + +#include "envBilatDisplayable.h" +#include "Font_A.h" + +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +enum FontType + { + BITMAP_13, + BITMAP_15, + TIMES_ROMAN_10, + TIMES_ROMAN_24, + HELVETICA_10, + HELVETICA_12, + HELVETICA_18 + }; + +class CBI_DISPLAYABLE FontLoader_A + { + public: + virtual ~FontLoader_A() + { + } + + virtual const Font_A* loadFont(string fontName) =0; + virtual const Font_A* loadFont(FontType type = HELVETICA_12) =0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/Font_A.h b/WCudaMSE/API_Bilat_Displayable/INC/Font_A.h new file mode 100755 index 0000000..ce984b3 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/Font_A.h @@ -0,0 +1,27 @@ +#ifndef FONT_A_H +#define FONT_A_H +#include "envBilatDisplayable.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE Font_A + { + public: + Font_A(int fontHeight); + virtual ~Font_A(); + + public : + int height; //height in pixel + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/InputEvent.h b/WCudaMSE/API_Bilat_Displayable/INC/InputEvent.h new file mode 100755 index 0000000..5449034 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/InputEvent.h @@ -0,0 +1,54 @@ +#ifndef INPUT_EVENT_H +#define INPUT_EVENT_H + +#include "envBilatDisplayable.h" +#include "Panel_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +enum ModifierType + { + MODIFIER_SHIFT, + MODIFIER_CTRL, + MODIFIER_ALT, + MODIFIER_NONE + }; + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE InputEvent + { + public: + InputEvent(const Panel_A &ptrPanelSource); + + InputEvent(const InputEvent& source); + + virtual ~InputEvent(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + ModifierType getModifier() const; + const Panel_A* getSource() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setModifier(ModifierType modifierType); + + private: + ModifierType modifierType; + const Panel_A* ptrPanelSource; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/KeyEvent.h b/WCudaMSE/API_Bilat_Displayable/INC/KeyEvent.h new file mode 100755 index 0000000..39b1f8a --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/KeyEvent.h @@ -0,0 +1,93 @@ +#ifndef KEY_EVENT_H +#define KEY_EVENT_H + +#include "envBilatDisplayable.h" +#include "InputEvent.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +enum SpecialKeyType + { + KEY_UNKNOWN, + KEY_F1, + KEY_F2, + KEY_F3, + KEY_F4, + KEY_F5, + KEY_F6, + KEY_F7, + KEY_F8, + KEY_F9, + KEY_F10, + KEY_F11, + KEY_F12, + KEY_LEFT, + KEY_UP, + KEY_RIGHT, + KEY_DOWN, + KEY_PAGE_UP, + KEY_PAGE_DOWN, + KEY_HOME, + KEY_END, + KEY_INSERT, + }; + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE KeyEvent: public InputEvent + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + KeyEvent(const Panel_A &ptrPanelSource); + + KeyEvent(const KeyEvent& source); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~KeyEvent(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + unsigned char getKey() const; + + SpecialKeyType getSpecialKey() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setKey(unsigned char key); + + void setSpecialKey(SpecialKeyType specialKey); + + /*--------------------------------------*\ + |* Is *| + \*-------------------------------------*/ + + bool isNumeric() const; + + bool isChar() const; + + bool isSpecial() const; + + private: + SpecialKeyType specialKey; + unsigned char key; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/KeyListener_I.h b/WCudaMSE/API_Bilat_Displayable/INC/KeyListener_I.h new file mode 100755 index 0000000..1ba93b0 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/KeyListener_I.h @@ -0,0 +1,29 @@ +#ifndef KEY_LISTENER_I_H +#define KEY_LISTENER_I_H + +#include "KeyEvent.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE KeyListener_I + { + public: + virtual ~KeyListener_I() + { + // Nothing + } + + virtual void onKeyPressed(const KeyEvent& event)=0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/MouseEvent.h b/WCudaMSE/API_Bilat_Displayable/INC/MouseEvent.h new file mode 100755 index 0000000..707bcce --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/MouseEvent.h @@ -0,0 +1,54 @@ +#ifndef MOUSE_EVENT_H +#define MOUSE_EVENT_H + +#include "InputEvent.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +enum MouseButtonType + { + MOUSE_LEFT_BUTTON, + MOUSE_RIGHT_BUTTON, + MOUSE_MIDDLE_BUTTON, + MOUSE_UNKNOWN_BUTTON + }; + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE MouseEvent: public InputEvent + { + public: + MouseEvent(const Panel_A &ptrPanelSource); + MouseEvent(const MouseEvent& source); + virtual ~MouseEvent(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + int getX() const; + int getY() const; + MouseButtonType getButtonType() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setXY(int x, int y); + void setMouseButtonType(MouseButtonType buttonType); + + private: + int x; + int y; + MouseButtonType buttonType; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/MouseListener_I.h b/WCudaMSE/API_Bilat_Displayable/INC/MouseListener_I.h new file mode 100755 index 0000000..0b460b1 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/MouseListener_I.h @@ -0,0 +1,32 @@ +#ifndef MOUSE_LISTENER_I_H +#define MOUSE_LISTENER_I_H + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +#include "MouseEvent.h" +#include "MouseWheelEvent.h" +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE MouseListener_I + { + public: + virtual ~MouseListener_I() + { + //Nothing + } + + virtual void onMouseMoved(const MouseEvent& event)=0; + virtual void onMousePressed(const MouseEvent& event)=0; + virtual void onMouseReleased(const MouseEvent& event)=0; + virtual void onMouseWheel(const MouseWheelEvent& event)=0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/MouseWheelEvent.h b/WCudaMSE/API_Bilat_Displayable/INC/MouseWheelEvent.h new file mode 100755 index 0000000..b0e917b --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/MouseWheelEvent.h @@ -0,0 +1,62 @@ +#ifndef MOUSE_WHEEL_EVENT_H +#define MOUSE_WHEEL_EVENT_H + +#include "MouseEvent.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +enum WheelDirection + { + WHEEL_POSITIVE, + WHEEL_NEGATIVE + }; + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE MouseWheelEvent: public MouseEvent + { + + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + MouseWheelEvent(const Panel_A &ptrPanelSource); + + MouseWheelEvent(const MouseWheelEvent& source); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~MouseWheelEvent(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + WheelDirection getDirection() const; + int getWheelNumber() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setDirection(WheelDirection direction); + + void setWheelNumber(int wheelNumber); + + private: + int wheelNumber; + WheelDirection direction; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/Panel_A.h b/WCudaMSE/API_Bilat_Displayable/INC/Panel_A.h new file mode 100755 index 0000000..b64a639 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/Panel_A.h @@ -0,0 +1,31 @@ +#ifndef PANEL_A_H +#define PANEL_A_H + +#include "envBilatDisplayable.h" +#include "TextRenderer_A.h" +#include "FontLoader_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE Panel_A + { + public: + virtual ~Panel_A(){} + + virtual TextRenderer_A* getTextRenderer() =0; + + virtual FontLoader_A* getFontLoader() =0; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/TextRenderer_A.h b/WCudaMSE/API_Bilat_Displayable/INC/TextRenderer_A.h new file mode 100755 index 0000000..607c289 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/TextRenderer_A.h @@ -0,0 +1,40 @@ +#ifndef TEXT_RENDERER_A_H +#define TEXT_RENDERER_A_H + +#include "envBilatDisplayable.h" +#include "Font_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_DISPLAYABLE TextRenderer_A + { +// enum VertialAlignement {TOP,CENTER,BOTTOM}; +// enum HorizontalAlignement {LEFT,CENTER,RIGHT}; + public: + virtual ~TextRenderer_A() + { + } + + virtual int charWidth(int character,const Font_A &font)=0; + + virtual int textWidth(const char* text,const Font_A &font) =0; + + virtual int textHeight(const char* text,const Font_A &font) =0; + + /** + * If font is NULL use the default font! + */ + virtual void renderText(float x, float y, const char* text, const Font_A &font)=0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Displayable/INC/envBilatDisplayable.h b/WCudaMSE/API_Bilat_Displayable/INC/envBilatDisplayable.h new file mode 100755 index 0000000..13005c1 --- /dev/null +++ b/WCudaMSE/API_Bilat_Displayable/INC/envBilatDisplayable.h @@ -0,0 +1,19 @@ +#ifndef ENV_CBI_DISPLAYABLE_H +#define ENV_CBI_DISPLAYABLE_H + +#include "dllHelper.h" + +#ifdef CBI_DISPLAYABLE_DLL // defined if API is compiled as a DLL + #ifdef CBI_DISPLAYABLE_DLL_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_DISPLAYABLE HELPER_DLL_EXPORT + #else + #define CBI_DISPLAYABLE HELPER_DLL_IMPORT + #endif + #define CBI_DISPLAYABLE_LOCAL HELPER_DLL_LOCAL +#else // GL_TOOLS_USE_DLL is not defined: this means API is a static lib. + #define CBI_DISPLAYABLE + #define CBI_DISPLAYABLE_LOCAL +#endif + + +#endif diff --git a/WCudaMSE/API_Bilat_Displayable/LIB/intelWin/Bilat_Displayable_004_64.lib b/WCudaMSE/API_Bilat_Displayable/LIB/intelWin/Bilat_Displayable_004_64.lib new file mode 100755 index 0000000..bbe4845 Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/LIB/intelWin/Bilat_Displayable_004_64.lib differ diff --git a/WCudaMSE/API_Bilat_Displayable/LIB/mingw/libBilat_Displayable_004_64.dll.a b/WCudaMSE/API_Bilat_Displayable/LIB/mingw/libBilat_Displayable_004_64.dll.a new file mode 100755 index 0000000..cb1c2d3 Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/LIB/mingw/libBilat_Displayable_004_64.dll.a differ diff --git a/WCudaMSE/API_Bilat_Displayable/LIB/visual/Bilat_Displayable_004_64.lib b/WCudaMSE/API_Bilat_Displayable/LIB/visual/Bilat_Displayable_004_64.lib new file mode 100755 index 0000000..56d2109 Binary files /dev/null and b/WCudaMSE/API_Bilat_Displayable/LIB/visual/Bilat_Displayable_004_64.lib differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/.classpath b/WCudaMSE/API_Bilat_FreeGlut_Tools/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/.project b/WCudaMSE/API_Bilat_FreeGlut_Tools/.project new file mode 100755 index 0000000..2d85428 --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/.project @@ -0,0 +1,17 @@ + + + API_Bilat_FreeGlut_Tools + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/.project b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/.project new file mode 100755 index 0000000..2d85428 --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_FreeGlut_Tools + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/gcc/libBilat_FreeGlut_Tools_006_64.so b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/gcc/libBilat_FreeGlut_Tools_006_64.so new file mode 100755 index 0000000..d6fb4c3 Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/gcc/libBilat_FreeGlut_Tools_006_64.so differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/gcc_arm/libBilat_FreeGlut_Tools_006_ARM.so b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/gcc_arm/libBilat_FreeGlut_Tools_006_ARM.so new file mode 100755 index 0000000..6606cb3 Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/gcc_arm/libBilat_FreeGlut_Tools_006_ARM.so differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/intelLinux/libBilat_FreeGlut_Tools_006_64.so b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/intelLinux/libBilat_FreeGlut_Tools_006_64.so new file mode 100755 index 0000000..af737bb Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/intelLinux/libBilat_FreeGlut_Tools_006_64.so differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/intelWin/Bilat_FreeGlut_Tools_006_64.dll b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/intelWin/Bilat_FreeGlut_Tools_006_64.dll new file mode 100755 index 0000000..19ffdbb Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/intelWin/Bilat_FreeGlut_Tools_006_64.dll differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/mingw/libBilat_FreeGlut_Tools_006_64.dll b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/mingw/libBilat_FreeGlut_Tools_006_64.dll new file mode 100755 index 0000000..97df0b1 Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/mingw/libBilat_FreeGlut_Tools_006_64.dll differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/visual/Bilat_FreeGlut_Tools_006_64.dll b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/visual/Bilat_FreeGlut_Tools_006_64.dll new file mode 100755 index 0000000..0a0bd52 Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/BIN/visual/Bilat_FreeGlut_Tools_006_64.dll differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLConfig.h b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLConfig.h new file mode 100755 index 0000000..9259b57 --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLConfig.h @@ -0,0 +1,15 @@ +#ifndef GL_CONFIG_H +#define GL_CONFIG_H + +#ifdef _WIN32 + #include + #include + #include + #include "freeglut_ext.h" +#else + #include + #include + #include +#endif + +#endif diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTCallBackTools.h b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTCallBackTools.h new file mode 100755 index 0000000..187a4ba --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTCallBackTools.h @@ -0,0 +1,66 @@ +#ifndef GLUT_CALLBACK_TOOLS_H +#define GLUT_CALLBACK_TOOLS_H + +#include "envFreeGlutTools.h" +#include "GLUTWindowManagers.h" + +#include +using std::map; + +/* + * But : + * + * Cette class permet d'affecter ses Callback a GLUT. + * + * Exemple : + * + * glutDisplay(displayGLUTWrapper); + * glutXXX(xxxGLUTWrapper); + * Probl�me : + * + * Les m�thodes callback de glut doivent obligatoirement �tre statique. On travail en objet. + * + * Solution : + * + * Pour pouvoir "utiliser" les callback glut avec le monde objet, les callback statique appeleront les m�thodes publiques des objets GLUTWindowCustomiser + * � l'aide d'une map faisant correspondre l'IdGLUT de la frame � l'objet (GLUTWindowCustomiser) correspondant. + */ +class CBI_FREEGLUT_TOOLS GLUTCallBackTools + { + public: + virtual ~GLUTCallBackTools(); + + static void affectAllCallBack(map mapIDGLUTWindow); + + /*--------------------------------------*\ + |* Callbacks *| + \*-------------------------------------*/ + + /** + * CallBack pour GLUT + * glutXXX(xxx) + */ + static void displayGLUTWrapper(); + static void reshapeGLUTWrapper(int w, int h); + static void mouseMotionGLUTWrapper(int x, int y); + static void mouseGLUTWrapper(int button, int state, int x, int y); + static void mouseWheelWrapper(int wheel, int direction, int x, int y); + static void keyboardGLUTWrapper(unsigned char key, int x, int y); + static void specialFuncGLUTWrapper(int key, int x, int y); + static void windowCloseWrapper(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + + static void idleFuncGLUTWrapper(); + + //static void postRunWrapper(); + + private: + GLUTCallBackTools(); + static void affectCallBack(); + }; + +#endif diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTFont.h b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTFont.h new file mode 100755 index 0000000..0044055 --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTFont.h @@ -0,0 +1,38 @@ +#ifndef GLUT_FONT_H +#define GLUT_FONT_H +#include "Font_A.h" +#include "envFreeGlutTools.h" +#include "GLConfig.h" + + +#include + +using std::string; + +class CBI_FREEGLUT_TOOLS GLUTFont: public Font_A + { + public: + /** + * fontWidth and fontHeight in pixels + * + * glutFont : + * + * GLUT_BITMAP_8_BY_13, 8x13 pixels + * GLUT_BITMAP_9_BY_15, 9x15 pixels + * GLUT_BITMAP_TIMES_ROMAN_10 + * GLUT_BITMAP_TIMES_ROMAN_24 + * GLUT_BITMAP_HELVETICA_10 + * GLUT_BITMAP_HELVETICA_12 + * GLUT_BITMAP_HELVETICA_18 + */ + GLUTFont(int fontHeight,void* glutFont); + GLUTFont(const GLUTFont& source); + virtual ~GLUTFont(); + + + public: + void* glutFont; + + }; + +#endif diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTFontLoader.h b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTFontLoader.h new file mode 100755 index 0000000..6d37f51 --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTFontLoader.h @@ -0,0 +1,34 @@ +#ifndef GLUT_FONT_LOADER_H +#define GLUT_FONT_LOADER_H + +#include "FontLoader_A.h" +#include "envFreeGlutTools.h" + +#include +using std::map; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_FREEGLUT_TOOLS GLUTFontLoader: public FontLoader_A + { + public: + GLUTFontLoader(); + virtual ~GLUTFontLoader(); + + virtual const Font_A* loadFont(string fontName); + virtual const Font_A* loadFont(FontType type=HELVETICA_12); + private : + map mapGlutFont; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTTextRenderers.h b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTTextRenderers.h new file mode 100755 index 0000000..7aa6f7c --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTTextRenderers.h @@ -0,0 +1,36 @@ +#ifndef GLUT_TEXT_RENDERERS_H +#define GLUT_TEXT_RENDERERS_H + +#include "TextRenderer_A.h" +#include "envFreeGlutTools.h" + +#include +using std::string; + +class CBI_FREEGLUT_TOOLS GLUTTextRenderers: public TextRenderer_A + { + public: + GLUTTextRenderers(); + virtual ~GLUTTextRenderers(); + + /*--------------------------------------*\ + |* Surcharge *| + \*-------------------------------------*/ + + int charWidth(int character, const Font_A &font); + int textWidth(const char* text, const Font_A &font); + int textHeight(const char* text, const Font_A &font); + + /** + * If font is NULL use the default font! + */ + void renderText(float x, float y, const char* text, const Font_A &font); + + + /** + * all value are relative to viewport, ie not in pixels ! + */ + //static void renderBitmapStringCentered(float x, float y, int frameWidth, int frameHight, string title, const Fonts& font); + }; + +#endif diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTWindow.h b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTWindow.h new file mode 100755 index 0000000..fe7a137 --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTWindow.h @@ -0,0 +1,200 @@ +#ifndef GLUT_WINDOW_CUSTOMISER_A_H +#define GLUT_WINDOW_CUSTOMISER_A_H + +#include "envFreeGlutTools.h" +#include "Panel_A.h" +#include "GLConfig.h" +#include "Displayable_A.h" +#include //requier compilation flags -std=c++0x +#include + +using std::string; +using std::thread; + +#define DEFAULT_GLUT_DISPLAY_MODE GLUT_DOUBLE|GLUT_DEPTH|GLUT_RGBA + +/** + * Etat d'une GLUTWindow + * A un instant t, elle ne peux avoir qu'un seul �tat, soit CREATED,RUNNING ou DESTROYED. + * L'�tat NOT_CREATED est utiliser � la construction de l'objet et fait office d'�tat "NULL" ou sans �tat + */ +enum GLUT_WINDOW_CUSTOMISER_STATE + { + NOT_CREATED, + CREATED, + RUNNING, + DESTROYED + }; + +/** + * But : + * Permet de customiser une fenetre FreeGLUT. + * + * Note : + * + * Seul les methodes init et display sont obligatoire. + * + * Attention : + * + * la fonction idleFun est appel� de mani�re fr�n�tique ! A utiliser a vos risque et p�rile. + */ +class CBI_FREEGLUT_TOOLS GLUTWindow: public Panel_A + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + GLUTWindow(Displayable_A* ptrDisplayable, string title, int width, int height, int pxFrame = 0, int pyFrame = 0, int glutDisplayMode = + DEFAULT_GLUT_DISPLAY_MODE); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~GLUTWindow(); + + /*--------------------------------------*\ + |* Callbacks *| + \*-------------------------------------*/ + + virtual void display(void); + virtual void release(void); + virtual void reshape(int w, int h); + virtual void mouseMoved(int x, int y); + virtual void mouseWheelChanged(int wheel, int direction, int x, int y); + virtual void mousePressed(int button, int state, int x, int y); + virtual void keyPressed(unsigned char key, int x, int y); + virtual void specialKeyPressed(int key, int x, int y); + virtual void closeWindow(); + + /** + * PostRendu est appeler apres GLUTWindowManager::runALL. + * + * Elle est dans son propre thread. (un thread par fen�tre). + * + * GLUTWindow ne stop pas le thread explicitement. Donc si il y a une boucle infinie, il faut utiliser l'etat de la fenetre comme crit�re d'arret. + * + * Par exemple + * + * isDestroyed + * isRunning + * + * Interuption du thread + * + * try + * { + * .... + * } + * catch (boost::thread_interrupted&) + * { + * ... + * } + */ + virtual void postRendu(); + + /** + * Fonction appel� a chaque fois que glut n'a rien � faire dans la mainLoop. + * CaD s'il n'y a pas d'�venents utilisateur (souris,clavier,joystick,repaint,etc...) + */ + virtual void idleFunc(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /** + * Don't Use ! + * Only used by GLUTWindowManagers ! + * Will start the postRenduThread + */ + void startWindow(); + + /** + * call display() + */ + void repaint() const; + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + int getFrameWidth(void) const; + + int getFrameHeight(void) const; + + int getFramePositionX(void) const; + + int getFramePositionY(void) const; + + int getGLUTDisplayMode(void) const; + + unsigned int getGLUTWindowID(void) const; + + string getTitle(void) const; + + Displayable_A* getPtrDisplayable(); + + TextRenderer_A* getTextRenderer(); + + FontLoader_A* getFontLoader(); + + /*--------------------------------------*\ + |* Is *| + \*-------------------------------------*/ + + bool isRunning() const; + + bool isCreated() const; + + bool isDestroyed() const; + + bool isDisplaying() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + /** + * Don't Use ! + * Only used by GLUTWindowManagers ! + */ + void setState(GLUT_WINDOW_CUSTOMISER_STATE state); + + /*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + private: + ModifierType getModifier(); + + void startThreadPostRendu(); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Input + Displayable_A* ptrDisplayable; + string title; + int pxFrame; + int pyFrame; + int width; + int height; + int glutDisplayMode; + + //Tools + TextRenderer_A* ptrTextRenderer; + FontLoader_A* ptrFontLoader; + int lastFPS; + bool displaying; + GLUT_WINDOW_CUSTOMISER_STATE state; + unsigned int glutWindowId; + + // Animation + thread threadPostRendu; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTWindowManagers.h b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTWindowManagers.h new file mode 100755 index 0000000..b60c4be --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/GLUTWindowManagers.h @@ -0,0 +1,77 @@ +#ifndef GLUT_WINDOW_MANAGERS_H +#define GLUT_WINDOW_MANAGERS_H + +#include "envFreeGlutTools.h" +#include "GLConfig.h" +#include "GLUTWindow.h" +#include "GLUTCallBackTools.h" + +#include + +using std::map; + +/** + * input : + * pointer to GLImage source + */ +typedef void (*FRERE_MASTER_THREAD)(void**); + +/** + * On Linux befor using GLUTWindowManagers you have to call : + * + * GLUTWindowManagers::init(&argc,argv); + * + * Otherwise OpenGL cannot open and an error message will remind you that you haven't call glutInit !! + * + */ +class CBI_FREEGLUT_TOOLS GLUTWindowManagers + { + private: + GLUTWindowManagers(); + virtual ~GLUTWindowManagers(); + public: + static void init(int argc, char** argv); + static GLUTWindowManagers* getInstance(); + /** + * Warning Bloquant tand qu'il y a au moins une GLUTWindow d'active! + * Utiliser la méthode postDisplay de la class GLUTWindowCustomiser_A pour effectuer un traitement après le 1er rendu. + * Cette méthode postDisplay est appelé dans un thread séparé du display ! + */ + void runALL(); + + /** + * Use internaly only + */ + void addWindow(GLUTWindow* glutWindow); + + /** + * Use internaly only + */ + void removeWindow(GLUTWindow* glutWindow); + + /** + * Don't use this! + * Prefering creating a Boost::thread + * then call runALL(void) + */ + void runALL(FRERE_MASTER_THREAD methodeFrereMasterThread, void** param); + + /** + * Never use! + * Used only internally! + */ + map getMapIdGlutWindow(); + + GLUTWindow* getGLUTWindow(unsigned int glutWindowID); + + private: + bool isAllDisplaying(); + static void createDummyOpenGLContext(); + + private: + map mapIdGlutWindow; + static GLUTWindowManagers* singleton; + + }; + +#endif diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/envFreeGlutTools.h b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/envFreeGlutTools.h new file mode 100755 index 0000000..ce52842 --- /dev/null +++ b/WCudaMSE/API_Bilat_FreeGlut_Tools/INC/envFreeGlutTools.h @@ -0,0 +1,28 @@ +/** + * Bilat_FreeGlut_Tools + * + * version : 002 + * + * Cédric Bilat cedric.bilat@he-arc.ch + * Stähli Joaquim joaquim.stahli@he-arc.ch + */ + +#ifndef ENV_FREEGLUT_TOOLS_H +#define ENV_FREEGLUT_TOOLS_H + +#include "dllHelper.h" + +#ifdef CBI_FREEGLUT_TOOLS_DLL // defined if API is compiled as a DLL + #ifdef CBI_FREEGLUT_TOOLS_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_FREEGLUT_TOOLS HELPER_DLL_EXPORT + #else + #define CBI_FREEGLUT_TOOLS HELPER_DLL_IMPORT + #endif + #define CBI_FREEGLUT_TOOLS_LOCAL HELPER_DLL_LOCAL +#else // CBI_FREEGLUT_TOOLS_DLL is not defined: this means API is a static lib. + #define CBI_FREEGLUT_TOOLS + #define CBI_FREEGLUT_TOOLS_LOCAL +#endif + + +#endif diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/intelWin/Bilat_FreeGlut_Tools_006_64.lib b/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/intelWin/Bilat_FreeGlut_Tools_006_64.lib new file mode 100755 index 0000000..c3a7289 Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/intelWin/Bilat_FreeGlut_Tools_006_64.lib differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/mingw/libBilat_FreeGlut_Tools_006_64.dll.a b/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/mingw/libBilat_FreeGlut_Tools_006_64.dll.a new file mode 100755 index 0000000..2b37e89 Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/mingw/libBilat_FreeGlut_Tools_006_64.dll.a differ diff --git a/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/visual/Bilat_FreeGlut_Tools_006_64.lib b/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/visual/Bilat_FreeGlut_Tools_006_64.lib new file mode 100755 index 0000000..35352a8 Binary files /dev/null and b/WCudaMSE/API_Bilat_FreeGlut_Tools/LIB/visual/Bilat_FreeGlut_Tools_006_64.lib differ diff --git a/WCudaMSE/API_Bilat_GL/.classpath b/WCudaMSE/API_Bilat_GL/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_GL/.project b/WCudaMSE/API_Bilat_GL/.project new file mode 100755 index 0000000..2152835 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/.project @@ -0,0 +1,17 @@ + + + API_Bilat_GL + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_GL/BIN/.project b/WCudaMSE/API_Bilat_GL/BIN/.project new file mode 100755 index 0000000..2152835 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_GL + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_GL/BIN/gcc/libBilat_GL_003_64.so b/WCudaMSE/API_Bilat_GL/BIN/gcc/libBilat_GL_003_64.so new file mode 100755 index 0000000..3c4f1b7 Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/BIN/gcc/libBilat_GL_003_64.so differ diff --git a/WCudaMSE/API_Bilat_GL/BIN/gcc_arm/libBilat_GL_003_ARM.so b/WCudaMSE/API_Bilat_GL/BIN/gcc_arm/libBilat_GL_003_ARM.so new file mode 100755 index 0000000..a51bafb Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/BIN/gcc_arm/libBilat_GL_003_ARM.so differ diff --git a/WCudaMSE/API_Bilat_GL/BIN/intelLinux/libBilat_GL_003_64.so b/WCudaMSE/API_Bilat_GL/BIN/intelLinux/libBilat_GL_003_64.so new file mode 100755 index 0000000..4a592a6 Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/BIN/intelLinux/libBilat_GL_003_64.so differ diff --git a/WCudaMSE/API_Bilat_GL/BIN/intelWin/Bilat_GL_003_64.dll b/WCudaMSE/API_Bilat_GL/BIN/intelWin/Bilat_GL_003_64.dll new file mode 100755 index 0000000..201a6c9 Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/BIN/intelWin/Bilat_GL_003_64.dll differ diff --git a/WCudaMSE/API_Bilat_GL/BIN/mingw/libBilat_GL_003_64.dll b/WCudaMSE/API_Bilat_GL/BIN/mingw/libBilat_GL_003_64.dll new file mode 100755 index 0000000..9138ca1 Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/BIN/mingw/libBilat_GL_003_64.dll differ diff --git a/WCudaMSE/API_Bilat_GL/BIN/visual/Bilat_GL_003_64.dll b/WCudaMSE/API_Bilat_GL/BIN/visual/Bilat_GL_003_64.dll new file mode 100755 index 0000000..521e553 Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/BIN/visual/Bilat_GL_003_64.dll differ diff --git a/WCudaMSE/API_Bilat_GL/DOC/Bilat_GL_003_64.doc.tar.gz b/WCudaMSE/API_Bilat_GL/DOC/Bilat_GL_003_64.doc.tar.gz new file mode 100755 index 0000000..160fa0b Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/DOC/Bilat_GL_003_64.doc.tar.gz differ diff --git a/WCudaMSE/API_Bilat_GL/INC/BufferObject.h b/WCudaMSE/API_Bilat_GL/INC/BufferObject.h new file mode 100755 index 0000000..8d1f851 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/BufferObject.h @@ -0,0 +1,49 @@ +#ifndef BUFFER_OBJECT_H +#define BUFFER_OBJECT_H + +#include "envBilatGL.h" +#include "bilat_GL.h" + +/** + * Create Buffer in a valide OpenGL context + * + * + * When can I instancied a BufferObject ? + * + * Using API : + * in GLUTWindowCustomiser_A.init() ! (ps reshape,display are other possiblities) + * Using GLUT : + * after glutCreateWindow(...) + */ +class CBI_GL BufferObject + { + + public: + /** + * @param bufferUsage (GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY) + * @param target (GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER) + */ + BufferObject(GLenum target, unsigned int sizeOctet, void* bufferData, GLenum bufferUsage); + virtual ~BufferObject(); + + void bindBuffer(); + void unBindBuffer(); + + void bufferData(unsigned int sizeOctet, void* bufferData,GLenum bufferUsage); + void bufferSubData(unsigned int offset,unsigned int sizeOctet, void* bufferData); + + /** + * @param access (GL_READ_ONLY, GL_WRITE_ONLY, or GL_READ_WRITE) + */ + void* map(GLenum access); + bool unMap(void); + + unsigned int getBufferID() const; + + protected: + GLuint bufferID; //Identifiant OpenGL + GLenum target; + + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/ColorChar.h b/WCudaMSE/API_Bilat_GL/INC/ColorChar.h new file mode 100755 index 0000000..c5538d0 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/ColorChar.h @@ -0,0 +1,28 @@ +#ifndef COLORCHAR_H +#define COLORCHAR_H + +#include "envBilatGL.h" + +class CBI_GL ColorChar + { + public: + + ColorChar(unsigned char r = 0, unsigned char g = 0, unsigned char b = 0, unsigned char a = 0); + + virtual ~ColorChar(); + public: + unsigned char r; + unsigned char g; + unsigned char b; + unsigned char a; + + static ColorChar RED; + static ColorChar BLUE; + static ColorChar GREEN; + static ColorChar YELLOW; + static ColorChar MANGANTA; + static ColorChar CYAN; + static ColorChar WHITE; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/Colorf.h b/WCudaMSE/API_Bilat_GL/INC/Colorf.h new file mode 100755 index 0000000..36e91b5 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/Colorf.h @@ -0,0 +1,26 @@ +#ifndef COLOR_F_H +#define COLOR_F_H +#include "envBilatGL.h" + +class CBI_GL Colorf + { + public: + Colorf(float r = 0.0f, float g = 0.0f, float b = 0.0f, float a = 1.0f); + virtual ~Colorf(); + + public: + float r; + float g; + float b; + float a; + + static Colorf RED; + static Colorf BLUE; + static Colorf GREEN; + static Colorf YELLOW; + static Colorf MANGANTA; + static Colorf CYAN; + static Colorf WHITE; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/ElementBufferObject.h b/WCudaMSE/API_Bilat_GL/INC/ElementBufferObject.h new file mode 100755 index 0000000..607ab1b --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/ElementBufferObject.h @@ -0,0 +1,14 @@ +#ifndef ELEMENT_BUFFER_OBJECT_H +#define ELEMENT_BUFFER_OBJECT_H + +#include "envBilatGL.h" +#include "BufferObject.h" + +class CBI_GL ElementBufferObject : public BufferObject + { + public: + ElementBufferObject(unsigned int sizeOctet,void* bufferIndice,GLenum bufferUsage); + virtual ~ElementBufferObject(); + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/GLTools.h b/WCudaMSE/API_Bilat_GL/INC/GLTools.h new file mode 100755 index 0000000..5f354bd --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/GLTools.h @@ -0,0 +1,16 @@ +#ifndef GLTOOLS_H +#define GLTOOLS_H + +#include "envBilatGL.h" +#include "bilat_GL.h" + +class CBI_GL GLTools + { + public: + GLTools(); + virtual ~GLTools(); + + static void openGL_Infos(); + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/PiloteScene.h b/WCudaMSE/API_Bilat_GL/INC/PiloteScene.h new file mode 100755 index 0000000..0f806ac --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/PiloteScene.h @@ -0,0 +1,39 @@ +#ifndef PILOTESCENE_H +#define PILOTESCENE_H + +#include "envBilatGL.h" + + +class CBI_GL PiloteScene + { + public: + PiloteScene(float tx = 0, float ty = 0, float tz = 0, float pitch = 0, float roll = 0, float heading = 0); + virtual ~PiloteScene(); + + void setTranslation(float tx, float ty, float tz); + void setRotations(float pitch, float roll, float heading); + + void setPitch(float pitch); + void setRoll(float roll); + void setHeading(float heading); + void apply(); + + float getHeading() const; + float getPitch() const; + float getRoll() const; + float getTx() const; + float getTy() const; + float getTz() const; + void setTx(float tx); + void setTy(float ty); + void setTz(float tz); + private: + float tx; + float ty; + float tz; + float pitch; + float roll; + float heading; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/ShaderCodes.h b/WCudaMSE/API_Bilat_GL/INC/ShaderCodes.h new file mode 100755 index 0000000..3a0371c --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/ShaderCodes.h @@ -0,0 +1,30 @@ +#ifndef SHADER_CODES_H +#define SHADER_CODES_H + +#include "envBilatGL.h" +#include "bilat_GL.h" + +#include +#include + +using std::string; +using std::vector; + +class CBI_GL ShaderCodes + { + public: + ShaderCodes(vector tabCodeSource, unsigned int ligneCount); + virtual ~ShaderCodes(); + + void afficherCode(const GLchar** code, unsigned int ligneCount); //Debug + + unsigned int getLigneCount() const; + + const GLchar** getSourceCode() const; + + private: + unsigned int ligneCount; + vector tabCodeSource; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/ShaderLoaders.h b/WCudaMSE/API_Bilat_GL/INC/ShaderLoaders.h new file mode 100755 index 0000000..de4386e --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/ShaderLoaders.h @@ -0,0 +1,27 @@ +#ifndef SHADER_LOADERS_H +#define SHADER_LOADERS_H + +#include "envBilatGL.h" +#include "ShaderPrograms.h" + + +class CBI_GL ShaderLoaders + { + public: + + ShaderLoaders(); + virtual ~ShaderLoaders(); + + static Shaders* loadVertexShader(string fileName); + + static Shaders* loadFragmentShader(string fileName); + + static ShaderCodes* loadShaderSourceCode(string fileName); + + static ShaderPrograms* loadShaderProgram(string fileNameVertexShader, string fileNameFragmentShader); + + private: + static Shaders* loadShader(GLenum type, string fileName); + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/ShaderPrograms.h b/WCudaMSE/API_Bilat_GL/INC/ShaderPrograms.h new file mode 100755 index 0000000..34797cc --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/ShaderPrograms.h @@ -0,0 +1,60 @@ +#ifndef SHADER_PROGRAMS_H +#define SHADER_PROGRAMS_H + +#include "envBilatGL.h" +#include "bilat_GL.h" +#include "Shaders.h" + +#include +using std::vector; + +/** + * ShaderPrograms est composé de plusieurs Shaders (VertexShader et FragmentShader) + * + * Creation : + * + * 1 ou plusieurs VertexShader et 0 FragmentShader + * 1 ou plusieurs VertexShader et 1 ou plusieur FragmentShader + * + * Attention : + * + * 1 seule VertexShader ou FragmentShader avec une méthode main ! + * + * Use : + * Shaders* vertexShader=loadVertexShader(); + * Shaders* fragmentShader=loadFragmentShader(); + * + * ShaderProgam* shaderProgam=new ShaderProgram(); + * shaderProgram->attachShader(vertexShader); + * shaderProgram->attachShader(fragmentShader); + * + * init : + * shaderProgram->init(); + * display : + * shaderProgram->useProgram(); + * draw(); + * shaderProgram->unUseProgram(); + * delete: + * shaderProgram->release(); + * + *TODO : amélioration gestion des shaders, ne delete pas les shaders car peuvent être utilisé dans plusieurs shaderProgram ! Mettre un place système de compteur. + */ +class CBI_GL ShaderPrograms + { + public: + ShaderPrograms(); + virtual ~ShaderPrograms(); + void init(); + void link(); + void release(); + void useProgram(); + void unUseProgram(); + void attachShader(Shaders* shader); + void removeShader(Shaders* shader); + GLuint getProgramID() const; + private : + vector tabShaders; + GLuint programID; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/Shaders.h b/WCudaMSE/API_Bilat_GL/INC/Shaders.h new file mode 100755 index 0000000..8304162 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/Shaders.h @@ -0,0 +1,26 @@ +#ifndef SHADERS_H +#define SHADERS_H + +#include "bilat_GL.h" +#include "ShaderCodes.h" + +/** + * Use ShaderLoader to crate a Shader + * But shaderType is GL_VERTEX_SHADER or GL_FRAGMENT_SHADER + */ +class CBI_GL Shaders + { + public: + Shaders(GLenum shaderType,ShaderCodes* sourceCode); + virtual ~Shaders(); + + void init(); + void release(); + GLuint getShaderID() const; + private : + GLenum shaderType; + ShaderCodes* shaderCode; + GLuint shaderID; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/VertexBufferObject.h b/WCudaMSE/API_Bilat_GL/INC/VertexBufferObject.h new file mode 100755 index 0000000..c716857 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/VertexBufferObject.h @@ -0,0 +1,13 @@ +#ifndef VERTEX_BUFFER_OBJECT_H +#define VERTEX_BUFFER_OBJECT_H + +#include "BufferObject.h" + +class CBI_GL VertexBufferObject : public BufferObject + { + public: + VertexBufferObject(unsigned int sizeOctet,void* bufferVertex,GLenum bufferUsage); + virtual ~VertexBufferObject(); + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/Viewport.h b/WCudaMSE/API_Bilat_GL/INC/Viewport.h new file mode 100755 index 0000000..7ac8306 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/Viewport.h @@ -0,0 +1,20 @@ +#ifndef VIEWPORT_H +#define VIEWPORT_H + +#include "envBilatGL.h" + +class CBI_GL Viewport + { + public: + Viewport(int x=0,int y=0,int w=0,int h=0); + float getRatio() const; + + public: + int x; + int y; + int w; + int h; + + }; + +#endif diff --git a/WCudaMSE/API_Bilat_GL/INC/bilat_GL.h b/WCudaMSE/API_Bilat_GL/INC/bilat_GL.h new file mode 100755 index 0000000..ebdd6da --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/bilat_GL.h @@ -0,0 +1,15 @@ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + + +#ifdef _WIN32 + #include +#else + #include +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_GL/INC/dllHelper.h b/WCudaMSE/API_Bilat_GL/INC/dllHelper.h new file mode 100755 index 0000000..50a9b5e --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/dllHelper.h @@ -0,0 +1,21 @@ +#ifndef DLL_HELPER_H +#define DLL_HELPER_H + +// Generic helper definitions for shared library support +#if defined _WIN32 || defined __CYGWIN__ + #define HELPER_DLL_IMPORT __declspec(dllimport) + #define HELPER_DLL_EXPORT __declspec(dllexport) + #define HELPER_DLL_LOCAL +#else + #if __GNUC__ >= 4 + #define HELPER_DLL_IMPORT __attribute__ ((visibility ("default"))) + #define HELPER_DLL_EXPORT __attribute__ ((visibility ("default"))) + #define HELPER_DLL_LOCAL __attribute__ ((visibility ("hidden"))) + #else + #define HELPER_DLL_IMPORT + #define HELPER_DLL_EXPORT + #define HELPER_DLL_LOCAL + #endif +#endif + +#endif /*DLL_HELPER_H*/ diff --git a/WCudaMSE/API_Bilat_GL/INC/envBilatGL.h b/WCudaMSE/API_Bilat_GL/INC/envBilatGL.h new file mode 100755 index 0000000..26655c3 --- /dev/null +++ b/WCudaMSE/API_Bilat_GL/INC/envBilatGL.h @@ -0,0 +1,19 @@ +#ifndef ENV_CBI_GLTOOLKIT_H +#define ENV_CBI_GLTOOLKIT_H + +#include "dllHelper.h" + +#ifdef CBI_GL_DLL // defined if API is compiled as a DLL + #ifdef CBI_GL_DLL_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_GL HELPER_DLL_EXPORT + #else + #define CBI_GL HELPER_DLL_IMPORT + #endif + #define CBI_GL_LOCAL HELPER_DLL_LOCAL +#else // GL_TOOLS_USE_DLL is not defined: this means API is a static lib. + #define CBI_GL + #define CBI_GL_LOCAL +#endif + + +#endif diff --git a/WCudaMSE/API_Bilat_GL/LIB/intelWin/Bilat_GL_003_64.lib b/WCudaMSE/API_Bilat_GL/LIB/intelWin/Bilat_GL_003_64.lib new file mode 100755 index 0000000..014fbb0 Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/LIB/intelWin/Bilat_GL_003_64.lib differ diff --git a/WCudaMSE/API_Bilat_GL/LIB/mingw/libBilat_GL_003_64.dll.a b/WCudaMSE/API_Bilat_GL/LIB/mingw/libBilat_GL_003_64.dll.a new file mode 100755 index 0000000..7514084 Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/LIB/mingw/libBilat_GL_003_64.dll.a differ diff --git a/WCudaMSE/API_Bilat_GL/LIB/visual/Bilat_GL_003_64.lib b/WCudaMSE/API_Bilat_GL/LIB/visual/Bilat_GL_003_64.lib new file mode 100755 index 0000000..200e05b Binary files /dev/null and b/WCudaMSE/API_Bilat_GL/LIB/visual/Bilat_GL_003_64.lib differ diff --git a/WCudaMSE/API_Bilat_Graph2D/.classpath b/WCudaMSE/API_Bilat_Graph2D/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_Graph2D/.project b/WCudaMSE/API_Bilat_Graph2D/.project new file mode 100755 index 0000000..2167671 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Graph2D + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Graph2D/BIN/.project b/WCudaMSE/API_Bilat_Graph2D/BIN/.project new file mode 100755 index 0000000..2167671 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Graph2D + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Graph2D/BIN/gcc/libBilat_Graph2D_001_64.so b/WCudaMSE/API_Bilat_Graph2D/BIN/gcc/libBilat_Graph2D_001_64.so new file mode 100755 index 0000000..920cd7f Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/BIN/gcc/libBilat_Graph2D_001_64.so differ diff --git a/WCudaMSE/API_Bilat_Graph2D/BIN/gcc_arm/libBilat_Graph2D_001_ARM.so b/WCudaMSE/API_Bilat_Graph2D/BIN/gcc_arm/libBilat_Graph2D_001_ARM.so new file mode 100755 index 0000000..c99ed2c Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/BIN/gcc_arm/libBilat_Graph2D_001_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Graph2D/BIN/intelLinux/libBilat_Graph2D_001_64.so b/WCudaMSE/API_Bilat_Graph2D/BIN/intelLinux/libBilat_Graph2D_001_64.so new file mode 100755 index 0000000..16b0331 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/BIN/intelLinux/libBilat_Graph2D_001_64.so differ diff --git a/WCudaMSE/API_Bilat_Graph2D/BIN/intelWin/Bilat_Graph2D_001_64.dll b/WCudaMSE/API_Bilat_Graph2D/BIN/intelWin/Bilat_Graph2D_001_64.dll new file mode 100755 index 0000000..f8da012 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/BIN/intelWin/Bilat_Graph2D_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Graph2D/BIN/mingw/libBilat_Graph2D_001_64.dll b/WCudaMSE/API_Bilat_Graph2D/BIN/mingw/libBilat_Graph2D_001_64.dll new file mode 100755 index 0000000..8d55fe8 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/BIN/mingw/libBilat_Graph2D_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Graph2D/BIN/visual/Bilat_Graph2D_001_64.dll b/WCudaMSE/API_Bilat_Graph2D/BIN/visual/Bilat_Graph2D_001_64.dll new file mode 100755 index 0000000..0795e28 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/BIN/visual/Bilat_Graph2D_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/envGraph.h b/WCudaMSE/API_Bilat_Graph2D/INC/envGraph.h new file mode 100755 index 0000000..3a43354 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/envGraph.h @@ -0,0 +1,19 @@ +#ifndef ENVI_CBI_GRAPH_H +#define ENVI_CBI_GRAPH_H + +#include "dllHelper.h" + +#ifdef CBI_GRAPH_DLL // defined if API is compiled as a DLL + #ifdef CBI_GRAPH_DLL_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_GRAPH HELPER_DLL_EXPORT + #else + #define CBI_GRAPH HELPER_DLL_IMPORT + #endif + #define CBI_GRAPH_LOCAL HELPER_DLL_LOCAL +#else // GL_TOOLS_USE_DLL is not defined: this means API is a static lib. + #define CBI_GRAPH + #define CBI_GRAPH_LOCAL +#endif + + +#endif diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Apparance.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Apparance.h new file mode 100755 index 0000000..763f195 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Apparance.h @@ -0,0 +1,52 @@ +#ifndef APPARANCE_H_ +#define APPARANCE_H_ +#include "envGraph.h" +#include "Color.h" + +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/** + * @enum TypeConnector + * Define only for ploylines the appearance of the figure. + */ +enum TypeConnector + { + TYPE_LINES, + TYPE_POINTS + }; + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Apparance + { + public: + Apparance(Color foreground=Color::WHITE,Color background=Color::BLACK,TypeConnector connectorType=TYPE_LINES); + + Color getForeground() const; + Color getBackground() const; + TypeConnector getConnectorType() const; + + void setForeground(Color color); + void setBackground(Color color); + void setConnectorType(TypeConnector connectorType); + + private : + Color foreground; + Color background; + TypeConnector connectorType; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Color.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Color.h new file mode 100755 index 0000000..fb57e23 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Color.h @@ -0,0 +1,75 @@ +#ifndef COLORS_H_ +#define COLORS_H_ + +#include "envGraph.h" +#include "Definitions.h" +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + + +class CBI_GRAPH Color + { + public: + + Color(uchar r = 0, uchar g = 0, uchar b = 0, uchar a = 255); + //Color(const Color &source);//inutil car que des type simple, le compilo copie bit a bit les attributs + + inline uchar getRed() const + { + return r; + } + + inline uchar getGreen() const + { + return g; + } + + inline uchar getBlue() const + { + return b; + } + + inline uchar getAlpha() const + { + return a; + } + + public: + static const Color RED; + static const Color BLUE; + static const Color GREEN; + + static const Color WHITE; + static const Color BLACK; + static const Color GRAY; + + static const Color YELLOW; + static const Color CYAN; + static const Color MAGANTA; + static const Color ORANGE; + static const Color LIME; + static const Color PINK; + static const Color PURPLE; + + private: + uchar r; + uchar g; + uchar b; + uchar a; + + }; + +#endif + + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveAnalytic.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveAnalytic.h new file mode 100755 index 0000000..73c6285 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveAnalytic.h @@ -0,0 +1,32 @@ +#ifndef CURVE_ANALYTIC_H_ +#define CURVE_ANALYTIC_H_ + +#include "Figure.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH CurveAnalytic: public Figure + { + public: + CurveAnalytic(Title title, Apparance apparance); + + virtual ~CurveAnalytic(); + + virtual float f(const float x) const = 0; + + virtual Domaine computeDomaine(const Domaine& graphDomaine) const; + + void accept(FigureVisitor_I* ptrVisitor); + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveDiscret.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveDiscret.h new file mode 100755 index 0000000..3ad9bc3 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveDiscret.h @@ -0,0 +1,33 @@ +#ifndef CURVEDISCRET_H_ +#define CURVEDISCRET_H_ + +#include "Polylines.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH CurveDiscret : public Polylines + { + public: + + CurveDiscret(Title title, Apparance apparance, shared_array tabValues, int nbPoints); + + virtual ~CurveDiscret(); + + void setTabValues(shared_array tabValues); + + private : + + static shared_array toTabPoint(shared_array tabValues, int nbPoints); + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveParametric.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveParametric.h new file mode 100755 index 0000000..3f3e70e --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/CurveParametric.h @@ -0,0 +1,63 @@ +#ifndef CURVE_PARAMETRIC_H +#define CURVE_PARAMETRIC_H + +#include "Figure.h" +#include "Point.h" +#include "Interval.h" +#include + +#include "shared_array.h" +//#include +//using boost::shared_array; + +//in c++14 = std::shared_ptr sp( new int[10], std::default_delete() ); + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Courbe de param�tre landa + */ +class CBI_GRAPH CurveParametric: public Figure + { + public: + CurveParametric(Title title, Apparance apparance); + + virtual ~CurveParametric(); + + virtual Domaine computeDomaine(const Domaine& graphDomaine) const; + + virtual void accept(FigureVisitor_I* ptrVisitor); + + /** + * Return a new TabPoints of size getNbPoints() + * Delete car pas trouver d'equivalence a boost dans la stl + */ + virtual shared_array getTabPoints() const; + + virtual int getNbPoints() const = 0; + + virtual Interval getIntervalLanda() const =0; + + /** + * landa in intervalLand + */ + virtual float x(double landa) const=0; + + + /** + * landa in intervalLand + */ + virtual float y(double landa) const=0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Definitions.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Definitions.h new file mode 100755 index 0000000..ebe605c --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Definitions.h @@ -0,0 +1,19 @@ +#ifndef DEFINITIONS_H_ +#define DEFINITIONS_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +typedef unsigned char uchar; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Domaine.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Domaine.h new file mode 100755 index 0000000..fe7cf33 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Domaine.h @@ -0,0 +1,68 @@ +#ifndef DOMAINE_H_ +#define DOMAINE_H_ + +#include "Point.h" +#include "Interval.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Domaine + { + public: + Domaine(double x1, double y1, double x2, double y2); + Domaine(Point p1, Point p2); + Domaine(Interval intervalX, Interval intervalY); + + void setIntervalX(Interval interval); + void setIntervalY(Interval interval); + + inline Interval getIntervalX() const + { + return intervalX; + } + + inline Interval getIntervalY() const + { + return intervalY; + } + + inline double getX1() const + { + return intervalX.getMin(); + } + + inline double getX2() const + { + return intervalX.getMax(); + } + + inline double getY1() const + { + return intervalY.getMin(); + } + + inline double getY2() const + { + return intervalY.getMax(); + } + + Point gravity() const; + + Domaine combine(Domaine domaine) const; + + private: + Interval intervalX; + Interval intervalY; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Figure.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Figure.h new file mode 100755 index 0000000..51b06ad --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Figure.h @@ -0,0 +1,54 @@ +#ifndef FIGURE_H_ +#define FIGURE_H_ + +#include "envGraph.h" +#include "Title.h" +#include "Domaine.h" +#include "Apparance.h" + +//#include "FigureVisitor.h" +class FigureVisitor_I; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Figure + { + public: + Figure(Title title,Apparance apparance); + virtual ~Figure(); + + Apparance* getApparance() const; + + Title* getTitle() const; + + virtual Domaine computeDomaine(const Domaine& graphDomaine) const =0; + + virtual void accept(FigureVisitor_I* ptrVisitor) =0; + + /** + * Call animationStep of all stored Figures and the update + */ + virtual void animationStep(); + + bool isAnimationEnable(); + + void setAnimationEnable(bool isEnable); + + private : + Title* ptrTitle; + Apparance* ptrApparance; + bool animationEnable; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/FigureVisitor.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/FigureVisitor.h new file mode 100755 index 0000000..5d05480 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/FigureVisitor.h @@ -0,0 +1,43 @@ +#ifndef FIGUREVISITOR_I_H_ +#define FIGUREVISITOR_I_H_ + +#include "envGraph.h" +#include "CurveParametric.h" +#include "CurveAnalytic.h" +//class CurveParametric; +//class CurveAnalytic; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH FigureVisitor_I + { + public: + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~FigureVisitor_I() + { + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + virtual void visit(CurveParametric* ptrPolylines)=0; + + virtual void visit(CurveAnalytic* ptrCurve)=0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Graph.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Graph.h new file mode 100755 index 0000000..b80bf37 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Graph.h @@ -0,0 +1,151 @@ +#ifndef GRAPH_H_ +#define GRAPH_H_ +#include "envGraph.h" +#include "GridApparance.h" +#include "Figure.h" +#include "GraphObserver_I.h" + +#include +using std::vector; + +#include +//#include +using std::mutex; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Graph + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + Graph(Title title, Domaine domaine, Apparance apparance); + + /** + * L'intervalY du domaine du graph est calcul� automatiquement. + */ + Graph(Title title, Interval intervalX, Apparance apparance); + + Graph(Title title); + + /** + * Graph with title fontType TIMES_ROMAN_24 + */ + Graph(string title); + + Graph(); + + private: + + Graph(const Graph& src); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + public: + virtual ~Graph(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void add(Figure* ptrFigure); + + void remove(Figure* ptrFigure); + + void attach(GraphObserver_I* observer); + + void detach(GraphObserver_I* observer); + + void notifyAddFigure(Figure* ptrFigure); + + void notifyRemoveFigure(Figure* ptrFigure); + + void update(); + /** + * return true if need repaint + */ + virtual bool animationStep(); + + private : + + void computeDomaine(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public : + + /* + * getistFigures fourni une copie du vector de figure + */ + vector getListFigures() const; + + Figure* getFigure(int i); + + GridApparance* getGridApparance() const; + + Apparance* getApparance() const; + + Title* getTitle() const; + + Domaine* getDomaine() const; + + int getFigureSize() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setApparance(Apparance apparance); + + /** + * set Title with fontType TIMES_ROMAN_24 + */ + void setTitle(string title); + + void setTitle(Title title); + + void setDomaine(Domaine domaine); + + void setIntervalX(Interval intervalX); + + void setGridApparance(GridApparance gridApparance); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + Title* title; + Domaine* domaine; + Apparance* apparance; + bool isIntervalYAuto; + + // Tools + GridApparance* gridApparance; + vector listFigures; + vector listObserver; + mutex mutexListObserver; + mutex mutexListFigures; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/GraphObserver_I.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/GraphObserver_I.h new file mode 100755 index 0000000..84ffdba --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/GraphObserver_I.h @@ -0,0 +1,45 @@ +#ifndef GRAPH_OBSERVER_I_H_ +#define GRAPH_OBSERVER_I_H_ + +#include "envGraph.h" +#include "Figure.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GraphObserver_I + { + public: + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~GraphObserver_I() + { + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + virtual void onFigureAdd(Figure* ptrFigure)=0; + + virtual void onFigureRemove(Figure* ptrFigure)=0; + + virtual void update()=0; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/GridApparance.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/GridApparance.h new file mode 100755 index 0000000..569f130 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/GridApparance.h @@ -0,0 +1,47 @@ +#ifndef GRIDAPPARANCE_H_ +#define GRIDAPPARANCE_H_ +#include "envGraph.h" +#include "Color.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GridApparance + { + public: + GridApparance(int nbrsLinesX=0,int nbrsLinesY=0,Color lineColor=Color::GRAY); + + void setColor(Color lineColor); + void setNbLinesX(int nbLinesX); + void setNbLinesY(int nbLinesY); + void setGrid(int nbLinesX,int nbLinesY); + + inline Color getColor() const { + return lineColor; + } + + inline int getNbLinesX() const { + return nbrLinesX; + } + + inline int getNbLinesY() const { + return nbrLinesY; + } + + private : + Color lineColor; + int nbrLinesX; + int nbrLinesY; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Histogram.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Histogram.h new file mode 100755 index 0000000..0f3a921 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Histogram.h @@ -0,0 +1,58 @@ +#ifndef HISTOGRAM_H_ +#define HISTOGRAM_H_ + +#include "Polylines.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Histogram: public Polylines + { + public: + /** + * Create an histogram with nbrSep+1 bins + * @param nbrSep the number of separation. + */ + Histogram(Title title, Apparance apparance, shared_array tabvalues, int nbValue,Interval intervalX, int nbrSep); + virtual ~Histogram(); + + void setValue(shared_array tabvalues, int nbValue); + + static int computeNbPoint(int nbrSep); + + void minMaxValues(Interval& minMax); + void setIntervalGraphX(Interval intervalX); + + protected: + /** + * Compute the histogram + */ + void computeHistogram(); + + + /** + * Create the histogram with the points. + */ + void computeFigure(); + + protected: + // Inputs + shared_array tabvalues; + int nbValue; + int nbrSep; + + // Tools + float* tabHistogram; + Interval intervalGraphX; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/HistogramToDensity.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/HistogramToDensity.h new file mode 100755 index 0000000..2221b39 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/HistogramToDensity.h @@ -0,0 +1,43 @@ +#ifndef HISTOGRAMTODENSITY_H_ +#define HISTOGRAMTODENSITY_H_ + +#include "Histogram.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH HistogramToDensity: public Histogram + { + public: + HistogramToDensity(Title title, Apparance apparance, shared_array tabvalues, int nbValue,Interval intervalX, int nbrSep, float maxDensityAnalytiqueY); + virtual ~HistogramToDensity(); + + void setMaxDensityAnalytiqueY(float maxDensityAnalytiqueY); + float getMaxDensityAnalytiqueY() const; + + /*--------------------------------------*\ + |* Surcharge *| + \*-------------------------------------*/ + + void setValue(shared_array tabvalues, int nbValue); + virtual Domaine computeDomaine(const Domaine& graphDomaine) const; + + private: + float computeFactor(); + void correctionDensity(); + private: + float factor; + float maxDensityAnalytiqueY; + float maxHistogram; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Interval.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Interval.h new file mode 100755 index 0000000..e2db177 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Interval.h @@ -0,0 +1,44 @@ +#ifndef INTERVAL_H_ +#define INTERVAL_H_ +#include "envGraph.h" +#include "Definitions.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Interval + { + public: + Interval(double min, double max); + + void setMin(double min); + void setMax(double max); + + double delta() const; + double deltaAbs() const; + + inline double getMin() const + { + return min; + } + + inline double getMax() const + { + return max; + } + + private: + double min; + double max; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/LineH.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/LineH.h new file mode 100755 index 0000000..aa6956f --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/LineH.h @@ -0,0 +1,29 @@ +#ifndef LINEH_H_ +#define LINEH_H_ +#include "Segment.h" +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH LineH : public Segment + { + public: + /** + * Create a Horiztonal segment from coordinates A=(x1, y), B=(x2, y) + */ + LineH(Title title, Apparance apparance, float y,float x1,float x2); + virtual ~LineH(); + + void setY(float y); + void setX(float x1,float x2); + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/LineV.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/LineV.h new file mode 100755 index 0000000..86d2030 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/LineV.h @@ -0,0 +1,32 @@ +#ifndef LINEV_H_ +#define LINEV_H_ + +#include "Segment.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH LineV: public Segment + { + public: + /** + * Create a vertical segment from coordinates A=(x, y1), B=(x, y2) + */ + LineV(Title title, Apparance apparance, float x, float y1, float y2); + + void setX(float x); + void setY(float y1,float y2); + + virtual ~LineV(); + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Point.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Point.h new file mode 100755 index 0000000..896761d --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Point.h @@ -0,0 +1,43 @@ +#ifndef POINT_H_ +#define POINT_H_ +#include "envGraph.h" +#include "Definitions.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Point + { + public: + Point(float x = 0.0, float y = 0.0); + ~Point(); + void set(float x, float y); + void setX(float x); + void setY(float y); + + inline float getX() const + { + return x; + } + inline float getY() const + { + return y; + } + + void zero(); + + private: + float x; + float y; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Polylines.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Polylines.h new file mode 100755 index 0000000..9f14ed4 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Polylines.h @@ -0,0 +1,58 @@ +#ifndef POLYLINES_H_ +#define POLYLINES_H_ + +#include "CurveParametric.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Polylines: public CurveParametric + { + public: + Polylines(Title title, Apparance apparance, shared_array tabPoint, int nbPoints); + + virtual ~Polylines(); + + virtual Domaine computeDomaine(const Domaine& graphDomaine) const; + + void setTabPoint(shared_array tabPoint); + + /** + * Override + * Return the input Polylines tabPoints. + */ + virtual shared_array getTabPoints() const; + + virtual inline int getNbPoints() const + { + return nbPoints; + } + + virtual Interval getIntervalLanda() const; + + /** + * landa in intervalLand + */ + virtual float x(double landa) const; + + /** + * landa in intervalLand + */ + virtual float y(double landa) const; + + private: + shared_array tabPoint; + int nbPoints; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Segment.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Segment.h new file mode 100755 index 0000000..11b546c --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Segment.h @@ -0,0 +1,41 @@ +#ifndef SEGMENT_H_ +#define SEGMENT_H_ + +#define OFFSET_A 0 +#define OFFSET_B 1 + +#include "Polylines.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Segment AB + */ +class CBI_GRAPH Segment : public Polylines + { + public: + Segment(Title title, Apparance apparance,Point a,Point b); + virtual ~Segment(); + + Point getA() const; + Point getB() const; + + void setA(Point a); + void setB(Point b); + void setAB(Point a,Point b); + + protected : + static shared_array createTabPoint(Point a,Point b); + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Title.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Title.h new file mode 100755 index 0000000..484000e --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Title.h @@ -0,0 +1,64 @@ +#ifndef TITLE_H_ +#define TITLE_H_ + +#include "envGraph.h" +#include "FontLoader_A.h" +#include "Color.h" +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Title + { + public: + Title(string texte, string fontname); + + /** + * FontType possible : + * BITMAP_13, + * BITMAP_15, + * TIMES_ROMAN_10, + * TIMES_ROMAN_24, + * HELVETICA_10, + * HELVETICA_12, + * HELVETICA_18 + */ + Title(string texte, FontType fontType = HELVETICA_12); + + void setTexte(string texte); + void setFontName(string fontname); + void setFontType(FontType fontType); + + string getTexte() const + { + return texte; + } + + string getFontName() const + { + return fontname; + } + + FontType getFontType() const + { + return fontType; + } + + private: + string texte; + string fontname; + FontType fontType; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/shared_array.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/shared_array.h new file mode 100755 index 0000000..a7fa2fe --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/shared_array.h @@ -0,0 +1,40 @@ +#ifndef SHAREDARRAY_H_ +#define SHAREDARRAY_H_ + +// C++11 +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +template +class shared_array: public std::shared_ptr + { + public: + shared_array(T* pointer) : + std::shared_ptr(pointer, std::default_delete()) + { + + } + + T& operator[](int i) + { + return this->get()[i]; + } + + T& operator[](int i) const + { + return this->get()[i]; + } + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveAnalytic.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveAnalytic.h new file mode 100755 index 0000000..46d3619 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveAnalytic.h @@ -0,0 +1,47 @@ +#ifndef GLCURVE_H_ +#define GLCURVE_H_ + +#include "GLFigure.h" +#include "CurveAnalytic.h" +#include "VertexBufferObject.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GLCurveAnalytic: public GLFigure + { + public: + GLCurveAnalytic(CurveAnalytic* ptrCurve, Domaine* ptrGraphDomaine); + virtual ~GLCurveAnalytic(); + + CurveAnalytic* getCurve() const; + + void init(Panel_A &panel); + void reshape(Panel_A &panel, const Viewport &viewport); + void display(Panel_A &panel); + void release(Panel_A &panel); + void updateGL(Panel_A &panel,const Domaine &domaineGraph); + protected: + void fillTabPoint(Point* ptrTabPoint,int nbPoint); + private: + // Inputs + Domaine* ptrGraphDomaine; + + // Tools + unsigned int nbPoint; + + // OpenGL + VertexBufferObject* vboVertex; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveParametric.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveParametric.h new file mode 100755 index 0000000..10d854a --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveParametric.h @@ -0,0 +1,40 @@ +#ifndef GLPOLYLINES_H_ +#define GLPOLYLINES_H_ + +#include "GLFigure.h" +#include "CurveParametric.h" +#include "VertexBufferObject.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GLCurveParametric: public GLFigure + { + public: + GLCurveParametric(CurveParametric* ptrPolyline); + virtual ~GLCurveParametric(); + + CurveParametric* getPolyline() const; + + void init(Panel_A &panel); + void reshape(Panel_A &panel, const Viewport &viewport); + void display(Panel_A &panel); + void release(Panel_A &panel); + protected: + void updateGL(Panel_A &panel,const Domaine &domaineGraph); + private: + + // OpenGL + VertexBufferObject* vboVertex; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLFigure.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLFigure.h new file mode 100755 index 0000000..2e97084 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLFigure.h @@ -0,0 +1,42 @@ +#ifndef GLFIGURE_H_ +#define GLFIGURE_H_ +#include "envGraph.h" +#include "Viewport.h" +#include "Figure.h" +#include "Panel_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GLFigure + { + public: + GLFigure(Figure* ptrFigure); + virtual ~GLFigure(); + + virtual void init(Panel_A &panel); + virtual void reshape(Panel_A &panel, const Viewport &viewport)=0; + virtual void display(Panel_A &panel)=0; + virtual void release(Panel_A &panel)=0; + + Figure* getFigure() const; + + /** + * Will update the courbe after repaint + */ + virtual void updateGL(Panel_A &panel,const Domaine &domaineGraph)=0; + protected: + Figure* ptrFigure; + bool isInit; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLGraph.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLGraph.h new file mode 100755 index 0000000..d97a47e --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLGraph.h @@ -0,0 +1,162 @@ +#ifndef GLGRAPH_H_ +#define GLGRAPH_H_ +#include "envGraph.h" +#include "Displayable_A.h" +#include "Viewport.h" +#include "GraphObserver_I.h" +#include "FigureVisitor.h" +#include "Graph.h" +#include "CurveParametric.h" +#include "CurveAnalytic.h" + +#include "GLFigure.h" +#include "GLGraphRunnable.h" + +#include +using std::map; + +#include +using std::queue; + +#include +#include +//#include +//#include + +using std::mutex; +using std::atomic; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GLGraph: public GraphObserver_I, public Displayable_A, public FigureVisitor_I + { + public: + GLGraph(Graph* ptrGraph); + + virtual ~GLGraph(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /** + * Override + */ + void init(Panel_A &panel); + + /** + * Override + */ + void reshape(Panel_A &panel, int w, int h); + + /** + * Override + */ + void display(Panel_A &panel); + + /** + * Override + */ + void release(Panel_A &panel); + + /** + * Override + */ + void onFigureAdd(Figure* ptrFigure); + + /** + * Override + */ + void onFigureRemove(Figure* ptrFigure); + + /** + * Override + */ + void update(); + + /** + * Override + * visit create the right GLPolylines + */ + virtual void visit(CurveParametric* ptrPolylines); + + /** + * Override + * visit create the right GLCurve + */ + virtual void visit(CurveAnalytic* ptrCurve); + + private: + void computeViewports(Panel_A &panel); + + int computeTitleHeight(Panel_A &panel); + + void drawGraph(Panel_A &panel); + + void drawTitle(Panel_A &panel); + + void drawLegend(Panel_A &panel); + + void drawGraphCadre(Panel_A &panel); + + void drawGraphGrid(Panel_A &panel); + + void processQueue(Panel_A &panel); + + void updateGL(Panel_A &panel); + + const Font_A* loadFont(FontLoader_A* ptrFontLoader, Title* ptrTitle); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + Viewport getPanelViewport() const; + + Viewport getGraphViewport() const; + + Viewport getTitleViewport() const; + + Graph* getGraph() const; + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + // Inputs + Graph* ptrGraph; + + // Tools + atomic isNeedUpdate; + map mapFigureGL; + queue queueGLGraphRunnable; + Viewport viewportPanel; //in pixel + Viewport viewportGraph; //in pixel + Viewport viewportTitle; //in pixel + + //Thread safe + mutex mutexQueue; + mutex mutexMapFigure; + + static const int LEFT_MARGIN; + static const int RIGHT_MARGIN; + static const int TOP_MARGIN; + static const int BOTTOM_MARGIN; + static const int GRAPH_MARGIN; + static const float TITLE_V_SPACING; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLGraphRunnable.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLGraphRunnable.h new file mode 100755 index 0000000..58dec94 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLGraphRunnable.h @@ -0,0 +1,57 @@ +#ifndef GLGRAPHRUNNABLE_H_ +#define GLGRAPHRUNNABLE_H_ +#include "envGraph.h" +#include "Panel_A.h" +#include "Viewport.h" +#include "GLFigure.h" +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GLGraphRunnable + { + public: + virtual ~GLGraphRunnable() + { + } + virtual void run(Panel_A &panel)=0; + }; + +/** + * Free GLResources + * delete ptrGLFigure + */ +class CBI_GRAPH GLGraphRelease: public GLGraphRunnable + { + public: + GLGraphRelease(GLFigure* ptrGLFigure); + virtual ~GLGraphRelease(); + virtual void run(Panel_A &panel); + private: + GLFigure* ptrGLFigure; + }; + +/** + * Initialize GLFigure + * call reshape GLFigure with given viewport + */ +class CBI_GRAPH GLGraphInit: public GLGraphRunnable + { + public: + GLGraphInit(GLFigure* ptrGLFigure, Viewport* ptrViewport); + virtual ~GLGraphInit(); + virtual void run(Panel_A &panel); + private: + GLFigure* ptrGLFigure; + Viewport* ptrViewport; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D/LIB/intelWin/Bilat_Graph2D_001_64.lib b/WCudaMSE/API_Bilat_Graph2D/LIB/intelWin/Bilat_Graph2D_001_64.lib new file mode 100755 index 0000000..01403cd Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/LIB/intelWin/Bilat_Graph2D_001_64.lib differ diff --git a/WCudaMSE/API_Bilat_Graph2D/LIB/mingw/libBilat_Graph2D_001_64.dll.a b/WCudaMSE/API_Bilat_Graph2D/LIB/mingw/libBilat_Graph2D_001_64.dll.a new file mode 100755 index 0000000..e97a6a7 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/LIB/mingw/libBilat_Graph2D_001_64.dll.a differ diff --git a/WCudaMSE/API_Bilat_Graph2D/LIB/visual/Bilat_Graph2D_001_64.lib b/WCudaMSE/API_Bilat_Graph2D/LIB/visual/Bilat_Graph2D_001_64.lib new file mode 100755 index 0000000..d11fd93 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D/LIB/visual/Bilat_Graph2D_001_64.lib differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/.classpath b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/.project b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/.project new file mode 100755 index 0000000..958af8e --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Graph2D_FreeGlut + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/.project b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/.project new file mode 100755 index 0000000..958af8e --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Graph2D_FreeGlut + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/gcc/libBilat_Graph2D_Freeglut_001_64.so b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/gcc/libBilat_Graph2D_Freeglut_001_64.so new file mode 100755 index 0000000..56ca286 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/gcc/libBilat_Graph2D_Freeglut_001_64.so differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/gcc_arm/libBilat_Graph2D_Freeglut_001_ARM.so b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/gcc_arm/libBilat_Graph2D_Freeglut_001_ARM.so new file mode 100755 index 0000000..47de060 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/gcc_arm/libBilat_Graph2D_Freeglut_001_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/intelLinux/libBilat_Graph2D_Freeglut_001_64.so b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/intelLinux/libBilat_Graph2D_Freeglut_001_64.so new file mode 100755 index 0000000..617c216 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/intelLinux/libBilat_Graph2D_Freeglut_001_64.so differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/intelWin/Bilat_Graph2D_Freeglut_001_64.dll b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/intelWin/Bilat_Graph2D_Freeglut_001_64.dll new file mode 100755 index 0000000..c47d79c Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/intelWin/Bilat_Graph2D_Freeglut_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/mingw/libBilat_Graph2D_Freeglut_001_64.dll b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/mingw/libBilat_Graph2D_Freeglut_001_64.dll new file mode 100755 index 0000000..858bb4d Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/mingw/libBilat_Graph2D_Freeglut_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/visual/Bilat_Graph2D_Freeglut_001_64.dll b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/visual/Bilat_Graph2D_Freeglut_001_64.dll new file mode 100755 index 0000000..b2fee77 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/BIN/visual/Bilat_Graph2D_Freeglut_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/envGraphFreeGlut.h b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/envGraphFreeGlut.h new file mode 100755 index 0000000..71774b8 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/envGraphFreeGlut.h @@ -0,0 +1,19 @@ +#ifndef ENVI_CBI_GRAPH_FREE_GLUT_H +#define ENVI_CBI_GRAPH_FREE_GLUT_H + +#include "dllHelper.h" + +#ifdef CBI_GRAPH_FREE_GLUT_DLL // defined if API is compiled as a DLL + #ifdef CBI_GRAPH_FREE_GLUT_DLL_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_GRAPH_FREE_GLUT HELPER_DLL_EXPORT + #else + #define CBI_GRAPH_FREE_GLUT HELPER_DLL_IMPORT + #endif + #define CBI_GRAPH_FREE_GLUT_LOCAL HELPER_DLL_LOCAL +#else // GL_TOOLS_USE_DLL is not defined: this means API is a static lib. + #define CBI_GRAPH_FREE_GLUT + #define CBI_GRAPH_FREE_GLUT_LOCAL +#endif + + +#endif diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/freeglut/GLUTGraphWindow.h b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/freeglut/GLUTGraphWindow.h new file mode 100755 index 0000000..d168ad4 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/freeglut/GLUTGraphWindow.h @@ -0,0 +1,56 @@ +#ifndef GLUT_GRAPHWINDOW_H_ +#define GLUT_GRAPHWINDOW_H_ +#include "envGraphFreeGlut.h" +#include "GLUTWindow.h" +#include "GLGraph.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Encapsulate Graph in a GLUTWindow with animation managment (idleFunc) + */ +class CBI_GRAPH_FREE_GLUT GLUTGraphWindow: public GLUTWindow + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + GLUTGraphWindow(Graph* ptrGraph, string title, int width, int height, int pxFrame = 0, int pyFrame = 0); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~GLUTGraphWindow(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + Graph* getGraph(); + + GLGraph* getGLGraph(); + + /*--------------------------------------*\ + |* Surcharge *| + \*-------------------------------------*/ + + /** + * Call periodicaly by FreeGlut + */ + virtual void idleFunc(); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/intelWin/Bilat_Graph2D_Freeglut_001_64.lib b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/intelWin/Bilat_Graph2D_Freeglut_001_64.lib new file mode 100755 index 0000000..2ad8141 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/intelWin/Bilat_Graph2D_Freeglut_001_64.lib differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/mingw/libBilat_Graph2D_Freeglut_001_64.dll.a b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/mingw/libBilat_Graph2D_Freeglut_001_64.dll.a new file mode 100755 index 0000000..bd32886 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/mingw/libBilat_Graph2D_Freeglut_001_64.dll.a differ diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/visual/Bilat_Graph2D_Freeglut_001_64.lib b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/visual/Bilat_Graph2D_Freeglut_001_64.lib new file mode 100755 index 0000000..9028c68 Binary files /dev/null and b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/LIB/visual/Bilat_Graph2D_Freeglut_001_64.lib differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/.classpath b/WCudaMSE/API_Bilat_Image_FreeGlut/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/.project b/WCudaMSE/API_Bilat_Image_FreeGlut/.project new file mode 100755 index 0000000..c87ce69 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_FreeGlut + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/.project b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/.project new file mode 100755 index 0000000..c87ce69 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_FreeGlut + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/gcc/libBilat_Image_FreeGlut_003_64.so b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/gcc/libBilat_Image_FreeGlut_003_64.so new file mode 100755 index 0000000..b333cad Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/gcc/libBilat_Image_FreeGlut_003_64.so differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/gcc_arm/libBilat_Image_FreeGlut_003_ARM.so b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/gcc_arm/libBilat_Image_FreeGlut_003_ARM.so new file mode 100755 index 0000000..66f74ad Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/gcc_arm/libBilat_Image_FreeGlut_003_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/intelLinux/libBilat_Image_FreeGlut_003_64.so b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/intelLinux/libBilat_Image_FreeGlut_003_64.so new file mode 100755 index 0000000..db556de Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/intelLinux/libBilat_Image_FreeGlut_003_64.so differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/intelWin/Bilat_Image_FreeGlut_003_64.dll b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/intelWin/Bilat_Image_FreeGlut_003_64.dll new file mode 100755 index 0000000..9a79829 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/intelWin/Bilat_Image_FreeGlut_003_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/mingw/libBilat_Image_FreeGlut_003_64.dll b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/mingw/libBilat_Image_FreeGlut_003_64.dll new file mode 100755 index 0000000..6017bcf Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/mingw/libBilat_Image_FreeGlut_003_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/visual/Bilat_Image_FreeGlut_003_64.dll b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/visual/Bilat_Image_FreeGlut_003_64.dll new file mode 100755 index 0000000..5745843 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/BIN/visual/Bilat_Image_FreeGlut_003_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/INC/common/GLUTImageViewers_A.h b/WCudaMSE/API_Bilat_Image_FreeGlut/INC/common/GLUTImageViewers_A.h new file mode 100755 index 0000000..d049fa3 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut/INC/common/GLUTImageViewers_A.h @@ -0,0 +1,79 @@ +#ifndef GLUT_IMAGE_VIEWERS_A_H_ +#define GLUT_IMAGE_VIEWERS_A_H_ + +#include "envImage_FreeGlut.h" +#include "GLUTWindowImage.h" +#include "ImageMOOs_I.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_IMAGE_FREE_GLUT GLUTImageViewers_A + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + protected: + + GLUTImageViewers_A(); + + public: + + virtual ~GLUTImageViewers_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + static void init(int argc, char** argv); + + /** + * Attention appel bloquant ! + */ + static void runALL(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + /** + * Cast to ImageMOOs or your ImageFonctionelMOOs_A + * + * Sample : + * + * ImageMOOs_I* ptrImageMOO_A=this->getImageMOO(); + * + * + * ImageMOOs_A* ptrImageMOO=dynamic_cast(ptrImageMOO_A); + * + * MyImageFonctionelMOO* ptrImageMOO=dynamic_cast(ptrImageMOO_A); + * + * MyImageMOOs ptrImageMOO=dynamic_cast(ptrImageMOO_A); + * + * http://www.cplusplus.com/doc/tutorial/typecasting/ + */ + ImageMOOs_I* getImageMOO(); + + GLUTWindowImage* getGLUTWindowImage(); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + protected: + // Tools + GLUTWindowImage* ptrGLUTImageWindow; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/INC/common/GLUTWindowImage.h b/WCudaMSE/API_Bilat_Image_FreeGlut/INC/common/GLUTWindowImage.h new file mode 100755 index 0000000..f8de85f --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut/INC/common/GLUTWindowImage.h @@ -0,0 +1,39 @@ +#ifndef GLUT_WINDOW_IMAGE_H +#define GLUT_WINDOW_IMAGE_H + +#include "envImage_FreeGlut.h" + +#include "GLUTWindow.h" +#include "GLImages_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_IMAGE_FREE_GLUT GLUTWindowImage : public GLUTWindow + { + public: + GLUTWindowImage(GLImages_A* ptrGLImage,string title, int pxFrame = 0, int pyFrame = 0); + + virtual ~GLUTWindowImage(); + + /** + * Fonction appelé a chaque fois que glut n'a rien à faire dans la mainLoop. + * CaD s'il n'y a pas d'évenents utilisateur (souris,clavier,joystick,repaint,etc...) + * La fonction animationStep de ImageMOO est appelé ici + */ + void idleFunc(); + + GLImages_A* getPtrGLImage(); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/INC/cpu/GLUTImageViewers_CPU.h b/WCudaMSE/API_Bilat_Image_FreeGlut/INC/cpu/GLUTImageViewers_CPU.h new file mode 100755 index 0000000..68c4684 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut/INC/cpu/GLUTImageViewers_CPU.h @@ -0,0 +1,45 @@ +#ifndef GLUT_IMAGE_VIEWERS_GPU_H +#define GLUT_IMAGE_VIEWERS_CPU_H + +#include "envImage_FreeGlut.h" +#include "GLUTImageViewers_A.h" +#include "GLUTWindowImage.h" +#include "ImageMOOs_I.h" + +//cpu +#include "GLImageFonctionelSelections_CPU.h" +#include "ImageFonctionelMOOs_A_CPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class CBI_IMAGE_FREE_GLUT GLUTImageViewers: public GLUTImageViewers_A + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + GLUTImageViewers(cpu::ImageMOOs_A* ptrImageMOO, bool useAnimation = false, bool useSelection = false, int pxFrame = 0, int pyFrame = 0); + + GLUTImageViewers(cpu::ImageFonctionelMOOs_A* ptrImageFonctionel, bool useAnimation = false, bool useSelection = true, int pxFrame = 0, int pyFrame = + 0); + + }; + + } + +#endif +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/INC/envImage_FreeGlut.h b/WCudaMSE/API_Bilat_Image_FreeGlut/INC/envImage_FreeGlut.h new file mode 100755 index 0000000..8eb2efa --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut/INC/envImage_FreeGlut.h @@ -0,0 +1,30 @@ +/** + * Bilat_Image_FreeGlut + * version : 001 + * + * Cédric Bilat cedric.bilat@he-arc.ch + * Stähli Joaquim joaquim.stahli@he-arc.ch + */ + +//PRIVATE +#ifndef ENV_IMAGE_FREE_GLUT_H +#define ENV_IMAGE_FREE_GLUT_H + +#include "dllHelper.h" + + + +#ifdef CBI_IMAGE_FREE_GLUT_DLL // defined if API is compiled as a DLL + + #ifdef CBI_IMAGE_FREE_GLUT_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_IMAGE_FREE_GLUT HELPER_DLL_EXPORT + #else + #define CBI_IMAGE_FREE_GLUT HELPER_DLL_IMPORT + #endif // CBI_IMAGE_FREE_GLUT_EXPORT + #define CBI_IMAGE_FREE_GLUT_LOCAL HELPER_DLL_LOCAL +#else // CBI_IMAGE_FREE_GLUT_DLL is not defined: this means API is a static lib. + #define CBI_IMAGE_FREE_GLUT + #define CBI_IMAGE_FREE_GLUT_LOCAL +#endif + +#endif diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/intelWin/Bilat_Image_FreeGlut_003_64.lib b/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/intelWin/Bilat_Image_FreeGlut_003_64.lib new file mode 100755 index 0000000..3704a78 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/intelWin/Bilat_Image_FreeGlut_003_64.lib differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/mingw/libBilat_Image_FreeGlut_003_64.dll.a b/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/mingw/libBilat_Image_FreeGlut_003_64.dll.a new file mode 100755 index 0000000..96dfdfb Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/mingw/libBilat_Image_FreeGlut_003_64.dll.a differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/visual/Bilat_Image_FreeGlut_003_64.lib b/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/visual/Bilat_Image_FreeGlut_003_64.lib new file mode 100755 index 0000000..89f744e Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut/LIB/visual/Bilat_Image_FreeGlut_003_64.lib differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/.classpath b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/.classpath new file mode 100755 index 0000000..d171cd4 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/.project b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/.project new file mode 100755 index 0000000..8ceb301 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_FreeGlut_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/.project b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/.project new file mode 100755 index 0000000..8ceb301 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_FreeGlut_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/gcc/libBilat_Image_FreeGlut_Cuda_65_004_64.so b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/gcc/libBilat_Image_FreeGlut_Cuda_65_004_64.so new file mode 100755 index 0000000..11ffc10 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/gcc/libBilat_Image_FreeGlut_Cuda_65_004_64.so differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/gcc_arm/libBilat_Image_FreeGlut_Cuda_50_004_ARM.so b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/gcc_arm/libBilat_Image_FreeGlut_Cuda_50_004_ARM.so new file mode 100755 index 0000000..02b3c59 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/gcc_arm/libBilat_Image_FreeGlut_Cuda_50_004_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/visual/Bilat_Image_FreeGlut_Cuda_60_004_64.dll b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/visual/Bilat_Image_FreeGlut_Cuda_60_004_64.dll new file mode 100755 index 0000000..9dd2f94 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/visual/Bilat_Image_FreeGlut_Cuda_60_004_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/visual/Bilat_Image_FreeGlut_Cuda_65_004_64.dll b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/visual/Bilat_Image_FreeGlut_Cuda_65_004_64.dll new file mode 100755 index 0000000..f45a191 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/BIN/visual/Bilat_Image_FreeGlut_Cuda_65_004_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/INC/GLUTImageViewers_GPU.h b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/INC/GLUTImageViewers_GPU.h new file mode 100755 index 0000000..5555d74 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/INC/GLUTImageViewers_GPU.h @@ -0,0 +1,41 @@ +#ifndef GLUT_IMAGE_VIEWERS_GPU_H +#define GLUT_IMAGE_VIEWERS_GPU_H + +#include "envImageFreeGlutCuda.h" +#include "GLUTImageViewers_A.h" + +//gpu +#include "GLImageFonctionelSelections_GPU.h" +#include "ImageFonctionelMOOs_A_GPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class CBI_IMAGE_FREE_GLUT_CUDA GLUTImageViewers: public GLUTImageViewers_A + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + GLUTImageViewers(gpu::ImageMOOs_A* ptrImageMOO, bool useAnimation = false, bool useSelection = false, int pxFrame = 0, int pyFrame = 0); + + GLUTImageViewers(gpu::ImageFonctionelMOOs_A* ptrImageFonctionel, bool useAnimation = false, bool useSelection = true, int pxFrame = 0, int pyFrame = 0); + + + }; + } +#endif +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/INC/envImageFreeGlutCuda.h b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/INC/envImageFreeGlutCuda.h new file mode 100755 index 0000000..600dc19 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/INC/envImageFreeGlutCuda.h @@ -0,0 +1,27 @@ +/** + * GLTools project + * version : 0.0.2 + * + * Cédric Bilat cedric.bilat@he-arc.ch + * Stähli Joaquim joaquim.stahli@he-arc.ch + */ + +//PRIVATE +#ifndef ENV_IMAGE_FREEGLUT_CUDA_H +#define ENV_IMAGE_FREEGLUT_CUDA_H + +#include "dllHelper.h" + +#ifdef CBI_IMAGE_FREE_GLUT_CUDA_DLL // defined if API is compiled as a DLL + #ifdef CBI_IMAGE_FREE_GLUT_CUDA_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_IMAGE_FREE_GLUT_CUDA HELPER_DLL_EXPORT + #else + #define CBI_IMAGE_FREE_GLUT_CUDA HELPER_DLL_IMPORT + #endif // GLIMAGE_DLL_EXPORT + #define CBI_IMAGE_FREE_GLUT_CUDA_LOCAL HELPER_DLL_LOCAL +#else // GLIMAGE_USE_DLL is not defined: this means API is a static lib. + #define CBI_IMAGE_FREE_GLUT_CUDA + #define CBI_IMAGE_FREE_GLUT_CUDA_LOCAL +#endif + +#endif /* ENV_GLIMAGE_H */ diff --git a/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/LIB/visual/Bilat_Image_FreeGlut_Cuda_65_004_64.lib b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/LIB/visual/Bilat_Image_FreeGlut_Cuda_65_004_64.lib new file mode 100755 index 0000000..eb697df Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_FreeGlut_Cuda/LIB/visual/Bilat_Image_FreeGlut_Cuda_65_004_64.lib differ diff --git a/WCudaMSE/API_Bilat_Image_GL/.classpath b/WCudaMSE/API_Bilat_Image_GL/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_Image_GL/.project b/WCudaMSE/API_Bilat_Image_GL/.project new file mode 100755 index 0000000..2920e79 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_GL + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_GL/BIN/.project b/WCudaMSE/API_Bilat_Image_GL/BIN/.project new file mode 100755 index 0000000..2920e79 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_GL + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_GL/BIN/gcc/libBilat_Image_GL_005_64.so b/WCudaMSE/API_Bilat_Image_GL/BIN/gcc/libBilat_Image_GL_005_64.so new file mode 100755 index 0000000..40339b7 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/BIN/gcc/libBilat_Image_GL_005_64.so differ diff --git a/WCudaMSE/API_Bilat_Image_GL/BIN/gcc_arm/libBilat_Image_GL_005_ARM.so b/WCudaMSE/API_Bilat_Image_GL/BIN/gcc_arm/libBilat_Image_GL_005_ARM.so new file mode 100755 index 0000000..b00b680 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/BIN/gcc_arm/libBilat_Image_GL_005_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Image_GL/BIN/intelLinux/libBilat_Image_GL_005_64.so b/WCudaMSE/API_Bilat_Image_GL/BIN/intelLinux/libBilat_Image_GL_005_64.so new file mode 100755 index 0000000..f06eefd Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/BIN/intelLinux/libBilat_Image_GL_005_64.so differ diff --git a/WCudaMSE/API_Bilat_Image_GL/BIN/intelWin/Bilat_Image_GL_005_64.dll b/WCudaMSE/API_Bilat_Image_GL/BIN/intelWin/Bilat_Image_GL_005_64.dll new file mode 100755 index 0000000..a765d97 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/BIN/intelWin/Bilat_Image_GL_005_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_GL/BIN/mingw/libBilat_Image_GL_005_64.dll b/WCudaMSE/API_Bilat_Image_GL/BIN/mingw/libBilat_Image_GL_005_64.dll new file mode 100755 index 0000000..3ee9810 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/BIN/mingw/libBilat_Image_GL_005_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_GL/BIN/visual/Bilat_Image_GL_005_64.dll b/WCudaMSE/API_Bilat_Image_GL/BIN/visual/Bilat_Image_GL_005_64.dll new file mode 100755 index 0000000..3e4bb44 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/BIN/visual/Bilat_Image_GL_005_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/Color3f.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/Color3f.h new file mode 100755 index 0000000..fee76bf --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/Color3f.h @@ -0,0 +1,109 @@ +#ifndef COLOR_3F_H +#define COLOR_3F_H + +#include "envGLImage.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE Colorf + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Colorf(float red = 0.0f, float green = 0.0f, float blue = 0.0f, float alpha = 0.0f); + + Colorf(const Colorf& source); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + public: + + virtual ~Colorf(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + inline float getRed() const + { + return tabColor[0]; + } + + inline float getGreen() const + { + return tabColor[1]; + } + + inline float getBlue() const + { + return tabColor[2]; + } + + inline float getAlpha() const + { + return tabColor[3]; + } + + inline float* getTabColor() + { + return tabColor; + } + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + public: + inline void setRed(float red) + { + tabColor[0] = red; + } + + inline void setGreen(float green) + { + tabColor[1] = green; + } + inline void setBlue(float blue) + { + tabColor[2] = blue; + } + + inline void setAlpha(float alpha) + { + tabColor[3] = alpha; + } + + /*--------------------------------------*\ + |* Static *| + \*-------------------------------------*/ + + static Colorf toHSB(float h01, float s01, float b01, float a01 = 1.0f); + + /*--------------------------------------*\ + |* Attributs *| + \*------------------------------------*/ + + private: + + // Input + float tabColor[4]; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/GLImages_A.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/GLImages_A.h new file mode 100755 index 0000000..f754668 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/GLImages_A.h @@ -0,0 +1,159 @@ +#ifndef GLIMAGE_API_WINDOWS_H +#define GLIMAGE_API_WINDOWS_H + +#ifdef _WIN32 +#include +#else +#include +#endif + +#include "envGLImage.h" +#include "ImageObserver_I.h" +#include "Displayable_A.h" +#include "GLPrimitiveDrawers.h" +#include "Graphic2Ds.h" + +#include +using std::string; + +#include +using std::vector; + +#include "ImageMOOs_I.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE GLImages_A: public Displayable_A, public KeyListener_I, public MouseListener_I, public ImageObserver_I + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + GLImages_A(ImageMOOs_I* ptrImageMOO, bool isAnimationEnable = true); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + public: + + virtual ~GLImages_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + virtual void init(Panel_A &panel); + + virtual void reshape(Panel_A &panel, int w, int h); + + virtual void display(Panel_A &panel); + + virtual void release(Panel_A &panel); + + virtual void onKeyPressed(const KeyEvent &event); + + virtual void onMouseMoved(const MouseEvent &event); + + virtual void onMousePressed(const MouseEvent &event); + + virtual void onMouseReleased(const MouseEvent &event); + + virtual void onMouseWheel(const MouseWheelEvent &event); + + virtual void onImageUpdate(); + + protected: + + virtual void fillPBO()=0; + + virtual void drawPrimitives(Panel_A &panel); + + virtual void createPBO(); + + virtual void createTexture(); + + void drawTexture(); + + void deleteTexture(); + + void drawCredits(Panel_A &panel); + + private: + + /** + * Update view from model, still need to manualy repaint the Window + */ + void updateView(); + + void toImageSpaceCoordinate(int x, int y, int &imageX, int &imageY); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + public: + /** + * width of the frame + */ + int getDxFrame(); + + /** + * height of the frame + */ + int getDyFrame(); + + ImageMOOs_I* getImageMOO(); + + protected: + + GLuint getPboID(); + + GLuint getTextureID(); + + /*--------------------------------------*\ + |* Is *| + \*-------------------------------------*/ + + public: + + bool isAnimationEnable() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + public: + + void setAnimationEnable(bool isEnable); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + protected: + + // Inputs + ImageMOOs_I* ptrImageMOO; + bool animationEnable; + int dxFrame; + int dyFrame; + + // OpenGL + GLPrimitiveDrawers glPrimitiveDrawer; + Graphic2Ds graphique2D; + GLuint textureID; + GLuint pbo; + }; + +#endif diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/GLPrimitiveDrawers.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/GLPrimitiveDrawers.h new file mode 100755 index 0000000..fcd16a8 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/GLPrimitiveDrawers.h @@ -0,0 +1,89 @@ +#ifndef GL_PRIMITIVE_DRAWERS_H +#define GL_PRIMITIVE_DRAWERS_H + +#include "envGLImage.h" +#include "PrimitiveVisitors_I.h" +#include "TextRenderer_A.h" +#include "Line2Ds.h" +#include "Rect2Ds.h" +#include "Text2Ds.h" +#include "WiredRect2Ds.h" +#include "Graphic2Ds.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE GLPrimitiveDrawers: public PrimitiveVisitors_I + + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + GLPrimitiveDrawers(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~GLPrimitiveDrawers(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void display(Graphic2Ds* graphic2D, TextRenderer_A* textRenderer); + + private: + + /** + * Override + */ + virtual void visite(Graphic2Ds* graphic2D); + + /** + * Override + */ + virtual void visite(Line2Ds* ptrLine2D); + + /** + * Override + */ + virtual void visite(Rect2Ds* ptrRect2D); + + /** + * Override + */ + virtual void visite(Text2Ds* ptrTexte2D); + + /** + * Override + */ + virtual void visite(WiredRect2Ds* ptrWiredRect2D); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + /** + * setBy display ! + */ + TextRenderer_A* ptrTextRenderer; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/Graphic2Ds.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/Graphic2Ds.h new file mode 100755 index 0000000..d333176 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/Graphic2Ds.h @@ -0,0 +1,124 @@ +#ifndef GRAPHIC2DS_H +#define GRAPHIC2DS_H + +#include "envGLImage.h" +#include "Panel_A.h" +#include "Font_A.h" +#include "Color3f.h" +#include "Primitives_A.h" + +#include +#include + +using std::queue; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE Graphic2Ds + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + Graphic2Ds(int width, int height); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~Graphic2Ds(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /*--------------*\ + |* User *| + \*-------------*/ + + public: + + void setColor(Colorf colorf); + + void setColorRGB(float r01, float g01, float b01, float a01 = 1.0f); + + void setColorHSB(float h01, float s01, float b01, float a01 = 1.0f); + + void drawLigne(int x1, int y1, int x2, int y2); + + void drawVerticalLigne(int x, int y, int height); + + void drawHorizontalLigne(int x, int y, int width); + + void drawWiredRect2D(int x, int y, int width, int height); + + void drawRect2D(int x, int y, int width, int height); + + void drawText(int x, int y, string texte, const Font_A* font); + + void drawTitleTop(string texte, const Font_A* font); + + void drawTitleMiddle(string texte, const Font_A* font); + + void drawTitleBottom(string texte, const Font_A* font); + + const Font_A* getFont(string fontname); + + const Font_A* getFont(FontType type = HELVETICA_12); + + int texteWidth(string texte, const Font_A* font); + + int texteHeight(string texte, const Font_A* font); + + /*--------------*\ + |* Developer *| + \*--------------*/ + + unsigned int getSize(); + + bool isEmpty(); + + void reshape(int width, int height); + + void startPainPrimitive(Panel_A &ptrPanel); + + void drawPrimitive(Primitives_A* primitive); + + Primitives_A* popPrimitive(); + + Colorf popColor(); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + private: + + // Inputs + int width; + int height; + Panel_A* ptrPanel; + + // Tools + Colorf currentColor; + queue queueColors; + queue queuePrimitives; + + int frameWidth; + int frameHeight; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/ImageMOOs_I.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/ImageMOOs_I.h new file mode 100755 index 0000000..03921ae --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/ImageMOOs_I.h @@ -0,0 +1,149 @@ +#ifndef IMAGEMOOS_A_H +#define IMAGEMOOS_A_H + +#include "envGLImage.h" +#include "KeyListener_I.h" +#include "MouseListener_I.h" +#include "ImageObserver_I.h" +#include "Graphic2Ds.h" + +#include +#include +#include + +using std::vector; +using std::string; +using std::ostream; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Base class for Image Model. + */ +class CBI_GLIMAGE ImageMOOs_I + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + public: + ImageMOOs_I(unsigned int width, unsigned int height); + + ImageMOOs_I(const ImageMOOs_I &imageSource); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + public: + virtual ~ImageMOOs_I(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + public: + /** + * A redefinir par l'utilisateur + */ + virtual void animationStep(bool& isNeedUpdateView)=0; + + /** + * A redefinir par l'utilisateur + */ + virtual void paintPrimitives(Graphic2Ds& ptrGraphic2D)=0; + + /** + * call by API + */ + virtual void animationStepAPI(bool& isNeedUpdateView); + + /** + * call by API + */ + virtual void paintPrimitivesAPI(Graphic2Ds& ptrGraphic2D); + + virtual void print(ostream& stream) const; + + void registerImageObserver(ImageObserver_I &ptrObserver); + + void unregisterImageObserver(ImageObserver_I &ptrObserver); + + /* + * Notify all registred ImageObserver_I + * @see registerImageObserver + */ + void update() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + public: + + void setKeyListener(KeyListener_I* ptrKeyListener); + + void setMouseListener(MouseListener_I* ptrMouseListener); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + inline unsigned int getW() const + { + return width; + } + + inline unsigned int getH() const + { + return height; + } + + inline KeyListener_I* getKeyListener() const + { + return ptrKeyListener; + } + + inline MouseListener_I* getMouseListener() const + { + return ptrMouseListener; + } + + unsigned int getSizeOctet() const; + + /*--------------------------------------*\ + |* Friend *| + \*-------------------------------------*/ + + /** + * call image.print(stream) + */ + CBI_GLIMAGE + friend ostream& operator<<(ostream& stream, const ImageMOOs_I& image); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + // Inputs + unsigned int width; + unsigned int height; + + // Tools + KeyListener_I* ptrKeyListener; + MouseListener_I* ptrMouseListener; + vector vectorObservable; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/ImageObserver_I.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/ImageObserver_I.h new file mode 100755 index 0000000..f8dd7c0 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/ImageObserver_I.h @@ -0,0 +1,37 @@ +#ifndef IMAGE_OBSERVER_I_H +#define IMAGE_OBSERVER_I_H + +#include "envGLImage.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE ImageObserver_I + { + public: + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~ImageObserver_I() + { + // Nothing + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + virtual void onImageUpdate()=0; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/Line2Ds.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/Line2Ds.h new file mode 100755 index 0000000..a6b7dac --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/Line2Ds.h @@ -0,0 +1,60 @@ +#ifndef LINE_2DS_H +#define LINE_2DS_H + +#include "Primitives_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Line2Ds: public Primitives_A + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + Line2Ds(int x1, int y1, int x2, int y2); + + Line2Ds(const Line2Ds& source); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~Line2Ds(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * Overide + */ + virtual void accept(PrimitiveVisitors_I &visitor); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + public: + + //Input + int x1; + int y1; + int x2; + int y2; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/Options.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/Options.h new file mode 100755 index 0000000..3ab274f --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/Options.h @@ -0,0 +1,34 @@ + +#ifndef OPTIONS_H +#define OPTIONS_H + +#include "envGLImage.h" + +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE Options + { + public: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + static string CREDITS; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/PrimitiveVisitors_I.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/PrimitiveVisitors_I.h new file mode 100755 index 0000000..c7af0cf --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/PrimitiveVisitors_I.h @@ -0,0 +1,55 @@ +#ifndef PRIMITIVE_VISITOR_H +#define PRIMITIVE_VISITOR_H + +#include "envGLImage.h" +#include "TextRenderer_A.h" + +class Graphic2Ds; +class Line2Ds; +class Rect2Ds; +class WiredRect2Ds; +class Text2Ds; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE PrimitiveVisitors_I + { + public: + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + + virtual ~PrimitiveVisitors_I() + { + //Nothing + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + virtual void visite(Graphic2Ds* graphic2D)=0; + + virtual void visite(Line2Ds* ptrLine2D)=0; + + virtual void visite(Rect2Ds* ptrRect2D)=0; + + virtual void visite(WiredRect2Ds* ptrWiredRect2Ds)=0; + + virtual void visite(Text2Ds* ptrTexte2D)=0; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/Primitives_A.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/Primitives_A.h new file mode 100755 index 0000000..9b25350 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/Primitives_A.h @@ -0,0 +1,56 @@ +#ifndef PRIMITIVES_A_H +#define PRIMITIVES_A_H + +#include "envGLImage.h" +#include "PrimitiveVisitors_I.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE Primitives_A + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + Primitives_A() + { + isNeedToDelete = false; + } + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~Primitives_A() + { + //Nothing + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + public: + virtual void accept(PrimitiveVisitors_I &visitor)=0; + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + public: + + bool isNeedToDelete; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/PseudoCudaType.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/PseudoCudaType.h new file mode 100755 index 0000000..b75629a --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/PseudoCudaType.h @@ -0,0 +1,42 @@ +#ifndef CUDA_PSEUDO_TYPE_H_ +#define CUDA_PSEUDO_TYPE_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + + struct float2 + { + float x; + float y; + }; + + struct float3 + { + float x; + float y; + float z; + }; + + struct uchar4 + { + unsigned char x; + unsigned char y; + unsigned char z; + unsigned char w; + }; + + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/Rect2Ds.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/Rect2Ds.h new file mode 100755 index 0000000..2b64086 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/Rect2Ds.h @@ -0,0 +1,92 @@ +#ifndef RECT_2DS_H +#define RECT_2DS_H + +#include "Primitives_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE Rect2Ds: public Primitives_A + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + /* + * (x,y) coin superieur gauche + */ + Rect2Ds(int x, int y, int width, int height); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~Rect2Ds(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * Override + */ + virtual void accept(PrimitiveVisitors_I &visitor); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + inline int getX() + { + return x; + } + + inline int getY() + { + return y; + } + + inline int getWidth() + { + return width; + } + + inline int getHeight() + { + return height; + } + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setXY(int x, int y); + void setSize(int width, int height); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + public: + + //Input + int x; + int y; + int width; + int height; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/Text2Ds.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/Text2Ds.h new file mode 100755 index 0000000..a324216 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/Text2Ds.h @@ -0,0 +1,60 @@ +#ifndef TEXT2DS_H +#define TEXT2DS_H + +#include "Primitives_A.h" +#include "Font_A.h" + +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE Text2Ds : public Primitives_A + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + Text2Ds(int x,int y,string texte,const Font_A* font); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~Text2Ds(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /** + * Override + */ + void accept(PrimitiveVisitors_I &visitor); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + public: + + //Input + string texte; + const Font_A* font; + int x; + int y; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/WiredRect2Ds.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/WiredRect2Ds.h new file mode 100755 index 0000000..3c266be --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/WiredRect2Ds.h @@ -0,0 +1,55 @@ +#ifndef WIREDRECT2DS_H +#define WIREDRECT2DS_H + +#include "Rect2Ds.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE WiredRect2Ds: public Rect2Ds + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + WiredRect2Ds(int x, int y, int width, int height) : + Rect2Ds(x, y, width, height) + { + //Nothing + } + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~WiredRect2Ds() + { + //Nothing + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /** + * Override + */ + virtual void accept(PrimitiveVisitors_I &visitor) + { + visitor.visite(this); + } + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/DomaineEcran_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/DomaineEcran_CPU.h new file mode 100755 index 0000000..16b1598 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/DomaineEcran_CPU.h @@ -0,0 +1,55 @@ +#ifndef DOMAINE_ECRAN_CPU_H +#define DOMAINE_ECRAN_CPU_H + +#include "envGLImage.h" +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class CBI_GLIMAGE DomaineEcran + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + DomaineEcran(int x = 0, int y = 0, int dx = 1, int dy = 1); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + string toString(); + + /*-------------------------------------*\ + |* Attributs *| + \*------------------------------------*/ + + public: + + //Input + int x0; + int y0; + int dx; + int dy; + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/DomaineMath_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/DomaineMath_CPU.h new file mode 100755 index 0000000..494ede2 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/DomaineMath_CPU.h @@ -0,0 +1,103 @@ +#ifndef DOMAINE_MATH_CPU_H +#define DOMAINE_MATH_CPU_H + +#include "envGLImage.h" +#include "DomaineEcran_CPU.h" +#include + +using std::string; +using std::ostream; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + /** + * (x0,y0) upper left corner of a dx x dy square. + * x[x0,x1] y[y0,y1] + */ + class CBI_GLIMAGE DomaineMath + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + DomaineMath(); + + DomaineMath(double x0, double y0, double x1, double y1); + + /*--------------------------------------*\ + |* Methodes *| + \*--------------------------------------*/ + + public: + + cpu::DomaineMath extractDomaineFromSelection(const cpu::DomaineEcran &domaineSelection, int dxFrame, int dyFrame) const; + + string toString() const; + + inline double dx() const + { + return x1 - x0; + } + + inline double dy() const + { + return y1 - y0; + } + + + /** + * toXY est uniquement utilisable lorsque le domaine a été associé a une ImageFonctionelle! + */ + void toXY(int i, int j, double* ptrX, double* ptrY) const; + + static cpu::DomaineMath create(double x0, double y0, double dx, double dy); + + private: + + void computeDxDy(int w, int h); + + public: + + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + public: + + //Input + double x0; + double y0; + double x1; + double y1; + + private: + + // Tools + double dxDw; //old dx + double dyDh; //old dy + + friend class ImageFonctionelMOOs_A; + // Toutes les méthode de la classe ImageFonctionelMOOs_A sont amie + }; + + CBI_GLIMAGE ostream& operator<<(ostream& stream, const cpu::DomaineMath& domaine); + + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageFonctionelSelections_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageFonctionelSelections_CPU.h new file mode 100755 index 0000000..6751348 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageFonctionelSelections_CPU.h @@ -0,0 +1,71 @@ +#ifndef GLIMAGE_FONCTIONEL_SELECTIONS_CPU_H +#define GLIMAGE_FONCTIONEL_SELECTIONS_CPU_H + +#include "GLImageSelections_CPU.h" +#include "ImageFonctionelMOOs_A_CPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class CBI_GLIMAGE GLImageFonctionelSelections: public cpu::GLImageSelections + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + GLImageFonctionelSelections(cpu::ImageFonctionelMOOs_A *ptrImageFonctionel, bool isAnimationEnable = true); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + public: + + virtual ~GLImageFonctionelSelections(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * surcharge + */ + virtual void onKeyPressed(const KeyEvent &event); + + protected: + + /** + * Callback for square selection with mouse + * Then selection is performed with the mouse, 3 arguments : + * 1) selected domaine in frame coordinate + * 2) dx is the screen width in pixel + * 3) dy is the screen height in pixel + **/ + virtual void selectionPerformed(cpu::DomaineEcran& domaine, int dx, int dy); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + cpu::ImageFonctionelMOOs_A* getPtrImageFonctionelSelectionMOO(); + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageSelections_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageSelections_CPU.h new file mode 100755 index 0000000..7570c40 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageSelections_CPU.h @@ -0,0 +1,97 @@ +#ifndef GLIMAGE_SELECTIONS_CPU_H +#define GLIMAGE_SELECTIONS_CPU_H + +#include "GLImages_CPU.h" +#include "DomaineEcran_CPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class CBI_GLIMAGE GLImageSelections: public cpu::GLImages + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + GLImageSelections(cpu::ImageMOOs_A* ptrImageMOO, bool isAnimationEnable = true); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~GLImageSelections(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + protected: + + /** + * then selection is performed with the mouse, 3 arguments : + * 1) selected domaine in frame coordinate + * 2) dx is the screen width in pixLa clel + * 3) dy is the screen height in pixel + **/ + virtual void selectionPerformed(cpu::DomaineEcran& domaine, int dx, int dy); + + /** + * Override + */ + virtual void display(Panel_A &panel); + + /** + * Override + */ + virtual void onMouseMoved(const MouseEvent &event); + + /** + * Override + */ + virtual void onMousePressed(const MouseEvent &event); + + /** + * Override + */ + virtual void onMouseReleased(const MouseEvent &event); + + private: + + void drawSelection(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + protected: + + cpu::DomaineEcran getCurrentDomaineSelection() const; + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + //Inputs + cpu::DomaineEcran domaineSelection; + + //Tools + bool isSelectionEnable; + float ratio; //ration de la taille de la s�lection proportionnel � l'image + }; + } + +#endif +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImages_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImages_CPU.h new file mode 100755 index 0000000..379dc29 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImages_CPU.h @@ -0,0 +1,73 @@ +#ifndef GLIMAGES_CPU_H +#define GLIMAGES_CPU_H + +#include "envGLImage.h" +#include "GLImages_A.h" +#include "ImageMOOs_A_CPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + + class CBI_GLIMAGE GLImages: public GLImages_A + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + public: + + /** + * (pxFrame,pyFrame) is the position of the upper left corner of the frame in screen space. + */ + GLImages(cpu::ImageMOOs_A* ptrImageMOO, bool isAnimationEnable = true); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + public : + + virtual ~GLImages(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + + protected: + /** + * Override + */ + virtual void fillPBO(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + cpu::ImageMOOs_A* getPtrImageMOO(); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Tools + cpu::uchar4* ptrTabPixels; + + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/ImageFonctionelMOOs_A_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/ImageFonctionelMOOs_A_CPU.h new file mode 100755 index 0000000..7c95de9 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/ImageFonctionelMOOs_A_CPU.h @@ -0,0 +1,131 @@ +#ifndef IMAGE_FONCTIONEL_MOOS_A_CPU_H +#define IMAGE_FONCTIONEL_MOOS_A_CPU_H + +#include "ImageMOOs_A_CPU.h" +#include "DomaineMath_CPU.h" + +#include +using std::stack; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * ImageMOO with a Mathematical Domaine. This domaine can be modified. + * An history of modification is maintained for undo. + */ +namespace cpu + { + class CBI_GLIMAGE ImageFonctionelMOOs_A: public cpu::ImageMOOs_A + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + ImageFonctionelMOOs_A(unsigned int m, unsigned int n, cpu::DomaineMath domaine); + + ImageFonctionelMOOs_A(const cpu::ImageFonctionelMOOs_A &imageSource); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~ImageFonctionelMOOs_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + virtual void fillImageGL(cpu::uchar4* ptrTabPixel, int w, int h, const cpu::DomaineMath& domaineNew)=0; + + /** + * Last Domaine push in History + */ + void restoreFromDomaineHistory(); + + /** + * First Domaine of History + */ + void headOfDomaineHistory(); + + /** + * Override + */ + virtual void print(ostream& stream) const; + + /** + * Override + */ + virtual void paintPrimitivesAPI(Graphic2Ds& ptrGraphic2D); + + /** + * Override + */ + virtual void fillImageGL(cpu::uchar4* ptrDevImageGL, int w, int h); + + protected: + + /** + * Override + * New mathematical domaine for this image. + * Previous domaine will be put in history and current domaine is domaineNew + */ + virtual void onDomaineChangePerformed(const cpu::DomaineMath& domaineNew); + + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + /** + * Domaine currently used + */ + cpu::DomaineMath getCurrentDomaine() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + public: + + void setCurrentDomaine(cpu::DomaineMath domaineNew); + + void setEnableDomaineOverlay(bool isEnable); + + /*--------------------------------------*\ + |* Is *| + \*-------------------------------------*/ + + public: + + inline bool isEnableDomaineOverlay() + { + return enableDomaineOverlay; + } + + /*---------------------------------------*\ + |* Attributs *| + \*---------------------------------------*/ + private: + + // Inputs + cpu::DomaineMath homeDomaine; + + // Tools + stack stackHistoryDomaine; + bool enableDomaineOverlay; + }; + } + +#endif diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/ImageMOOs_A_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/ImageMOOs_A_CPU.h new file mode 100755 index 0000000..f38ce90 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/ImageMOOs_A_CPU.h @@ -0,0 +1,61 @@ +#ifndef IMAGE_MOOS_A_CPU_H +#define IMAGE_MOOS_A_CPU_H + +#include "envGLImage.h" +#include "cudaType_CPU.h" +#include "ImageMOOs_I.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class CBI_GLIMAGE ImageMOOs_A: public ImageMOOs_I + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + ImageMOOs_A(unsigned int m, unsigned int n); + + ImageMOOs_A(const cpu::ImageMOOs_A &imageSource); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~ImageMOOs_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + virtual void fillImageGL(cpu::uchar4* ptrTabPixels, int w, int h)=0; + + /** + * Override + * A redefinir par l'utilisateur + */ + virtual void animationStep(bool& isNeedUpdateView); + + /** + * Override + * A redefinir par l'utilisateur + */ + virtual void paintPrimitives(Graphic2Ds& ptrGraphic2D); + + }; + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/cudaType_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/cudaType_CPU.h new file mode 100755 index 0000000..52a3b22 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/cudaType_CPU.h @@ -0,0 +1,44 @@ +#ifndef CUDA_TYPE_CPU_H_ +#define CUDA_TYPE_CPU_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + + //#define uchar unsigned char + typedef unsigned char uchar; //Mieux, en plus tu as la coloration synthaxique + + struct float2 + { + float x; + float y; + }; + + struct float3 + { + float x; + float y; + float z; + }; + + struct uchar4 + { + uchar x; + uchar y; + uchar z; + uchar w; + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/envGLImage.h b/WCudaMSE/API_Bilat_Image_GL/INC/envGLImage.h new file mode 100755 index 0000000..c62b3b8 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/envGLImage.h @@ -0,0 +1,31 @@ +/** + * GLImages project + * version : 0.0.3 + * + * Cédric Bilat cedric.bilat@he-arc.ch + * Stähli Joaquim joaquim.stahli@he-arc.ch + */ + +//PRIVATE +#ifndef ENV_GLIMAGE_H +#define ENV_GLIMAGE_H + +#include "dllHelper.h" + +// CBI_GL_IMAGE is used for the public API symbols. It either DLL imports or DLL exports (or does nothing for static build) +// CBI_GL_IMAGE_LOCAL is used for non-api symbols. + +#ifdef CBI_GLIMAGE_DLL // defined if API is compiled as a DLL + + #ifdef CBI_GLIMAGE_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_GLIMAGE HELPER_DLL_EXPORT + #else + #define CBI_GLIMAGE HELPER_DLL_IMPORT + #endif // GLIMAGE_DLL_EXPORT + #define CBI_GLIMAGE_LOCAL HELPER_DLL_LOCAL +#else // GLIMAGE_USE_DLL is not defined: this means API is a static lib. + #define CBI_GLIMAGE + #define CBI_GLIMAGE_LOCAL +#endif + +#endif diff --git a/WCudaMSE/API_Bilat_Image_GL/LIB/intelWin/Bilat_Image_GL_005_64.lib b/WCudaMSE/API_Bilat_Image_GL/LIB/intelWin/Bilat_Image_GL_005_64.lib new file mode 100755 index 0000000..235cf60 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/LIB/intelWin/Bilat_Image_GL_005_64.lib differ diff --git a/WCudaMSE/API_Bilat_Image_GL/LIB/mingw/libBilat_Image_GL_005_64.dll.a b/WCudaMSE/API_Bilat_Image_GL/LIB/mingw/libBilat_Image_GL_005_64.dll.a new file mode 100755 index 0000000..95193a4 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/LIB/mingw/libBilat_Image_GL_005_64.dll.a differ diff --git a/WCudaMSE/API_Bilat_Image_GL/LIB/visual/Bilat_Image_GL_005_64.lib b/WCudaMSE/API_Bilat_Image_GL/LIB/visual/Bilat_Image_GL_005_64.lib new file mode 100755 index 0000000..a1757bc Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL/LIB/visual/Bilat_Image_GL_005_64.lib differ diff --git a/WCudaMSE/API_Bilat_Image_GL/linuxReadMe.txt b/WCudaMSE/API_Bilat_Image_GL/linuxReadMe.txt new file mode 100755 index 0000000..4182cea --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/linuxReadMe.txt @@ -0,0 +1,18 @@ +Avril 2012 + +********************************** +linux +********************************** + +Les .so pour les api + BilatImage + BilatImageCuda +se trouve dans + /usr/local/lib + +Ces .so ne sont pas dans le workspace, car le rendu avec un bureau à distance pose alors probleme! + +********************************* +end +********************************* + \ No newline at end of file diff --git a/WCudaMSE/API_Bilat_Image_GL/readme.txt b/WCudaMSE/API_Bilat_Image_GL/readme.txt new file mode 100755 index 0000000..4f5efb7 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/readme.txt @@ -0,0 +1,30 @@ +0.0.1 +cedric.bilat@he-arc.ch + + +Linux (gcc, intel) + + Compilation : required .h + Linkage : required .so (shared lib) .a (static lib) + runtime : required .so + +Windows (vidual, intel) + + Compilation : required .h, + Linkage : required .lib (shared lib and static lib) + runtime : required .dll + +Windows (mingw) + + Compilation : required .h + Linkage : required .dll.a + runtime : required .dll (TODO same .dll as visual intel?) + +Note + + (N1) Ainsi pas de folder linux dans LIB pour les shared lib,mais il peut y en avoir pour des static lib + + (n2) MinGW fonctionne sous windows mais avec politique gcc linux + +TODO: freeglut lib, pas name juste : recompiler +TODO: Bilat_ \ No newline at end of file diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/.classpath b/WCudaMSE/API_Bilat_Image_GL_Cuda/.classpath new file mode 100755 index 0000000..d171cd4 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/.project b/WCudaMSE/API_Bilat_Image_GL_Cuda/.project new file mode 100755 index 0000000..fdbbead --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_GL_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/.project b/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/.project new file mode 100755 index 0000000..fdbbead --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_GL_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/gcc/libBilat_Image_GL_Cuda_65_004_64.so b/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/gcc/libBilat_Image_GL_Cuda_65_004_64.so new file mode 100755 index 0000000..9e7b846 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/gcc/libBilat_Image_GL_Cuda_65_004_64.so differ diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/gcc_arm/libBilat_Image_GL_Cuda_50_004_ARM.so b/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/gcc_arm/libBilat_Image_GL_Cuda_50_004_ARM.so new file mode 100755 index 0000000..85ebc0f Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/gcc_arm/libBilat_Image_GL_Cuda_50_004_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/visual/Bilat_Image_GL_Cuda_65_004_64.dll b/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/visual/Bilat_Image_GL_Cuda_65_004_64.dll new file mode 100755 index 0000000..fe3a85f Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL_Cuda/BIN/visual/Bilat_Image_GL_Cuda_65_004_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/envGLImageCudas.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/envGLImageCudas.h new file mode 100755 index 0000000..c07c11d --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/envGLImageCudas.h @@ -0,0 +1,27 @@ +/** + * GLTools project + * version : 0.0.2 + * + * Cédric Bilat cedric.bilat@he-arc.ch + * Stähli Joaquim joaquim.stahli@he-arc.ch + */ + +//PRIVATE +#ifndef ENV_GLIMAGE_CUDA_H +#define ENV_GLIMAGE_CUDA_H + +#include "dllHelper.h" + +#ifdef CBI_GLIMAGE_CUDA_DLL // defined if API is compiled as a DLL + #ifdef CBI_GLIMAGE_CUDA_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_GLIMAGE_CUDA HELPER_DLL_EXPORT + #else + #define CBI_GLIMAGE_CUDA HELPER_DLL_IMPORT + #endif // GLIMAGE_DLL_EXPORT + #define CBI_GLIMAGE_CUDA_LOCAL HELPER_DLL_LOCAL +#else // GLIMAGE_USE_DLL is not defined: this means API is a static lib. + #define CBI_GLIMAGE_CUDA + #define CBI_GLIMAGE_CUDA_LOCAL +#endif + +#endif /* ENV_GLIMAGE_H */ diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/CudaInteropTools.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/CudaInteropTools.h new file mode 100755 index 0000000..7e9dcee --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/CudaInteropTools.h @@ -0,0 +1,47 @@ +#ifndef CUDA_INTEROP_TOOLS_H +#define CUDA_INTEROP_TOOLS_H + +//#include "GLImageCudas.h" //include ImageCudas +#include "envGLImageCudas.h" +#ifdef _WIN32 +#include +#else +#include +#endif + +#include "cuda.h" +#include "cuda_gl_interop.h" //link between GL and Cuda +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +CBI_GLIMAGE_CUDA void initCudaForGLInterop(int deviceId = 0); + +/** + * stream avec lequelle il synchronise + */ +CBI_GLIMAGE_CUDA cudaGraphicsResource* linkWithCuda(GLuint pboID, cudaStream_t stream = 0); + +/** + * stream avec lequelle il synchronise + */ +CBI_GLIMAGE_CUDA void unLinkWithCuda(cudaGraphicsResource* cudaRessource); + +/* + * Get Pixels from device to use with Cuda ! + */ +CBI_GLIMAGE_CUDA void mapDevicePixels(cudaGraphicsResource* cudaRessource, uchar4** devPixels, size_t* size, cudaStream_t stream = 0); + +/** + * Tell to cuda that we finish with pixels + */ +CBI_GLIMAGE_CUDA void unMapDevicePixels(cudaGraphicsResource *cudaRessource, cudaStream_t stream = 0); + +CBI_GLIMAGE_CUDA void resetDevicePixel(cudaGraphicsResource* cudaRessource, cudaStream_t stream = 0); + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineEcran_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineEcran_GPU.h new file mode 100755 index 0000000..388bcd8 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineEcran_GPU.h @@ -0,0 +1,64 @@ +#ifndef DOMAINE_ECRAN_GPU_H +#define DOMAINE_ECRAN_GPU_H + +#include "envGLImageCudas.h" +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class CBI_GLIMAGE_CUDA DomaineEcran + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + __host__ __device__ DomaineEcran(int x, int y, int dx, int dy) : + x0(x), y0(y), dx(dx), dy(dy) + { + + } + + __host__ __device__ DomaineEcran() : x0(0),y0(0),dx(1),dy(1) + { + + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + __host__ string toString(); + + /*-------------------------------------*\ + |* Attributs *| + \*------------------------------------*/ + + public: + + //Input + int x0; + int y0; + int dx; + int dy; + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineMath_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineMath_GPU.h new file mode 100755 index 0000000..262772d --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/DomaineMath_GPU.h @@ -0,0 +1,153 @@ +#ifndef DOMAINE_MATH_GPU_H +#define DOMAINE_MATH_GPU_H + +#include "envGLImageCudas.h" +#include "cuda.h" +#include "DomaineEcran_GPU.h" +#include + +using std::string; +using std::ostream; + +#define GPU_SCOPE __host__ __device__ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + /** + * (x0,y0) upper left corner of a dx x dy square. + * x[x0,x1] y[y0,y1] + */ + class CBI_GLIMAGE_CUDA DomaineMath + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + __host__ + __device__ DomaineMath() : + x0(0.0), y0(0.0), x1(0.0), y1(0.0), dxDw(0.0), dyDh(0.0) + { + // rien + } + + __host__ + __device__ DomaineMath(double x0, double y0, double x1, double y1) : + x0(x0), y0(y0), x1(x1), y1(y1), dxDw(0.0), dyDh(0.0) + { + // rien + } + + /*--------------------------------------*\ + |* Methodes *| + \*--------------------------------------*/ + + /*------------------------------*\ + |* CPU *| + \*-----------------------------*/ + + public: + + __host__ + string toString() const; + + + + private: + + /** + * called only by ImageFonctionelMOOs_A, so Host Only! + */ + __host__ + void computeDxDy(int w, int h); + + /*------------------------------*\ + |* GPU/CPU *| + \*-----------------------------*/ + + public: + + __host__ __device__ + gpu::DomaineMath extractDomaineFromSelection(const gpu::DomaineEcran &domaineSelection, int dxEcran, int dyEcran) const + { + double zoomX = dxEcran / (double) domaineSelection.dx; + double zoomY = dyEcran / (double) domaineSelection.dy; + + double dxResult = dx() / zoomX; + double dyResult = dy() / zoomY; + + double pourcentageX = domaineSelection.x0 / (double) dxEcran; + double pourcentageY = domaineSelection.y0 / (double) dyEcran; + + return DomaineMath::create(x0 + (pourcentageX * dx()), y0 + (pourcentageY * dy()), dxResult, dyResult); + } + + __host__ __device__ + double dx() const + { + return x1 - x0; + } + + __host__ __device__ + double dy() const + { + return y1 - y0; + } + + /** + * toXY est uniquement utilisable lorsque le domaine a été associé a une ImageFonctionelle! + */ + + __host__ __device__ + void toXY(int i, int j, double* ptrX, double* ptrY) const + { + *ptrX = x0 + j * dxDw; + *ptrY = y0 + i * dyDh; + } + + __host__ __device__ + static gpu::DomaineMath create(double x0, double y0, double dx, double dy) + { + return DomaineMath(x0, y0, x0 + dx, y0 + dy); + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + public: + + //Input + double x0; + double y0; + double x1; + double y1; + + private: + + // Tools + double dxDw; //old dx + double dyDh; //old dy + + friend class ImageFonctionelMOOs_A; + // Toutes les méthode de la classe ImageFonctionelMOOs_A sont amie + }; + + CBI_GLIMAGE_CUDA __host__ ostream& operator<<(ostream& stream, const gpu::DomaineMath& domaine); + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageFonctionelSelections_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageFonctionelSelections_GPU.h new file mode 100755 index 0000000..806659c --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageFonctionelSelections_GPU.h @@ -0,0 +1,64 @@ +#ifndef GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H +#define GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H + +#include "GLImageSelections_GPU.h" +#include "ImageFonctionelMOOs_A_GPU.h" + +#define BACK_SPACE 8 //code ascii for Backspace + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + + class CBI_GLIMAGE_CUDA GLImageFonctionelSelections: public gpu::GLImageSelections + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + GLImageFonctionelSelections(gpu::ImageFonctionelMOOs_A* ptrImageCudaFonctionelMOO, bool isAnimationEnable = true); + + virtual ~GLImageFonctionelSelections(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + gpu::ImageFonctionelMOOs_A* getPtrImageCudaFonctionelMOO(); + + public: + + /** + * Override + * then selection is performed with the mouse, 3 arguments : + * 1) selected domaine in frame coordinate + * 2) dx is the screen width in pixel + * 3) dy is the screen height in pixel + **/ + virtual void selectionPerformed(const gpu::DomaineEcran& domaine, int dx, int dy); + + /** + * Override + */ + virtual void onKeyPressed(const KeyEvent &event); + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageSelections_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageSelections_GPU.h new file mode 100755 index 0000000..9fe2016 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageSelections_GPU.h @@ -0,0 +1,96 @@ +#ifndef GLIMAGE_SELECTIONS_GPU_H +#define GLIMAGE_SELECTIONS_GPU_H + +#include "envGLImageCudas.h" +#include "GLImages_GPU.h" +#include "DomaineEcran_GPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class CBI_GLIMAGE_CUDA GLImageSelections: public gpu::GLImages + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + GLImageSelections(gpu::ImageMOOs_A* ptrImageCudaMOO, bool isAnimationEnable = true); + + virtual ~GLImageSelections(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * Override + */ + virtual void display(Panel_A &panel); + + /** + * Override + */ + virtual void onMouseMoved(const MouseEvent &event); + + /** + * Override + */ + virtual void onMousePressed(const MouseEvent &event); + + /** + * Override + */ + virtual void onMouseReleased(const MouseEvent &event); + + protected: + + /** + * Ovveride + * then selection is performed with the mouse, 3 arguments : + * 1) selected domaine in frame coordinate + * 2) dx is the screen width in pixLa clel + * 3) dy is the screen height in pixel + **/ + virtual void selectionPerformed(const gpu::DomaineEcran& domaineEcran, int dx, int dy); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + gpu::DomaineEcran getCurrentDomaineSelection() const; + + private: + void drawSelection(); + + /*-------------------------------------*\ + |* Attributs *| + \*------------------------------------*/ + private: + + //Input + gpu::DomaineEcran domaineSelection; + + //Tools + bool isSelectionEnable; + float ratio; //ration de la taille de la selection proportionnel � l'image + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImages_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImages_GPU.h new file mode 100755 index 0000000..1ed143a --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImages_GPU.h @@ -0,0 +1,95 @@ +#ifndef GLIMAGES_GPU_H +#define GLIMAGES_GPU_H + +#include "envGLImageCudas.h" +#include "CudaInteropTools.h" +#include "GLImages_A.h" +#include "ImageMOOs_A_GPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + + /** + * Data plus stocker in Central Memory, mais in GPU memory ! + */ + class CBI_GLIMAGE_CUDA GLImages: public GLImages_A + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + /** + * (dx,dy) : Size of the image + * (pxFrame,pyFrame) : The position of the upper left corner of the frame in screen space. + */ + GLImages(gpu::ImageMOOs_A* ptrImageCudaMOO, bool isAnimationEnable = true); + + virtual ~GLImages(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + virtual void release(Panel_A &panel); + + protected: + + /** + * Override + */ + virtual void createPBO(); + + /** + * Override + */ + virtual void fillPBO(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + gpu::ImageMOOs_A* getPtrImageCudaMOO(); + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + public: + + void setStreamToSynchronize(cudaStream_t streamId); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + //Inputs + gpu::ImageMOOs_A* ptrImageCudaMOO; + + //Cuda interop + cudaGraphicsResource* cudaRessource; + cudaStream_t streamToSynchronize; + }; + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/ImageFonctionelMOOs_A_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/ImageFonctionelMOOs_A_GPU.h new file mode 100755 index 0000000..07c842f --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/ImageFonctionelMOOs_A_GPU.h @@ -0,0 +1,131 @@ +#ifndef IMAGE_FONCTIONEL_MOOS_A_GPU_H +#define IMAGE_FONCTIONEL_MOOS_A_GPU_H + +#include "ImageMOOs_A_GPU.h" +#include "DomaineMath_GPU.h" + +#include +using std::stack; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + + class CBI_GLIMAGE_CUDA ImageFonctionelMOOs_A: public ImageMOOs_A + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + ImageFonctionelMOOs_A(unsigned int w, unsigned int h, gpu::DomaineMath domaineMath); + + virtual ~ImageFonctionelMOOs_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + /** + * fillImageGL avec le domaine courant + * w et h fixe, ne change pas au cours du temps ! + */ + virtual void fillImageGL(uchar4* ptrDevImageGL, int w, int h, const gpu::DomaineMath& domaineNew)=0; //ptrDevImageGL zone memoire commune OpenGL et Cuda + + /** + * Call each time the domaine change + * 1) Domaines : new domaine of the image + */ + virtual void onDomaineChangePerformed(const gpu::DomaineMath& domaineNew); + + /** + * Override + */ + virtual void paintPrimitivesAPI(Graphic2Ds& ptrGraphic2D); + + /** + * Last Domaine push in History + */ + void restoreFromDomaineHistory(); + + /** + * First Domaine of History + */ + void headOfDomaineHistory(); + + /** + * Override + */ + virtual void print(ostream& stream) const; + + private: + + /** + * Override + * call fillImageGL with current domaine + */ + virtual void fillImageGL(uchar4* ptrDevImageGL, int w, int h); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + /** + * Domaine currently used + */ + gpu::DomaineMath getCurrentDomaine() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + public: + + void setCurrentDomaine(gpu::DomaineMath domaineNew); + + void setEnableDomaineOverlay(bool isEnable); + + /*--------------------------------------*\ + |* Is *| + \*-------------------------------------*/ + + public: + + inline bool isEnableDomaineOverlay() + { + return enableDomaineOverlay; + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + //Input + gpu::DomaineMath homeDomaine; + + //Tools + stack stackHistoryDomaine; + bool enableDomaineOverlay; + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/ImageMOOs_A_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/ImageMOOs_A_GPU.h new file mode 100755 index 0000000..d97ee1d --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/ImageMOOs_A_GPU.h @@ -0,0 +1,81 @@ +#ifndef IMAGE_CUDA_MOOS_A_H +#define IMAGE_CUDA_MOOS_A_H + +#include "builtin_types.h" //for cuda uchar4 + +#include "envGLImageCudas.h" +#include "ImageMOOs_I.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class CBI_GLIMAGE_CUDA ImageMOOs_A: public ImageMOOs_I + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + ImageMOOs_A(unsigned int w, unsigned int h); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~ImageMOOs_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + virtual void fillImageGL(uchar4* ptrDevImageGL, int w, int h)=0; //ptrDevImageGL zone memoire commune OpenGL et Cuda + + /** + * Override + * A redefinir par l'utilisateur + */ + virtual void animationStep(bool& isNeedUpdateView); + + /** + * Override + * A redefinir par l'utilisateur + */ + virtual void paintPrimitives(Graphic2Ds& ptrGraphic2D); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + /** + * Recuperation des pixels de l'image coter CPU + * call fillImageGL + * + * Instanciation : + * + * unsigned char* ptrTabPixel=new unsigned char[w*h] + * + * Pour liberer la memoire : + * + * delete[] ptrTabPixel; + */ + unsigned char* getPtrTabPixels(); + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/LIB/visual/Bilat_Image_GL_Cuda_65_004_64.lib b/WCudaMSE/API_Bilat_Image_GL_Cuda/LIB/visual/Bilat_Image_GL_Cuda_65_004_64.lib new file mode 100755 index 0000000..8aca8fb Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_GL_Cuda/LIB/visual/Bilat_Image_GL_Cuda_65_004_64.lib differ diff --git a/WCudaMSE/API_Bilat_Image_JNI/.classpath b/WCudaMSE/API_Bilat_Image_JNI/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_Image_JNI/.project b/WCudaMSE/API_Bilat_Image_JNI/.project new file mode 100755 index 0000000..f515e7d --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_JNI + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_JNI/BIN/.project b/WCudaMSE/API_Bilat_Image_JNI/BIN/.project new file mode 100755 index 0000000..270dc70 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_JNI + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_JNI/BIN/gcc/libBilat_Image_JNI_001_64.so b/WCudaMSE/API_Bilat_Image_JNI/BIN/gcc/libBilat_Image_JNI_001_64.so new file mode 100755 index 0000000..f5f4d6a Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI/BIN/gcc/libBilat_Image_JNI_001_64.so differ diff --git a/WCudaMSE/API_Bilat_Image_JNI/BIN/gcc_arm/libBilat_Image_JNI_001_ARM.so b/WCudaMSE/API_Bilat_Image_JNI/BIN/gcc_arm/libBilat_Image_JNI_001_ARM.so new file mode 100755 index 0000000..eca40ca Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI/BIN/gcc_arm/libBilat_Image_JNI_001_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Image_JNI/BIN/visual/Bilat_Image_JNI_001_64.dll b/WCudaMSE/API_Bilat_Image_JNI/BIN/visual/Bilat_Image_JNI_001_64.dll new file mode 100755 index 0000000..3e586d3 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI/BIN/visual/Bilat_Image_JNI_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_JNI/INC/common/CanvasImageNative.h b/WCudaMSE/API_Bilat_Image_JNI/INC/common/CanvasImageNative.h new file mode 100755 index 0000000..41fc161 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/INC/common/CanvasImageNative.h @@ -0,0 +1,59 @@ +#ifndef CANVAS_IMAGE_NATIVE_H +#define CANVAS_IMAGE_NATIVE_H + +#include "envImageJNI.h" +#include "ImageMOOs_I.h" +#include "GLImages_A.h" +#include "CanvasNative.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_IMAGE_JNI CanvasImageNative: public CanvasNative + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + CanvasImageNative(GLImages_A* ptrGLImage); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~CanvasImageNative(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + protected: + + /** + * Override + */ + virtual void onPaintGL(JNIEnv *env, jobject panel); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public : + + GLImages_A* getGLImage(); + + ImageMOOs_I* getImageMOO(); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_JNI/INC/common/CanvasImageViewers_A.h b/WCudaMSE/API_Bilat_Image_JNI/INC/common/CanvasImageViewers_A.h new file mode 100755 index 0000000..5dfb62a --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/INC/common/CanvasImageViewers_A.h @@ -0,0 +1,65 @@ +#ifndef CANVAS_IMAGE_VIEWER_A_H_ +#define CANVAS_IMAGE_VIEWER_A_H_ + +#include "envImageJNI.h" +#include "CanvasImageNative.h" +#include "GLImages_A.h" +#include "ImageMOOs_I.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_IMAGE_JNI CanvasImageViewers_A + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + CanvasImageViewers_A(); + + virtual ~CanvasImageViewers_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + int getCanvasNativeID(); + + ImageMOOs_I* getImageMOO(); + + GLImages_A* getGLImage(); + + CanvasImageNative* getCanvasImageNative(); + + protected: + + /** + * Instancie un CanvasImageNative avec la ptrGLImage + */ + void setGLImage(GLImages_A* ptrGLImage); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Tools + GLImages_A* ptrGLImage; + CanvasImageNative* ptrCanvasNativeImage; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_JNI/INC/common/ImageScenario.h b/WCudaMSE/API_Bilat_Image_JNI/INC/common/ImageScenario.h new file mode 100755 index 0000000..155731a --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/INC/common/ImageScenario.h @@ -0,0 +1,40 @@ +#ifndef IMAGESCENARIO_H_ +#define IMAGESCENARIO_H_ + +#include "envImageJNI.h" +#include "Scenario.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_IMAGE_JNI ImageScenario : public Scenario + { + public: + ImageScenario(int w, int h) : w(w),h(h) + { + + } + + virtual ~ImageScenario() + { + //because getCanvasNativeID is virtual + } + + virtual int getCanvasNativeID()=0; + + protected: + int w; + int h; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_JNI/INC/cpu/CanvasImageViewers_CPU.h b/WCudaMSE/API_Bilat_Image_JNI/INC/cpu/CanvasImageViewers_CPU.h new file mode 100755 index 0000000..7bd0463 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/INC/cpu/CanvasImageViewers_CPU.h @@ -0,0 +1,42 @@ +#ifndef CanvasImageViewers_CPU_H_ +#define CanvasImageViewers_CPU_H_ + +#include "envImageJNI.h" +#include "CanvasImageViewers_A.h" + +#include "GLImages_CPU.h" +#include "GLImageSelections_CPU.h" +#include "GLImageFonctionelSelections_CPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + + class CBI_IMAGE_JNI CanvasImageViewers : public CanvasImageViewers_A + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + CanvasImageViewers(cpu::ImageMOOs_A* ptrImageMOO, bool useAnimation = false, bool useSelection = false); + + CanvasImageViewers(cpu::ImageFonctionelMOOs_A* ptrImageFonctionel, bool useAnimation = false, bool useSelection = true); + + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_JNI/INC/envImageJNI.h b/WCudaMSE/API_Bilat_Image_JNI/INC/envImageJNI.h new file mode 100755 index 0000000..e698bf9 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/INC/envImageJNI.h @@ -0,0 +1,20 @@ +//PRIVATE +#ifndef ENV_IMAGE_JNI_H +#define ENV_IMAGE_JNI_H + +#include "dllHelper.h" + +#ifdef CBI_IMAGE_JNI_DLL // defined if API is compiled as a DLL + + #ifdef CBI_IMAGE_JNI_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_IMAGE_JNI HELPER_DLL_EXPORT + #else + #define CBI_IMAGE_JNI HELPER_DLL_IMPORT + #endif + #define CBI_IMAGE_JNI_LOCAL HELPER_DLL_LOCAL +#else // using static lib + #define CBI_IMAGE_JNI + #define CBI_IMAGE_JNI_LOCAL +#endif + +#endif diff --git a/WCudaMSE/API_Bilat_Image_JNI/JAR/Bilat_Image_JNI.jar b/WCudaMSE/API_Bilat_Image_JNI/JAR/Bilat_Image_JNI.jar new file mode 100755 index 0000000..4a3a6a2 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI/JAR/Bilat_Image_JNI.jar differ diff --git a/WCudaMSE/API_Bilat_Image_JNI/LIB/visual/Bilat_Image_JNI_001_64.lib b/WCudaMSE/API_Bilat_Image_JNI/LIB/visual/Bilat_Image_JNI_001_64.lib new file mode 100755 index 0000000..8e52e02 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI/LIB/visual/Bilat_Image_JNI_001_64.lib differ diff --git a/WCudaMSE/API_Bilat_Image_JNI/linuxReadMe.txt b/WCudaMSE/API_Bilat_Image_JNI/linuxReadMe.txt new file mode 100755 index 0000000..4182cea --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/linuxReadMe.txt @@ -0,0 +1,18 @@ +Avril 2012 + +********************************** +linux +********************************** + +Les .so pour les api + BilatImage + BilatImageCuda +se trouve dans + /usr/local/lib + +Ces .so ne sont pas dans le workspace, car le rendu avec un bureau à distance pose alors probleme! + +********************************* +end +********************************* + \ No newline at end of file diff --git a/WCudaMSE/API_Bilat_Image_JNI/readme.txt b/WCudaMSE/API_Bilat_Image_JNI/readme.txt new file mode 100755 index 0000000..4f5efb7 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI/readme.txt @@ -0,0 +1,30 @@ +0.0.1 +cedric.bilat@he-arc.ch + + +Linux (gcc, intel) + + Compilation : required .h + Linkage : required .so (shared lib) .a (static lib) + runtime : required .so + +Windows (vidual, intel) + + Compilation : required .h, + Linkage : required .lib (shared lib and static lib) + runtime : required .dll + +Windows (mingw) + + Compilation : required .h + Linkage : required .dll.a + runtime : required .dll (TODO same .dll as visual intel?) + +Note + + (N1) Ainsi pas de folder linux dans LIB pour les shared lib,mais il peut y en avoir pour des static lib + + (n2) MinGW fonctionne sous windows mais avec politique gcc linux + +TODO: freeglut lib, pas name juste : recompiler +TODO: Bilat_ \ No newline at end of file diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/.classpath b/WCudaMSE/API_Bilat_Image_JNI_Cuda/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI_Cuda/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/.project b/WCudaMSE/API_Bilat_Image_JNI_Cuda/.project new file mode 100755 index 0000000..1203a5f --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI_Cuda/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_JNI_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/.project b/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/.project new file mode 100755 index 0000000..475058a --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_Image_JNI_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/gcc/libBilat_Image_JNI_Cuda_65_001_64.so b/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/gcc/libBilat_Image_JNI_Cuda_65_001_64.so new file mode 100755 index 0000000..1088f0a Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/gcc/libBilat_Image_JNI_Cuda_65_001_64.so differ diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/gcc_arm/libBilat_Image_JNI_Cuda_50_001_ARM.so b/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/gcc_arm/libBilat_Image_JNI_Cuda_50_001_ARM.so new file mode 100755 index 0000000..0dced43 Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/gcc_arm/libBilat_Image_JNI_Cuda_50_001_ARM.so differ diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/visual/Bilat_Image_JNI_Cuda_65_001_64.dll b/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/visual/Bilat_Image_JNI_Cuda_65_001_64.dll new file mode 100755 index 0000000..b77542a Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI_Cuda/BIN/visual/Bilat_Image_JNI_Cuda_65_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/INC/envImageCudaJNI.h b/WCudaMSE/API_Bilat_Image_JNI_Cuda/INC/envImageCudaJNI.h new file mode 100755 index 0000000..f8674fe --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI_Cuda/INC/envImageCudaJNI.h @@ -0,0 +1,20 @@ +//PRIVATE +#ifndef ENV_IMAGE_CUDA_JNI_H +#define ENV_IMAGE_CUDA_JNI_H + +#include "dllHelper.h" + +#ifdef CBI_IMAGE_CUDA_JNI_DLL // defined if API is compiled as a DLL + + #ifdef CBI_IMAGE_CUDA_JNI_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_IMAGE_CUDA_JNI HELPER_DLL_EXPORT + #else + #define CBI_IMAGE_CUDA_JNI HELPER_DLL_IMPORT + #endif + #define CBI_IMAGE_CUDA_JNI_LOCAL HELPER_DLL_LOCAL +#else // using static lib + #define CBI_IMAGE_CUDA_JNI + #define CBI_IMAGE_CUDA_JNI_LOCAL +#endif + +#endif diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/INC/gpu/CanvasImageViewers_GPU.h b/WCudaMSE/API_Bilat_Image_JNI_Cuda/INC/gpu/CanvasImageViewers_GPU.h new file mode 100755 index 0000000..0ace8db --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_JNI_Cuda/INC/gpu/CanvasImageViewers_GPU.h @@ -0,0 +1,40 @@ +#ifndef CANVAS_IMAGE_VIEWERS_GPU_H_ +#define CANVAS_IMAGE_VIEWERS_GPU_H_ + +#include "envImageCudaJNI.h" +#include "CanvasImageViewers_A.h" +#include "GLImages_GPU.h" +#include "GLImageSelections_GPU.h" +#include "GLImageFonctionelSelections_GPU.h" +#include "ImageMOOs_A_GPU.h" +#include "ImageFonctionelMOOs_A_GPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class CBI_IMAGE_CUDA_JNI CanvasImageViewers: public CanvasImageViewers_A + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + + CanvasImageViewers(gpu::ImageMOOs_A* ptrImageMOO, bool useAnimation = false, bool useSelection = false); + + CanvasImageViewers(gpu::ImageFonctionelMOOs_A* ptrImageFonctionel, bool useAnimation = false, bool useSelection = true); + + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_Image_JNI_Cuda/LIB/visual/Bilat_Image_JNI_Cuda_65_001_64.lib b/WCudaMSE/API_Bilat_Image_JNI_Cuda/LIB/visual/Bilat_Image_JNI_Cuda_65_001_64.lib new file mode 100755 index 0000000..baf679d Binary files /dev/null and b/WCudaMSE/API_Bilat_Image_JNI_Cuda/LIB/visual/Bilat_Image_JNI_Cuda_65_001_64.lib differ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/.classpath b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/.project b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/.project new file mode 100755 index 0000000..7f1c221 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/.project @@ -0,0 +1,17 @@ + + + API_Bilat_MultiCourbes_FreeGlut_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/.project b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/.project new file mode 100755 index 0000000..7f1c221 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_MultiCourbes_FreeGlut_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/gcc/libBilat_MultiCourbes_FreeGlut_Cuda_65_001_64.so b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/gcc/libBilat_MultiCourbes_FreeGlut_Cuda_65_001_64.so new file mode 100755 index 0000000..bbe0f0b Binary files /dev/null and b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/gcc/libBilat_MultiCourbes_FreeGlut_Cuda_65_001_64.so differ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/gcc_arm/libBilat_MultiCourbes_FreeGlut_Cuda_50_001_ARM.so b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/gcc_arm/libBilat_MultiCourbes_FreeGlut_Cuda_50_001_ARM.so new file mode 100755 index 0000000..01df27d Binary files /dev/null and b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/gcc_arm/libBilat_MultiCourbes_FreeGlut_Cuda_50_001_ARM.so differ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/visual/Bilat_MultiCourbes_FreeGlut_Cuda_60_001_64.dll b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/visual/Bilat_MultiCourbes_FreeGlut_Cuda_60_001_64.dll new file mode 100755 index 0000000..c9838f7 Binary files /dev/null and b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/BIN/visual/Bilat_MultiCourbes_FreeGlut_Cuda_60_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/INC/GLUTMultiCourbes.h b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/INC/GLUTMultiCourbes.h new file mode 100755 index 0000000..5e22184 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/INC/GLUTMultiCourbes.h @@ -0,0 +1,56 @@ +#ifndef GLUT_MULTICOURBES_H_ +#define GLUT_MULTICOURBES_H_ + +#include "envBilatMultiCourbeFreeGlut.h" +#include "GLUTWindow.h" +#include "GLMutliCourbes.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_MULTI_COURBES_GLUT GLUTMultiCourbes: public GLUTWindow + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + GLUTMultiCourbes(MultiCourbesMOO_A* ptrMultCourbeMOO,string title,string shaderPath, int w, int h, int px=0, int py=0); + + virtual ~GLUTMultiCourbes(); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + /** + * Override + */ + virtual void idleFunc(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + MultiCourbesMOO_A* getMultiCourbesMOO(); + GLMutliCourbes* getGLMultiCourbes(); + + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/INC/envBilatMultiCourbeFreeGlut.h b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/INC/envBilatMultiCourbeFreeGlut.h new file mode 100755 index 0000000..6f17b3d --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/INC/envBilatMultiCourbeFreeGlut.h @@ -0,0 +1,19 @@ +#ifndef ENV_CBI_MULTI_COURBES_FREEGLUT_H +#define ENV_CBI_MULTI_COURBES_FREEGLUT_H + +#include "dllHelper.h" + +#ifdef CBI_MULTI_COURBES_GLUT_DLL // defined if API is compiled as a DLL + #ifdef CBI_MULTI_COURBES_GLUT_DLL_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_MULTI_COURBES_GLUT HELPER_DLL_EXPORT + #else + #define CBI_MULTI_COURBES_GLUT HELPER_DLL_IMPORT + #endif + #define CBI_MULTI_COURBES_GLUT_LOCAL HELPER_DLL_LOCAL +#else // GL_TOOLS_USE_DLL is not defined: this means API is a static lib. + #define CBI_MULTI_COURBES_GLUT + #define CBI_MULTI_COURBES_GLUT_LOCAL +#endif + + +#endif diff --git a/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/LIB/visual/Bilat_MultiCourbes_FreeGlut_Cuda_60_001_64.lib b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/LIB/visual/Bilat_MultiCourbes_FreeGlut_Cuda_60_001_64.lib new file mode 100755 index 0000000..66297e3 Binary files /dev/null and b/WCudaMSE/API_Bilat_MultiCourbes_FreeGlut_Cuda/LIB/visual/Bilat_MultiCourbes_FreeGlut_Cuda_60_001_64.lib differ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/.classpath b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/.project b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/.project new file mode 100755 index 0000000..9f44356 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/.project @@ -0,0 +1,17 @@ + + + API_Bilat_MultiCourbes_GL_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/.project b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/.project new file mode 100755 index 0000000..9f44356 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/.project @@ -0,0 +1,17 @@ + + + API_Bilat_MultiCourbes_GL_Cuda + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/gcc/libBilat_MultiCourbes_GL_Cuda_65_001_64.so b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/gcc/libBilat_MultiCourbes_GL_Cuda_65_001_64.so new file mode 100755 index 0000000..23d0ac4 Binary files /dev/null and b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/gcc/libBilat_MultiCourbes_GL_Cuda_65_001_64.so differ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/gcc_arm/libBilat_MultiCourbes_GL_Cuda_50_001_ARM.so b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/gcc_arm/libBilat_MultiCourbes_GL_Cuda_50_001_ARM.so new file mode 100755 index 0000000..e3afb21 Binary files /dev/null and b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/gcc_arm/libBilat_MultiCourbes_GL_Cuda_50_001_ARM.so differ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/visual/Bilat_MultiCourbes_GL_Cuda_60_001_64.dll b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/visual/Bilat_MultiCourbes_GL_Cuda_60_001_64.dll new file mode 100755 index 0000000..d1b3150 Binary files /dev/null and b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/BIN/visual/Bilat_MultiCourbes_GL_Cuda_60_001_64.dll differ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/GLMutliCourbes.h b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/GLMutliCourbes.h new file mode 100755 index 0000000..5b513a7 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/GLMutliCourbes.h @@ -0,0 +1,171 @@ +#ifndef GL_MUTLI_COURBES_H_ +#define GL_MUTLI_COURBES_H_ + +#include "envBilatMultiCourbes.h" +#include "MultiCourbeOptions.h" +#include "MultiCourbesMOO_A.h" +#include "Displayable_A.h" +#include "bilat_GL.h" +#include "VertexBufferObject.h" +#include "ShaderLoaders.h" +#include +//#include + +#include "cuda.h" +#include "cuda_gl_interop.h" //link between GL and Cuda + +using std::atomic; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + + * + */ + +/** + * Inputs : + * + * n nb Courbes + * m nbPoints par courbes + * + * shaderPath la racine contenant les shader suivants : + * + * lib/ColorieurCarteHSB.glsl + * lib/ColorieurHSB.glsl + * multiCourbeHSBFragmentShader.glsl + * multiCourbeHSBFragmentShader.glsl + */ +class CBI_MULTI_COURBES GLMutliCourbes: public Displayable_A + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /** + * Inputs : + * + * shaderPath la racine contenant les shader suivants : + * + * lib/ColorieurCarteHSB.glsl + * lib/ColorieurHSB.glsl + * multiCourbeHSBFragmentShader.glsl + * multiCourbeHSBFragmentShader.glsl + * + * Algorithme coloration: + * + * (A1) les courbes sont colorier en HSB, en fonction de y + * (A2) Si y est a l'interieur du sueil [sMin.sMax], la couleur utilisee sera la couleur "anatomique" + * (A3) minMax permet de calibrer le hue, ie de definier a quelle intensite y associer le hueMin et le hueMax + * + * Options: + * + * intervalHue01 + * + * Permet de sp�cifier [hMin,hMax] + * + * seuil + * + * Permet de sp�cifier [sMin,sMax] (cf ci-dessus) + * + * colorAnatomique + * + * Couleur RGBA qui sera afficher si y se trouve � l'interieur du seuil. + * + * minMax + * + * Permet de specifier [vMin,vMax], de telle sorte que vMin soit colorier avec hMin, et vMax avec hMax + * Il s'agit d'une calibration. + */ + GLMutliCourbes(MultiCourbesMOO_A* ptrMultiCourbeMOO, string shaderPath); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + public: + + virtual ~GLMutliCourbes(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * Override + */ + virtual void init(Panel_A &panel); + + /** + * Override + */ + virtual void reshape(Panel_A &panel, int w, int h); + + /** + * Override + */ + virtual void display(Panel_A &panel); + + /** + * Override + */ + virtual void release(Panel_A &panel); + + /** + * On next repaint, fillVBOValues will be called. + */ + void update(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + MultiCourbesMOO_A* getMultiCoursbeMOO() const; + + /*--------------------------------------*\ + |* Attributs *| + \*--------------------------------------*/ + + private: + + void loadShader(); + void createVBOs(); + void initInterop(); + void drawMultiCourbes(Panel_A &panel); + void updateGL(Panel_A &panel); + + private: + + // Inputs + MultiCourbesMOO_A* ptrMultiCourbeMOO; + string shaderPath; + + // OpenGL + VertexBufferObject* ptrVBOVertices; + VertexBufferObject* ptrVBOValues; + ShaderPrograms* ptrShaderProgram; + + //Cuda GL Interop + cudaGraphicsResource* cudaRessource; + cudaStream_t streamToSynchronize; + + // Tools + std::atomic isNeedUpdate; + bool isInit; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/MultiCourbeOptions.h b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/MultiCourbeOptions.h new file mode 100755 index 0000000..c2921b5 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/MultiCourbeOptions.h @@ -0,0 +1,90 @@ +#ifndef MULTICOURBEOPTIONS_H_ +#define MULTICOURBEOPTIONS_H_ + +#include "envBilatMultiCourbes.h" +#include "builtin_types.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/* + * Options: + * + * intervalHue01 + * + * Permet de spécifier [hMin,hMax] + * + * seuil + * + * Permet de spécifier [sMin,sMax] (cf ci-dessus) + * + * colorNotInSeuil + * + * Couleur RGBA qui sera afficher si y se trouve à l'interieur du seuil. + * + * minMaxValue + * + * Permet de specifier [vMin,vMax], de telle sorte que vMin soit colorier avec hMin, et vMax avec hMax + * Il s'agit d'une calibration. + * + */ +class CBI_MULTI_COURBES MultiCourbeOptions + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + MultiCourbeOptions(float2 minMaxValue, float2 intervalHue01, float2 seuil, float4 colorNotInSeuil); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + float2 getMinMaxValue() const; + + float2 getIntervalHue() const; + + float2 getSeuil() const; + + float4 getColorNotInSeuil() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + public: + + void setMinMaxValue(float2 minMaxValue); + + void setIntervalHue(float2 intervalHue01); + + void setSeuil(float2 seuil); + + void setColorNotInSeuil(float4 colorNotInSeuil); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + private: + + // Input + float2 minMaxValue; + float2 intervalHue; + float2 seuil; + float4 colorNotInSeuil; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/MultiCourbesMOO_A.h b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/MultiCourbesMOO_A.h new file mode 100755 index 0000000..5da9cf6 --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/MultiCourbesMOO_A.h @@ -0,0 +1,75 @@ +#ifndef MULTICOURBEMOOA_H_ +#define MULTICOURBEMOOA_H_ + +#include "envBilatMultiCourbes.h" +#include "MultiCourbeOptions.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_MULTI_COURBES MultiCourbesMOO_A + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + MultiCourbesMOO_A(int n,int m,MultiCourbeOptions multiCourbeOption); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~MultiCourbesMOO_A(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /** + * n nbCourbes + * m nbPoints par courbe + * + * ptrDevData matrice nxm des multicourbes row-major lineariser. + */ + virtual void fillData(float* ptrDevData, size_t sizeOctet, int n, int m)=0; + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + int getN() const; + + int getM() const; + + MultiCourbeOptions getMultiCourbeOption() const; + + /*--------------------------------------*\ + |* Set *| + \*-------------------------------------*/ + + void setMultiCourbeOption(MultiCourbeOptions multiCourbeOption); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int n; + int m; + MultiCourbeOptions multiCourbeOption; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/envBilatMultiCourbes.h b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/envBilatMultiCourbes.h new file mode 100755 index 0000000..e45770e --- /dev/null +++ b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/INC/envBilatMultiCourbes.h @@ -0,0 +1,19 @@ +#ifndef ENV_CBI_MULTI_COURBES_H +#define ENV_CBI_MULTI_COURBES_H + +#include "dllHelper.h" + +#ifdef CBI_MULTI_COURBES_DLL // defined if API is compiled as a DLL + #ifdef CBI_MULTI_COURBES_DLL_EXPORT // defined if we are building the API DLL (instead of using it) + #define CBI_MULTI_COURBES HELPER_DLL_EXPORT + #else + #define CBI_MULTI_COURBES HELPER_DLL_IMPORT + #endif + #define CBI_MULTI_COURBES_LOCAL HELPER_DLL_LOCAL +#else // GL_TOOLS_USE_DLL is not defined: this means API is a static lib. + #define CBI_MULTI_COURBES + #define CBI_MULTI_COURBES_LOCAL +#endif + + +#endif diff --git a/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/LIB/visual/Bilat_MultiCourbes_GL_Cuda_60_001_64.lib b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/LIB/visual/Bilat_MultiCourbes_GL_Cuda_60_001_64.lib new file mode 100755 index 0000000..c46059d Binary files /dev/null and b/WCudaMSE/API_Bilat_MultiCourbes_GL_Cuda/LIB/visual/Bilat_MultiCourbes_GL_Cuda_60_001_64.lib differ diff --git a/WCudaMSE/API_CppTest/.classpath b/WCudaMSE/API_CppTest/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_CppTest/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_CppTest/.project b/WCudaMSE/API_CppTest/.project new file mode 100755 index 0000000..c0f81d6 --- /dev/null +++ b/WCudaMSE/API_CppTest/.project @@ -0,0 +1,17 @@ + + + API_CppTest + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_CppTest/DOC/Cpp_Test_64.doc.tar.gz b/WCudaMSE/API_CppTest/DOC/Cpp_Test_64.doc.tar.gz new file mode 100755 index 0000000..1ebee43 Binary files /dev/null and b/WCudaMSE/API_CppTest/DOC/Cpp_Test_64.doc.tar.gz differ diff --git a/WCudaMSE/API_CppTest/INC/config.h b/WCudaMSE/API_CppTest/INC/config.h new file mode 100755 index 0000000..6341e23 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/config.h @@ -0,0 +1,71 @@ +/* config/config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Defined if the function exists */ +#undef HAVE_ROUND + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Version number of package */ +#undef VERSION diff --git a/WCudaMSE/API_CppTest/INC/cpptest-assert.h b/WCudaMSE/API_CppTest/INC/cpptest-assert.h new file mode 100755 index 0000000..8168aad --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-assert.h @@ -0,0 +1,331 @@ +// --- +// +// $Id: cpptest-assert.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_ASSERT_H +#define CPPTEST_ASSERT_H + +/// Unconditional failure. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param msg Provided message. +/// +/// \par Example: +/// \code +/// void MySuite::test() +/// { +/// // ... +/// +/// switch (flag) +/// { +/// // handling valid cases ... +/// +/// default: +/// TEST_FAIL("This should not happen") +/// } +/// } +/// \endcode +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_FAIL(msg) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, (msg) != 0 ? #msg : "")); \ + if (!continue_after_failure()) return; \ + } + +/// Verify an expression and issues an assertment if it fails. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// +/// \see TEST_ASSERT_MSG(expr, msg) +/// +/// \par Example: +/// \code +/// void MySuite::test() +/// { +/// int i; +/// +/// // ... +/// +/// TEST_ASSERT(i == 13) +/// } +/// \endcode +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_ASSERT(expr) \ + { \ + if (!(expr)) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, #expr)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and issues an assertment if it fails. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param msg User message. +/// +/// \see TEST_ASSERT(expr) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_ASSERT_MSG(expr, msg) \ + { \ + if (!(expr)) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify that two expressions are equal up to a constant, issues an +/// assertment if it fails. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param a First expression to test. +/// \param b Second expression to test. +/// \param delta Constant. +/// +/// \see TEST_ASSERT_DELTA_MSG(a, b, delta, msg) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_ASSERT_DELTA(a, b, delta) \ + { \ + if (((b) < (a) - (delta)) || ((b) > (a) + (delta))) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, \ + "delta(" #a ", " #b ", " #delta ")" )); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify that two expressions are equal up to a constant, issues an +/// assertment if it fails. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param a First expression to test. +/// \param b Second expression to test. +/// \param delta Constant. +/// \param msg User message. +/// +/// \see TEST_ASSERT_DELTA(a, b, delta) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_ASSERT_DELTA_MSG(a, b, delta, msg) \ + { \ + if (((b) < (a) - (delta)) || ((b) > (a) + (delta))) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects an exception in return. +/// An assertment is issued if the exception is not thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param x Expected exception. +/// +/// \see TEST_THROWS_MSG(expr, x, msg) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS(expr, x) \ + { \ + bool __expected = false; \ + try { expr; } \ + catch (x) { __expected = true; } \ + catch (...) {} \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, #expr)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects an exception in return. +/// An assertment is issued if the exception is not thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param x Expected exception. +/// \param msg User message. +/// +/// \see TEST_THROWS(expr, x) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_MSG(expr, x, msg) \ + { \ + bool __expected = false; \ + try { expr; } \ + catch (x) { __expected = true; } \ + catch (...) {} \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects any exception in return. +/// An assertment is issued if no exception is thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// +/// \see TEST_THROWS_ANYTHING_MSG(expr, msg) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_ANYTHING(expr) \ + { \ + bool __expected = false; \ + try { expr; } \ + catch (...) { __expected = true; } \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, #expr)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects any exception in return. +/// An assertment is issued if no exception is thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param msg User message. +/// +/// \see TEST_THROWS_ANYTHING(expr) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_ANYTHING_MSG(expr, msg) \ + { \ + bool __expected = false; \ + try { expr; } \ + catch (...) { __expected = true; } \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects no exception in return. +/// An assertment is issued if any exception is thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// +/// \see TEST_THROWS_NOTHING_MSG(expr, msg) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_NOTHING(expr) \ + { \ + bool __expected = true; \ + try { expr; } \ + catch (...) { __expected = false; } \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, #expr)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects no exception in return. +/// An assertment is issued if any exception is thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param msg User message. +/// +/// \see TEST_THROWS_NOTHING(expr) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_NOTHING_MSG(expr, msg) \ + { \ + bool __expected = true; \ + try { expr; } \ + catch (...) { __expected = false; } \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// \page asserts Available asserts +/// +/// Normally, assert macros issues an assert if the given expression, if any, +/// fails (as defined by the macro). Assertments include information about the +/// current test suite, test function, source file, source file line, and a +/// message. The message is normally the offending expression, however, for +/// macros ending in _MSG it is possibly to supply a user defined message. +/// +/// General asserts +/// - TEST_FAIL(msg) +/// +/// Comparision asserts +/// - TEST_ASSERT(expr) +/// - TEST_ASSERT_MSG(expr, msg) +/// - TEST_ASSERT_DELTA(a, b, delta) +/// - TEST_ASSERT_DELTA_MSG(a, b, delta, msg) +/// +/// Exception asserts +/// - TEST_THROWS(expr, x) +/// - TEST_THROWS_MSG(expr, x, msg) +/// - TEST_THROWS_ANYTHING(expr) +/// - TEST_THROWS_ANYTHING_MSG(expr, msg) +/// - TEST_THROWS_NOTHING(expr) +/// - TEST_THROWS_NOTHING_MSG(expr, msg) +/// + +#endif // #ifndef CPPTEST_ASSERT_H + diff --git a/WCudaMSE/API_CppTest/INC/cpptest-collectoroutput.h b/WCudaMSE/API_CppTest/INC/cpptest-collectoroutput.h new file mode 100755 index 0000000..61e51f8 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-collectoroutput.h @@ -0,0 +1,106 @@ +// --- +// +// $Id: cpptest-collectoroutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_COLLECTOROUTPUT_H +#define CPPTEST_COLLECTOROUTPUT_H + +#include +#include +#include + +#include "cpptest-output.h" +#include "cpptest-source.h" +#include "cpptest-time.h" + +namespace Test +{ + /// \brief Collector output. + /// + /// Base class for output handlers that need to report status when all + /// tests have executed. + /// + class CollectorOutput : public Output + { + public: + virtual void finished(int tests, const Time& time); + virtual void suite_start(int tests, const std::string& name); + virtual void suite_end(int tests, const std::string& name, + const Time& time); + virtual void test_start(const std::string& name); + virtual void test_end(const std::string& name, bool ok, + const Time& time); + virtual void assertment(const Source& s); + + protected: + struct OutputSuiteInfo; + struct OutputTestInfo; + struct OutputErrorTestInfo; + + typedef std::list Sources; + + struct TestInfo + { + std::string _name; + Time _time; + + bool _success : 1; + Sources _sources; + + explicit TestInfo(const std::string name); + }; + + typedef std::vector Tests; + + struct SuiteInfo + { + std::string _name; + int _errors; + Tests _tests; + Time _time; + + SuiteInfo(const std::string& name, int tests); + }; + + typedef std::list Suites; + + Suites _suites; + int _total_errors; + int _total_tests; + Time _total_time; + + CollectorOutput(); + + private: + SuiteInfo* _cur_suite; + TestInfo* _cur_test; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_COLLECTOROUTPUT_H + diff --git a/WCudaMSE/API_CppTest/INC/cpptest-compileroutput.h b/WCudaMSE/API_CppTest/INC/cpptest-compileroutput.h new file mode 100755 index 0000000..0b8deea --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-compileroutput.h @@ -0,0 +1,112 @@ +// --- +// +// $Id: cpptest-compileroutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_COMPILEROUTPUT_H +#define CPPTEST_COMPILEROUTPUT_H + +#include +#include + +#include "cpptest-output.h" + +namespace Test +{ + /// \brief Compiler-like output handler. + /// + /// %Test suite output handler that only outputs failures in compiler + /// warning/error format. This way, you can use your IDE to browse between + /// failures. + /// + /// The output format is configurable to be able to emulate different + /// compiler outputs. The following modifiers exist: + /// - \e %file Outputs the file containing the test function. + /// - \e %line Line number for the the test function. + /// - \e %text Expression (or message) that caused the assertment. + /// Note that each modifier can only be specified once. + /// + class CompilerOutput : public Output + { + public: + /// \brief Compiler output exception. + /// + /// Indicates that an invalid message format was given when creating + /// a compiler output. The failing format may be retrieved using the + /// what() method. + /// + class InvalidFormat : public std::logic_error + { + public: + InvalidFormat(const std::string& what) + : std::logic_error(what) {} + }; + + /// Pre-defined compiler output formats. + /// + enum Format + { + /// Generic compiler format, which equals: + /// %%file:%%line: %%text + /// + Generic, + + /// + /// Borland C++ Compiler (BCC) format, which equals: + /// Error cpptest %%file %%line: %%text. + /// + BCC, + + /// GNU Compiler Collection + /// (GCC) format, which equals: + /// %%file:%%line: %%text + /// + GCC, + + /// Microsoft Visual C++ + /// (MSVC) format, which equals: + /// %%file(%%line) : %%text + /// + MSVC + }; + + explicit CompilerOutput(Format format = Generic, + std::ostream& stream = std::cout); + + explicit CompilerOutput(const std::string& format, + std::ostream& stream = std::cout); + + virtual void assertment(const Source& s); + + private: + std::string _format; + std::ostream& _stream; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_COMPILEROUTPUT_H + diff --git a/WCudaMSE/API_CppTest/INC/cpptest-htmloutput.h b/WCudaMSE/API_CppTest/INC/cpptest-htmloutput.h new file mode 100755 index 0000000..15042c3 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-htmloutput.h @@ -0,0 +1,64 @@ +// --- +// +// $Id: cpptest-htmloutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_HTMLOUTPUT_H +#define CPPTEST_HTMLOUTPUT_H + +#include +#include + +#include "cpptest-collectoroutput.h" + +namespace Test +{ + /// \brief HTML output. + /// + /// %Output handler that creates a HTML table with detailed information + /// about all tests. + /// + class HtmlOutput : public CollectorOutput + { + public: + void generate(std::ostream& os, bool incl_ok_tests = true, + const std::string& name = ""); + + private: + struct SuiteRow; + struct TestRow; + struct TestSuiteRow; + struct TestResult; + struct TestResultAll; + struct SuiteTestResult; + + friend struct TestSuiteRow; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_HTMLOUTPUT_H + diff --git a/WCudaMSE/API_CppTest/INC/cpptest-output.h b/WCudaMSE/API_CppTest/INC/cpptest-output.h new file mode 100755 index 0000000..9d50e48 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-output.h @@ -0,0 +1,152 @@ +// --- +// +// $Id: cpptest-output.h,v 1.7 2008/07/15 21:20:26 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_OUTPUT_H +#define CPPTEST_OUTPUT_H + +#include + +#ifdef _MSC_VER +# define CPPTEST_UNUSED(x) +#else +# define CPPTEST_UNUSED(x) (void)x +#endif + +namespace Test +{ + class Source; + class Time; + + /// \brief %Test suite output handler. + /// + /// Abstract base class for all suite output handlers. Derive from this + /// class to create real output handlers that creates arbitrary complex + /// output handlers. + /// + /// All parts of testing is reported (test start/stop, suite start/stop, + /// individual test start/stop, and assertments), thus giving maximum + /// flexibility for derived classes. + /// + class Output + { + public: + /// Empty destructor. + /// + virtual ~Output() {} + + /// Called when testing is started. + /// + /// \param tests Total number of tests in all suites. + /// + virtual void initialize(int tests) + { + CPPTEST_UNUSED(tests); + } + + /// Called when testing is finished. + /// + /// \param tests Total number of tests in all suites. + /// \param time Total elapsed time for all tests. + /// + virtual void finished(int tests, const Time& time) + { + CPPTEST_UNUSED(tests); + CPPTEST_UNUSED(time); + } + + /// Called when a suite is entered. + /// + /// \param tests Number of tests in this suite. + /// \param name Name of the suite. + /// + virtual void suite_start(int tests, const std::string& name) + { + CPPTEST_UNUSED(tests); + CPPTEST_UNUSED(name); + } + + /// Called when a suite is finished. + /// + /// \param tests Number of tests in this suite. + /// \param name Name of the suite. + /// \param time Total elapsed time for all tests in this suite. + /// + virtual void suite_end(int tests, const std::string& name, + const Time& time) + { + CPPTEST_UNUSED(tests); + CPPTEST_UNUSED(name); + CPPTEST_UNUSED(time); + } + + /// Called when a tests is executed. + /// + /// \param name Name of the test function. + /// + virtual void test_start(const std::string& name) + { + CPPTEST_UNUSED(name); + } + + /// Called when a test if finished, regardless if an assertment was + /// issued. + /// + /// \param name Name of the test function. + /// \param ok True if the test was successful; false otherwise. + /// \param time Execution time. + /// + virtual void test_end(const std::string& name, bool ok, + const Time& time) + { + CPPTEST_UNUSED(name); + CPPTEST_UNUSED(ok); + CPPTEST_UNUSED(time); + } + + /// Called when an assertment is issued. + /// + /// \param s Assert point information. + /// + virtual void assertment(const Source& s) + { + CPPTEST_UNUSED(s); + } + + protected: + /// Empty constructor. + /// + Output() {} + + private: + Output(const Output&); + Output& operator=(const Output&); + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_OUTPUT_H diff --git a/WCudaMSE/API_CppTest/INC/cpptest-source.h b/WCudaMSE/API_CppTest/INC/cpptest-source.h new file mode 100755 index 0000000..1174093 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-source.h @@ -0,0 +1,67 @@ +// --- +// +// $Id: cpptest-source.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_SOURCE_H +#define CPPTEST_SOURCE_H + +#include + +namespace Test +{ + class Suite; + + /// \brief Assertment source information. + /// + /// Contains information about an assertment point. + /// + class Source + { + friend class Suite; + + public: + Source(); + Source(const char* file, unsigned int line, const char* msg); + + const std::string& file() const; + unsigned int line() const; + const std::string& message() const; + const std::string& suite() const; + const std::string& test() const; + + private: + unsigned int _line; + std::string _file; + std::string _msg; + std::string _suite; + std::string _test; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_SOURCE_H + diff --git a/WCudaMSE/API_CppTest/INC/cpptest-suite.h b/WCudaMSE/API_CppTest/INC/cpptest-suite.h new file mode 100755 index 0000000..58bbdb0 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-suite.h @@ -0,0 +1,140 @@ +// --- +// +// $Id: cpptest-suite.h,v 1.4 2010/03/26 04:45:14 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_SUITE_H +#define CPPTEST_SUITE_H + +#include +#include +#include + +#include "cpptest-time.h" +#include "cpptest-source.h" + +namespace Test +{ + class Output; + + /// \brief Unit testing suite. + /// + /// Base class for all suites. Derive from this class to create own + /// test suites. + /// + /// %Test functions in derived classes are registered as tests using the + /// TEST_ADD(func). Testing is started by run(). Note that suites may be + /// embedded in other suites using add(). + /// + class Suite + { + public: + Suite(); + virtual ~Suite(); + + void add(std::auto_ptr suite); + + bool run(Output& output, bool cont_after_fail = true); + + protected: + /// Pointer to a test function. + /// + typedef void (Suite::*Func)(); + + bool continue_after_failure() const { return _continue; } + + virtual void setup() {} + virtual void tear_down() {} + + void register_test(Func func, const std::string& name); + void assertment(Source s); + + private: + struct DoRun; + struct ExecTests; + struct SubSuiteTests; + struct SuiteTime; + struct SubSuiteTime; + + friend struct DoRun; + friend struct ExecTests; + friend struct SubSuiteTests; + friend struct SubSuiteTime; + + struct Data + { + Func _func; + std::string _name; + Time _time; + + Data(Func func, const std::string& name) + : _func(func), _name(name) {} + }; + + typedef std::list Tests; + typedef std::list Suites; + + std::string _name; // Suite name + const std::string* _cur_test; // Current test func name + Suites _suites; // External test suites + Tests _tests; // All tests + Output* _output; // Output handler + bool _result : 1; // Test result + bool _success : 1; // Set if no test failed + bool _continue : 1; // Continue func after failures + + void do_run(Output* os, bool cont_after_fail); + int total_tests() const; + Time total_time(bool recursive) const; + + // Disable + // + Suite(const Suite&); + Suite& operator=(const Suite&); + }; + + /// Adds a test function to the enclosing suite. Note that test functions + /// should be added in the suites constructor. + /// + /// \param func Function to add, must be of type Suite::Func. + /// + /// \par Example: + /// \code + /// MySuite::MySuite() + /// { + /// TEST_ADD(&MySuite::test_1) + /// TEST_ADD(&MySuite::test_2) + /// ... + /// } + /// \endcode + /// + #define TEST_ADD(func)\ + register_test(static_cast(&func), #func); + +} // namespace Test + +#endif // #ifndef CPPTEST_SUITE_H + diff --git a/WCudaMSE/API_CppTest/INC/cpptest-textoutput.h b/WCudaMSE/API_CppTest/INC/cpptest-textoutput.h new file mode 100755 index 0000000..8420f31 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-textoutput.h @@ -0,0 +1,88 @@ +// --- +// +// $Id: cpptest-textoutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_TEXTOUTPUT_H +#define CPPTEST_TEXTOUTPUT_H + +#include +#include + +#include "cpptest-source.h" +#include "cpptest-output.h" + +namespace Test +{ + /// \brief Text output handler that outputs to the a stream. + /// + /// %Test suite output handler that writes its information as text to a + /// a stream. It it possible to select between two different operational + /// modes that controls the detail level, see Mode. + /// + class TextOutput : public Output + { + public: + /// Output mode. + /// + enum Mode + { + /// Terse output mode, which only shows the number of correct tests. + /// + Terse, + + /// Verbose output mode, which also shows extended assert + /// information for each test that failed. + /// + Verbose + }; + + TextOutput(Mode mode, std::ostream& stream = std::cout); + + virtual void finished(int tests, const Time& time); + virtual void suite_start(int tests, const std::string& name); + virtual void suite_end(int tests, const std::string& name, + const Time& time); + virtual void test_end(const std::string& name, bool ok, + const Time& time); + virtual void assertment(const Source& s); + + private: + typedef std::list ErrorList; + + Mode _mode; + std::ostream& _stream; + ErrorList _suite_error_list; + std::string _suite_name; + int _suite_errors; + int _suite_tests; + int _suite_total_tests; + int _total_errors; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_TEXTOUTPUT_H diff --git a/WCudaMSE/API_CppTest/INC/cpptest-time.h b/WCudaMSE/API_CppTest/INC/cpptest-time.h new file mode 100755 index 0000000..b7cd938 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest-time.h @@ -0,0 +1,66 @@ +// --- +// +// $Id: cpptest-time.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_TIME_H +#define CPPTEST_TIME_H + +#include +#include + +namespace Test +{ + /// \brief %Time representation. + /// + /// Encapsulates a time value with microsecond resolution. It is possible + /// to retrieve the current time, add and subtract time values, and output + /// the time to an output stream. + /// + class Time + { + public: + Time(); + Time(unsigned int sec, unsigned int usec); + + unsigned int seconds() const; + unsigned int microseconds() const; + + static Time current(); + + friend Time operator+(const Time& t1, const Time& t2); + friend Time operator-(const Time& t1, const Time& t2); + + friend std::ostream& operator<<(std::ostream& os, const Time& t); + + private: + unsigned int _sec; + unsigned int _usec; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_TIME_H diff --git a/WCudaMSE/API_CppTest/INC/cpptest.h b/WCudaMSE/API_CppTest/INC/cpptest.h new file mode 100755 index 0000000..71f51c1 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/cpptest.h @@ -0,0 +1,42 @@ +// --- +// +// $Id: cpptest.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_H +#define CPPTEST_H + +#include "cpptest-assert.h" +#include "cpptest-source.h" +#include "cpptest-suite.h" +#include "cpptest-time.h" + +#include "cpptest-compileroutput.h" +#include "cpptest-htmloutput.h" +#include "cpptest-textoutput.h" + +#endif // #ifndef CPPTEST_H + diff --git a/WCudaMSE/API_CppTest/INC/extension/cppTest+.h b/WCudaMSE/API_CppTest/INC/extension/cppTest+.h new file mode 100755 index 0000000..005eb19 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/extension/cppTest+.h @@ -0,0 +1,18 @@ + +#ifndef CPP_TEST_PLUS_H +#define CPP_TEST_PLUS_H + +#include "cpptest.h" +#include + +using std::string; + +bool runTestConsole(string titre, Test::Suite& test); +bool runTestHtml(string titre, Test::Suite& test); + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_CppTest/INC/missing.h b/WCudaMSE/API_CppTest/INC/missing.h new file mode 100755 index 0000000..b0a1b50 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/missing.h @@ -0,0 +1,56 @@ +// --- +// +// $Id: missing.h,v 1.4 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#ifndef CPPTEST_MISSING_H +#define CPPTEST_MISSING_H + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + +namespace Test +{ +#ifndef HAVE_GETTIMEOFDAY + + struct timeval + { + long tv_sec; + long tv_usec; + }; + + extern int gettimeofday(timeval* tv, void*); + +#endif // #ifndef HAVE_GETTIMEOFDAY + +#ifndef HAVE_ROUND + extern double round(double d); +#endif + +} // namespace Test + +#endif // #ifndef CPPTEST_MISSING_H diff --git a/WCudaMSE/API_CppTest/INC/utils.h b/WCudaMSE/API_CppTest/INC/utils.h new file mode 100755 index 0000000..b67fa4a --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/utils.h @@ -0,0 +1,36 @@ +// --- +// +// $Id: utils.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#ifndef CPPTEST_UTILS_H +#define CPPTEST_UTILS_H + +namespace Test +{ + extern int correct(int tests, int errors); + +} // namespace Test + +#endif // #ifndef CPPTEST_UTILS_H diff --git a/WCudaMSE/API_CppTest/INC/winconfig.h b/WCudaMSE/API_CppTest/INC/winconfig.h new file mode 100755 index 0000000..7146e38 --- /dev/null +++ b/WCudaMSE/API_CppTest/INC/winconfig.h @@ -0,0 +1,44 @@ +// --- +// +// $Id: winconfig.h,v 1.1 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#ifndef TEST_CONFIG_H +#define TEST_CONFIG_H + +// Capabilities +// +#define HAVE_GETTICKCOUNT + +// Compiler specific stuff +// +#if _MSC_VER == 1200 // MS Visual C++ 6.0 + #pragma warning (disable: 4786) +#endif + +#if _MSC_VER > 1300 // MS Visual C++ .NET 2002 and above + #pragma warning (disable: 4267) +#endif + +#endif // #ifndef TEST_CONFIG_H diff --git a/WCudaMSE/API_CppTest/LIB_STATIC/gcc/libCpp_Test_64.a b/WCudaMSE/API_CppTest/LIB_STATIC/gcc/libCpp_Test_64.a new file mode 100755 index 0000000..fc131d8 Binary files /dev/null and b/WCudaMSE/API_CppTest/LIB_STATIC/gcc/libCpp_Test_64.a differ diff --git a/WCudaMSE/API_CppTest/LIB_STATIC/intelLinux/libCpp_Test_64.a b/WCudaMSE/API_CppTest/LIB_STATIC/intelLinux/libCpp_Test_64.a new file mode 100755 index 0000000..fc131d8 Binary files /dev/null and b/WCudaMSE/API_CppTest/LIB_STATIC/intelLinux/libCpp_Test_64.a differ diff --git a/WCudaMSE/API_CppTest/LIB_STATIC/intelWin/Cpp_Test_64.lib b/WCudaMSE/API_CppTest/LIB_STATIC/intelWin/Cpp_Test_64.lib new file mode 100755 index 0000000..d0d39bc Binary files /dev/null and b/WCudaMSE/API_CppTest/LIB_STATIC/intelWin/Cpp_Test_64.lib differ diff --git a/WCudaMSE/API_CppTest/LIB_STATIC/mingw/libCpp_Test_64.a b/WCudaMSE/API_CppTest/LIB_STATIC/mingw/libCpp_Test_64.a new file mode 100755 index 0000000..68b3447 Binary files /dev/null and b/WCudaMSE/API_CppTest/LIB_STATIC/mingw/libCpp_Test_64.a differ diff --git a/WCudaMSE/API_CppTest/LIB_STATIC/visual/Cpp_Test_64.lib b/WCudaMSE/API_CppTest/LIB_STATIC/visual/Cpp_Test_64.lib new file mode 100755 index 0000000..78ffa42 Binary files /dev/null and b/WCudaMSE/API_CppTest/LIB_STATIC/visual/Cpp_Test_64.lib differ diff --git a/WCudaMSE/API_CppTest/SRC/core/collectoroutput.cpp b/WCudaMSE/API_CppTest/SRC/core/collectoroutput.cpp new file mode 100755 index 0000000..c473ece --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/collectoroutput.cpp @@ -0,0 +1,110 @@ +// --- +// +// $Id: collectoroutput.cpp,v 1.4 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + + +#include "cpptest-collectoroutput.h" + +using namespace std; + +namespace Test +{ + CollectorOutput::TestInfo::TestInfo(const string name) + : _name(name) + {} + + CollectorOutput::SuiteInfo::SuiteInfo(const string& name, int tests) + : _name(name), + _errors(0) + { + _tests.reserve(tests); + } + + /// Constructs a collector object. + /// + CollectorOutput::CollectorOutput() + : Output(), + _total_errors(0) + {} + + void + CollectorOutput::finished(int tests, const Time& time) + { + _total_tests = tests; + _total_time = time; + } + + void + CollectorOutput::suite_start(int tests, const string& name) + { + if (tests > 0) + { + _suites.push_back(SuiteInfo(name, tests)); + _cur_suite = &_suites.back(); + } + } + + void + CollectorOutput::suite_end(int tests, const string&, const Time& time) + { + if (tests > 0) + { + _cur_suite->_time = time; + _total_errors += _cur_suite->_errors; + } + } + + void + CollectorOutput::test_start(const string& name) + { + _cur_suite->_tests.push_back(TestInfo(name)); + _cur_test = &_cur_suite->_tests.back(); + } + + void + CollectorOutput::test_end(const string&, bool ok, const Time& time) + { + if (!(_cur_test->_success = ok)) + ++_cur_suite->_errors; + _cur_test->_time = time; + + } + + void + CollectorOutput::assertment(const Source& s) + { + _cur_test->_sources.push_back(s); + + } + +} // namespace Test + diff --git a/WCudaMSE/API_CppTest/SRC/core/compileroutput.cpp b/WCudaMSE/API_CppTest/SRC/core/compileroutput.cpp new file mode 100755 index 0000000..23eec39 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/compileroutput.cpp @@ -0,0 +1,133 @@ +// --- +// +// $Id: compileroutput.cpp,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#include +#include + +#include "cpptest-compileroutput.h" +#include "cpptest-source.h" + +using namespace std; + +namespace Test +{ + namespace + { + // Checks for output format modifiers. + // + bool + check_format(const string& format, + string::size_type& pos, + const string& mod, + int& mod_cnt) + { + if (format.compare(pos, mod.size(), mod) == 0) + { + if (++mod_cnt > 1) + throw Test::CompilerOutput::InvalidFormat(format); + pos += mod.size(); + return true; + } + return false; + } + + } // anonymous namespace + + /// Constructs a compiler output handler. + /// + /// \param format Pre-defined compiler output format. + /// \param stream Stream to output to. + /// + CompilerOutput::CompilerOutput(Format format, ostream& stream) + : Output(), + _stream(stream) + { + static const char* table[] = + { + "%file:%line: %text", // Generic + "Error cpptest %file %line: %text", // BCC + "%file:%line: %text", // GCC + "%file(%line) : %text" // MSVC + }; + + _format = table[format]; + } + + /// Constructs a compiler output handler. + /// + /// \param format %Output format to use. + /// \param stream Stream to output to. + /// + /// \exception InvalidFormat Invalid format specified. + /// + CompilerOutput::CompilerOutput(const string& format, ostream& stream) + : Output(), + _format(format), + _stream(stream) + { + int expr(0), file(0), line(0); + + for (string::size_type pos = 0; + (pos = _format.find_first_of('%', pos)) != string::npos; ) + { + ++pos; + if (check_format(_format, pos, "expr", expr)) ; + else if (check_format(_format, pos, "file", file)) ; + else if (check_format(_format, pos, "line", line)) ; + else + throw InvalidFormat(format); + } + + if (!expr && !file && !line) + throw InvalidFormat(format); + } + + void + CompilerOutput::assertment(const Source& s) + { + string fmt(_format); + string::size_type pos; + + fmt.reserve(fmt.size() + 128); + + if ((pos = fmt.find("%file")) != string::npos) + fmt.replace(pos, 5, s.file()); + + if ((pos = fmt.find("%text")) != string::npos) + fmt.replace(pos, 5, s.message()); + + if ((pos = fmt.find("%line")) != string::npos) + { + ostringstream ss; + ss << s.line(); + fmt.replace(pos, 5, ss.str()); + } + + _stream << fmt << endl; + } + +} // namespace Test + diff --git a/WCudaMSE/API_CppTest/SRC/core/config.h b/WCudaMSE/API_CppTest/SRC/core/config.h new file mode 100755 index 0000000..a2c04e0 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/config.h @@ -0,0 +1,71 @@ +/* config/config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Defined if the function exists */ +#undef HAVE_ROUND + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Version number of package */ +#undef VERSION diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-assert.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-assert.h new file mode 100755 index 0000000..503fba2 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-assert.h @@ -0,0 +1,331 @@ +// --- +// +// $Id: cpptest-assert.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_ASSERT_H +#define CPPTEST_ASSERT_H + +/// Unconditional failure. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param msg Provided message. +/// +/// \par Example: +/// \code +/// void MySuite::test() +/// { +/// // ... +/// +/// switch (flag) +/// { +/// // handling valid cases ... +/// +/// default: +/// TEST_FAIL("This should not happen") +/// } +/// } +/// \endcode +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_FAIL(msg) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, (msg) != 0 ? #msg : "")); \ + if (!continue_after_failure()) return; \ + } + +/// Verify an expression and issues an assertment if it fails. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// +/// \see TEST_ASSERT_MSG(expr, msg) +/// +/// \par Example: +/// \code +/// void MySuite::test() +/// { +/// int i; +/// +/// // ... +/// +/// TEST_ASSERT(i == 13) +/// } +/// \endcode +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_ASSERT(expr) \ + { \ + if (!(expr)) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, #expr)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and issues an assertment if it fails. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param msg User message. +/// +/// \see TEST_ASSERT(expr) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_ASSERT_MSG(expr, msg) \ + { \ + if (!(expr)) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify that two expressions are equal up to a constant, issues an +/// assertment if it fails. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param a First expression to test. +/// \param b Second expression to test. +/// \param delta Constant. +/// +/// \see TEST_ASSERT_DELTA_MSG(a, b, delta, msg) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_ASSERT_DELTA(a, b, delta) \ + { \ + if (((b) < (a) - (delta)) || ((b) > (a) + (delta))) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, \ + "delta(" #a ", " #b ", " #delta ")" )); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify that two expressions are equal up to a constant, issues an +/// assertment if it fails. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param a First expression to test. +/// \param b Second expression to test. +/// \param delta Constant. +/// \param msg User message. +/// +/// \see TEST_ASSERT_DELTA(a, b, delta) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_ASSERT_DELTA_MSG(a, b, delta, msg) \ + { \ + if (((b) < (a) - (delta)) || ((b) > (a) + (delta))) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects an exception in return. +/// An assertment is issued if the exception is not thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param x Expected exception. +/// +/// \see TEST_THROWS_MSG(expr, x, msg) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS(expr, x) \ + { \ + bool __expected = false; \ + try { expr; } \ + catch (x) { __expected = true; } \ + catch (...) {} \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, #expr)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects an exception in return. +/// An assertment is issued if the exception is not thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param x Expected exception. +/// \param msg User message. +/// +/// \see TEST_THROWS(expr, x) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_MSG(expr, x, msg) \ + { \ + bool __expected = false; \ + try { expr; } \ + catch (x) { __expected = true; } \ + catch (...) {} \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects any exception in return. +/// An assertment is issued if no exception is thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// +/// \see TEST_THROWS_ANYTHING_MSG(expr, msg) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_ANYTHING(expr) \ + { \ + bool __expected = false; \ + try { expr; } \ + catch (...) { __expected = true; } \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, #expr)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects any exception in return. +/// An assertment is issued if no exception is thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param msg User message. +/// +/// \see TEST_THROWS_ANYTHING(expr) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_ANYTHING_MSG(expr, msg) \ + { \ + bool __expected = false; \ + try { expr; } \ + catch (...) { __expected = true; } \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects no exception in return. +/// An assertment is issued if any exception is thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// +/// \see TEST_THROWS_NOTHING_MSG(expr, msg) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_NOTHING(expr) \ + { \ + bool __expected = true; \ + try { expr; } \ + catch (...) { __expected = false; } \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, #expr)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// Verify an expression and expects no exception in return. +/// An assertment is issued if any exception is thrown. +/// +/// Used in conjunction with Test::Suite. +/// +/// \param expr Expression to test. +/// \param msg User message. +/// +/// \see TEST_THROWS_NOTHING(expr) +/// +/// For a description of all asserts, see \ref asserts. +/// +#define TEST_THROWS_NOTHING_MSG(expr, msg) \ + { \ + bool __expected = true; \ + try { expr; } \ + catch (...) { __expected = false; } \ + if (!__expected) \ + { \ + assertment(::Test::Source(__FILE__, __LINE__, msg)); \ + if (!continue_after_failure()) return; \ + } \ + } + +/// \page asserts Available asserts +/// +/// Normally, assert macros issues an assert if the given expression, if any, +/// fails (as defined by the macro). Assertments include information about the +/// current test suite, test function, source file, source file line, and a +/// message. The message is normally the offending expression, however, for +/// macros ending in _MSG it is possibly to supply a user defined message. +/// +/// General asserts +/// - TEST_FAIL(msg) +/// +/// Comparision asserts +/// - TEST_ASSERT(expr) +/// - TEST_ASSERT_MSG(expr, msg) +/// - TEST_ASSERT_DELTA(a, b, delta) +/// - TEST_ASSERT_DELTA_MSG(a, b, delta, msg) +/// +/// Exception asserts +/// - TEST_THROWS(expr, x) +/// - TEST_THROWS_MSG(expr, x, msg) +/// - TEST_THROWS_ANYTHING(expr) +/// - TEST_THROWS_ANYTHING_MSG(expr, msg) +/// - TEST_THROWS_NOTHING(expr) +/// - TEST_THROWS_NOTHING_MSG(expr, msg) +/// + +#endif // #ifndef CPPTEST_ASSERT_H + diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-collectoroutput.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-collectoroutput.h new file mode 100755 index 0000000..cd9b65e --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-collectoroutput.h @@ -0,0 +1,106 @@ +// --- +// +// $Id: cpptest-collectoroutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_COLLECTOROUTPUT_H +#define CPPTEST_COLLECTOROUTPUT_H + +#include +#include +#include + +#include "cpptest-output.h" +#include "cpptest-source.h" +#include "cpptest-time.h" + +namespace Test +{ + /// \brief Collector output. + /// + /// Base class for output handlers that need to report status when all + /// tests have executed. + /// + class CollectorOutput : public Output + { + public: + virtual void finished(int tests, const Time& time); + virtual void suite_start(int tests, const std::string& name); + virtual void suite_end(int tests, const std::string& name, + const Time& time); + virtual void test_start(const std::string& name); + virtual void test_end(const std::string& name, bool ok, + const Time& time); + virtual void assertment(const Source& s); + + protected: + struct OutputSuiteInfo; + struct OutputTestInfo; + struct OutputErrorTestInfo; + + typedef std::list Sources; + + struct TestInfo + { + std::string _name; + Time _time; + + bool _success : 1; + Sources _sources; + + explicit TestInfo(const std::string name); + }; + + typedef std::vector Tests; + + struct SuiteInfo + { + std::string _name; + int _errors; + Tests _tests; + Time _time; + + SuiteInfo(const std::string& name, int tests); + }; + + typedef std::list Suites; + + Suites _suites; + int _total_errors; + int _total_tests; + Time _total_time; + + CollectorOutput(); + + private: + SuiteInfo* _cur_suite; + TestInfo* _cur_test; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_COLLECTOROUTPUT_H + diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-compileroutput.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-compileroutput.h new file mode 100755 index 0000000..35a6feb --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-compileroutput.h @@ -0,0 +1,112 @@ +// --- +// +// $Id: cpptest-compileroutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_COMPILEROUTPUT_H +#define CPPTEST_COMPILEROUTPUT_H + +#include +#include + +#include "cpptest-output.h" + +namespace Test +{ + /// \brief Compiler-like output handler. + /// + /// %Test suite output handler that only outputs failures in compiler + /// warning/error format. This way, you can use your IDE to browse between + /// failures. + /// + /// The output format is configurable to be able to emulate different + /// compiler outputs. The following modifiers exist: + /// - \e %file Outputs the file containing the test function. + /// - \e %line Line number for the the test function. + /// - \e %text Expression (or message) that caused the assertment. + /// Note that each modifier can only be specified once. + /// + class CompilerOutput : public Output + { + public: + /// \brief Compiler output exception. + /// + /// Indicates that an invalid message format was given when creating + /// a compiler output. The failing format may be retrieved using the + /// what() method. + /// + class InvalidFormat : public std::logic_error + { + public: + InvalidFormat(const std::string& what) + : std::logic_error(what) {} + }; + + /// Pre-defined compiler output formats. + /// + enum Format + { + /// Generic compiler format, which equals: + /// %%file:%%line: %%text + /// + Generic, + + /// + /// Borland C++ Compiler (BCC) format, which equals: + /// Error cpptest %%file %%line: %%text. + /// + BCC, + + /// GNU Compiler Collection + /// (GCC) format, which equals: + /// %%file:%%line: %%text + /// + GCC, + + /// Microsoft Visual C++ + /// (MSVC) format, which equals: + /// %%file(%%line) : %%text + /// + MSVC + }; + + explicit CompilerOutput(Format format = Generic, + std::ostream& stream = std::cout); + + explicit CompilerOutput(const std::string& format, + std::ostream& stream = std::cout); + + virtual void assertment(const Source& s); + + private: + std::string _format; + std::ostream& _stream; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_COMPILEROUTPUT_H + diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-htmloutput.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-htmloutput.h new file mode 100755 index 0000000..464683f --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-htmloutput.h @@ -0,0 +1,64 @@ +// --- +// +// $Id: cpptest-htmloutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_HTMLOUTPUT_H +#define CPPTEST_HTMLOUTPUT_H + +#include +#include + +#include "cpptest-collectoroutput.h" + +namespace Test +{ + /// \brief HTML output. + /// + /// %Output handler that creates a HTML table with detailed information + /// about all tests. + /// + class HtmlOutput : public CollectorOutput + { + public: + void generate(std::ostream& os, bool incl_ok_tests = true, + const std::string& name = ""); + + private: + struct SuiteRow; + struct TestRow; + struct TestSuiteRow; + struct TestResult; + struct TestResultAll; + struct SuiteTestResult; + + friend struct TestSuiteRow; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_HTMLOUTPUT_H + diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-output.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-output.h new file mode 100755 index 0000000..cfadaec --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-output.h @@ -0,0 +1,152 @@ +// --- +// +// $Id: cpptest-output.h,v 1.7 2008/07/15 21:20:26 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_OUTPUT_H +#define CPPTEST_OUTPUT_H + +#include + +#ifdef _MSC_VER +# define CPPTEST_UNUSED(x) +#else +# define CPPTEST_UNUSED(x) (void)x +#endif + +namespace Test +{ + class Source; + class Time; + + /// \brief %Test suite output handler. + /// + /// Abstract base class for all suite output handlers. Derive from this + /// class to create real output handlers that creates arbitrary complex + /// output handlers. + /// + /// All parts of testing is reported (test start/stop, suite start/stop, + /// individual test start/stop, and assertments), thus giving maximum + /// flexibility for derived classes. + /// + class Output + { + public: + /// Empty destructor. + /// + virtual ~Output() {} + + /// Called when testing is started. + /// + /// \param tests Total number of tests in all suites. + /// + virtual void initialize(int tests) + { + CPPTEST_UNUSED(tests); + } + + /// Called when testing is finished. + /// + /// \param tests Total number of tests in all suites. + /// \param time Total elapsed time for all tests. + /// + virtual void finished(int tests, const Time& time) + { + CPPTEST_UNUSED(tests); + CPPTEST_UNUSED(time); + } + + /// Called when a suite is entered. + /// + /// \param tests Number of tests in this suite. + /// \param name Name of the suite. + /// + virtual void suite_start(int tests, const std::string& name) + { + CPPTEST_UNUSED(tests); + CPPTEST_UNUSED(name); + } + + /// Called when a suite is finished. + /// + /// \param tests Number of tests in this suite. + /// \param name Name of the suite. + /// \param time Total elapsed time for all tests in this suite. + /// + virtual void suite_end(int tests, const std::string& name, + const Time& time) + { + CPPTEST_UNUSED(tests); + CPPTEST_UNUSED(name); + CPPTEST_UNUSED(time); + } + + /// Called when a tests is executed. + /// + /// \param name Name of the test function. + /// + virtual void test_start(const std::string& name) + { + CPPTEST_UNUSED(name); + } + + /// Called when a test if finished, regardless if an assertment was + /// issued. + /// + /// \param name Name of the test function. + /// \param ok True if the test was successful; false otherwise. + /// \param time Execution time. + /// + virtual void test_end(const std::string& name, bool ok, + const Time& time) + { + CPPTEST_UNUSED(name); + CPPTEST_UNUSED(ok); + CPPTEST_UNUSED(time); + } + + /// Called when an assertment is issued. + /// + /// \param s Assert point information. + /// + virtual void assertment(const Source& s) + { + CPPTEST_UNUSED(s); + } + + protected: + /// Empty constructor. + /// + Output() {} + + private: + Output(const Output&); + Output& operator=(const Output&); + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_OUTPUT_H diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-source.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-source.h new file mode 100755 index 0000000..47140ca --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-source.h @@ -0,0 +1,67 @@ +// --- +// +// $Id: cpptest-source.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_SOURCE_H +#define CPPTEST_SOURCE_H + +#include + +namespace Test +{ + class Suite; + + /// \brief Assertment source information. + /// + /// Contains information about an assertment point. + /// + class Source + { + friend class Suite; + + public: + Source(); + Source(const char* file, unsigned int line, const char* msg); + + const std::string& file() const; + unsigned int line() const; + const std::string& message() const; + const std::string& suite() const; + const std::string& test() const; + + private: + unsigned int _line; + std::string _file; + std::string _msg; + std::string _suite; + std::string _test; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_SOURCE_H + diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-suite.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-suite.h new file mode 100755 index 0000000..6e9aefc --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-suite.h @@ -0,0 +1,140 @@ +// --- +// +// $Id: cpptest-suite.h,v 1.4 2010/03/26 04:45:14 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_SUITE_H +#define CPPTEST_SUITE_H + +#include +#include +#include + +#include "cpptest-time.h" +#include "cpptest-source.h" + +namespace Test +{ + class Output; + + /// \brief Unit testing suite. + /// + /// Base class for all suites. Derive from this class to create own + /// test suites. + /// + /// %Test functions in derived classes are registered as tests using the + /// TEST_ADD(func). Testing is started by run(). Note that suites may be + /// embedded in other suites using add(). + /// + class Suite + { + public: + Suite(); + virtual ~Suite(); + + void add(std::auto_ptr suite); + + bool run(Output& output, bool cont_after_fail = true); + + protected: + /// Pointer to a test function. + /// + typedef void (Suite::*Func)(); + + bool continue_after_failure() const { return _continue; } + + virtual void setup() {} + virtual void tear_down() {} + + void register_test(Func func, const std::string& name); + void assertment(Source s); + + private: + struct DoRun; + struct ExecTests; + struct SubSuiteTests; + struct SuiteTime; + struct SubSuiteTime; + + friend struct DoRun; + friend struct ExecTests; + friend struct SubSuiteTests; + friend struct SubSuiteTime; + + struct Data + { + Func _func; + std::string _name; + Time _time; + + Data(Func func, const std::string& name) + : _func(func), _name(name) {} + }; + + typedef std::list Tests; + typedef std::list Suites; + + std::string _name; // Suite name + const std::string* _cur_test; // Current test func name + Suites _suites; // External test suites + Tests _tests; // All tests + Output* _output; // Output handler + bool _result : 1; // Test result + bool _success : 1; // Set if no test failed + bool _continue : 1; // Continue func after failures + + void do_run(Output* os, bool cont_after_fail); + int total_tests() const; + Time total_time(bool recursive) const; + + // Disable + // + Suite(const Suite&); + Suite& operator=(const Suite&); + }; + + /// Adds a test function to the enclosing suite. Note that test functions + /// should be added in the suites constructor. + /// + /// \param func Function to add, must be of type Suite::Func. + /// + /// \par Example: + /// \code + /// MySuite::MySuite() + /// { + /// TEST_ADD(&MySuite::test_1) + /// TEST_ADD(&MySuite::test_2) + /// ... + /// } + /// \endcode + /// + #define TEST_ADD(func)\ + register_test(static_cast(&func), #func); + +} // namespace Test + +#endif // #ifndef CPPTEST_SUITE_H + diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-textoutput.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-textoutput.h new file mode 100755 index 0000000..45ed9f2 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-textoutput.h @@ -0,0 +1,88 @@ +// --- +// +// $Id: cpptest-textoutput.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_TEXTOUTPUT_H +#define CPPTEST_TEXTOUTPUT_H + +#include +#include + +#include "cpptest-source.h" +#include "cpptest-output.h" + +namespace Test +{ + /// \brief Text output handler that outputs to the a stream. + /// + /// %Test suite output handler that writes its information as text to a + /// a stream. It it possible to select between two different operational + /// modes that controls the detail level, see Mode. + /// + class TextOutput : public Output + { + public: + /// Output mode. + /// + enum Mode + { + /// Terse output mode, which only shows the number of correct tests. + /// + Terse, + + /// Verbose output mode, which also shows extended assert + /// information for each test that failed. + /// + Verbose + }; + + TextOutput(Mode mode, std::ostream& stream = std::cout); + + virtual void finished(int tests, const Time& time); + virtual void suite_start(int tests, const std::string& name); + virtual void suite_end(int tests, const std::string& name, + const Time& time); + virtual void test_end(const std::string& name, bool ok, + const Time& time); + virtual void assertment(const Source& s); + + private: + typedef std::list ErrorList; + + Mode _mode; + std::ostream& _stream; + ErrorList _suite_error_list; + std::string _suite_name; + int _suite_errors; + int _suite_tests; + int _suite_total_tests; + int _total_errors; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_TEXTOUTPUT_H diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest-time.h b/WCudaMSE/API_CppTest/SRC/core/cpptest-time.h new file mode 100755 index 0000000..ee1f282 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest-time.h @@ -0,0 +1,66 @@ +// --- +// +// $Id: cpptest-time.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_TIME_H +#define CPPTEST_TIME_H + +#include +#include + +namespace Test +{ + /// \brief %Time representation. + /// + /// Encapsulates a time value with microsecond resolution. It is possible + /// to retrieve the current time, add and subtract time values, and output + /// the time to an output stream. + /// + class Time + { + public: + Time(); + Time(unsigned int sec, unsigned int usec); + + unsigned int seconds() const; + unsigned int microseconds() const; + + static Time current(); + + friend Time operator+(const Time& t1, const Time& t2); + friend Time operator-(const Time& t1, const Time& t2); + + friend std::ostream& operator<<(std::ostream& os, const Time& t); + + private: + unsigned int _sec; + unsigned int _usec; + }; + +} // namespace Test + +#endif // #ifndef CPPTEST_TIME_H diff --git a/WCudaMSE/API_CppTest/SRC/core/cpptest.h b/WCudaMSE/API_CppTest/SRC/core/cpptest.h new file mode 100755 index 0000000..3515694 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/cpptest.h @@ -0,0 +1,42 @@ +// --- +// +// $Id: cpptest.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +/** \file */ + +#ifndef CPPTEST_H +#define CPPTEST_H + +#include "cpptest-assert.h" +#include "cpptest-source.h" +#include "cpptest-suite.h" +#include "cpptest-time.h" + +#include "cpptest-compileroutput.h" +#include "cpptest-htmloutput.h" +#include "cpptest-textoutput.h" + +#endif // #ifndef CPPTEST_H + diff --git a/WCudaMSE/API_CppTest/SRC/core/extension/cppTest+.h b/WCudaMSE/API_CppTest/SRC/core/extension/cppTest+.h new file mode 100755 index 0000000..005eb19 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/extension/cppTest+.h @@ -0,0 +1,18 @@ + +#ifndef CPP_TEST_PLUS_H +#define CPP_TEST_PLUS_H + +#include "cpptest.h" +#include + +using std::string; + +bool runTestConsole(string titre, Test::Suite& test); +bool runTestHtml(string titre, Test::Suite& test); + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/API_CppTest/SRC/core/extension/testTools.cpp b/WCudaMSE/API_CppTest/SRC/core/extension/testTools.cpp new file mode 100755 index 0000000..73993b0 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/extension/testTools.cpp @@ -0,0 +1,55 @@ +#include +#include +#include + +#include "cppTest+.h" + +using std::cout; +using std::endl; +using std::string; +using std::ofstream; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +bool runTestConsole(string titre, Test::Suite& test) + { + cout << "\n[" << titre << "]\n" << endl; + + Test::TextOutput output(Test::TextOutput::Verbose); // Try Verbose or Terse + return test.run(output); + } + +bool runTestHtml(string titre, Test::Suite& test) + { + cout << "\n[Output HTML] : " << titre << endl << endl; + + string fileName=titre+".html"; + + const char* fileNameC=fileName.c_str(); + + ofstream file; + file.open(fileNameC); + + if (file.bad()) + { + return false; + } + else + { + //file << "Test"< +#include + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + +#include "cpptest-htmloutput.h" +#include "utils.h" + +using namespace std; + +namespace Test +{ + namespace + { + void + strreplace(string &value, char search, const string &replace) + { + string::size_type idx = 0; + while((idx = value.find(search, idx)) != string::npos) + { + value.replace(idx, 1, replace); + idx += replace.size(); + } + } + + string + escape(string value) + { + strreplace(value, '&', "&"); + strreplace(value, '<', "<"); + strreplace(value, '>', ">"); + strreplace(value, '"', """); + strreplace(value, '\'', "'"); + return value; + } + + void + header(ostream& os, string name) + { + if (!name.empty()) + name += " "; + name = escape(name); + os << + "\n" + "\n" + "\n" + " \n" + " \n" + " \n" + " " << name << "Unit Tests Results\n" + " \n" + " \n" + "\n" + "\n" + "\n" + "\n" + "

" << name << "Unit Tests Results

\n" + "\n" + "
\n" + "Designed by CppTest\n" + "
\n" + "
\n" + "\n"; + } + + void + footer(ostream& os) + { + os << + "\n" + "

\n" + " \n" + " Valid XHTML 1.0 Strict\n" + " \n" + "

\n" + "\n\n"; + } + + void + back_ref(ostream& os, const string& ref, bool prepend_newline = true) + { + + os << "

Back to " << escape(ref) << "\n

\n"; + } + + void + sub_title(ostream& os, const string& title, int size) + { + ostringstream h; + h << "h" << size; + os << "<" << h.str() << ">" << escape(title) << "\n"; + } + + void + sub_title(ostream& os, const string& title, int size, const string& mark) + { + ostringstream h; + h << "h" << size; + os << "<" << h.str() << ">" << escape(title) << "\n"; + } + + enum ClassTableType { TableClass_Summary, TableClass_Suites, TableClass_Suite, TableClass_Result }; + + void + table_header(ostream& os, ClassTableType type, const string &summary = "") + { + static const char* class_tabletypes[] = { "summary", "suites", "suite", "result" }; + + os << "\n"; + } + + void + table_footer(ostream& os) + { + os << "
\n"; + } + + void + table_tr_header(ostream& os) + { + os << " \n"; + } + + void + table_tr_footer(ostream& os) + { + os << " \n"; + } + + enum ClassType { Title, Success, Error }; + + void + table_entry(ostream& os, ClassType type, const string& s, + int width = 0, const string& link = "") + { + static const char* class_types[] = { "title", "success", "error" }; + + os << " " << escape(s) << ""; + else + os << " class=\"tablecell_" << class_types[type] << "\">" << escape(s); + os << "\n"; + } + + } // anonymous namespace + + // Test suite table + // + struct HtmlOutput::SuiteRow + { + ostream& _os; + SuiteRow(ostream& os) : _os(os) {} + void operator()(const SuiteInfo& si) + { + ClassType type(si._errors > 0 ? Error : Success); + ostringstream ss; + + table_tr_header(_os); + table_entry(_os, type, si._name, 0, si._name); + ss.str(""), ss << si._tests.size(); + table_entry(_os, type, ss.str(), 10); + ss.str(""), ss << si._errors; + table_entry(_os, type, ss.str(), 10); + ss.str(""), ss << correct(si._tests.size(), si._errors) << "%"; + table_entry(_os, type, ss.str(), 10); + ss.str(""), ss << si._time; + table_entry(_os, type, ss.str(), 10); + table_tr_footer(_os); + } + }; + + // Individual tests tables, tests + // + struct HtmlOutput::TestRow + { + bool _incl_ok_tests; + ostream& _os; + TestRow(ostream& os, bool incl_ok_tests) + : _incl_ok_tests(incl_ok_tests), _os(os) {} + void operator()(const TestInfo& ti) + { + if (!ti._success || _incl_ok_tests) + { + string link = ti._success ? string(""): + ti._sources.front().suite() + "_" + ti._name; + ClassType type(ti._success ? Success : Error); + ostringstream ss; + + table_tr_header(_os); + table_entry(_os, type, ti._name, 0, link); + ss.str(""), ss << ti._sources.size(); + table_entry(_os, type, ss.str()); + table_entry(_os, type, ti._success ? "true" : "false"); + ss.str(""), ss << ti._time; + table_entry(_os, type, ss.str()); + table_tr_footer(_os); + } + } + }; + + // Individual tests tables, header + // + struct HtmlOutput::TestSuiteRow + { + bool _incl_ok_tests; + ostream& _os; + TestSuiteRow(ostream& os, bool incl_ok_tests) + : _incl_ok_tests(incl_ok_tests), _os(os) {} + void operator()(const SuiteInfo& si) + { + ostringstream ss; + + sub_title(_os, "Suite: " + si._name, 3, si._name); + table_header(_os, TableClass_Suite, "Details for suite " + si._name); + table_tr_header(_os); + table_entry(_os, Title, "Name"); + table_entry(_os, Title, "Errors", 10); + table_entry(_os, Title, "Success", 10); + table_entry(_os, Title, "Time (s)", 10); + table_tr_footer(_os); + for_each(si._tests.begin(), si._tests.end(), + TestRow(_os, _incl_ok_tests)); + table_footer(_os); + back_ref(_os, "top"); + } + }; + + // Individual tests result tables + // + struct HtmlOutput::TestResult + { + ostream& _os; + TestResult(ostream& os) : _os(os) {} + void operator()(const Source& s) + { + const int TitleSize = 15; + + ostringstream ss; + + table_header(_os, TableClass_Result, "Test Failure"); + table_tr_header(_os); + table_entry(_os, Title, "Test", TitleSize); + table_entry(_os, Success, s.suite() + "::" + s.test()); + table_tr_footer(_os); + table_tr_header(_os); + table_entry(_os, Title, "File", TitleSize); + ss << s.file() << ":" << s.line(); + table_entry(_os, Success, ss.str()); + table_tr_footer(_os); + table_tr_header(_os); + table_entry(_os, Title, "Message", TitleSize); + table_entry(_os, Success, s.message()); + table_tr_footer(_os); + table_footer(_os); + } + }; + + // All tests result tables + // + struct HtmlOutput::TestResultAll + { + ostream& _os; + TestResultAll(ostream& os) : _os(os) {} + void operator()(const TestInfo& ti) + { + if (!ti._success) + { + const string& suite = ti._sources.front().suite(); + + sub_title(_os, suite + "::" + ti._name, 3, suite + "_" + ti._name); + for_each(ti._sources.begin(), ti._sources.end(), TestResult(_os)); + back_ref(_os, suite, false); + } + } + }; + + // Individual tests result tables, iterator + // + struct HtmlOutput::SuiteTestResult + { + ostream& _os; + SuiteTestResult(ostream& os) : _os(os) {} + void operator()(const SuiteInfo& si) + { + for_each(si._tests.begin(), si._tests.end(), TestResultAll(_os)); + } + }; + + /// Generates the HTML table. This function should only be called after + /// run(), when all tests have been executed. + /// + /// \param os Output stream. + /// \param incl_ok_tests Set if successful tests should be shown; + /// false otherwise. + /// \param name Name of generated report. + /// + void + HtmlOutput::generate(ostream& os, bool incl_ok_tests, const string& name) + { + ClassType type(_total_errors > 0 ? Error : Success); + ostringstream ss; + + header(os, name); + + // Table: Summary + // + sub_title(os, "Summary", 2); + table_header(os, TableClass_Summary, "Summary of test results"); + table_tr_header(os); + table_entry(os, Title, "Tests", 30); + table_entry(os, Title, "Errors", 30); + table_entry(os, Title, "Success", 30); + table_entry(os, Title, "Time (s)", 10); + table_tr_footer(os); + table_tr_header(os); + ss.str(""), ss << _total_tests; + table_entry(os, type, ss.str(), 30); + ss.str(""), ss << _total_errors; + table_entry(os, type, ss.str(), 30); + ss.str(""), ss << correct(_total_tests, _total_errors) << "%"; + table_entry(os, type, ss.str(), 30); + ss.str(""), ss << _total_time; + table_entry(os, type, ss.str(), 10); + table_tr_footer(os); + table_footer(os); + os << "
\n\n"; + + // Table: Test suites + // + sub_title(os, "Test suites", 2); + table_header(os, TableClass_Suites, "Test Suites"); + table_tr_header(os); + table_entry(os, Title, "Name"); + table_entry(os, Title, "Tests", 10); + table_entry(os, Title, "Errors", 10); + table_entry(os, Title, "Success", 10); + table_entry(os, Title, "Time (s)", 10); + table_tr_footer(os); + for_each(_suites.begin(), _suites.end(), SuiteRow(os)); + table_footer(os); + os << "
\n\n"; + + // Individual tests tables + // + for_each(_suites.begin(), _suites.end(), TestSuiteRow(os, incl_ok_tests)); + os << "
\n\n"; + + // Individual tests result tables + // + if(_total_errors != 0) + { + sub_title(os, "Test results", 2); + for_each(_suites.begin(), _suites.end(), SuiteTestResult(os)); + os << "
\n\n"; + } + // EOF + // + footer(os); + } + +} // namespace Test + diff --git a/WCudaMSE/API_CppTest/SRC/core/missing.cpp b/WCudaMSE/API_CppTest/SRC/core/missing.cpp new file mode 100755 index 0000000..046dff7 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/missing.cpp @@ -0,0 +1,80 @@ +// --- +// +// $Id: missing.cpp,v 1.4 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + +#include "missing.h" + +#ifdef HAVE_GETTICKCOUNT + #include +#endif + +#ifndef __BORLANDC__ + #include +#else + #include +#endif + +#include +#include + +namespace Test +{ +#ifndef HAVE_GETTIMEOFDAY + + int + gettimeofday(timeval* tv, void*) + { + assert(tv); + + #ifdef HAVE_GETTICKCOUNT + long now = GetTickCount(); + tv->tv_sec = now / 1000; + tv->tv_usec = (now % 1000) * 1000; + #else + tv->tv_sec = time(0); + tv->tv_usec = 0; + #endif // #ifdef HAVE_GETTICKCOUNT + + return 0; + } + +#endif // #ifndef HAVE_GETTIMEOFDAY + +#ifndef HAVE_ROUND + double + round(double d) + { + return d > 0.0 ? floor(d + 0.5) : ceil(d - 0.5); + } +#endif + +} // namespace Test + diff --git a/WCudaMSE/API_CppTest/SRC/core/missing.h b/WCudaMSE/API_CppTest/SRC/core/missing.h new file mode 100755 index 0000000..78af194 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/missing.h @@ -0,0 +1,56 @@ +// --- +// +// $Id: missing.h,v 1.4 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#ifndef CPPTEST_MISSING_H +#define CPPTEST_MISSING_H + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + +namespace Test +{ +#ifndef HAVE_GETTIMEOFDAY + + struct timeval + { + long tv_sec; + long tv_usec; + }; + + extern int gettimeofday(timeval* tv, void*); + +#endif // #ifndef HAVE_GETTIMEOFDAY + +#ifndef HAVE_ROUND + extern double round(double d); +#endif + +} // namespace Test + +#endif // #ifndef CPPTEST_MISSING_H diff --git a/WCudaMSE/API_CppTest/SRC/core/source.cpp b/WCudaMSE/API_CppTest/SRC/core/source.cpp new file mode 100755 index 0000000..b1cebda --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/source.cpp @@ -0,0 +1,93 @@ +// --- +// +// $Id: source.cpp,v 1.4 2005/06/08 09:25:09 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#include "cpptest-source.h" + +using namespace std; + +namespace Test +{ + /// Constructs an invalid source object, which filename and message are + /// empty strings and the line equals zero. + /// + Source::Source() + : _line(0) + {} + + /// Constructs a source object. + /// + /// \param file Name of the file containing the failing function. + /// \param line Line where the function starts. + /// \param msg Expression (or message) that caused the failure. + /// + Source::Source(const char* file, unsigned int line, const char* msg) + : _line(line), + _file(file ? file : ""), + _msg(msg ? msg : "") + {} + + /// \return Name of the file containing the failing function. + /// + const string& + Source::file() const + { + return _file; + } + + /// \return Line where the function starts. + /// + unsigned int + Source::line() const + { + return _line; + } + + /// \return Descriptive message. + /// + const string& + Source::message() const + { + return _msg; + } + + /// \return Name of the suite, which the test belongs to. + /// + const string& + Source::suite() const + { + return _suite; + } + + /// \return Name of failing test. + /// + const string& + Source::test() const + { + return _test; + } + +} // namespace Test + diff --git a/WCudaMSE/API_CppTest/SRC/core/suite.cpp b/WCudaMSE/API_CppTest/SRC/core/suite.cpp new file mode 100755 index 0000000..954b4a2 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/suite.cpp @@ -0,0 +1,281 @@ +// --- +// +// $Id: suite.cpp,v 1.7 2010/03/26 04:38:25 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#include +#include +#include +#include +#include + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + +#include "cpptest-output.h" +#include "cpptest-source.h" +#include "cpptest-suite.h" + +using namespace std; + +namespace Test +{ + namespace + { + // Destroys all dynamically allocated objects within the given range. + // + template + void + destroy_range(FwdIter first, FwdIter last) + { + while (first != last) + delete *first++; + } + + } // anonymous namespace + + /// Constructs an empty test suite. + /// + Suite::Suite() + : _cur_test(0), + _output(0), + _success(true) + {} + + /// Destroys this suite object. + /// + Suite::~Suite() + { + destroy_range(_suites.begin(), _suites.end()); + } + + /// Starts the testing. All tests in this suite and embedded suites will + /// be executed. + /// + /// \param output Progress report destination. + /// \param cont_after_fail Continue functions despite failures. + /// + /// \return True if no test failed; false otherwise. + /// + bool + Suite::run(Output& output, bool cont_after_fail) + { + int ntests = total_tests(); + output.initialize(ntests); + do_run(&output, cont_after_fail); + output.finished(ntests, total_time(true)); + return _success; + } + + /// \fn void Suite::setup() + /// + /// Setups a test fixture. This function is called before each test, + /// in this suite, is executed. + /// + /// This function should be overloaded by derived classes to provide + /// specialized behavior. + /// + /// \see tear_down() + + /// \fn void Suite::tear_down() + /// + /// Tears down a test fixture. This function is called after each test, + /// in this suite, have been executed. + /// + /// This function should be overloaded by derived classes to provide + /// specialized behavior. + /// + /// \see setup() + + /// Adds a suite to this suite. Tests in added suites will be executed + /// when run() of the top-level suite is called. + /// + /// \param suite %Test suite to add. + /// + void + Suite::add(auto_ptr suite) + { + _suites.push_back(suite.release()); + } + + /// Registers a test function. + /// + /// \b Note: Do not call this function directly, use the TEST_ADD(func) + /// macro instead. + /// + /// \param func Pointer to a test function. + /// \param name Class and function name of the function. The format \b must + /// equal \e class::func. + /// + void + Suite::register_test(Func func, const string& name) + { + string::size_type pos = name.find_first_of(':'); + assert(!name.empty() && name[pos + 1] == ':' && name[pos + 2] != '\0'); + + _name.assign(name, 0, pos); + _tests.push_back(Data(func, name.substr(pos + 2))); + } + + /// Issues an assertment to the output handler. + /// + /// Do not call this function directly, use one of the available assertment + /// macros instead, see \ref asserts. + /// + /// \param s Assert point information. + /// + void + Suite::assertment(Source s) + { + s._suite = _name; + s._test = *_cur_test; + _output->assertment(s); + _result = _success = false; + } + + // Functor to execute tests for the given suite. + // + struct Suite::ExecTests + { + Suite& _suite; + + ExecTests(Suite& s) : _suite(s) {} + + void operator()(Data& data) + { + _suite._cur_test = &data._name; + _suite._result = true; // assume success, assert will set to false + _suite._output->test_start(data._name); + + _suite.setup(); + Time start(Time::current()); + // FIXME Also feedback exception to user + try + { + (_suite.*data._func)(); + } catch (...) { + _suite._result = _suite._success = false; + } + Time end(Time::current()); + _suite.tear_down(); + + data._time = end - start; + _suite._output->test_end(data._name, _suite._result, data._time); + } + }; + + // Functor to execute a suite. + // + struct Suite::DoRun + { + bool _continue; + Output* _output; + + DoRun(Output* output, bool cont) : _continue(cont), _output(output) {} + void operator()(Suite* suite) { suite->do_run(_output, _continue); } + }; + + // Execute all tests in this and added suites. + // + void + Suite::do_run(Output* os, bool cont_after_fail) + { + _continue = cont_after_fail; + _output = os; + + _output->suite_start(_tests.size(), _name); + for_each(_tests.begin(), _tests.end(), ExecTests(*this)); + _output->suite_end(_tests.size(), _name, total_time(false)); + + for_each(_suites.begin(), _suites.end(), DoRun(_output, _continue)); + + // FIXME Find a cleaner way + Suites::const_iterator iter = _suites.begin(); + while (iter != _suites.end()) + { + if (!(*iter)->_success) + { + _success = false; + break; + } + iter++; + } + } + + // Functor to count all tests in a suite. + // + struct Suite::SubSuiteTests + { + int operator()(size_t value, const Suite* s) const + { + return value + s->total_tests(); + } + }; + + // Counts all tests in this and all its embedded suites. + // + int + Suite::total_tests() const + { + return accumulate(_suites.begin(), _suites.end(), + _tests.size(), SubSuiteTests()); + } + + // Functor to accumulate execution time for tests. + // + struct Suite::SuiteTime + { + Time operator()(const Time& time, const Data& data) + { + return time + data._time; + } + }; + + // Functor to accumulate execution time for suites. + // + struct Suite::SubSuiteTime + { + Time operator()(Time time, const Suite* s) const + { + return time + s->total_time(true); + } + }; + + // Counts time accumulated execution time for all tests in this and all + // its embedded suites. + // + Time + Suite::total_time(bool recursive) const + { + Time time = accumulate(_tests.begin(), _tests.end(), + Time(), SuiteTime()); + + return !recursive ? time : accumulate(_suites.begin(), _suites.end(), + time, SubSuiteTime()); + } + +} // namespace Test diff --git a/WCudaMSE/API_CppTest/SRC/core/textoutput.cpp b/WCudaMSE/API_CppTest/SRC/core/textoutput.cpp new file mode 100755 index 0000000..792a894 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/textoutput.cpp @@ -0,0 +1,132 @@ +// --- +// +// $Id: textoutput.cpp,v 1.4 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#include + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + +#include "cpptest-textoutput.h" +#include "cpptest-time.h" +#include "utils.h" + +using namespace std; + +namespace Test +{ + namespace + { + // Outputs detailed assert source information. Used in verbose mode. + // + struct ShowSource + { + ostream& _stream; + ShowSource(ostream& stream) : _stream(stream) {} + void operator()(const Source& s) + { + _stream << "\tTest: " << s.test() << endl + << "\tSuite: " << s.suite() << endl + << "\tFile: " << s.file() << endl + << "\tLine: " << s.line() << endl + << "\tMessage: " << s.message() << endl << endl; + + } + }; + + } // anonymous namespace + + /// Constructs a text output handler. + /// + /// \param mode Output mode. + /// \param stream Stream to output to. + /// + TextOutput::TextOutput(Mode mode, ostream& stream) + : _mode(mode), + _stream(stream), + _total_errors(0) + {} + + void + TextOutput::finished(int tests, const Time& time) + { + _stream << "Total: " << tests << " tests, " + << correct(tests, _total_errors) << "% correct" + << " in " << time << " seconds" << endl; + } + + void + TextOutput::suite_start(int tests, const string& name) + { + if (tests > 0) + { + _suite_name = name; + _suite_tests = _suite_errors = 0; + _suite_total_tests = tests; + _suite_error_list.clear(); + + _stream << _suite_name << ": " + << "0/" << _suite_total_tests + << "\r" << flush; + } + } + + void + TextOutput::suite_end(int tests, const string& name, const Time& time) + { + if (tests > 0) + { + _stream << name << ": " << tests << "/" << tests << ", " + << correct(tests, _suite_errors) << "% correct" + << " in " << time << " seconds" << endl; + + if (_mode == Verbose && _suite_errors) + for_each(_suite_error_list.begin(), _suite_error_list.end(), + ShowSource(_stream)); + + _total_errors += _suite_errors; + } + } + + void + TextOutput::test_end(const string&, bool ok, const Time&) + { + _stream << _suite_name << ": " + << ++_suite_tests << "/" << _suite_total_tests + << "\r" << flush; + if (!ok) + ++_suite_errors; + } + + void + TextOutput::assertment(const Source& s) + { + _suite_error_list.push_back(s); + } + +} // namespace Test diff --git a/WCudaMSE/API_CppTest/SRC/core/time.cpp b/WCudaMSE/API_CppTest/SRC/core/time.cpp new file mode 100755 index 0000000..4b7a988 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/time.cpp @@ -0,0 +1,176 @@ +// --- +// +// $Id: time.cpp,v 1.4 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + +#include "missing.h" +#include "cpptest-time.h" + +#ifdef HAVE_GETTIMEOFDAY + #ifdef HAVE_SYS_TIME_H + #include + #else + #include + #endif +#endif + +using namespace std; + +namespace Test +{ + namespace + { + const unsigned int UsecPerSec = 1000000; + + } // anonymous namespace + + /// Constructs a time object with zeroed time. + /// + Time::Time() + : _sec(0), + _usec(0) + {} + + /// Constructs a time object. + /// + /// \param sec Seconds. + /// \param usec Micro-seconds. + /// + Time::Time(unsigned int sec, unsigned int usec) + : _sec(sec), + _usec(usec) + {} + + /// \return Seconds. + /// + unsigned int + Time::seconds() const + { + return _sec; + } + + /// \return Micro-seconds. + /// + unsigned int + Time::microseconds() const + { + return _usec; + } + + /// \return The current time. + /// + Time + Time::current() + { + struct timeval tv; + gettimeofday(&tv, 0); + return Time(tv.tv_sec, tv.tv_usec); + } + + /// \relates Time + /// + /// Computes the time elapsed between two time values. + /// + /// \param t1 Left-hand time, should be greater than \a t2. + /// \param t2 Right-hand time, should be less than \a t1. + /// + /// \return Computed time value. + /// + Time + operator-(const Time& t1, const Time& t2) + { + if (t2._sec > t1._sec || (t2._sec == t1._sec && t2._usec > t1._usec)) + return Time(); + + unsigned int sec = t1._sec - t2._sec; + unsigned int usec; + + if (t2._usec > t1._usec) + { + --sec; + usec = UsecPerSec - (t2._usec - t1._usec); + } + else + usec = t1._usec - t2._usec; + + return Time(sec, usec); + } + + /// \relates Time + /// + /// Adds two time values. + /// + /// \param t1 Left-hand time. + /// \param t2 Right-hand time. + /// + /// \return Computed time value. + /// + Time + operator+(const Time& t1, const Time& t2) + { + unsigned int sec = t1._sec + t2._sec; + unsigned int usec = t1._usec + t2._usec; + + if (usec > UsecPerSec) + { + ++sec; + usec -= UsecPerSec; + } + return Time(sec, usec); + } + + /// \relates Time + /// + /// Outputs a time to an output stream. + /// + /// \param os Output stream to write to. + /// \param t %Time to output. + /// + /// \return A reference to the given output stream. + /// + ostream& + operator<<(ostream& os, const Time& t) + { + int old_fill(os.fill()); + int old_width(os.width()); + + os << t.seconds() << '.'; + os.fill('0'); + os.width(6); + os << t.microseconds(); + + os.fill(old_fill); + os.width(old_width); + + return os; + } + +} // namespace Test + diff --git a/WCudaMSE/API_CppTest/SRC/core/utils.cpp b/WCudaMSE/API_CppTest/SRC/core/utils.cpp new file mode 100755 index 0000000..ebf8502 --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/utils.cpp @@ -0,0 +1,50 @@ +// --- +// +// $Id: utils.cpp,v 1.5 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + + +#if (defined(__WIN32__) || defined(WIN32)) +# include "winconfig.h" +#else +# include "config.h" +#endif + +#include "missing.h" +#include "utils.h" + +namespace Test +{ + // Computes the procentage of correct tests. + // + int + correct(int tests, int errors) + { + if ((errors == 0) || (tests == 0)) + return 100; + + return (tests - errors) * 100 / tests; + } + +} // namespace Test diff --git a/WCudaMSE/API_CppTest/SRC/core/utils.h b/WCudaMSE/API_CppTest/SRC/core/utils.h new file mode 100755 index 0000000..967e0af --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/utils.h @@ -0,0 +1,36 @@ +// --- +// +// $Id: utils.h,v 1.3 2005/06/08 08:08:06 nilu Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#ifndef CPPTEST_UTILS_H +#define CPPTEST_UTILS_H + +namespace Test +{ + extern int correct(int tests, int errors); + +} // namespace Test + +#endif // #ifndef CPPTEST_UTILS_H diff --git a/WCudaMSE/API_CppTest/SRC/core/winconfig.h b/WCudaMSE/API_CppTest/SRC/core/winconfig.h new file mode 100755 index 0000000..6b2858a --- /dev/null +++ b/WCudaMSE/API_CppTest/SRC/core/winconfig.h @@ -0,0 +1,44 @@ +// --- +// +// $Id: winconfig.h,v 1.1 2008/07/15 20:33:31 hartwork Exp $ +// +// CppTest - A C++ Unit Testing Framework +// Copyright (c) 2003 Niklas Lundell +// +// --- +// +// This library 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 library 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 library; if not, write to the +// Free Software Foundation, Inc., 59 Temple Place - Suite 330, +// Boston, MA 02111-1307, USA. +// +// --- + +#ifndef TEST_CONFIG_H +#define TEST_CONFIG_H + +// Capabilities +// +#define HAVE_GETTICKCOUNT + +// Compiler specific stuff +// +#if _MSC_VER == 1200 // MS Visual C++ 6.0 + #pragma warning (disable: 4786) +#endif + +#if _MSC_VER > 1300 // MS Visual C++ .NET 2002 and above + #pragma warning (disable: 4267) +#endif + +#endif // #ifndef TEST_CONFIG_H diff --git a/WCudaMSE/API_FreeGlut/.classpath b/WCudaMSE/API_FreeGlut/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_FreeGlut/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_FreeGlut/.project b/WCudaMSE/API_FreeGlut/.project new file mode 100755 index 0000000..46cdcc4 --- /dev/null +++ b/WCudaMSE/API_FreeGlut/.project @@ -0,0 +1,17 @@ + + + API_FreeGlut + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_FreeGlut/BIN/visual/freeglut64.dll b/WCudaMSE/API_FreeGlut/BIN/visual/freeglut64.dll new file mode 100755 index 0000000..eb53342 Binary files /dev/null and b/WCudaMSE/API_FreeGlut/BIN/visual/freeglut64.dll differ diff --git a/WCudaMSE/API_FreeGlut/INC_WIN/freeglut.h b/WCudaMSE/API_FreeGlut/INC_WIN/freeglut.h new file mode 100755 index 0000000..241b7fc --- /dev/null +++ b/WCudaMSE/API_FreeGlut/INC_WIN/freeglut.h @@ -0,0 +1,22 @@ +#ifndef __FREEGLUT_H__ +#define __FREEGLUT_H__ + +/* + * freeglut.h + * + * The freeglut library include file + * + * 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 + * PAWEL W. OLSZTA 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. + */ + +#include "freeglut_std.h" +#include "freeglut_ext.h" + +/*** END OF FILE ***/ + +#endif /* __FREEGLUT_H__ */ diff --git a/WCudaMSE/API_FreeGlut/INC_WIN/freeglut_ext.h b/WCudaMSE/API_FreeGlut/INC_WIN/freeglut_ext.h new file mode 100755 index 0000000..af91879 --- /dev/null +++ b/WCudaMSE/API_FreeGlut/INC_WIN/freeglut_ext.h @@ -0,0 +1,236 @@ +#ifndef __FREEGLUT_EXT_H__ +#define __FREEGLUT_EXT_H__ + +/* + * freeglut_ext.h + * + * The non-GLUT-compatible extensions to the freeglut library include file + * + * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved. + * Written by Pawel W. Olszta, + * Creation date: Thu Dec 2 1999 + * + * 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 + * PAWEL W. OLSZTA 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. + */ + +#ifdef __cplusplus + extern "C" { +#endif + +/* + * Additional GLUT Key definitions for the Special key function + */ +#define GLUT_KEY_NUM_LOCK 0x006D +#define GLUT_KEY_BEGIN 0x006E +#define GLUT_KEY_DELETE 0x006F +#define GLUT_KEY_SHIFT_L 0x0070 +#define GLUT_KEY_SHIFT_R 0x0071 +#define GLUT_KEY_CTRL_L 0x0072 +#define GLUT_KEY_CTRL_R 0x0073 +#define GLUT_KEY_ALT_L 0x0074 +#define GLUT_KEY_ALT_R 0x0075 + +/* + * GLUT API Extension macro definitions -- behaviour when the user clicks on an "x" to close a window + */ +#define GLUT_ACTION_EXIT 0 +#define GLUT_ACTION_GLUTMAINLOOP_RETURNS 1 +#define GLUT_ACTION_CONTINUE_EXECUTION 2 + +/* + * Create a new rendering context when the user opens a new window? + */ +#define GLUT_CREATE_NEW_CONTEXT 0 +#define GLUT_USE_CURRENT_CONTEXT 1 + +/* + * Direct/Indirect rendering context options (has meaning only in Unix/X11) + */ +#define GLUT_FORCE_INDIRECT_CONTEXT 0 +#define GLUT_ALLOW_DIRECT_CONTEXT 1 +#define GLUT_TRY_DIRECT_CONTEXT 2 +#define GLUT_FORCE_DIRECT_CONTEXT 3 + +/* + * GLUT API Extension macro definitions -- the glutGet parameters + */ +#define GLUT_INIT_STATE 0x007C + +#define GLUT_ACTION_ON_WINDOW_CLOSE 0x01F9 + +#define GLUT_WINDOW_BORDER_WIDTH 0x01FA +#define GLUT_WINDOW_HEADER_HEIGHT 0x01FB + +#define GLUT_VERSION 0x01FC + +#define GLUT_RENDERING_CONTEXT 0x01FD +#define GLUT_DIRECT_RENDERING 0x01FE + +#define GLUT_FULL_SCREEN 0x01FF + +/* + * New tokens for glutInitDisplayMode. + * Only one GLUT_AUXn bit may be used at a time. + * Value 0x0400 is defined in OpenGLUT. + */ +#define GLUT_AUX 0x1000 + +#define GLUT_AUX1 0x1000 +#define GLUT_AUX2 0x2000 +#define GLUT_AUX3 0x4000 +#define GLUT_AUX4 0x8000 + +/* + * Context-related flags, see freeglut_state.c + */ +#define GLUT_INIT_MAJOR_VERSION 0x0200 +#define GLUT_INIT_MINOR_VERSION 0x0201 +#define GLUT_INIT_FLAGS 0x0202 +#define GLUT_INIT_PROFILE 0x0203 + +/* + * Flags for glutInitContextFlags, see freeglut_init.c + */ +#define GLUT_DEBUG 0x0001 +#define GLUT_FORWARD_COMPATIBLE 0x0002 + + +/* + * Flags for glutInitContextProfile, see freeglut_init.c + */ +#define GLUT_CORE_PROFILE 0x0001 +#define GLUT_COMPATIBILITY_PROFILE 0x0002 + +/* + * Process loop function, see freeglut_main.c + */ +FGAPI void FGAPIENTRY glutMainLoopEvent( void ); +FGAPI void FGAPIENTRY glutLeaveMainLoop( void ); +FGAPI void FGAPIENTRY glutExit ( void ); + +/* + * Window management functions, see freeglut_window.c + */ +FGAPI void FGAPIENTRY glutFullScreenToggle( void ); +FGAPI void FGAPIENTRY glutLeaveFullScreen( void ); + +/* + * Window-specific callback functions, see freeglut_callbacks.c + */ +FGAPI void FGAPIENTRY glutMouseWheelFunc( void (* callback)( int, int, int, int ) ); +FGAPI void FGAPIENTRY glutCloseFunc( void (* callback)( void ) ); +FGAPI void FGAPIENTRY glutWMCloseFunc( void (* callback)( void ) ); +/* A. Donev: Also a destruction callback for menus */ +FGAPI void FGAPIENTRY glutMenuDestroyFunc( void (* callback)( void ) ); + +/* + * State setting and retrieval functions, see freeglut_state.c + */ +FGAPI void FGAPIENTRY glutSetOption ( GLenum option_flag, int value ); +FGAPI int * FGAPIENTRY glutGetModeValues(GLenum mode, int * size); +/* A.Donev: User-data manipulation */ +FGAPI void* FGAPIENTRY glutGetWindowData( void ); +FGAPI void FGAPIENTRY glutSetWindowData(void* data); +FGAPI void* FGAPIENTRY glutGetMenuData( void ); +FGAPI void FGAPIENTRY glutSetMenuData(void* data); + +/* + * Font stuff, see freeglut_font.c + */ +FGAPI int FGAPIENTRY glutBitmapHeight( void* font ); +FGAPI GLfloat FGAPIENTRY glutStrokeHeight( void* font ); +FGAPI void FGAPIENTRY glutBitmapString( void* font, const unsigned char *string ); +FGAPI void FGAPIENTRY glutStrokeString( void* font, const unsigned char *string ); + +/* + * Geometry functions, see freeglut_geometry.c + */ +FGAPI void FGAPIENTRY glutWireRhombicDodecahedron( void ); +FGAPI void FGAPIENTRY glutSolidRhombicDodecahedron( void ); +FGAPI void FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale ); +FGAPI void FGAPIENTRY glutSolidSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale ); +FGAPI void FGAPIENTRY glutWireCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks); +FGAPI void FGAPIENTRY glutSolidCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks); + +/* + * Extension functions, see freeglut_ext.c + */ +typedef void (*GLUTproc)(); +FGAPI GLUTproc FGAPIENTRY glutGetProcAddress( const char *procName ); + +/* + * Multi-touch/multi-pointer extensions + */ + +#define GLUT_HAS_MULTI 1 + +FGAPI void FGAPIENTRY glutMultiEntryFunc( void (* callback)( int, int ) ); +FGAPI void FGAPIENTRY glutMultiButtonFunc( void (* callback)( int, int, int, int, int ) ); +FGAPI void FGAPIENTRY glutMultiMotionFunc( void (* callback)( int, int, int ) ); +FGAPI void FGAPIENTRY glutMultiPassiveFunc( void (* callback)( int, int, int ) ); + +/* + * Joystick functions, see freeglut_joystick.c + */ +/* USE OF THESE FUNCTIONS IS DEPRECATED !!!!! */ +/* If you have a serious need for these functions in your application, please either + * contact the "freeglut" developer community at freeglut-developer@lists.sourceforge.net, + * switch to the OpenGLUT library, or else port your joystick functionality over to PLIB's + * "js" library. + */ +int glutJoystickGetNumAxes( int ident ); +int glutJoystickGetNumButtons( int ident ); +int glutJoystickNotWorking( int ident ); +float glutJoystickGetDeadBand( int ident, int axis ); +void glutJoystickSetDeadBand( int ident, int axis, float db ); +float glutJoystickGetSaturation( int ident, int axis ); +void glutJoystickSetSaturation( int ident, int axis, float st ); +void glutJoystickSetMinRange( int ident, float *axes ); +void glutJoystickSetMaxRange( int ident, float *axes ); +void glutJoystickSetCenter( int ident, float *axes ); +void glutJoystickGetMinRange( int ident, float *axes ); +void glutJoystickGetMaxRange( int ident, float *axes ); +void glutJoystickGetCenter( int ident, float *axes ); + +/* + * Initialization functions, see freeglut_init.c + */ +FGAPI void FGAPIENTRY glutInitContextVersion( int majorVersion, int minorVersion ); +FGAPI void FGAPIENTRY glutInitContextFlags( int flags ); +FGAPI void FGAPIENTRY glutInitContextProfile( int profile ); + +/* to get the typedef for va_list */ +#include + +FGAPI void FGAPIENTRY glutInitErrorFunc( void (* vError)( const char *fmt, va_list ap ) ); +FGAPI void FGAPIENTRY glutInitWarningFunc( void (* vWarning)( const char *fmt, va_list ap ) ); + +/* + * GLUT API macro definitions -- the display mode definitions + */ +#define GLUT_CAPTIONLESS 0x0400 +#define GLUT_BORDERLESS 0x0800 +#define GLUT_SRGB 0x1000 + +#ifdef __cplusplus + } +#endif + +/*** END OF FILE ***/ + +#endif /* __FREEGLUT_EXT_H__ */ diff --git a/WCudaMSE/API_FreeGlut/INC_WIN/freeglut_std.h b/WCudaMSE/API_FreeGlut/INC_WIN/freeglut_std.h new file mode 100755 index 0000000..62ad0db --- /dev/null +++ b/WCudaMSE/API_FreeGlut/INC_WIN/freeglut_std.h @@ -0,0 +1,628 @@ +#ifndef __FREEGLUT_STD_H__ +#define __FREEGLUT_STD_H__ + +/* + * freeglut_std.h + * + * The GLUT-compatible part of the freeglut library include file + * + * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved. + * Written by Pawel W. Olszta, + * Creation date: Thu Dec 2 1999 + * + * 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 + * PAWEL W. OLSZTA 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. + */ + +#ifdef __cplusplus + extern "C" { +#endif + +/* + * Under windows, we have to differentiate between static and dynamic libraries + */ +#ifdef _WIN32 +/* #pragma may not be supported by some compilers. + * Discussion by FreeGLUT developers suggests that + * Visual C++ specific code involving pragmas may + * need to move to a separate header. 24th Dec 2003 + */ + +/* Define FREEGLUT_LIB_PRAGMAS to 1 to include library + * pragmas or to 0 to exclude library pragmas. + * The default behavior depends on the compiler/platform. + */ +# ifndef FREEGLUT_LIB_PRAGMAS +# if ( defined(_MSC_VER) || defined(__WATCOMC__) ) && !defined(_WIN32_WCE) +# define FREEGLUT_LIB_PRAGMAS 1 +# else +# define FREEGLUT_LIB_PRAGMAS 0 +# endif +# endif + +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN 1 +# endif +# ifndef NOMINMAX +# define NOMINMAX +# endif +# include + +/* Windows static library */ +# ifdef FREEGLUT_STATIC + +# define FGAPI +# define FGAPIENTRY + + /* Link with Win32 static freeglut lib */ +# if FREEGLUT_LIB_PRAGMAS +# pragma comment (lib, "freeglut_static.lib") +# endif + +/* Windows shared library (DLL) */ +# else + +# define FGAPIENTRY __stdcall +# if defined(FREEGLUT_EXPORTS) +# define FGAPI __declspec(dllexport) +# else +# define FGAPI __declspec(dllimport) + +// /* Link with Win32 shared freeglut lib */ +//# if FREEGLUT_LIB_PRAGMAS +//# pragma comment (lib, "freeglut.lib") +//# endif + +# endif + +# endif + +/* Drag in other Windows libraries as required by FreeGLUT */ +# if FREEGLUT_LIB_PRAGMAS +# pragma comment (lib, "glu32.lib") /* link OpenGL Utility lib */ +# pragma comment (lib, "opengl32.lib") /* link Microsoft OpenGL lib */ +# pragma comment (lib, "gdi32.lib") /* link Windows GDI lib */ +# pragma comment (lib, "winmm.lib") /* link Windows MultiMedia lib */ +# pragma comment (lib, "user32.lib") /* link Windows user lib */ +# endif + +#else + +/* Non-Windows definition of FGAPI and FGAPIENTRY */ +# define FGAPI +# define FGAPIENTRY + +#endif + +/* + * The freeglut and GLUT API versions + */ +#define FREEGLUT 1 +#define GLUT_API_VERSION 4 +#define FREEGLUT_VERSION_2_0 1 +#define GLUT_XLIB_IMPLEMENTATION 13 + +/* + * Always include OpenGL and GLU headers + */ +#include +#include + +/* + * GLUT API macro definitions -- the special key codes: + */ +#define GLUT_KEY_F1 0x0001 +#define GLUT_KEY_F2 0x0002 +#define GLUT_KEY_F3 0x0003 +#define GLUT_KEY_F4 0x0004 +#define GLUT_KEY_F5 0x0005 +#define GLUT_KEY_F6 0x0006 +#define GLUT_KEY_F7 0x0007 +#define GLUT_KEY_F8 0x0008 +#define GLUT_KEY_F9 0x0009 +#define GLUT_KEY_F10 0x000A +#define GLUT_KEY_F11 0x000B +#define GLUT_KEY_F12 0x000C +#define GLUT_KEY_LEFT 0x0064 +#define GLUT_KEY_UP 0x0065 +#define GLUT_KEY_RIGHT 0x0066 +#define GLUT_KEY_DOWN 0x0067 +#define GLUT_KEY_PAGE_UP 0x0068 +#define GLUT_KEY_PAGE_DOWN 0x0069 +#define GLUT_KEY_HOME 0x006A +#define GLUT_KEY_END 0x006B +#define GLUT_KEY_INSERT 0x006C + +/* + * GLUT API macro definitions -- mouse state definitions + */ +#define GLUT_LEFT_BUTTON 0x0000 +#define GLUT_MIDDLE_BUTTON 0x0001 +#define GLUT_RIGHT_BUTTON 0x0002 +#define GLUT_DOWN 0x0000 +#define GLUT_UP 0x0001 +#define GLUT_LEFT 0x0000 +#define GLUT_ENTERED 0x0001 + +/* + * GLUT API macro definitions -- the display mode definitions + */ +#define GLUT_RGB 0x0000 +#define GLUT_RGBA 0x0000 +#define GLUT_INDEX 0x0001 +#define GLUT_SINGLE 0x0000 +#define GLUT_DOUBLE 0x0002 +#define GLUT_ACCUM 0x0004 +#define GLUT_ALPHA 0x0008 +#define GLUT_DEPTH 0x0010 +#define GLUT_STENCIL 0x0020 +#define GLUT_MULTISAMPLE 0x0080 +#define GLUT_STEREO 0x0100 +#define GLUT_LUMINANCE 0x0200 + +/* + * GLUT API macro definitions -- windows and menu related definitions + */ +#define GLUT_MENU_NOT_IN_USE 0x0000 +#define GLUT_MENU_IN_USE 0x0001 +#define GLUT_NOT_VISIBLE 0x0000 +#define GLUT_VISIBLE 0x0001 +#define GLUT_HIDDEN 0x0000 +#define GLUT_FULLY_RETAINED 0x0001 +#define GLUT_PARTIALLY_RETAINED 0x0002 +#define GLUT_FULLY_COVERED 0x0003 + +/* + * GLUT API macro definitions -- fonts definitions + * + * Steve Baker suggested to make it binary compatible with GLUT: + */ +#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__WATCOMC__) +# define GLUT_STROKE_ROMAN ((void *)0x0000) +# define GLUT_STROKE_MONO_ROMAN ((void *)0x0001) +# define GLUT_BITMAP_9_BY_15 ((void *)0x0002) +# define GLUT_BITMAP_8_BY_13 ((void *)0x0003) +# define GLUT_BITMAP_TIMES_ROMAN_10 ((void *)0x0004) +# define GLUT_BITMAP_TIMES_ROMAN_24 ((void *)0x0005) +# define GLUT_BITMAP_HELVETICA_10 ((void *)0x0006) +# define GLUT_BITMAP_HELVETICA_12 ((void *)0x0007) +# define GLUT_BITMAP_HELVETICA_18 ((void *)0x0008) +#else + /* + * I don't really know if it's a good idea... But here it goes: + */ + extern void* glutStrokeRoman; + extern void* glutStrokeMonoRoman; + extern void* glutBitmap9By15; + extern void* glutBitmap8By13; + extern void* glutBitmapTimesRoman10; + extern void* glutBitmapTimesRoman24; + extern void* glutBitmapHelvetica10; + extern void* glutBitmapHelvetica12; + extern void* glutBitmapHelvetica18; + + /* + * Those pointers will be used by following definitions: + */ +# define GLUT_STROKE_ROMAN ((void *) &glutStrokeRoman) +# define GLUT_STROKE_MONO_ROMAN ((void *) &glutStrokeMonoRoman) +# define GLUT_BITMAP_9_BY_15 ((void *) &glutBitmap9By15) +# define GLUT_BITMAP_8_BY_13 ((void *) &glutBitmap8By13) +# define GLUT_BITMAP_TIMES_ROMAN_10 ((void *) &glutBitmapTimesRoman10) +# define GLUT_BITMAP_TIMES_ROMAN_24 ((void *) &glutBitmapTimesRoman24) +# define GLUT_BITMAP_HELVETICA_10 ((void *) &glutBitmapHelvetica10) +# define GLUT_BITMAP_HELVETICA_12 ((void *) &glutBitmapHelvetica12) +# define GLUT_BITMAP_HELVETICA_18 ((void *) &glutBitmapHelvetica18) +#endif + +/* + * GLUT API macro definitions -- the glutGet parameters + */ +#define GLUT_WINDOW_X 0x0064 +#define GLUT_WINDOW_Y 0x0065 +#define GLUT_WINDOW_WIDTH 0x0066 +#define GLUT_WINDOW_HEIGHT 0x0067 +#define GLUT_WINDOW_BUFFER_SIZE 0x0068 +#define GLUT_WINDOW_STENCIL_SIZE 0x0069 +#define GLUT_WINDOW_DEPTH_SIZE 0x006A +#define GLUT_WINDOW_RED_SIZE 0x006B +#define GLUT_WINDOW_GREEN_SIZE 0x006C +#define GLUT_WINDOW_BLUE_SIZE 0x006D +#define GLUT_WINDOW_ALPHA_SIZE 0x006E +#define GLUT_WINDOW_ACCUM_RED_SIZE 0x006F +#define GLUT_WINDOW_ACCUM_GREEN_SIZE 0x0070 +#define GLUT_WINDOW_ACCUM_BLUE_SIZE 0x0071 +#define GLUT_WINDOW_ACCUM_ALPHA_SIZE 0x0072 +#define GLUT_WINDOW_DOUBLEBUFFER 0x0073 +#define GLUT_WINDOW_RGBA 0x0074 +#define GLUT_WINDOW_PARENT 0x0075 +#define GLUT_WINDOW_NUM_CHILDREN 0x0076 +#define GLUT_WINDOW_COLORMAP_SIZE 0x0077 +#define GLUT_WINDOW_NUM_SAMPLES 0x0078 +#define GLUT_WINDOW_STEREO 0x0079 +#define GLUT_WINDOW_CURSOR 0x007A + +#define GLUT_SCREEN_WIDTH 0x00C8 +#define GLUT_SCREEN_HEIGHT 0x00C9 +#define GLUT_SCREEN_WIDTH_MM 0x00CA +#define GLUT_SCREEN_HEIGHT_MM 0x00CB +#define GLUT_MENU_NUM_ITEMS 0x012C +#define GLUT_DISPLAY_MODE_POSSIBLE 0x0190 +#define GLUT_INIT_WINDOW_X 0x01F4 +#define GLUT_INIT_WINDOW_Y 0x01F5 +#define GLUT_INIT_WINDOW_WIDTH 0x01F6 +#define GLUT_INIT_WINDOW_HEIGHT 0x01F7 +#define GLUT_INIT_DISPLAY_MODE 0x01F8 +#define GLUT_ELAPSED_TIME 0x02BC +#define GLUT_WINDOW_FORMAT_ID 0x007B + +/* + * GLUT API macro definitions -- the glutDeviceGet parameters + */ +#define GLUT_HAS_KEYBOARD 0x0258 +#define GLUT_HAS_MOUSE 0x0259 +#define GLUT_HAS_SPACEBALL 0x025A +#define GLUT_HAS_DIAL_AND_BUTTON_BOX 0x025B +#define GLUT_HAS_TABLET 0x025C +#define GLUT_NUM_MOUSE_BUTTONS 0x025D +#define GLUT_NUM_SPACEBALL_BUTTONS 0x025E +#define GLUT_NUM_BUTTON_BOX_BUTTONS 0x025F +#define GLUT_NUM_DIALS 0x0260 +#define GLUT_NUM_TABLET_BUTTONS 0x0261 +#define GLUT_DEVICE_IGNORE_KEY_REPEAT 0x0262 +#define GLUT_DEVICE_KEY_REPEAT 0x0263 +#define GLUT_HAS_JOYSTICK 0x0264 +#define GLUT_OWNS_JOYSTICK 0x0265 +#define GLUT_JOYSTICK_BUTTONS 0x0266 +#define GLUT_JOYSTICK_AXES 0x0267 +#define GLUT_JOYSTICK_POLL_RATE 0x0268 + +/* + * GLUT API macro definitions -- the glutLayerGet parameters + */ +#define GLUT_OVERLAY_POSSIBLE 0x0320 +#define GLUT_LAYER_IN_USE 0x0321 +#define GLUT_HAS_OVERLAY 0x0322 +#define GLUT_TRANSPARENT_INDEX 0x0323 +#define GLUT_NORMAL_DAMAGED 0x0324 +#define GLUT_OVERLAY_DAMAGED 0x0325 + +/* + * GLUT API macro definitions -- the glutVideoResizeGet parameters + */ +#define GLUT_VIDEO_RESIZE_POSSIBLE 0x0384 +#define GLUT_VIDEO_RESIZE_IN_USE 0x0385 +#define GLUT_VIDEO_RESIZE_X_DELTA 0x0386 +#define GLUT_VIDEO_RESIZE_Y_DELTA 0x0387 +#define GLUT_VIDEO_RESIZE_WIDTH_DELTA 0x0388 +#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 0x0389 +#define GLUT_VIDEO_RESIZE_X 0x038A +#define GLUT_VIDEO_RESIZE_Y 0x038B +#define GLUT_VIDEO_RESIZE_WIDTH 0x038C +#define GLUT_VIDEO_RESIZE_HEIGHT 0x038D + +/* + * GLUT API macro definitions -- the glutUseLayer parameters + */ +#define GLUT_NORMAL 0x0000 +#define GLUT_OVERLAY 0x0001 + +/* + * GLUT API macro definitions -- the glutGetModifiers parameters + */ +#define GLUT_ACTIVE_SHIFT 0x0001 +#define GLUT_ACTIVE_CTRL 0x0002 +#define GLUT_ACTIVE_ALT 0x0004 + +/* + * GLUT API macro definitions -- the glutSetCursor parameters + */ +#define GLUT_CURSOR_RIGHT_ARROW 0x0000 +#define GLUT_CURSOR_LEFT_ARROW 0x0001 +#define GLUT_CURSOR_INFO 0x0002 +#define GLUT_CURSOR_DESTROY 0x0003 +#define GLUT_CURSOR_HELP 0x0004 +#define GLUT_CURSOR_CYCLE 0x0005 +#define GLUT_CURSOR_SPRAY 0x0006 +#define GLUT_CURSOR_WAIT 0x0007 +#define GLUT_CURSOR_TEXT 0x0008 +#define GLUT_CURSOR_CROSSHAIR 0x0009 +#define GLUT_CURSOR_UP_DOWN 0x000A +#define GLUT_CURSOR_LEFT_RIGHT 0x000B +#define GLUT_CURSOR_TOP_SIDE 0x000C +#define GLUT_CURSOR_BOTTOM_SIDE 0x000D +#define GLUT_CURSOR_LEFT_SIDE 0x000E +#define GLUT_CURSOR_RIGHT_SIDE 0x000F +#define GLUT_CURSOR_TOP_LEFT_CORNER 0x0010 +#define GLUT_CURSOR_TOP_RIGHT_CORNER 0x0011 +#define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 0x0012 +#define GLUT_CURSOR_BOTTOM_LEFT_CORNER 0x0013 +#define GLUT_CURSOR_INHERIT 0x0064 +#define GLUT_CURSOR_NONE 0x0065 +#define GLUT_CURSOR_FULL_CROSSHAIR 0x0066 + +/* + * GLUT API macro definitions -- RGB color component specification definitions + */ +#define GLUT_RED 0x0000 +#define GLUT_GREEN 0x0001 +#define GLUT_BLUE 0x0002 + +/* + * GLUT API macro definitions -- additional keyboard and joystick definitions + */ +#define GLUT_KEY_REPEAT_OFF 0x0000 +#define GLUT_KEY_REPEAT_ON 0x0001 +#define GLUT_KEY_REPEAT_DEFAULT 0x0002 + +#define GLUT_JOYSTICK_BUTTON_A 0x0001 +#define GLUT_JOYSTICK_BUTTON_B 0x0002 +#define GLUT_JOYSTICK_BUTTON_C 0x0004 +#define GLUT_JOYSTICK_BUTTON_D 0x0008 + +/* + * GLUT API macro definitions -- game mode definitions + */ +#define GLUT_GAME_MODE_ACTIVE 0x0000 +#define GLUT_GAME_MODE_POSSIBLE 0x0001 +#define GLUT_GAME_MODE_WIDTH 0x0002 +#define GLUT_GAME_MODE_HEIGHT 0x0003 +#define GLUT_GAME_MODE_PIXEL_DEPTH 0x0004 +#define GLUT_GAME_MODE_REFRESH_RATE 0x0005 +#define GLUT_GAME_MODE_DISPLAY_CHANGED 0x0006 + +/* + * Initialization functions, see fglut_init.c + */ +FGAPI void FGAPIENTRY glutInit( int* pargc, char** argv ); +FGAPI void FGAPIENTRY glutInitWindowPosition( int x, int y ); +FGAPI void FGAPIENTRY glutInitWindowSize( int width, int height ); +FGAPI void FGAPIENTRY glutInitDisplayMode( unsigned int displayMode ); +FGAPI void FGAPIENTRY glutInitDisplayString( const char* displayMode ); + +/* + * Process loop function, see freeglut_main.c + */ +FGAPI void FGAPIENTRY glutMainLoop( void ); + +/* + * Window management functions, see freeglut_window.c + */ +FGAPI int FGAPIENTRY glutCreateWindow( const char* title ); +FGAPI int FGAPIENTRY glutCreateSubWindow( int window, int x, int y, int width, int height ); +FGAPI void FGAPIENTRY glutDestroyWindow( int window ); +FGAPI void FGAPIENTRY glutSetWindow( int window ); +FGAPI int FGAPIENTRY glutGetWindow( void ); +FGAPI void FGAPIENTRY glutSetWindowTitle( const char* title ); +FGAPI void FGAPIENTRY glutSetIconTitle( const char* title ); +FGAPI void FGAPIENTRY glutReshapeWindow( int width, int height ); +FGAPI void FGAPIENTRY glutPositionWindow( int x, int y ); +FGAPI void FGAPIENTRY glutShowWindow( void ); +FGAPI void FGAPIENTRY glutHideWindow( void ); +FGAPI void FGAPIENTRY glutIconifyWindow( void ); +FGAPI void FGAPIENTRY glutPushWindow( void ); +FGAPI void FGAPIENTRY glutPopWindow( void ); +FGAPI void FGAPIENTRY glutFullScreen( void ); + +/* + * Display-connected functions, see freeglut_display.c + */ +FGAPI void FGAPIENTRY glutPostWindowRedisplay( int window ); +FGAPI void FGAPIENTRY glutPostRedisplay( void ); +FGAPI void FGAPIENTRY glutSwapBuffers( void ); + +/* + * Mouse cursor functions, see freeglut_cursor.c + */ +FGAPI void FGAPIENTRY glutWarpPointer( int x, int y ); +FGAPI void FGAPIENTRY glutSetCursor( int cursor ); + +/* + * Overlay stuff, see freeglut_overlay.c + */ +FGAPI void FGAPIENTRY glutEstablishOverlay( void ); +FGAPI void FGAPIENTRY glutRemoveOverlay( void ); +FGAPI void FGAPIENTRY glutUseLayer( GLenum layer ); +FGAPI void FGAPIENTRY glutPostOverlayRedisplay( void ); +FGAPI void FGAPIENTRY glutPostWindowOverlayRedisplay( int window ); +FGAPI void FGAPIENTRY glutShowOverlay( void ); +FGAPI void FGAPIENTRY glutHideOverlay( void ); + +/* + * Menu stuff, see freeglut_menu.c + */ +FGAPI int FGAPIENTRY glutCreateMenu( void (* callback)( int menu ) ); +FGAPI void FGAPIENTRY glutDestroyMenu( int menu ); +FGAPI int FGAPIENTRY glutGetMenu( void ); +FGAPI void FGAPIENTRY glutSetMenu( int menu ); +FGAPI void FGAPIENTRY glutAddMenuEntry( const char* label, int value ); +FGAPI void FGAPIENTRY glutAddSubMenu( const char* label, int subMenu ); +FGAPI void FGAPIENTRY glutChangeToMenuEntry( int item, const char* label, int value ); +FGAPI void FGAPIENTRY glutChangeToSubMenu( int item, const char* label, int value ); +FGAPI void FGAPIENTRY glutRemoveMenuItem( int item ); +FGAPI void FGAPIENTRY glutAttachMenu( int button ); +FGAPI void FGAPIENTRY glutDetachMenu( int button ); + +/* + * Global callback functions, see freeglut_callbacks.c + */ +FGAPI void FGAPIENTRY glutTimerFunc( unsigned int time, void (* callback)( int ), int value ); +FGAPI void FGAPIENTRY glutIdleFunc( void (* callback)( void ) ); + +/* + * Window-specific callback functions, see freeglut_callbacks.c + */ +FGAPI void FGAPIENTRY glutKeyboardFunc( void (* callback)( unsigned char, int, int ) ); +FGAPI void FGAPIENTRY glutSpecialFunc( void (* callback)( int, int, int ) ); +FGAPI void FGAPIENTRY glutReshapeFunc( void (* callback)( int, int ) ); +FGAPI void FGAPIENTRY glutVisibilityFunc( void (* callback)( int ) ); +FGAPI void FGAPIENTRY glutDisplayFunc( void (* callback)( void ) ); +FGAPI void FGAPIENTRY glutMouseFunc( void (* callback)( int, int, int, int ) ); +FGAPI void FGAPIENTRY glutMotionFunc( void (* callback)( int, int ) ); +FGAPI void FGAPIENTRY glutPassiveMotionFunc( void (* callback)( int, int ) ); +FGAPI void FGAPIENTRY glutEntryFunc( void (* callback)( int ) ); + +FGAPI void FGAPIENTRY glutKeyboardUpFunc( void (* callback)( unsigned char, int, int ) ); +FGAPI void FGAPIENTRY glutSpecialUpFunc( void (* callback)( int, int, int ) ); +FGAPI void FGAPIENTRY glutJoystickFunc( void (* callback)( unsigned int, int, int, int ), int pollInterval ); +FGAPI void FGAPIENTRY glutMenuStateFunc( void (* callback)( int ) ); +FGAPI void FGAPIENTRY glutMenuStatusFunc( void (* callback)( int, int, int ) ); +FGAPI void FGAPIENTRY glutOverlayDisplayFunc( void (* callback)( void ) ); +FGAPI void FGAPIENTRY glutWindowStatusFunc( void (* callback)( int ) ); + +FGAPI void FGAPIENTRY glutSpaceballMotionFunc( void (* callback)( int, int, int ) ); +FGAPI void FGAPIENTRY glutSpaceballRotateFunc( void (* callback)( int, int, int ) ); +FGAPI void FGAPIENTRY glutSpaceballButtonFunc( void (* callback)( int, int ) ); +FGAPI void FGAPIENTRY glutButtonBoxFunc( void (* callback)( int, int ) ); +FGAPI void FGAPIENTRY glutDialsFunc( void (* callback)( int, int ) ); +FGAPI void FGAPIENTRY glutTabletMotionFunc( void (* callback)( int, int ) ); +FGAPI void FGAPIENTRY glutTabletButtonFunc( void (* callback)( int, int, int, int ) ); + +/* + * State setting and retrieval functions, see freeglut_state.c + */ +FGAPI int FGAPIENTRY glutGet( GLenum query ); +FGAPI int FGAPIENTRY glutDeviceGet( GLenum query ); +FGAPI int FGAPIENTRY glutGetModifiers( void ); +FGAPI int FGAPIENTRY glutLayerGet( GLenum query ); + +/* + * Font stuff, see freeglut_font.c + */ +FGAPI void FGAPIENTRY glutBitmapCharacter( void* font, int character ); +FGAPI int FGAPIENTRY glutBitmapWidth( void* font, int character ); +FGAPI void FGAPIENTRY glutStrokeCharacter( void* font, int character ); +FGAPI int FGAPIENTRY glutStrokeWidth( void* font, int character ); +FGAPI int FGAPIENTRY glutBitmapLength( void* font, const unsigned char* string ); +FGAPI int FGAPIENTRY glutStrokeLength( void* font, const unsigned char* string ); + +/* + * Geometry functions, see freeglut_geometry.c + */ +FGAPI void FGAPIENTRY glutWireCube( GLdouble size ); +FGAPI void FGAPIENTRY glutSolidCube( GLdouble size ); +FGAPI void FGAPIENTRY glutWireSphere( GLdouble radius, GLint slices, GLint stacks ); +FGAPI void FGAPIENTRY glutSolidSphere( GLdouble radius, GLint slices, GLint stacks ); +FGAPI void FGAPIENTRY glutWireCone( GLdouble base, GLdouble height, GLint slices, GLint stacks ); +FGAPI void FGAPIENTRY glutSolidCone( GLdouble base, GLdouble height, GLint slices, GLint stacks ); + +FGAPI void FGAPIENTRY glutWireTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings ); +FGAPI void FGAPIENTRY glutSolidTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings ); +FGAPI void FGAPIENTRY glutWireDodecahedron( void ); +FGAPI void FGAPIENTRY glutSolidDodecahedron( void ); +FGAPI void FGAPIENTRY glutWireOctahedron( void ); +FGAPI void FGAPIENTRY glutSolidOctahedron( void ); +FGAPI void FGAPIENTRY glutWireTetrahedron( void ); +FGAPI void FGAPIENTRY glutSolidTetrahedron( void ); +FGAPI void FGAPIENTRY glutWireIcosahedron( void ); +FGAPI void FGAPIENTRY glutSolidIcosahedron( void ); + +/* + * Teapot rendering functions, found in freeglut_teapot.c + */ +FGAPI void FGAPIENTRY glutWireTeapot( GLdouble size ); +FGAPI void FGAPIENTRY glutSolidTeapot( GLdouble size ); + +/* + * Game mode functions, see freeglut_gamemode.c + */ +FGAPI void FGAPIENTRY glutGameModeString( const char* string ); +FGAPI int FGAPIENTRY glutEnterGameMode( void ); +FGAPI void FGAPIENTRY glutLeaveGameMode( void ); +FGAPI int FGAPIENTRY glutGameModeGet( GLenum query ); + +/* + * Video resize functions, see freeglut_videoresize.c + */ +FGAPI int FGAPIENTRY glutVideoResizeGet( GLenum query ); +FGAPI void FGAPIENTRY glutSetupVideoResizing( void ); +FGAPI void FGAPIENTRY glutStopVideoResizing( void ); +FGAPI void FGAPIENTRY glutVideoResize( int x, int y, int width, int height ); +FGAPI void FGAPIENTRY glutVideoPan( int x, int y, int width, int height ); + +/* + * Colormap functions, see freeglut_misc.c + */ +FGAPI void FGAPIENTRY glutSetColor( int color, GLfloat red, GLfloat green, GLfloat blue ); +FGAPI GLfloat FGAPIENTRY glutGetColor( int color, int component ); +FGAPI void FGAPIENTRY glutCopyColormap( int window ); + +/* + * Misc keyboard and joystick functions, see freeglut_misc.c + */ +FGAPI void FGAPIENTRY glutIgnoreKeyRepeat( int ignore ); +FGAPI void FGAPIENTRY glutSetKeyRepeat( int repeatMode ); +FGAPI void FGAPIENTRY glutForceJoystickFunc( void ); + +/* + * Misc functions, see freeglut_misc.c + */ +FGAPI int FGAPIENTRY glutExtensionSupported( const char* extension ); +FGAPI void FGAPIENTRY glutReportErrors( void ); + +/* Comment from glut.h of classic GLUT: + + Win32 has an annoying issue where there are multiple C run-time + libraries (CRTs). If the executable is linked with a different CRT + from the GLUT DLL, the GLUT DLL will not share the same CRT static + data seen by the executable. In particular, atexit callbacks registered + in the executable will not be called if GLUT calls its (different) + exit routine). GLUT is typically built with the + "/MD" option (the CRT with multithreading DLL support), but the Visual + C++ linker default is "/ML" (the single threaded CRT). + + One workaround to this issue is requiring users to always link with + the same CRT as GLUT is compiled with. That requires users supply a + non-standard option. GLUT 3.7 has its own built-in workaround where + the executable's "exit" function pointer is covertly passed to GLUT. + GLUT then calls the executable's exit function pointer to ensure that + any "atexit" calls registered by the application are called if GLUT + needs to exit. + + Note that the __glut*WithExit routines should NEVER be called directly. + To avoid the atexit workaround, #define GLUT_DISABLE_ATEXIT_HACK. */ + +/* to get the prototype for exit() */ +#include + +#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK) && !defined(__WATCOMC__) +FGAPI void FGAPIENTRY __glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int)); +FGAPI int FGAPIENTRY __glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int)); +FGAPI int FGAPIENTRY __glutCreateMenuWithExit(void (* func)(int), void (__cdecl *exitfunc)(int)); +#ifndef FREEGLUT_BUILDING_LIB +#if defined(__GNUC__) +#define FGUNUSED __attribute__((unused)) +#else +#define FGUNUSED +#endif +static void FGAPIENTRY FGUNUSED glutInit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); } +#define glutInit glutInit_ATEXIT_HACK +static int FGAPIENTRY FGUNUSED glutCreateWindow_ATEXIT_HACK(const char *title) { return __glutCreateWindowWithExit(title, exit); } +#define glutCreateWindow glutCreateWindow_ATEXIT_HACK +static int FGAPIENTRY FGUNUSED glutCreateMenu_ATEXIT_HACK(void (* func)(int)) { return __glutCreateMenuWithExit(func, exit); } +#define glutCreateMenu glutCreateMenu_ATEXIT_HACK +#endif +#endif + +#ifdef __cplusplus + } +#endif + +/*** END OF FILE ***/ + +#endif /* __FREEGLUT_STD_H__ */ + diff --git a/WCudaMSE/API_FreeGlut/INC_WIN/glut.h b/WCudaMSE/API_FreeGlut/INC_WIN/glut.h new file mode 100755 index 0000000..ce61238 --- /dev/null +++ b/WCudaMSE/API_FreeGlut/INC_WIN/glut.h @@ -0,0 +1,21 @@ +#ifndef __GLUT_H__ +#define __GLUT_H__ + +/* + * glut.h + * + * The freeglut library include file + * + * 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 + * PAWEL W. OLSZTA 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. + */ + +#include "freeglut_std.h" + +/*** END OF FILE ***/ + +#endif /* __GLUT_H__ */ diff --git a/WCudaMSE/API_FreeGlut/INC_WIN/jstNote.txt b/WCudaMSE/API_FreeGlut/INC_WIN/jstNote.txt new file mode 100755 index 0000000..41d8956 --- /dev/null +++ b/WCudaMSE/API_FreeGlut/INC_WIN/jstNote.txt @@ -0,0 +1,3 @@ +Warning ! + +freeglut_std.h was edited by myself ! \ No newline at end of file diff --git a/WCudaMSE/API_FreeGlut/LIB/mingw/libfreeglut64dll.a b/WCudaMSE/API_FreeGlut/LIB/mingw/libfreeglut64dll.a new file mode 100755 index 0000000..ccbefa1 Binary files /dev/null and b/WCudaMSE/API_FreeGlut/LIB/mingw/libfreeglut64dll.a differ diff --git a/WCudaMSE/API_FreeGlut/LIB/visual/freeglut64.lib b/WCudaMSE/API_FreeGlut/LIB/visual/freeglut64.lib new file mode 100755 index 0000000..2489949 Binary files /dev/null and b/WCudaMSE/API_FreeGlut/LIB/visual/freeglut64.lib differ diff --git a/WCudaMSE/API_FreeGlut/windowsOnly.txt b/WCudaMSE/API_FreeGlut/windowsOnly.txt new file mode 100755 index 0000000..e69de29 diff --git a/WCudaMSE/API_GL/.classpath b/WCudaMSE/API_GL/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/API_GL/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/API_GL/.project b/WCudaMSE/API_GL/.project new file mode 100755 index 0000000..e798f3f --- /dev/null +++ b/WCudaMSE/API_GL/.project @@ -0,0 +1,17 @@ + + + API_GL + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/API_GL/BIN/visual/glew64.dll b/WCudaMSE/API_GL/BIN/visual/glew64.dll new file mode 100755 index 0000000..da89fdc Binary files /dev/null and b/WCudaMSE/API_GL/BIN/visual/glew64.dll differ diff --git a/WCudaMSE/API_GL/INC_WIN/GL/glew.h b/WCudaMSE/API_GL/INC_WIN/GL/glew.h new file mode 100755 index 0000000..f27513e --- /dev/null +++ b/WCudaMSE/API_GL/INC_WIN/GL/glew.h @@ -0,0 +1,15343 @@ +/* +** The OpenGL Extension Wrangler Library +** Copyright (C) 2002-2008, Milan Ikits +** Copyright (C) 2002-2008, Marcelo E. Magallon +** Copyright (C) 2002, Lev Povalahev +** 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. +** * The name of the author 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. +*/ + +/* + * Mesa 3-D graphics library + * Version: 7.0 + * + * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. + * + * 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 + * BRIAN PAUL 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. + */ + +/* +** Copyright (c) 2007 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are 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 Materials. +** +** THE MATERIALS ARE 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 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +#ifndef __glew_h__ +#define __glew_h__ +#define __GLEW_H__ + +#if defined(__gl_h_) || defined(__GL_H__) || defined(__X_GL_H) +#error gl.h included before glew.h +#endif +#if defined(__glext_h_) || defined(__GLEXT_H_) +#error glext.h included before glew.h +#endif +#if defined(__gl_ATI_h_) +#error glATI.h included before glew.h +#endif + +#define __gl_h_ +#define __GL_H__ +#define __X_GL_H +#define __glext_h_ +#define __GLEXT_H_ +#define __gl_ATI_h_ + +#if defined(_WIN32) + +/* + * GLEW does not include to avoid name space pollution. + * GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t + * defined properly. + */ +/* */ +#ifndef APIENTRY +#define GLEW_APIENTRY_DEFINED +# if defined(__MINGW32__) || defined(__CYGWIN__) +# define APIENTRY __stdcall +# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) +# define APIENTRY __stdcall +# else +# define APIENTRY +# endif +#endif +#ifndef GLAPI +# if defined(__MINGW32__) || defined(__CYGWIN__) +# define GLAPI extern +# endif +#endif +/* */ +#ifndef CALLBACK +#define GLEW_CALLBACK_DEFINED +# if defined(__MINGW32__) || defined(__CYGWIN__) +# define CALLBACK __attribute__ ((__stdcall__)) +# elif (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS) +# define CALLBACK __stdcall +# else +# define CALLBACK +# endif +#endif +/* and */ +#ifndef WINGDIAPI +#define GLEW_WINGDIAPI_DEFINED +#define WINGDIAPI __declspec(dllimport) +#endif +/* */ +#if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(_WCHAR_T_DEFINED) +typedef unsigned short wchar_t; +# define _WCHAR_T_DEFINED +#endif +/* */ +#if !defined(_W64) +# if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && defined(_MSC_VER) && _MSC_VER >= 1300 +# define _W64 __w64 +# else +# define _W64 +# endif +#endif +#if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_) && !defined(__MINGW64__) +# ifdef _WIN64 +typedef __int64 ptrdiff_t; +# else +typedef _W64 int ptrdiff_t; +# endif +# define _PTRDIFF_T_DEFINED +# define _PTRDIFF_T_ +#endif + +#ifndef GLAPI +# if defined(__MINGW32__) || defined(__CYGWIN__) +# define GLAPI extern +# else +# define GLAPI WINGDIAPI +# endif +#endif + +#ifndef GLAPIENTRY +#define GLAPIENTRY APIENTRY +#endif + +/* + * GLEW_STATIC is defined for static library. + * GLEW_BUILD is defined for building the DLL library. + */ + +#ifdef GLEW_STATIC +# define GLEWAPI extern +#else +# ifdef GLEW_BUILD +# define GLEWAPI extern __declspec(dllexport) +# else +# define GLEWAPI extern __declspec(dllimport) +# endif +#endif + +#else /* _UNIX */ + +/* + * Needed for ptrdiff_t in turn needed by VBO. This is defined by ISO + * C. On my system, this amounts to _3 lines_ of included code, all of + * them pretty much harmless. If you know of a way of detecting 32 vs + * 64 _targets_ at compile time you are free to replace this with + * something that's portable. For now, _this_ is the portable solution. + * (mem, 2004-01-04) + */ + +#include + +/* SGI MIPSPro doesn't like stdint.h in C++ mode */ + +#if defined(__sgi) && !defined(__GNUC__) +#include +#else +#include +#endif + +#define GLEW_APIENTRY_DEFINED +#define APIENTRY + +/* + * GLEW_STATIC is defined for static library. + */ + +#ifdef GLEW_STATIC +# define GLEWAPI extern +#else +# if defined(__GNUC__) && __GNUC__>=4 +# define GLEWAPI extern __attribute__ ((visibility("default"))) +# elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) +# define GLEWAPI extern __global +# else +# define GLEWAPI extern +# endif +#endif + +/* */ +#ifndef GLAPI +#define GLAPI extern +#endif +#ifndef GLAPIENTRY +#define GLAPIENTRY +#endif + +#endif /* _WIN32 */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* ----------------------------- GL_VERSION_1_1 ---------------------------- */ + +#ifndef GL_VERSION_1_1 +#define GL_VERSION_1_1 1 + +typedef unsigned int GLenum; +typedef unsigned int GLbitfield; +typedef unsigned int GLuint; +typedef int GLint; +typedef int GLsizei; +typedef unsigned char GLboolean; +typedef signed char GLbyte; +typedef short GLshort; +typedef unsigned char GLubyte; +typedef unsigned short GLushort; +typedef unsigned long GLulong; +typedef float GLfloat; +typedef float GLclampf; +typedef double GLdouble; +typedef double GLclampd; +typedef void GLvoid; +#if defined(_MSC_VER) && _MSC_VER < 1400 +typedef __int64 GLint64EXT; +typedef unsigned __int64 GLuint64EXT; +#elif defined(_MSC_VER) || defined(__BORLANDC__) +typedef signed long long GLint64EXT; +typedef unsigned long long GLuint64EXT; +#else +# if defined(__MINGW32__) || defined(__CYGWIN__) +#include +# endif +typedef int64_t GLint64EXT; +typedef uint64_t GLuint64EXT; +#endif +typedef GLint64EXT GLint64; +typedef GLuint64EXT GLuint64; +typedef struct __GLsync *GLsync; + +typedef char GLchar; + +#define GL_ZERO 0 +#define GL_FALSE 0 +#define GL_LOGIC_OP 0x0BF1 +#define GL_NONE 0 +#define GL_TEXTURE_COMPONENTS 0x1003 +#define GL_NO_ERROR 0 +#define GL_POINTS 0x0000 +#define GL_CURRENT_BIT 0x00000001 +#define GL_TRUE 1 +#define GL_ONE 1 +#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 +#define GL_LINES 0x0001 +#define GL_LINE_LOOP 0x0002 +#define GL_POINT_BIT 0x00000002 +#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 +#define GL_LINE_STRIP 0x0003 +#define GL_LINE_BIT 0x00000004 +#define GL_TRIANGLES 0x0004 +#define GL_TRIANGLE_STRIP 0x0005 +#define GL_TRIANGLE_FAN 0x0006 +#define GL_QUADS 0x0007 +#define GL_QUAD_STRIP 0x0008 +#define GL_POLYGON_BIT 0x00000008 +#define GL_POLYGON 0x0009 +#define GL_POLYGON_STIPPLE_BIT 0x00000010 +#define GL_PIXEL_MODE_BIT 0x00000020 +#define GL_LIGHTING_BIT 0x00000040 +#define GL_FOG_BIT 0x00000080 +#define GL_DEPTH_BUFFER_BIT 0x00000100 +#define GL_ACCUM 0x0100 +#define GL_LOAD 0x0101 +#define GL_RETURN 0x0102 +#define GL_MULT 0x0103 +#define GL_ADD 0x0104 +#define GL_NEVER 0x0200 +#define GL_ACCUM_BUFFER_BIT 0x00000200 +#define GL_LESS 0x0201 +#define GL_EQUAL 0x0202 +#define GL_LEQUAL 0x0203 +#define GL_GREATER 0x0204 +#define GL_NOTEQUAL 0x0205 +#define GL_GEQUAL 0x0206 +#define GL_ALWAYS 0x0207 +#define GL_SRC_COLOR 0x0300 +#define GL_ONE_MINUS_SRC_COLOR 0x0301 +#define GL_SRC_ALPHA 0x0302 +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_DST_ALPHA 0x0304 +#define GL_ONE_MINUS_DST_ALPHA 0x0305 +#define GL_DST_COLOR 0x0306 +#define GL_ONE_MINUS_DST_COLOR 0x0307 +#define GL_SRC_ALPHA_SATURATE 0x0308 +#define GL_STENCIL_BUFFER_BIT 0x00000400 +#define GL_FRONT_LEFT 0x0400 +#define GL_FRONT_RIGHT 0x0401 +#define GL_BACK_LEFT 0x0402 +#define GL_BACK_RIGHT 0x0403 +#define GL_FRONT 0x0404 +#define GL_BACK 0x0405 +#define GL_LEFT 0x0406 +#define GL_RIGHT 0x0407 +#define GL_FRONT_AND_BACK 0x0408 +#define GL_AUX0 0x0409 +#define GL_AUX1 0x040A +#define GL_AUX2 0x040B +#define GL_AUX3 0x040C +#define GL_INVALID_ENUM 0x0500 +#define GL_INVALID_VALUE 0x0501 +#define GL_INVALID_OPERATION 0x0502 +#define GL_STACK_OVERFLOW 0x0503 +#define GL_STACK_UNDERFLOW 0x0504 +#define GL_OUT_OF_MEMORY 0x0505 +#define GL_2D 0x0600 +#define GL_3D 0x0601 +#define GL_3D_COLOR 0x0602 +#define GL_3D_COLOR_TEXTURE 0x0603 +#define GL_4D_COLOR_TEXTURE 0x0604 +#define GL_PASS_THROUGH_TOKEN 0x0700 +#define GL_POINT_TOKEN 0x0701 +#define GL_LINE_TOKEN 0x0702 +#define GL_POLYGON_TOKEN 0x0703 +#define GL_BITMAP_TOKEN 0x0704 +#define GL_DRAW_PIXEL_TOKEN 0x0705 +#define GL_COPY_PIXEL_TOKEN 0x0706 +#define GL_LINE_RESET_TOKEN 0x0707 +#define GL_EXP 0x0800 +#define GL_VIEWPORT_BIT 0x00000800 +#define GL_EXP2 0x0801 +#define GL_CW 0x0900 +#define GL_CCW 0x0901 +#define GL_COEFF 0x0A00 +#define GL_ORDER 0x0A01 +#define GL_DOMAIN 0x0A02 +#define GL_CURRENT_COLOR 0x0B00 +#define GL_CURRENT_INDEX 0x0B01 +#define GL_CURRENT_NORMAL 0x0B02 +#define GL_CURRENT_TEXTURE_COORDS 0x0B03 +#define GL_CURRENT_RASTER_COLOR 0x0B04 +#define GL_CURRENT_RASTER_INDEX 0x0B05 +#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 +#define GL_CURRENT_RASTER_POSITION 0x0B07 +#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 +#define GL_CURRENT_RASTER_DISTANCE 0x0B09 +#define GL_POINT_SMOOTH 0x0B10 +#define GL_POINT_SIZE 0x0B11 +#define GL_POINT_SIZE_RANGE 0x0B12 +#define GL_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_LINE_SMOOTH 0x0B20 +#define GL_LINE_WIDTH 0x0B21 +#define GL_LINE_WIDTH_RANGE 0x0B22 +#define GL_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_LINE_STIPPLE 0x0B24 +#define GL_LINE_STIPPLE_PATTERN 0x0B25 +#define GL_LINE_STIPPLE_REPEAT 0x0B26 +#define GL_LIST_MODE 0x0B30 +#define GL_MAX_LIST_NESTING 0x0B31 +#define GL_LIST_BASE 0x0B32 +#define GL_LIST_INDEX 0x0B33 +#define GL_POLYGON_MODE 0x0B40 +#define GL_POLYGON_SMOOTH 0x0B41 +#define GL_POLYGON_STIPPLE 0x0B42 +#define GL_EDGE_FLAG 0x0B43 +#define GL_CULL_FACE 0x0B44 +#define GL_CULL_FACE_MODE 0x0B45 +#define GL_FRONT_FACE 0x0B46 +#define GL_LIGHTING 0x0B50 +#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 +#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 +#define GL_LIGHT_MODEL_AMBIENT 0x0B53 +#define GL_SHADE_MODEL 0x0B54 +#define GL_COLOR_MATERIAL_FACE 0x0B55 +#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 +#define GL_COLOR_MATERIAL 0x0B57 +#define GL_FOG 0x0B60 +#define GL_FOG_INDEX 0x0B61 +#define GL_FOG_DENSITY 0x0B62 +#define GL_FOG_START 0x0B63 +#define GL_FOG_END 0x0B64 +#define GL_FOG_MODE 0x0B65 +#define GL_FOG_COLOR 0x0B66 +#define GL_DEPTH_RANGE 0x0B70 +#define GL_DEPTH_TEST 0x0B71 +#define GL_DEPTH_WRITEMASK 0x0B72 +#define GL_DEPTH_CLEAR_VALUE 0x0B73 +#define GL_DEPTH_FUNC 0x0B74 +#define GL_ACCUM_CLEAR_VALUE 0x0B80 +#define GL_STENCIL_TEST 0x0B90 +#define GL_STENCIL_CLEAR_VALUE 0x0B91 +#define GL_STENCIL_FUNC 0x0B92 +#define GL_STENCIL_VALUE_MASK 0x0B93 +#define GL_STENCIL_FAIL 0x0B94 +#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 +#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 +#define GL_STENCIL_REF 0x0B97 +#define GL_STENCIL_WRITEMASK 0x0B98 +#define GL_MATRIX_MODE 0x0BA0 +#define GL_NORMALIZE 0x0BA1 +#define GL_VIEWPORT 0x0BA2 +#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 +#define GL_PROJECTION_STACK_DEPTH 0x0BA4 +#define GL_TEXTURE_STACK_DEPTH 0x0BA5 +#define GL_MODELVIEW_MATRIX 0x0BA6 +#define GL_PROJECTION_MATRIX 0x0BA7 +#define GL_TEXTURE_MATRIX 0x0BA8 +#define GL_ATTRIB_STACK_DEPTH 0x0BB0 +#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 +#define GL_ALPHA_TEST 0x0BC0 +#define GL_ALPHA_TEST_FUNC 0x0BC1 +#define GL_ALPHA_TEST_REF 0x0BC2 +#define GL_DITHER 0x0BD0 +#define GL_BLEND_DST 0x0BE0 +#define GL_BLEND_SRC 0x0BE1 +#define GL_BLEND 0x0BE2 +#define GL_LOGIC_OP_MODE 0x0BF0 +#define GL_INDEX_LOGIC_OP 0x0BF1 +#define GL_COLOR_LOGIC_OP 0x0BF2 +#define GL_AUX_BUFFERS 0x0C00 +#define GL_DRAW_BUFFER 0x0C01 +#define GL_READ_BUFFER 0x0C02 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_INDEX_CLEAR_VALUE 0x0C20 +#define GL_INDEX_WRITEMASK 0x0C21 +#define GL_COLOR_CLEAR_VALUE 0x0C22 +#define GL_COLOR_WRITEMASK 0x0C23 +#define GL_INDEX_MODE 0x0C30 +#define GL_RGBA_MODE 0x0C31 +#define GL_DOUBLEBUFFER 0x0C32 +#define GL_STEREO 0x0C33 +#define GL_RENDER_MODE 0x0C40 +#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 +#define GL_POINT_SMOOTH_HINT 0x0C51 +#define GL_LINE_SMOOTH_HINT 0x0C52 +#define GL_POLYGON_SMOOTH_HINT 0x0C53 +#define GL_FOG_HINT 0x0C54 +#define GL_TEXTURE_GEN_S 0x0C60 +#define GL_TEXTURE_GEN_T 0x0C61 +#define GL_TEXTURE_GEN_R 0x0C62 +#define GL_TEXTURE_GEN_Q 0x0C63 +#define GL_PIXEL_MAP_I_TO_I 0x0C70 +#define GL_PIXEL_MAP_S_TO_S 0x0C71 +#define GL_PIXEL_MAP_I_TO_R 0x0C72 +#define GL_PIXEL_MAP_I_TO_G 0x0C73 +#define GL_PIXEL_MAP_I_TO_B 0x0C74 +#define GL_PIXEL_MAP_I_TO_A 0x0C75 +#define GL_PIXEL_MAP_R_TO_R 0x0C76 +#define GL_PIXEL_MAP_G_TO_G 0x0C77 +#define GL_PIXEL_MAP_B_TO_B 0x0C78 +#define GL_PIXEL_MAP_A_TO_A 0x0C79 +#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 +#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 +#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 +#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 +#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 +#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 +#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 +#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 +#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 +#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 +#define GL_UNPACK_SWAP_BYTES 0x0CF0 +#define GL_UNPACK_LSB_FIRST 0x0CF1 +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#define GL_UNPACK_SKIP_ROWS 0x0CF3 +#define GL_UNPACK_SKIP_PIXELS 0x0CF4 +#define GL_UNPACK_ALIGNMENT 0x0CF5 +#define GL_PACK_SWAP_BYTES 0x0D00 +#define GL_PACK_LSB_FIRST 0x0D01 +#define GL_PACK_ROW_LENGTH 0x0D02 +#define GL_PACK_SKIP_ROWS 0x0D03 +#define GL_PACK_SKIP_PIXELS 0x0D04 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_MAP_COLOR 0x0D10 +#define GL_MAP_STENCIL 0x0D11 +#define GL_INDEX_SHIFT 0x0D12 +#define GL_INDEX_OFFSET 0x0D13 +#define GL_RED_SCALE 0x0D14 +#define GL_RED_BIAS 0x0D15 +#define GL_ZOOM_X 0x0D16 +#define GL_ZOOM_Y 0x0D17 +#define GL_GREEN_SCALE 0x0D18 +#define GL_GREEN_BIAS 0x0D19 +#define GL_BLUE_SCALE 0x0D1A +#define GL_BLUE_BIAS 0x0D1B +#define GL_ALPHA_SCALE 0x0D1C +#define GL_ALPHA_BIAS 0x0D1D +#define GL_DEPTH_SCALE 0x0D1E +#define GL_DEPTH_BIAS 0x0D1F +#define GL_MAX_EVAL_ORDER 0x0D30 +#define GL_MAX_LIGHTS 0x0D31 +#define GL_MAX_CLIP_PLANES 0x0D32 +#define GL_MAX_TEXTURE_SIZE 0x0D33 +#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 +#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 +#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 +#define GL_MAX_NAME_STACK_DEPTH 0x0D37 +#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 +#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 +#define GL_MAX_VIEWPORT_DIMS 0x0D3A +#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B +#define GL_SUBPIXEL_BITS 0x0D50 +#define GL_INDEX_BITS 0x0D51 +#define GL_RED_BITS 0x0D52 +#define GL_GREEN_BITS 0x0D53 +#define GL_BLUE_BITS 0x0D54 +#define GL_ALPHA_BITS 0x0D55 +#define GL_DEPTH_BITS 0x0D56 +#define GL_STENCIL_BITS 0x0D57 +#define GL_ACCUM_RED_BITS 0x0D58 +#define GL_ACCUM_GREEN_BITS 0x0D59 +#define GL_ACCUM_BLUE_BITS 0x0D5A +#define GL_ACCUM_ALPHA_BITS 0x0D5B +#define GL_NAME_STACK_DEPTH 0x0D70 +#define GL_AUTO_NORMAL 0x0D80 +#define GL_MAP1_COLOR_4 0x0D90 +#define GL_MAP1_INDEX 0x0D91 +#define GL_MAP1_NORMAL 0x0D92 +#define GL_MAP1_TEXTURE_COORD_1 0x0D93 +#define GL_MAP1_TEXTURE_COORD_2 0x0D94 +#define GL_MAP1_TEXTURE_COORD_3 0x0D95 +#define GL_MAP1_TEXTURE_COORD_4 0x0D96 +#define GL_MAP1_VERTEX_3 0x0D97 +#define GL_MAP1_VERTEX_4 0x0D98 +#define GL_MAP2_COLOR_4 0x0DB0 +#define GL_MAP2_INDEX 0x0DB1 +#define GL_MAP2_NORMAL 0x0DB2 +#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 +#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 +#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 +#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 +#define GL_MAP2_VERTEX_3 0x0DB7 +#define GL_MAP2_VERTEX_4 0x0DB8 +#define GL_MAP1_GRID_DOMAIN 0x0DD0 +#define GL_MAP1_GRID_SEGMENTS 0x0DD1 +#define GL_MAP2_GRID_DOMAIN 0x0DD2 +#define GL_MAP2_GRID_SEGMENTS 0x0DD3 +#define GL_TEXTURE_1D 0x0DE0 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 +#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 +#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 +#define GL_SELECTION_BUFFER_POINTER 0x0DF3 +#define GL_SELECTION_BUFFER_SIZE 0x0DF4 +#define GL_TEXTURE_WIDTH 0x1000 +#define GL_TRANSFORM_BIT 0x00001000 +#define GL_TEXTURE_HEIGHT 0x1001 +#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 +#define GL_TEXTURE_BORDER_COLOR 0x1004 +#define GL_TEXTURE_BORDER 0x1005 +#define GL_DONT_CARE 0x1100 +#define GL_FASTEST 0x1101 +#define GL_NICEST 0x1102 +#define GL_AMBIENT 0x1200 +#define GL_DIFFUSE 0x1201 +#define GL_SPECULAR 0x1202 +#define GL_POSITION 0x1203 +#define GL_SPOT_DIRECTION 0x1204 +#define GL_SPOT_EXPONENT 0x1205 +#define GL_SPOT_CUTOFF 0x1206 +#define GL_CONSTANT_ATTENUATION 0x1207 +#define GL_LINEAR_ATTENUATION 0x1208 +#define GL_QUADRATIC_ATTENUATION 0x1209 +#define GL_COMPILE 0x1300 +#define GL_COMPILE_AND_EXECUTE 0x1301 +#define GL_BYTE 0x1400 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_SHORT 0x1402 +#define GL_UNSIGNED_SHORT 0x1403 +#define GL_INT 0x1404 +#define GL_UNSIGNED_INT 0x1405 +#define GL_FLOAT 0x1406 +#define GL_2_BYTES 0x1407 +#define GL_3_BYTES 0x1408 +#define GL_4_BYTES 0x1409 +#define GL_DOUBLE 0x140A +#define GL_CLEAR 0x1500 +#define GL_AND 0x1501 +#define GL_AND_REVERSE 0x1502 +#define GL_COPY 0x1503 +#define GL_AND_INVERTED 0x1504 +#define GL_NOOP 0x1505 +#define GL_XOR 0x1506 +#define GL_OR 0x1507 +#define GL_NOR 0x1508 +#define GL_EQUIV 0x1509 +#define GL_INVERT 0x150A +#define GL_OR_REVERSE 0x150B +#define GL_COPY_INVERTED 0x150C +#define GL_OR_INVERTED 0x150D +#define GL_NAND 0x150E +#define GL_SET 0x150F +#define GL_EMISSION 0x1600 +#define GL_SHININESS 0x1601 +#define GL_AMBIENT_AND_DIFFUSE 0x1602 +#define GL_COLOR_INDEXES 0x1603 +#define GL_MODELVIEW 0x1700 +#define GL_PROJECTION 0x1701 +#define GL_TEXTURE 0x1702 +#define GL_COLOR 0x1800 +#define GL_DEPTH 0x1801 +#define GL_STENCIL 0x1802 +#define GL_COLOR_INDEX 0x1900 +#define GL_STENCIL_INDEX 0x1901 +#define GL_DEPTH_COMPONENT 0x1902 +#define GL_RED 0x1903 +#define GL_GREEN 0x1904 +#define GL_BLUE 0x1905 +#define GL_ALPHA 0x1906 +#define GL_RGB 0x1907 +#define GL_RGBA 0x1908 +#define GL_LUMINANCE 0x1909 +#define GL_LUMINANCE_ALPHA 0x190A +#define GL_BITMAP 0x1A00 +#define GL_POINT 0x1B00 +#define GL_LINE 0x1B01 +#define GL_FILL 0x1B02 +#define GL_RENDER 0x1C00 +#define GL_FEEDBACK 0x1C01 +#define GL_SELECT 0x1C02 +#define GL_FLAT 0x1D00 +#define GL_SMOOTH 0x1D01 +#define GL_KEEP 0x1E00 +#define GL_REPLACE 0x1E01 +#define GL_INCR 0x1E02 +#define GL_DECR 0x1E03 +#define GL_VENDOR 0x1F00 +#define GL_RENDERER 0x1F01 +#define GL_VERSION 0x1F02 +#define GL_EXTENSIONS 0x1F03 +#define GL_S 0x2000 +#define GL_ENABLE_BIT 0x00002000 +#define GL_T 0x2001 +#define GL_R 0x2002 +#define GL_Q 0x2003 +#define GL_MODULATE 0x2100 +#define GL_DECAL 0x2101 +#define GL_TEXTURE_ENV_MODE 0x2200 +#define GL_TEXTURE_ENV_COLOR 0x2201 +#define GL_TEXTURE_ENV 0x2300 +#define GL_EYE_LINEAR 0x2400 +#define GL_OBJECT_LINEAR 0x2401 +#define GL_SPHERE_MAP 0x2402 +#define GL_TEXTURE_GEN_MODE 0x2500 +#define GL_OBJECT_PLANE 0x2501 +#define GL_EYE_PLANE 0x2502 +#define GL_NEAREST 0x2600 +#define GL_LINEAR 0x2601 +#define GL_NEAREST_MIPMAP_NEAREST 0x2700 +#define GL_LINEAR_MIPMAP_NEAREST 0x2701 +#define GL_NEAREST_MIPMAP_LINEAR 0x2702 +#define GL_LINEAR_MIPMAP_LINEAR 0x2703 +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MIN_FILTER 0x2801 +#define GL_TEXTURE_WRAP_S 0x2802 +#define GL_TEXTURE_WRAP_T 0x2803 +#define GL_CLAMP 0x2900 +#define GL_REPEAT 0x2901 +#define GL_POLYGON_OFFSET_UNITS 0x2A00 +#define GL_POLYGON_OFFSET_POINT 0x2A01 +#define GL_POLYGON_OFFSET_LINE 0x2A02 +#define GL_R3_G3_B2 0x2A10 +#define GL_V2F 0x2A20 +#define GL_V3F 0x2A21 +#define GL_C4UB_V2F 0x2A22 +#define GL_C4UB_V3F 0x2A23 +#define GL_C3F_V3F 0x2A24 +#define GL_N3F_V3F 0x2A25 +#define GL_C4F_N3F_V3F 0x2A26 +#define GL_T2F_V3F 0x2A27 +#define GL_T4F_V4F 0x2A28 +#define GL_T2F_C4UB_V3F 0x2A29 +#define GL_T2F_C3F_V3F 0x2A2A +#define GL_T2F_N3F_V3F 0x2A2B +#define GL_T2F_C4F_N3F_V3F 0x2A2C +#define GL_T4F_C4F_N3F_V4F 0x2A2D +#define GL_CLIP_PLANE0 0x3000 +#define GL_CLIP_PLANE1 0x3001 +#define GL_CLIP_PLANE2 0x3002 +#define GL_CLIP_PLANE3 0x3003 +#define GL_CLIP_PLANE4 0x3004 +#define GL_CLIP_PLANE5 0x3005 +#define GL_LIGHT0 0x4000 +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_LIGHT1 0x4001 +#define GL_LIGHT2 0x4002 +#define GL_LIGHT3 0x4003 +#define GL_LIGHT4 0x4004 +#define GL_LIGHT5 0x4005 +#define GL_LIGHT6 0x4006 +#define GL_LIGHT7 0x4007 +#define GL_HINT_BIT 0x00008000 +#define GL_POLYGON_OFFSET_FILL 0x8037 +#define GL_POLYGON_OFFSET_FACTOR 0x8038 +#define GL_ALPHA4 0x803B +#define GL_ALPHA8 0x803C +#define GL_ALPHA12 0x803D +#define GL_ALPHA16 0x803E +#define GL_LUMINANCE4 0x803F +#define GL_LUMINANCE8 0x8040 +#define GL_LUMINANCE12 0x8041 +#define GL_LUMINANCE16 0x8042 +#define GL_LUMINANCE4_ALPHA4 0x8043 +#define GL_LUMINANCE6_ALPHA2 0x8044 +#define GL_LUMINANCE8_ALPHA8 0x8045 +#define GL_LUMINANCE12_ALPHA4 0x8046 +#define GL_LUMINANCE12_ALPHA12 0x8047 +#define GL_LUMINANCE16_ALPHA16 0x8048 +#define GL_INTENSITY 0x8049 +#define GL_INTENSITY4 0x804A +#define GL_INTENSITY8 0x804B +#define GL_INTENSITY12 0x804C +#define GL_INTENSITY16 0x804D +#define GL_RGB4 0x804F +#define GL_RGB5 0x8050 +#define GL_RGB8 0x8051 +#define GL_RGB10 0x8052 +#define GL_RGB12 0x8053 +#define GL_RGB16 0x8054 +#define GL_RGBA2 0x8055 +#define GL_RGBA4 0x8056 +#define GL_RGB5_A1 0x8057 +#define GL_RGBA8 0x8058 +#define GL_RGB10_A2 0x8059 +#define GL_RGBA12 0x805A +#define GL_RGBA16 0x805B +#define GL_TEXTURE_RED_SIZE 0x805C +#define GL_TEXTURE_GREEN_SIZE 0x805D +#define GL_TEXTURE_BLUE_SIZE 0x805E +#define GL_TEXTURE_ALPHA_SIZE 0x805F +#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 +#define GL_TEXTURE_INTENSITY_SIZE 0x8061 +#define GL_PROXY_TEXTURE_1D 0x8063 +#define GL_PROXY_TEXTURE_2D 0x8064 +#define GL_TEXTURE_PRIORITY 0x8066 +#define GL_TEXTURE_RESIDENT 0x8067 +#define GL_TEXTURE_BINDING_1D 0x8068 +#define GL_TEXTURE_BINDING_2D 0x8069 +#define GL_VERTEX_ARRAY 0x8074 +#define GL_NORMAL_ARRAY 0x8075 +#define GL_COLOR_ARRAY 0x8076 +#define GL_INDEX_ARRAY 0x8077 +#define GL_TEXTURE_COORD_ARRAY 0x8078 +#define GL_EDGE_FLAG_ARRAY 0x8079 +#define GL_VERTEX_ARRAY_SIZE 0x807A +#define GL_VERTEX_ARRAY_TYPE 0x807B +#define GL_VERTEX_ARRAY_STRIDE 0x807C +#define GL_NORMAL_ARRAY_TYPE 0x807E +#define GL_NORMAL_ARRAY_STRIDE 0x807F +#define GL_COLOR_ARRAY_SIZE 0x8081 +#define GL_COLOR_ARRAY_TYPE 0x8082 +#define GL_COLOR_ARRAY_STRIDE 0x8083 +#define GL_INDEX_ARRAY_TYPE 0x8085 +#define GL_INDEX_ARRAY_STRIDE 0x8086 +#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A +#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C +#define GL_VERTEX_ARRAY_POINTER 0x808E +#define GL_NORMAL_ARRAY_POINTER 0x808F +#define GL_COLOR_ARRAY_POINTER 0x8090 +#define GL_INDEX_ARRAY_POINTER 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 +#define GL_COLOR_INDEX1_EXT 0x80E2 +#define GL_COLOR_INDEX2_EXT 0x80E3 +#define GL_COLOR_INDEX4_EXT 0x80E4 +#define GL_COLOR_INDEX8_EXT 0x80E5 +#define GL_COLOR_INDEX12_EXT 0x80E6 +#define GL_COLOR_INDEX16_EXT 0x80E7 +#define GL_EVAL_BIT 0x00010000 +#define GL_LIST_BIT 0x00020000 +#define GL_TEXTURE_BIT 0x00040000 +#define GL_SCISSOR_BIT 0x00080000 +#define GL_ALL_ATTRIB_BITS 0x000fffff +#define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff + +GLAPI void GLAPIENTRY glAccum (GLenum op, GLfloat value); +GLAPI void GLAPIENTRY glAlphaFunc (GLenum func, GLclampf ref); +GLAPI GLboolean GLAPIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences); +GLAPI void GLAPIENTRY glArrayElement (GLint i); +GLAPI void GLAPIENTRY glBegin (GLenum mode); +GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture); +GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); +GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); +GLAPI void GLAPIENTRY glCallList (GLuint list); +GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists); +GLAPI void GLAPIENTRY glClear (GLbitfield mask); +GLAPI void GLAPIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +GLAPI void GLAPIENTRY glClearDepth (GLclampd depth); +GLAPI void GLAPIENTRY glClearIndex (GLfloat c); +GLAPI void GLAPIENTRY glClearStencil (GLint s); +GLAPI void GLAPIENTRY glClipPlane (GLenum plane, const GLdouble *equation); +GLAPI void GLAPIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue); +GLAPI void GLAPIENTRY glColor3bv (const GLbyte *v); +GLAPI void GLAPIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue); +GLAPI void GLAPIENTRY glColor3dv (const GLdouble *v); +GLAPI void GLAPIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue); +GLAPI void GLAPIENTRY glColor3fv (const GLfloat *v); +GLAPI void GLAPIENTRY glColor3i (GLint red, GLint green, GLint blue); +GLAPI void GLAPIENTRY glColor3iv (const GLint *v); +GLAPI void GLAPIENTRY glColor3s (GLshort red, GLshort green, GLshort blue); +GLAPI void GLAPIENTRY glColor3sv (const GLshort *v); +GLAPI void GLAPIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue); +GLAPI void GLAPIENTRY glColor3ubv (const GLubyte *v); +GLAPI void GLAPIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue); +GLAPI void GLAPIENTRY glColor3uiv (const GLuint *v); +GLAPI void GLAPIENTRY glColor3us (GLushort red, GLushort green, GLushort blue); +GLAPI void GLAPIENTRY glColor3usv (const GLushort *v); +GLAPI void GLAPIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); +GLAPI void GLAPIENTRY glColor4bv (const GLbyte *v); +GLAPI void GLAPIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); +GLAPI void GLAPIENTRY glColor4dv (const GLdouble *v); +GLAPI void GLAPIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +GLAPI void GLAPIENTRY glColor4fv (const GLfloat *v); +GLAPI void GLAPIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha); +GLAPI void GLAPIENTRY glColor4iv (const GLint *v); +GLAPI void GLAPIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha); +GLAPI void GLAPIENTRY glColor4sv (const GLshort *v); +GLAPI void GLAPIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); +GLAPI void GLAPIENTRY glColor4ubv (const GLubyte *v); +GLAPI void GLAPIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha); +GLAPI void GLAPIENTRY glColor4uiv (const GLuint *v); +GLAPI void GLAPIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha); +GLAPI void GLAPIENTRY glColor4usv (const GLushort *v); +GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +GLAPI void GLAPIENTRY glColorMaterial (GLenum face, GLenum mode); +GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +GLAPI void GLAPIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); +GLAPI void GLAPIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); +GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +GLAPI void GLAPIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void GLAPIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void GLAPIENTRY glCullFace (GLenum mode); +GLAPI void GLAPIENTRY glDeleteLists (GLuint list, GLsizei range); +GLAPI void GLAPIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); +GLAPI void GLAPIENTRY glDepthFunc (GLenum func); +GLAPI void GLAPIENTRY glDepthMask (GLboolean flag); +GLAPI void GLAPIENTRY glDepthRange (GLclampd zNear, GLclampd zFar); +GLAPI void GLAPIENTRY glDisable (GLenum cap); +GLAPI void GLAPIENTRY glDisableClientState (GLenum array); +GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); +GLAPI void GLAPIENTRY glDrawBuffer (GLenum mode); +GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); +GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +GLAPI void GLAPIENTRY glEdgeFlag (GLboolean flag); +GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer); +GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag); +GLAPI void GLAPIENTRY glEnable (GLenum cap); +GLAPI void GLAPIENTRY glEnableClientState (GLenum array); +GLAPI void GLAPIENTRY glEnd (void); +GLAPI void GLAPIENTRY glEndList (void); +GLAPI void GLAPIENTRY glEvalCoord1d (GLdouble u); +GLAPI void GLAPIENTRY glEvalCoord1dv (const GLdouble *u); +GLAPI void GLAPIENTRY glEvalCoord1f (GLfloat u); +GLAPI void GLAPIENTRY glEvalCoord1fv (const GLfloat *u); +GLAPI void GLAPIENTRY glEvalCoord2d (GLdouble u, GLdouble v); +GLAPI void GLAPIENTRY glEvalCoord2dv (const GLdouble *u); +GLAPI void GLAPIENTRY glEvalCoord2f (GLfloat u, GLfloat v); +GLAPI void GLAPIENTRY glEvalCoord2fv (const GLfloat *u); +GLAPI void GLAPIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2); +GLAPI void GLAPIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); +GLAPI void GLAPIENTRY glEvalPoint1 (GLint i); +GLAPI void GLAPIENTRY glEvalPoint2 (GLint i, GLint j); +GLAPI void GLAPIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer); +GLAPI void GLAPIENTRY glFinish (void); +GLAPI void GLAPIENTRY glFlush (void); +GLAPI void GLAPIENTRY glFogf (GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glFogfv (GLenum pname, const GLfloat *params); +GLAPI void GLAPIENTRY glFogi (GLenum pname, GLint param); +GLAPI void GLAPIENTRY glFogiv (GLenum pname, const GLint *params); +GLAPI void GLAPIENTRY glFrontFace (GLenum mode); +GLAPI void GLAPIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +GLAPI GLuint GLAPIENTRY glGenLists (GLsizei range); +GLAPI void GLAPIENTRY glGenTextures (GLsizei n, GLuint *textures); +GLAPI void GLAPIENTRY glGetBooleanv (GLenum pname, GLboolean *params); +GLAPI void GLAPIENTRY glGetClipPlane (GLenum plane, GLdouble *equation); +GLAPI void GLAPIENTRY glGetDoublev (GLenum pname, GLdouble *params); +GLAPI GLenum GLAPIENTRY glGetError (void); +GLAPI void GLAPIENTRY glGetFloatv (GLenum pname, GLfloat *params); +GLAPI void GLAPIENTRY glGetIntegerv (GLenum pname, GLint *params); +GLAPI void GLAPIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); +GLAPI void GLAPIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params); +GLAPI void GLAPIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v); +GLAPI void GLAPIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v); +GLAPI void GLAPIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v); +GLAPI void GLAPIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); +GLAPI void GLAPIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params); +GLAPI void GLAPIENTRY glGetPixelMapfv (GLenum map, GLfloat *values); +GLAPI void GLAPIENTRY glGetPixelMapuiv (GLenum map, GLuint *values); +GLAPI void GLAPIENTRY glGetPixelMapusv (GLenum map, GLushort *values); +GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, GLvoid* *params); +GLAPI void GLAPIENTRY glGetPolygonStipple (GLubyte *mask); +GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name); +GLAPI void GLAPIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params); +GLAPI void GLAPIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params); +GLAPI void GLAPIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params); +GLAPI void GLAPIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params); +GLAPI void GLAPIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params); +GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); +GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); +GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); +GLAPI void GLAPIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); +GLAPI void GLAPIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode); +GLAPI void GLAPIENTRY glIndexMask (GLuint mask); +GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer); +GLAPI void GLAPIENTRY glIndexd (GLdouble c); +GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c); +GLAPI void GLAPIENTRY glIndexf (GLfloat c); +GLAPI void GLAPIENTRY glIndexfv (const GLfloat *c); +GLAPI void GLAPIENTRY glIndexi (GLint c); +GLAPI void GLAPIENTRY glIndexiv (const GLint *c); +GLAPI void GLAPIENTRY glIndexs (GLshort c); +GLAPI void GLAPIENTRY glIndexsv (const GLshort *c); +GLAPI void GLAPIENTRY glIndexub (GLubyte c); +GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c); +GLAPI void GLAPIENTRY glInitNames (void); +GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer); +GLAPI GLboolean GLAPIENTRY glIsEnabled (GLenum cap); +GLAPI GLboolean GLAPIENTRY glIsList (GLuint list); +GLAPI GLboolean GLAPIENTRY glIsTexture (GLuint texture); +GLAPI void GLAPIENTRY glLightModelf (GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glLightModelfv (GLenum pname, const GLfloat *params); +GLAPI void GLAPIENTRY glLightModeli (GLenum pname, GLint param); +GLAPI void GLAPIENTRY glLightModeliv (GLenum pname, const GLint *params); +GLAPI void GLAPIENTRY glLightf (GLenum light, GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); +GLAPI void GLAPIENTRY glLighti (GLenum light, GLenum pname, GLint param); +GLAPI void GLAPIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params); +GLAPI void GLAPIENTRY glLineStipple (GLint factor, GLushort pattern); +GLAPI void GLAPIENTRY glLineWidth (GLfloat width); +GLAPI void GLAPIENTRY glListBase (GLuint base); +GLAPI void GLAPIENTRY glLoadIdentity (void); +GLAPI void GLAPIENTRY glLoadMatrixd (const GLdouble *m); +GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m); +GLAPI void GLAPIENTRY glLoadName (GLuint name); +GLAPI void GLAPIENTRY glLogicOp (GLenum opcode); +GLAPI void GLAPIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); +GLAPI void GLAPIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); +GLAPI void GLAPIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); +GLAPI void GLAPIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); +GLAPI void GLAPIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2); +GLAPI void GLAPIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2); +GLAPI void GLAPIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); +GLAPI void GLAPIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); +GLAPI void GLAPIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); +GLAPI void GLAPIENTRY glMateriali (GLenum face, GLenum pname, GLint param); +GLAPI void GLAPIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params); +GLAPI void GLAPIENTRY glMatrixMode (GLenum mode); +GLAPI void GLAPIENTRY glMultMatrixd (const GLdouble *m); +GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m); +GLAPI void GLAPIENTRY glNewList (GLuint list, GLenum mode); +GLAPI void GLAPIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz); +GLAPI void GLAPIENTRY glNormal3bv (const GLbyte *v); +GLAPI void GLAPIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz); +GLAPI void GLAPIENTRY glNormal3dv (const GLdouble *v); +GLAPI void GLAPIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); +GLAPI void GLAPIENTRY glNormal3fv (const GLfloat *v); +GLAPI void GLAPIENTRY glNormal3i (GLint nx, GLint ny, GLint nz); +GLAPI void GLAPIENTRY glNormal3iv (const GLint *v); +GLAPI void GLAPIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz); +GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v); +GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); +GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +GLAPI void GLAPIENTRY glPassThrough (GLfloat token); +GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values); +GLAPI void GLAPIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values); +GLAPI void GLAPIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values); +GLAPI void GLAPIENTRY glPixelStoref (GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glPixelStorei (GLenum pname, GLint param); +GLAPI void GLAPIENTRY glPixelTransferf (GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glPixelTransferi (GLenum pname, GLint param); +GLAPI void GLAPIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor); +GLAPI void GLAPIENTRY glPointSize (GLfloat size); +GLAPI void GLAPIENTRY glPolygonMode (GLenum face, GLenum mode); +GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units); +GLAPI void GLAPIENTRY glPolygonStipple (const GLubyte *mask); +GLAPI void GLAPIENTRY glPopAttrib (void); +GLAPI void GLAPIENTRY glPopClientAttrib (void); +GLAPI void GLAPIENTRY glPopMatrix (void); +GLAPI void GLAPIENTRY glPopName (void); +GLAPI void GLAPIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities); +GLAPI void GLAPIENTRY glPushAttrib (GLbitfield mask); +GLAPI void GLAPIENTRY glPushClientAttrib (GLbitfield mask); +GLAPI void GLAPIENTRY glPushMatrix (void); +GLAPI void GLAPIENTRY glPushName (GLuint name); +GLAPI void GLAPIENTRY glRasterPos2d (GLdouble x, GLdouble y); +GLAPI void GLAPIENTRY glRasterPos2dv (const GLdouble *v); +GLAPI void GLAPIENTRY glRasterPos2f (GLfloat x, GLfloat y); +GLAPI void GLAPIENTRY glRasterPos2fv (const GLfloat *v); +GLAPI void GLAPIENTRY glRasterPos2i (GLint x, GLint y); +GLAPI void GLAPIENTRY glRasterPos2iv (const GLint *v); +GLAPI void GLAPIENTRY glRasterPos2s (GLshort x, GLshort y); +GLAPI void GLAPIENTRY glRasterPos2sv (const GLshort *v); +GLAPI void GLAPIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z); +GLAPI void GLAPIENTRY glRasterPos3dv (const GLdouble *v); +GLAPI void GLAPIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z); +GLAPI void GLAPIENTRY glRasterPos3fv (const GLfloat *v); +GLAPI void GLAPIENTRY glRasterPos3i (GLint x, GLint y, GLint z); +GLAPI void GLAPIENTRY glRasterPos3iv (const GLint *v); +GLAPI void GLAPIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z); +GLAPI void GLAPIENTRY glRasterPos3sv (const GLshort *v); +GLAPI void GLAPIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void GLAPIENTRY glRasterPos4dv (const GLdouble *v); +GLAPI void GLAPIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +GLAPI void GLAPIENTRY glRasterPos4fv (const GLfloat *v); +GLAPI void GLAPIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w); +GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v); +GLAPI void GLAPIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w); +GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v); +GLAPI void GLAPIENTRY glReadBuffer (GLenum mode); +GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); +GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); +GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2); +GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); +GLAPI void GLAPIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2); +GLAPI void GLAPIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2); +GLAPI void GLAPIENTRY glRectiv (const GLint *v1, const GLint *v2); +GLAPI void GLAPIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2); +GLAPI void GLAPIENTRY glRectsv (const GLshort *v1, const GLshort *v2); +GLAPI GLint GLAPIENTRY glRenderMode (GLenum mode); +GLAPI void GLAPIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +GLAPI void GLAPIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +GLAPI void GLAPIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z); +GLAPI void GLAPIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z); +GLAPI void GLAPIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void GLAPIENTRY glSelectBuffer (GLsizei size, GLuint *buffer); +GLAPI void GLAPIENTRY glShadeModel (GLenum mode); +GLAPI void GLAPIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); +GLAPI void GLAPIENTRY glStencilMask (GLuint mask); +GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); +GLAPI void GLAPIENTRY glTexCoord1d (GLdouble s); +GLAPI void GLAPIENTRY glTexCoord1dv (const GLdouble *v); +GLAPI void GLAPIENTRY glTexCoord1f (GLfloat s); +GLAPI void GLAPIENTRY glTexCoord1fv (const GLfloat *v); +GLAPI void GLAPIENTRY glTexCoord1i (GLint s); +GLAPI void GLAPIENTRY glTexCoord1iv (const GLint *v); +GLAPI void GLAPIENTRY glTexCoord1s (GLshort s); +GLAPI void GLAPIENTRY glTexCoord1sv (const GLshort *v); +GLAPI void GLAPIENTRY glTexCoord2d (GLdouble s, GLdouble t); +GLAPI void GLAPIENTRY glTexCoord2dv (const GLdouble *v); +GLAPI void GLAPIENTRY glTexCoord2f (GLfloat s, GLfloat t); +GLAPI void GLAPIENTRY glTexCoord2fv (const GLfloat *v); +GLAPI void GLAPIENTRY glTexCoord2i (GLint s, GLint t); +GLAPI void GLAPIENTRY glTexCoord2iv (const GLint *v); +GLAPI void GLAPIENTRY glTexCoord2s (GLshort s, GLshort t); +GLAPI void GLAPIENTRY glTexCoord2sv (const GLshort *v); +GLAPI void GLAPIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r); +GLAPI void GLAPIENTRY glTexCoord3dv (const GLdouble *v); +GLAPI void GLAPIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r); +GLAPI void GLAPIENTRY glTexCoord3fv (const GLfloat *v); +GLAPI void GLAPIENTRY glTexCoord3i (GLint s, GLint t, GLint r); +GLAPI void GLAPIENTRY glTexCoord3iv (const GLint *v); +GLAPI void GLAPIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r); +GLAPI void GLAPIENTRY glTexCoord3sv (const GLshort *v); +GLAPI void GLAPIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q); +GLAPI void GLAPIENTRY glTexCoord4dv (const GLdouble *v); +GLAPI void GLAPIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q); +GLAPI void GLAPIENTRY glTexCoord4fv (const GLfloat *v); +GLAPI void GLAPIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q); +GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v); +GLAPI void GLAPIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q); +GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v); +GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); +GLAPI void GLAPIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); +GLAPI void GLAPIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params); +GLAPI void GLAPIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param); +GLAPI void GLAPIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params); +GLAPI void GLAPIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params); +GLAPI void GLAPIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param); +GLAPI void GLAPIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params); +GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); +GLAPI void GLAPIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); +GLAPI void GLAPIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); +GLAPI void GLAPIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); +GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); +GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +GLAPI void GLAPIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z); +GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z); +GLAPI void GLAPIENTRY glVertex2d (GLdouble x, GLdouble y); +GLAPI void GLAPIENTRY glVertex2dv (const GLdouble *v); +GLAPI void GLAPIENTRY glVertex2f (GLfloat x, GLfloat y); +GLAPI void GLAPIENTRY glVertex2fv (const GLfloat *v); +GLAPI void GLAPIENTRY glVertex2i (GLint x, GLint y); +GLAPI void GLAPIENTRY glVertex2iv (const GLint *v); +GLAPI void GLAPIENTRY glVertex2s (GLshort x, GLshort y); +GLAPI void GLAPIENTRY glVertex2sv (const GLshort *v); +GLAPI void GLAPIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z); +GLAPI void GLAPIENTRY glVertex3dv (const GLdouble *v); +GLAPI void GLAPIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z); +GLAPI void GLAPIENTRY glVertex3fv (const GLfloat *v); +GLAPI void GLAPIENTRY glVertex3i (GLint x, GLint y, GLint z); +GLAPI void GLAPIENTRY glVertex3iv (const GLint *v); +GLAPI void GLAPIENTRY glVertex3s (GLshort x, GLshort y, GLshort z); +GLAPI void GLAPIENTRY glVertex3sv (const GLshort *v); +GLAPI void GLAPIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void GLAPIENTRY glVertex4dv (const GLdouble *v); +GLAPI void GLAPIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +GLAPI void GLAPIENTRY glVertex4fv (const GLfloat *v); +GLAPI void GLAPIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w); +GLAPI void GLAPIENTRY glVertex4iv (const GLint *v); +GLAPI void GLAPIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w); +GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v); +GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); + +#define GLEW_VERSION_1_1 GLEW_GET_VAR(__GLEW_VERSION_1_1) + +#endif /* GL_VERSION_1_1 */ + +/* ---------------------------------- GLU ---------------------------------- */ + +/* this is where we can safely include GLU */ +#if defined(__APPLE__) && defined(__MACH__) +#include +#else +#include +#endif + +/* ----------------------------- GL_VERSION_1_2 ---------------------------- */ + +#ifndef GL_VERSION_1_2 +#define GL_VERSION_1_2 1 + +#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 +#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 +#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_UNSIGNED_BYTE_3_3_2 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2 0x8036 +#define GL_RESCALE_NORMAL 0x803A +#define GL_TEXTURE_BINDING_3D 0x806A +#define GL_PACK_SKIP_IMAGES 0x806B +#define GL_PACK_IMAGE_HEIGHT 0x806C +#define GL_UNPACK_SKIP_IMAGES 0x806D +#define GL_UNPACK_IMAGE_HEIGHT 0x806E +#define GL_TEXTURE_3D 0x806F +#define GL_PROXY_TEXTURE_3D 0x8070 +#define GL_TEXTURE_DEPTH 0x8071 +#define GL_TEXTURE_WRAP_R 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE 0x8073 +#define GL_BGR 0x80E0 +#define GL_BGRA 0x80E1 +#define GL_MAX_ELEMENTS_VERTICES 0x80E8 +#define GL_MAX_ELEMENTS_INDICES 0x80E9 +#define GL_CLAMP_TO_EDGE 0x812F +#define GL_TEXTURE_MIN_LOD 0x813A +#define GL_TEXTURE_MAX_LOD 0x813B +#define GL_TEXTURE_BASE_LEVEL 0x813C +#define GL_TEXTURE_MAX_LEVEL 0x813D +#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 +#define GL_SINGLE_COLOR 0x81F9 +#define GL_SEPARATE_SPECULAR_COLOR 0x81FA +#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 +#define GL_UNSIGNED_SHORT_5_6_5 0x8363 +#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 +#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 +#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 +#define GL_ALIASED_POINT_SIZE_RANGE 0x846D +#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E + +typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); +typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); + +#define glCopyTexSubImage3D GLEW_GET_FUN(__glewCopyTexSubImage3D) +#define glDrawRangeElements GLEW_GET_FUN(__glewDrawRangeElements) +#define glTexImage3D GLEW_GET_FUN(__glewTexImage3D) +#define glTexSubImage3D GLEW_GET_FUN(__glewTexSubImage3D) + +#define GLEW_VERSION_1_2 GLEW_GET_VAR(__GLEW_VERSION_1_2) + +#endif /* GL_VERSION_1_2 */ + +/* ---------------------------- GL_VERSION_1_2_1 --------------------------- */ + +#ifndef GL_VERSION_1_2_1 +#define GL_VERSION_1_2_1 1 + +#define GLEW_VERSION_1_2_1 GLEW_GET_VAR(__GLEW_VERSION_1_2_1) + +#endif /* GL_VERSION_1_2_1 */ + +/* ----------------------------- GL_VERSION_1_3 ---------------------------- */ + +#ifndef GL_VERSION_1_3 +#define GL_VERSION_1_3 1 + +#define GL_MULTISAMPLE 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE 0x809F +#define GL_SAMPLE_COVERAGE 0x80A0 +#define GL_SAMPLE_BUFFERS 0x80A8 +#define GL_SAMPLES 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT 0x80AB +#define GL_CLAMP_TO_BORDER 0x812D +#define GL_TEXTURE0 0x84C0 +#define GL_TEXTURE1 0x84C1 +#define GL_TEXTURE2 0x84C2 +#define GL_TEXTURE3 0x84C3 +#define GL_TEXTURE4 0x84C4 +#define GL_TEXTURE5 0x84C5 +#define GL_TEXTURE6 0x84C6 +#define GL_TEXTURE7 0x84C7 +#define GL_TEXTURE8 0x84C8 +#define GL_TEXTURE9 0x84C9 +#define GL_TEXTURE10 0x84CA +#define GL_TEXTURE11 0x84CB +#define GL_TEXTURE12 0x84CC +#define GL_TEXTURE13 0x84CD +#define GL_TEXTURE14 0x84CE +#define GL_TEXTURE15 0x84CF +#define GL_TEXTURE16 0x84D0 +#define GL_TEXTURE17 0x84D1 +#define GL_TEXTURE18 0x84D2 +#define GL_TEXTURE19 0x84D3 +#define GL_TEXTURE20 0x84D4 +#define GL_TEXTURE21 0x84D5 +#define GL_TEXTURE22 0x84D6 +#define GL_TEXTURE23 0x84D7 +#define GL_TEXTURE24 0x84D8 +#define GL_TEXTURE25 0x84D9 +#define GL_TEXTURE26 0x84DA +#define GL_TEXTURE27 0x84DB +#define GL_TEXTURE28 0x84DC +#define GL_TEXTURE29 0x84DD +#define GL_TEXTURE30 0x84DE +#define GL_TEXTURE31 0x84DF +#define GL_ACTIVE_TEXTURE 0x84E0 +#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 +#define GL_MAX_TEXTURE_UNITS 0x84E2 +#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 +#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 +#define GL_SUBTRACT 0x84E7 +#define GL_COMPRESSED_ALPHA 0x84E9 +#define GL_COMPRESSED_LUMINANCE 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB +#define GL_COMPRESSED_INTENSITY 0x84EC +#define GL_COMPRESSED_RGB 0x84ED +#define GL_COMPRESSED_RGBA 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT 0x84EF +#define GL_NORMAL_MAP 0x8511 +#define GL_REFLECTION_MAP 0x8512 +#define GL_TEXTURE_CUBE_MAP 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C +#define GL_COMBINE 0x8570 +#define GL_COMBINE_RGB 0x8571 +#define GL_COMBINE_ALPHA 0x8572 +#define GL_RGB_SCALE 0x8573 +#define GL_ADD_SIGNED 0x8574 +#define GL_INTERPOLATE 0x8575 +#define GL_CONSTANT 0x8576 +#define GL_PRIMARY_COLOR 0x8577 +#define GL_PREVIOUS 0x8578 +#define GL_SOURCE0_RGB 0x8580 +#define GL_SOURCE1_RGB 0x8581 +#define GL_SOURCE2_RGB 0x8582 +#define GL_SOURCE0_ALPHA 0x8588 +#define GL_SOURCE1_ALPHA 0x8589 +#define GL_SOURCE2_ALPHA 0x858A +#define GL_OPERAND0_RGB 0x8590 +#define GL_OPERAND1_RGB 0x8591 +#define GL_OPERAND2_RGB 0x8592 +#define GL_OPERAND0_ALPHA 0x8598 +#define GL_OPERAND1_ALPHA 0x8599 +#define GL_OPERAND2_ALPHA 0x859A +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 +#define GL_TEXTURE_COMPRESSED 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 +#define GL_DOT3_RGB 0x86AE +#define GL_DOT3_RGBA 0x86AF +#define GL_MULTISAMPLE_BIT 0x20000000 + +typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREPROC) (GLenum texture); +typedef void (GLAPIENTRY * PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLvoid *img); +typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble m[16]); +typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat m[16]); +typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble m[16]); +typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat m[16]); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); + +#define glActiveTexture GLEW_GET_FUN(__glewActiveTexture) +#define glClientActiveTexture GLEW_GET_FUN(__glewClientActiveTexture) +#define glCompressedTexImage1D GLEW_GET_FUN(__glewCompressedTexImage1D) +#define glCompressedTexImage2D GLEW_GET_FUN(__glewCompressedTexImage2D) +#define glCompressedTexImage3D GLEW_GET_FUN(__glewCompressedTexImage3D) +#define glCompressedTexSubImage1D GLEW_GET_FUN(__glewCompressedTexSubImage1D) +#define glCompressedTexSubImage2D GLEW_GET_FUN(__glewCompressedTexSubImage2D) +#define glCompressedTexSubImage3D GLEW_GET_FUN(__glewCompressedTexSubImage3D) +#define glGetCompressedTexImage GLEW_GET_FUN(__glewGetCompressedTexImage) +#define glLoadTransposeMatrixd GLEW_GET_FUN(__glewLoadTransposeMatrixd) +#define glLoadTransposeMatrixf GLEW_GET_FUN(__glewLoadTransposeMatrixf) +#define glMultTransposeMatrixd GLEW_GET_FUN(__glewMultTransposeMatrixd) +#define glMultTransposeMatrixf GLEW_GET_FUN(__glewMultTransposeMatrixf) +#define glMultiTexCoord1d GLEW_GET_FUN(__glewMultiTexCoord1d) +#define glMultiTexCoord1dv GLEW_GET_FUN(__glewMultiTexCoord1dv) +#define glMultiTexCoord1f GLEW_GET_FUN(__glewMultiTexCoord1f) +#define glMultiTexCoord1fv GLEW_GET_FUN(__glewMultiTexCoord1fv) +#define glMultiTexCoord1i GLEW_GET_FUN(__glewMultiTexCoord1i) +#define glMultiTexCoord1iv GLEW_GET_FUN(__glewMultiTexCoord1iv) +#define glMultiTexCoord1s GLEW_GET_FUN(__glewMultiTexCoord1s) +#define glMultiTexCoord1sv GLEW_GET_FUN(__glewMultiTexCoord1sv) +#define glMultiTexCoord2d GLEW_GET_FUN(__glewMultiTexCoord2d) +#define glMultiTexCoord2dv GLEW_GET_FUN(__glewMultiTexCoord2dv) +#define glMultiTexCoord2f GLEW_GET_FUN(__glewMultiTexCoord2f) +#define glMultiTexCoord2fv GLEW_GET_FUN(__glewMultiTexCoord2fv) +#define glMultiTexCoord2i GLEW_GET_FUN(__glewMultiTexCoord2i) +#define glMultiTexCoord2iv GLEW_GET_FUN(__glewMultiTexCoord2iv) +#define glMultiTexCoord2s GLEW_GET_FUN(__glewMultiTexCoord2s) +#define glMultiTexCoord2sv GLEW_GET_FUN(__glewMultiTexCoord2sv) +#define glMultiTexCoord3d GLEW_GET_FUN(__glewMultiTexCoord3d) +#define glMultiTexCoord3dv GLEW_GET_FUN(__glewMultiTexCoord3dv) +#define glMultiTexCoord3f GLEW_GET_FUN(__glewMultiTexCoord3f) +#define glMultiTexCoord3fv GLEW_GET_FUN(__glewMultiTexCoord3fv) +#define glMultiTexCoord3i GLEW_GET_FUN(__glewMultiTexCoord3i) +#define glMultiTexCoord3iv GLEW_GET_FUN(__glewMultiTexCoord3iv) +#define glMultiTexCoord3s GLEW_GET_FUN(__glewMultiTexCoord3s) +#define glMultiTexCoord3sv GLEW_GET_FUN(__glewMultiTexCoord3sv) +#define glMultiTexCoord4d GLEW_GET_FUN(__glewMultiTexCoord4d) +#define glMultiTexCoord4dv GLEW_GET_FUN(__glewMultiTexCoord4dv) +#define glMultiTexCoord4f GLEW_GET_FUN(__glewMultiTexCoord4f) +#define glMultiTexCoord4fv GLEW_GET_FUN(__glewMultiTexCoord4fv) +#define glMultiTexCoord4i GLEW_GET_FUN(__glewMultiTexCoord4i) +#define glMultiTexCoord4iv GLEW_GET_FUN(__glewMultiTexCoord4iv) +#define glMultiTexCoord4s GLEW_GET_FUN(__glewMultiTexCoord4s) +#define glMultiTexCoord4sv GLEW_GET_FUN(__glewMultiTexCoord4sv) +#define glSampleCoverage GLEW_GET_FUN(__glewSampleCoverage) + +#define GLEW_VERSION_1_3 GLEW_GET_VAR(__GLEW_VERSION_1_3) + +#endif /* GL_VERSION_1_3 */ + +/* ----------------------------- GL_VERSION_1_4 ---------------------------- */ + +#ifndef GL_VERSION_1_4 +#define GL_VERSION_1_4 1 + +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_POINT_SIZE_MIN 0x8126 +#define GL_POINT_SIZE_MAX 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 +#define GL_POINT_DISTANCE_ATTENUATION 0x8129 +#define GL_GENERATE_MIPMAP 0x8191 +#define GL_GENERATE_MIPMAP_HINT 0x8192 +#define GL_DEPTH_COMPONENT16 0x81A5 +#define GL_DEPTH_COMPONENT24 0x81A6 +#define GL_DEPTH_COMPONENT32 0x81A7 +#define GL_MIRRORED_REPEAT 0x8370 +#define GL_FOG_COORDINATE_SOURCE 0x8450 +#define GL_FOG_COORDINATE 0x8451 +#define GL_FRAGMENT_DEPTH 0x8452 +#define GL_CURRENT_FOG_COORDINATE 0x8453 +#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 +#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 +#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 +#define GL_FOG_COORDINATE_ARRAY 0x8457 +#define GL_COLOR_SUM 0x8458 +#define GL_CURRENT_SECONDARY_COLOR 0x8459 +#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A +#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B +#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C +#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D +#define GL_SECONDARY_COLOR_ARRAY 0x845E +#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD +#define GL_TEXTURE_FILTER_CONTROL 0x8500 +#define GL_TEXTURE_LOD_BIAS 0x8501 +#define GL_INCR_WRAP 0x8507 +#define GL_DECR_WRAP 0x8508 +#define GL_TEXTURE_DEPTH_SIZE 0x884A +#define GL_DEPTH_TEXTURE_MODE 0x884B +#define GL_TEXTURE_COMPARE_MODE 0x884C +#define GL_TEXTURE_COMPARE_FUNC 0x884D +#define GL_COMPARE_R_TO_TEXTURE 0x884E + +typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLFOGCOORDDPROC) (GLdouble coord); +typedef void (GLAPIENTRY * PFNGLFOGCOORDDVPROC) (const GLdouble *coord); +typedef void (GLAPIENTRY * PFNGLFOGCOORDFPROC) (GLfloat coord); +typedef void (GLAPIENTRY * PFNGLFOGCOORDFVPROC) (const GLfloat *coord); +typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); +typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount); +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVPROC) (const GLdouble *p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVPROC) (const GLfloat *p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVPROC) (const GLint *p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVPROC) (const GLshort *p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVPROC) (const GLdouble *p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVPROC) (const GLfloat *p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVPROC) (const GLint *p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVPROC) (const GLshort *p); + +#define glBlendColor GLEW_GET_FUN(__glewBlendColor) +#define glBlendEquation GLEW_GET_FUN(__glewBlendEquation) +#define glBlendFuncSeparate GLEW_GET_FUN(__glewBlendFuncSeparate) +#define glFogCoordPointer GLEW_GET_FUN(__glewFogCoordPointer) +#define glFogCoordd GLEW_GET_FUN(__glewFogCoordd) +#define glFogCoorddv GLEW_GET_FUN(__glewFogCoorddv) +#define glFogCoordf GLEW_GET_FUN(__glewFogCoordf) +#define glFogCoordfv GLEW_GET_FUN(__glewFogCoordfv) +#define glMultiDrawArrays GLEW_GET_FUN(__glewMultiDrawArrays) +#define glMultiDrawElements GLEW_GET_FUN(__glewMultiDrawElements) +#define glPointParameterf GLEW_GET_FUN(__glewPointParameterf) +#define glPointParameterfv GLEW_GET_FUN(__glewPointParameterfv) +#define glPointParameteri GLEW_GET_FUN(__glewPointParameteri) +#define glPointParameteriv GLEW_GET_FUN(__glewPointParameteriv) +#define glSecondaryColor3b GLEW_GET_FUN(__glewSecondaryColor3b) +#define glSecondaryColor3bv GLEW_GET_FUN(__glewSecondaryColor3bv) +#define glSecondaryColor3d GLEW_GET_FUN(__glewSecondaryColor3d) +#define glSecondaryColor3dv GLEW_GET_FUN(__glewSecondaryColor3dv) +#define glSecondaryColor3f GLEW_GET_FUN(__glewSecondaryColor3f) +#define glSecondaryColor3fv GLEW_GET_FUN(__glewSecondaryColor3fv) +#define glSecondaryColor3i GLEW_GET_FUN(__glewSecondaryColor3i) +#define glSecondaryColor3iv GLEW_GET_FUN(__glewSecondaryColor3iv) +#define glSecondaryColor3s GLEW_GET_FUN(__glewSecondaryColor3s) +#define glSecondaryColor3sv GLEW_GET_FUN(__glewSecondaryColor3sv) +#define glSecondaryColor3ub GLEW_GET_FUN(__glewSecondaryColor3ub) +#define glSecondaryColor3ubv GLEW_GET_FUN(__glewSecondaryColor3ubv) +#define glSecondaryColor3ui GLEW_GET_FUN(__glewSecondaryColor3ui) +#define glSecondaryColor3uiv GLEW_GET_FUN(__glewSecondaryColor3uiv) +#define glSecondaryColor3us GLEW_GET_FUN(__glewSecondaryColor3us) +#define glSecondaryColor3usv GLEW_GET_FUN(__glewSecondaryColor3usv) +#define glSecondaryColorPointer GLEW_GET_FUN(__glewSecondaryColorPointer) +#define glWindowPos2d GLEW_GET_FUN(__glewWindowPos2d) +#define glWindowPos2dv GLEW_GET_FUN(__glewWindowPos2dv) +#define glWindowPos2f GLEW_GET_FUN(__glewWindowPos2f) +#define glWindowPos2fv GLEW_GET_FUN(__glewWindowPos2fv) +#define glWindowPos2i GLEW_GET_FUN(__glewWindowPos2i) +#define glWindowPos2iv GLEW_GET_FUN(__glewWindowPos2iv) +#define glWindowPos2s GLEW_GET_FUN(__glewWindowPos2s) +#define glWindowPos2sv GLEW_GET_FUN(__glewWindowPos2sv) +#define glWindowPos3d GLEW_GET_FUN(__glewWindowPos3d) +#define glWindowPos3dv GLEW_GET_FUN(__glewWindowPos3dv) +#define glWindowPos3f GLEW_GET_FUN(__glewWindowPos3f) +#define glWindowPos3fv GLEW_GET_FUN(__glewWindowPos3fv) +#define glWindowPos3i GLEW_GET_FUN(__glewWindowPos3i) +#define glWindowPos3iv GLEW_GET_FUN(__glewWindowPos3iv) +#define glWindowPos3s GLEW_GET_FUN(__glewWindowPos3s) +#define glWindowPos3sv GLEW_GET_FUN(__glewWindowPos3sv) + +#define GLEW_VERSION_1_4 GLEW_GET_VAR(__GLEW_VERSION_1_4) + +#endif /* GL_VERSION_1_4 */ + +/* ----------------------------- GL_VERSION_1_5 ---------------------------- */ + +#ifndef GL_VERSION_1_5 +#define GL_VERSION_1_5 1 + +#define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE +#define GL_FOG_COORD GL_FOG_COORDINATE +#define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY +#define GL_SRC0_RGB GL_SOURCE0_RGB +#define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER +#define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE +#define GL_SRC1_ALPHA GL_SOURCE1_ALPHA +#define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE +#define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE +#define GL_SRC0_ALPHA GL_SOURCE0_ALPHA +#define GL_SRC1_RGB GL_SOURCE1_RGB +#define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING +#define GL_SRC2_ALPHA GL_SOURCE2_ALPHA +#define GL_SRC2_RGB GL_SOURCE2_RGB +#define GL_BUFFER_SIZE 0x8764 +#define GL_BUFFER_USAGE 0x8765 +#define GL_QUERY_COUNTER_BITS 0x8864 +#define GL_CURRENT_QUERY 0x8865 +#define GL_QUERY_RESULT 0x8866 +#define GL_QUERY_RESULT_AVAILABLE 0x8867 +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 +#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 +#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 +#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F +#define GL_READ_ONLY 0x88B8 +#define GL_WRITE_ONLY 0x88B9 +#define GL_READ_WRITE 0x88BA +#define GL_BUFFER_ACCESS 0x88BB +#define GL_BUFFER_MAPPED 0x88BC +#define GL_BUFFER_MAP_POINTER 0x88BD +#define GL_STREAM_DRAW 0x88E0 +#define GL_STREAM_READ 0x88E1 +#define GL_STREAM_COPY 0x88E2 +#define GL_STATIC_DRAW 0x88E4 +#define GL_STATIC_READ 0x88E5 +#define GL_STATIC_COPY 0x88E6 +#define GL_DYNAMIC_DRAW 0x88E8 +#define GL_DYNAMIC_READ 0x88E9 +#define GL_DYNAMIC_COPY 0x88EA +#define GL_SAMPLES_PASSED 0x8914 + +typedef ptrdiff_t GLintptr; +typedef ptrdiff_t GLsizeiptr; + +typedef void (GLAPIENTRY * PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); +typedef void (GLAPIENTRY * PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); +typedef void (GLAPIENTRY * PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage); +typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data); +typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint* buffers); +typedef void (GLAPIENTRY * PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint* ids); +typedef void (GLAPIENTRY * PFNGLENDQUERYPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLGENBUFFERSPROC) (GLsizei n, GLuint* buffers); +typedef void (GLAPIENTRY * PFNGLGENQUERIESPROC) (GLsizei n, GLuint* ids); +typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid** params); +typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data); +typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint* params); +typedef void (GLAPIENTRY * PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERPROC) (GLuint buffer); +typedef GLboolean (GLAPIENTRY * PFNGLISQUERYPROC) (GLuint id); +typedef GLvoid* (GLAPIENTRY * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); +typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERPROC) (GLenum target); + +#define glBeginQuery GLEW_GET_FUN(__glewBeginQuery) +#define glBindBuffer GLEW_GET_FUN(__glewBindBuffer) +#define glBufferData GLEW_GET_FUN(__glewBufferData) +#define glBufferSubData GLEW_GET_FUN(__glewBufferSubData) +#define glDeleteBuffers GLEW_GET_FUN(__glewDeleteBuffers) +#define glDeleteQueries GLEW_GET_FUN(__glewDeleteQueries) +#define glEndQuery GLEW_GET_FUN(__glewEndQuery) +#define glGenBuffers GLEW_GET_FUN(__glewGenBuffers) +#define glGenQueries GLEW_GET_FUN(__glewGenQueries) +#define glGetBufferParameteriv GLEW_GET_FUN(__glewGetBufferParameteriv) +#define glGetBufferPointerv GLEW_GET_FUN(__glewGetBufferPointerv) +#define glGetBufferSubData GLEW_GET_FUN(__glewGetBufferSubData) +#define glGetQueryObjectiv GLEW_GET_FUN(__glewGetQueryObjectiv) +#define glGetQueryObjectuiv GLEW_GET_FUN(__glewGetQueryObjectuiv) +#define glGetQueryiv GLEW_GET_FUN(__glewGetQueryiv) +#define glIsBuffer GLEW_GET_FUN(__glewIsBuffer) +#define glIsQuery GLEW_GET_FUN(__glewIsQuery) +#define glMapBuffer GLEW_GET_FUN(__glewMapBuffer) +#define glUnmapBuffer GLEW_GET_FUN(__glewUnmapBuffer) + +#define GLEW_VERSION_1_5 GLEW_GET_VAR(__GLEW_VERSION_1_5) + +#endif /* GL_VERSION_1_5 */ + +/* ----------------------------- GL_VERSION_2_0 ---------------------------- */ + +#ifndef GL_VERSION_2_0 +#define GL_VERSION_2_0 1 + +#define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB 0x8626 +#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_STENCIL_BACK_FUNC 0x8800 +#define GL_STENCIL_BACK_FAIL 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 +#define GL_MAX_DRAW_BUFFERS 0x8824 +#define GL_DRAW_BUFFER0 0x8825 +#define GL_DRAW_BUFFER1 0x8826 +#define GL_DRAW_BUFFER2 0x8827 +#define GL_DRAW_BUFFER3 0x8828 +#define GL_DRAW_BUFFER4 0x8829 +#define GL_DRAW_BUFFER5 0x882A +#define GL_DRAW_BUFFER6 0x882B +#define GL_DRAW_BUFFER7 0x882C +#define GL_DRAW_BUFFER8 0x882D +#define GL_DRAW_BUFFER9 0x882E +#define GL_DRAW_BUFFER10 0x882F +#define GL_DRAW_BUFFER11 0x8830 +#define GL_DRAW_BUFFER12 0x8831 +#define GL_DRAW_BUFFER13 0x8832 +#define GL_DRAW_BUFFER14 0x8833 +#define GL_DRAW_BUFFER15 0x8834 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_POINT_SPRITE 0x8861 +#define GL_COORD_REPLACE 0x8862 +#define GL_MAX_VERTEX_ATTRIBS 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_MAX_TEXTURE_COORDS 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A +#define GL_MAX_VARYING_FLOATS 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D +#define GL_SHADER_TYPE 0x8B4F +#define GL_FLOAT_VEC2 0x8B50 +#define GL_FLOAT_VEC3 0x8B51 +#define GL_FLOAT_VEC4 0x8B52 +#define GL_INT_VEC2 0x8B53 +#define GL_INT_VEC3 0x8B54 +#define GL_INT_VEC4 0x8B55 +#define GL_BOOL 0x8B56 +#define GL_BOOL_VEC2 0x8B57 +#define GL_BOOL_VEC3 0x8B58 +#define GL_BOOL_VEC4 0x8B59 +#define GL_FLOAT_MAT2 0x8B5A +#define GL_FLOAT_MAT3 0x8B5B +#define GL_FLOAT_MAT4 0x8B5C +#define GL_SAMPLER_1D 0x8B5D +#define GL_SAMPLER_2D 0x8B5E +#define GL_SAMPLER_3D 0x8B5F +#define GL_SAMPLER_CUBE 0x8B60 +#define GL_SAMPLER_1D_SHADOW 0x8B61 +#define GL_SAMPLER_2D_SHADOW 0x8B62 +#define GL_DELETE_STATUS 0x8B80 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_LINK_STATUS 0x8B82 +#define GL_VALIDATE_STATUS 0x8B83 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_ATTACHED_SHADERS 0x8B85 +#define GL_ACTIVE_UNIFORMS 0x8B86 +#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 +#define GL_SHADER_SOURCE_LENGTH 0x8B88 +#define GL_ACTIVE_ATTRIBUTES 0x8B89 +#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 +#define GL_LOWER_LEFT 0x8CA1 +#define GL_UPPER_LEFT 0x8CA2 +#define GL_STENCIL_BACK_REF 0x8CA3 +#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 +#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 + +typedef void (GLAPIENTRY * PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar* name); +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum, GLenum); +typedef void (GLAPIENTRY * PFNGLCOMPILESHADERPROC) (GLuint shader); +typedef GLuint (GLAPIENTRY * PFNGLCREATEPROGRAMPROC) (void); +typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROC) (GLenum type); +typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPROC) (GLuint program); +typedef void (GLAPIENTRY * PFNGLDELETESHADERPROC) (GLuint shader); +typedef void (GLAPIENTRY * PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint); +typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum* bufs); +typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint); +typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name); +typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name); +typedef void (GLAPIENTRY * PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders); +typedef GLint (GLAPIENTRY * PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar* name); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint* param); +typedef void (GLAPIENTRY * PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog); +typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEPROC) (GLuint obj, GLsizei maxLength, GLsizei* length, GLchar* source); +typedef void (GLAPIENTRY * PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint* param); +typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar* name); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint, GLenum, GLvoid**); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVPROC) (GLuint, GLenum, GLdouble*); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVPROC) (GLuint, GLenum, GLfloat*); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVPROC) (GLuint, GLenum, GLint*); +typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPROC) (GLuint program); +typedef GLboolean (GLAPIENTRY * PFNGLISSHADERPROC) (GLuint shader); +typedef void (GLAPIENTRY * PFNGLLINKPROGRAMPROC) (GLuint program); +typedef void (GLAPIENTRY * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar** strings, const GLint* lengths); +typedef void (GLAPIENTRY * PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +typedef void (GLAPIENTRY * PFNGLSTENCILMASKSEPARATEPROC) (GLenum, GLuint); +typedef void (GLAPIENTRY * PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +typedef void (GLAPIENTRY * PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); +typedef void (GLAPIENTRY * PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM1IPROC) (GLint location, GLint v0); +typedef void (GLAPIENTRY * PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); +typedef void (GLAPIENTRY * PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); +typedef void (GLAPIENTRY * PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (GLAPIENTRY * PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); +typedef void (GLAPIENTRY * PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (GLAPIENTRY * PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (GLAPIENTRY * PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUSEPROGRAMPROC) (GLuint program); +typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPROC) (GLuint program); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer); + +#define glAttachShader GLEW_GET_FUN(__glewAttachShader) +#define glBindAttribLocation GLEW_GET_FUN(__glewBindAttribLocation) +#define glBlendEquationSeparate GLEW_GET_FUN(__glewBlendEquationSeparate) +#define glCompileShader GLEW_GET_FUN(__glewCompileShader) +#define glCreateProgram GLEW_GET_FUN(__glewCreateProgram) +#define glCreateShader GLEW_GET_FUN(__glewCreateShader) +#define glDeleteProgram GLEW_GET_FUN(__glewDeleteProgram) +#define glDeleteShader GLEW_GET_FUN(__glewDeleteShader) +#define glDetachShader GLEW_GET_FUN(__glewDetachShader) +#define glDisableVertexAttribArray GLEW_GET_FUN(__glewDisableVertexAttribArray) +#define glDrawBuffers GLEW_GET_FUN(__glewDrawBuffers) +#define glEnableVertexAttribArray GLEW_GET_FUN(__glewEnableVertexAttribArray) +#define glGetActiveAttrib GLEW_GET_FUN(__glewGetActiveAttrib) +#define glGetActiveUniform GLEW_GET_FUN(__glewGetActiveUniform) +#define glGetAttachedShaders GLEW_GET_FUN(__glewGetAttachedShaders) +#define glGetAttribLocation GLEW_GET_FUN(__glewGetAttribLocation) +#define glGetProgramInfoLog GLEW_GET_FUN(__glewGetProgramInfoLog) +#define glGetProgramiv GLEW_GET_FUN(__glewGetProgramiv) +#define glGetShaderInfoLog GLEW_GET_FUN(__glewGetShaderInfoLog) +#define glGetShaderSource GLEW_GET_FUN(__glewGetShaderSource) +#define glGetShaderiv GLEW_GET_FUN(__glewGetShaderiv) +#define glGetUniformLocation GLEW_GET_FUN(__glewGetUniformLocation) +#define glGetUniformfv GLEW_GET_FUN(__glewGetUniformfv) +#define glGetUniformiv GLEW_GET_FUN(__glewGetUniformiv) +#define glGetVertexAttribPointerv GLEW_GET_FUN(__glewGetVertexAttribPointerv) +#define glGetVertexAttribdv GLEW_GET_FUN(__glewGetVertexAttribdv) +#define glGetVertexAttribfv GLEW_GET_FUN(__glewGetVertexAttribfv) +#define glGetVertexAttribiv GLEW_GET_FUN(__glewGetVertexAttribiv) +#define glIsProgram GLEW_GET_FUN(__glewIsProgram) +#define glIsShader GLEW_GET_FUN(__glewIsShader) +#define glLinkProgram GLEW_GET_FUN(__glewLinkProgram) +#define glShaderSource GLEW_GET_FUN(__glewShaderSource) +#define glStencilFuncSeparate GLEW_GET_FUN(__glewStencilFuncSeparate) +#define glStencilMaskSeparate GLEW_GET_FUN(__glewStencilMaskSeparate) +#define glStencilOpSeparate GLEW_GET_FUN(__glewStencilOpSeparate) +#define glUniform1f GLEW_GET_FUN(__glewUniform1f) +#define glUniform1fv GLEW_GET_FUN(__glewUniform1fv) +#define glUniform1i GLEW_GET_FUN(__glewUniform1i) +#define glUniform1iv GLEW_GET_FUN(__glewUniform1iv) +#define glUniform2f GLEW_GET_FUN(__glewUniform2f) +#define glUniform2fv GLEW_GET_FUN(__glewUniform2fv) +#define glUniform2i GLEW_GET_FUN(__glewUniform2i) +#define glUniform2iv GLEW_GET_FUN(__glewUniform2iv) +#define glUniform3f GLEW_GET_FUN(__glewUniform3f) +#define glUniform3fv GLEW_GET_FUN(__glewUniform3fv) +#define glUniform3i GLEW_GET_FUN(__glewUniform3i) +#define glUniform3iv GLEW_GET_FUN(__glewUniform3iv) +#define glUniform4f GLEW_GET_FUN(__glewUniform4f) +#define glUniform4fv GLEW_GET_FUN(__glewUniform4fv) +#define glUniform4i GLEW_GET_FUN(__glewUniform4i) +#define glUniform4iv GLEW_GET_FUN(__glewUniform4iv) +#define glUniformMatrix2fv GLEW_GET_FUN(__glewUniformMatrix2fv) +#define glUniformMatrix3fv GLEW_GET_FUN(__glewUniformMatrix3fv) +#define glUniformMatrix4fv GLEW_GET_FUN(__glewUniformMatrix4fv) +#define glUseProgram GLEW_GET_FUN(__glewUseProgram) +#define glValidateProgram GLEW_GET_FUN(__glewValidateProgram) +#define glVertexAttrib1d GLEW_GET_FUN(__glewVertexAttrib1d) +#define glVertexAttrib1dv GLEW_GET_FUN(__glewVertexAttrib1dv) +#define glVertexAttrib1f GLEW_GET_FUN(__glewVertexAttrib1f) +#define glVertexAttrib1fv GLEW_GET_FUN(__glewVertexAttrib1fv) +#define glVertexAttrib1s GLEW_GET_FUN(__glewVertexAttrib1s) +#define glVertexAttrib1sv GLEW_GET_FUN(__glewVertexAttrib1sv) +#define glVertexAttrib2d GLEW_GET_FUN(__glewVertexAttrib2d) +#define glVertexAttrib2dv GLEW_GET_FUN(__glewVertexAttrib2dv) +#define glVertexAttrib2f GLEW_GET_FUN(__glewVertexAttrib2f) +#define glVertexAttrib2fv GLEW_GET_FUN(__glewVertexAttrib2fv) +#define glVertexAttrib2s GLEW_GET_FUN(__glewVertexAttrib2s) +#define glVertexAttrib2sv GLEW_GET_FUN(__glewVertexAttrib2sv) +#define glVertexAttrib3d GLEW_GET_FUN(__glewVertexAttrib3d) +#define glVertexAttrib3dv GLEW_GET_FUN(__glewVertexAttrib3dv) +#define glVertexAttrib3f GLEW_GET_FUN(__glewVertexAttrib3f) +#define glVertexAttrib3fv GLEW_GET_FUN(__glewVertexAttrib3fv) +#define glVertexAttrib3s GLEW_GET_FUN(__glewVertexAttrib3s) +#define glVertexAttrib3sv GLEW_GET_FUN(__glewVertexAttrib3sv) +#define glVertexAttrib4Nbv GLEW_GET_FUN(__glewVertexAttrib4Nbv) +#define glVertexAttrib4Niv GLEW_GET_FUN(__glewVertexAttrib4Niv) +#define glVertexAttrib4Nsv GLEW_GET_FUN(__glewVertexAttrib4Nsv) +#define glVertexAttrib4Nub GLEW_GET_FUN(__glewVertexAttrib4Nub) +#define glVertexAttrib4Nubv GLEW_GET_FUN(__glewVertexAttrib4Nubv) +#define glVertexAttrib4Nuiv GLEW_GET_FUN(__glewVertexAttrib4Nuiv) +#define glVertexAttrib4Nusv GLEW_GET_FUN(__glewVertexAttrib4Nusv) +#define glVertexAttrib4bv GLEW_GET_FUN(__glewVertexAttrib4bv) +#define glVertexAttrib4d GLEW_GET_FUN(__glewVertexAttrib4d) +#define glVertexAttrib4dv GLEW_GET_FUN(__glewVertexAttrib4dv) +#define glVertexAttrib4f GLEW_GET_FUN(__glewVertexAttrib4f) +#define glVertexAttrib4fv GLEW_GET_FUN(__glewVertexAttrib4fv) +#define glVertexAttrib4iv GLEW_GET_FUN(__glewVertexAttrib4iv) +#define glVertexAttrib4s GLEW_GET_FUN(__glewVertexAttrib4s) +#define glVertexAttrib4sv GLEW_GET_FUN(__glewVertexAttrib4sv) +#define glVertexAttrib4ubv GLEW_GET_FUN(__glewVertexAttrib4ubv) +#define glVertexAttrib4uiv GLEW_GET_FUN(__glewVertexAttrib4uiv) +#define glVertexAttrib4usv GLEW_GET_FUN(__glewVertexAttrib4usv) +#define glVertexAttribPointer GLEW_GET_FUN(__glewVertexAttribPointer) + +#define GLEW_VERSION_2_0 GLEW_GET_VAR(__GLEW_VERSION_2_0) + +#endif /* GL_VERSION_2_0 */ + +/* ----------------------------- GL_VERSION_2_1 ---------------------------- */ + +#ifndef GL_VERSION_2_1 +#define GL_VERSION_2_1 1 + +#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F +#define GL_PIXEL_PACK_BUFFER 0x88EB +#define GL_PIXEL_UNPACK_BUFFER 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF +#define GL_FLOAT_MAT2x3 0x8B65 +#define GL_FLOAT_MAT2x4 0x8B66 +#define GL_FLOAT_MAT3x2 0x8B67 +#define GL_FLOAT_MAT3x4 0x8B68 +#define GL_FLOAT_MAT4x2 0x8B69 +#define GL_FLOAT_MAT4x3 0x8B6A +#define GL_SRGB 0x8C40 +#define GL_SRGB8 0x8C41 +#define GL_SRGB_ALPHA 0x8C42 +#define GL_SRGB8_ALPHA8 0x8C43 +#define GL_SLUMINANCE_ALPHA 0x8C44 +#define GL_SLUMINANCE8_ALPHA8 0x8C45 +#define GL_SLUMINANCE 0x8C46 +#define GL_SLUMINANCE8 0x8C47 +#define GL_COMPRESSED_SRGB 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 +#define GL_COMPRESSED_SLUMINANCE 0x8C4A +#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B + +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); + +#define glUniformMatrix2x3fv GLEW_GET_FUN(__glewUniformMatrix2x3fv) +#define glUniformMatrix2x4fv GLEW_GET_FUN(__glewUniformMatrix2x4fv) +#define glUniformMatrix3x2fv GLEW_GET_FUN(__glewUniformMatrix3x2fv) +#define glUniformMatrix3x4fv GLEW_GET_FUN(__glewUniformMatrix3x4fv) +#define glUniformMatrix4x2fv GLEW_GET_FUN(__glewUniformMatrix4x2fv) +#define glUniformMatrix4x3fv GLEW_GET_FUN(__glewUniformMatrix4x3fv) + +#define GLEW_VERSION_2_1 GLEW_GET_VAR(__GLEW_VERSION_2_1) + +#endif /* GL_VERSION_2_1 */ + +/* ----------------------------- GL_VERSION_3_0 ---------------------------- */ + +#ifndef GL_VERSION_3_0 +#define GL_VERSION_3_0 1 + +#define GL_MAX_CLIP_DISTANCES GL_MAX_CLIP_PLANES +#define GL_CLIP_DISTANCE5 GL_CLIP_PLANE5 +#define GL_CLIP_DISTANCE1 GL_CLIP_PLANE1 +#define GL_CLIP_DISTANCE3 GL_CLIP_PLANE3 +#define GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB +#define GL_CLIP_DISTANCE0 GL_CLIP_PLANE0 +#define GL_CLIP_DISTANCE4 GL_CLIP_PLANE4 +#define GL_CLIP_DISTANCE2 GL_CLIP_PLANE2 +#define GL_MAX_VARYING_COMPONENTS GL_MAX_VARYING_FLOATS +#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001 +#define GL_MAJOR_VERSION 0x821B +#define GL_MINOR_VERSION 0x821C +#define GL_NUM_EXTENSIONS 0x821D +#define GL_CONTEXT_FLAGS 0x821E +#define GL_DEPTH_BUFFER 0x8223 +#define GL_STENCIL_BUFFER 0x8224 +#define GL_COMPRESSED_RED 0x8225 +#define GL_COMPRESSED_RG 0x8226 +#define GL_RGBA32F 0x8814 +#define GL_RGB32F 0x8815 +#define GL_RGBA16F 0x881A +#define GL_RGB16F 0x881B +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD +#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF +#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 +#define GL_CLAMP_VERTEX_COLOR 0x891A +#define GL_CLAMP_FRAGMENT_COLOR 0x891B +#define GL_CLAMP_READ_COLOR 0x891C +#define GL_FIXED_ONLY 0x891D +#define GL_TEXTURE_RED_TYPE 0x8C10 +#define GL_TEXTURE_GREEN_TYPE 0x8C11 +#define GL_TEXTURE_BLUE_TYPE 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE 0x8C13 +#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14 +#define GL_TEXTURE_INTENSITY_TYPE 0x8C15 +#define GL_TEXTURE_DEPTH_TYPE 0x8C16 +#define GL_UNSIGNED_NORMALIZED 0x8C17 +#define GL_TEXTURE_1D_ARRAY 0x8C18 +#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 +#define GL_TEXTURE_2D_ARRAY 0x8C1A +#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B +#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C +#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D +#define GL_R11F_G11F_B10F 0x8C3A +#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B +#define GL_RGB9_E5 0x8C3D +#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E +#define GL_TEXTURE_SHARED_SIZE 0x8C3F +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 +#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 +#define GL_PRIMITIVES_GENERATED 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 +#define GL_RASTERIZER_DISCARD 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B +#define GL_INTERLEAVED_ATTRIBS 0x8C8C +#define GL_SEPARATE_ATTRIBS 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F +#define GL_RGBA32UI 0x8D70 +#define GL_RGB32UI 0x8D71 +#define GL_RGBA16UI 0x8D76 +#define GL_RGB16UI 0x8D77 +#define GL_RGBA8UI 0x8D7C +#define GL_RGB8UI 0x8D7D +#define GL_RGBA32I 0x8D82 +#define GL_RGB32I 0x8D83 +#define GL_RGBA16I 0x8D88 +#define GL_RGB16I 0x8D89 +#define GL_RGBA8I 0x8D8E +#define GL_RGB8I 0x8D8F +#define GL_RED_INTEGER 0x8D94 +#define GL_GREEN_INTEGER 0x8D95 +#define GL_BLUE_INTEGER 0x8D96 +#define GL_ALPHA_INTEGER 0x8D97 +#define GL_RGB_INTEGER 0x8D98 +#define GL_RGBA_INTEGER 0x8D99 +#define GL_BGR_INTEGER 0x8D9A +#define GL_BGRA_INTEGER 0x8D9B +#define GL_SAMPLER_1D_ARRAY 0x8DC0 +#define GL_SAMPLER_2D_ARRAY 0x8DC1 +#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 +#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 +#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 +#define GL_UNSIGNED_INT_VEC2 0x8DC6 +#define GL_UNSIGNED_INT_VEC3 0x8DC7 +#define GL_UNSIGNED_INT_VEC4 0x8DC8 +#define GL_INT_SAMPLER_1D 0x8DC9 +#define GL_INT_SAMPLER_2D 0x8DCA +#define GL_INT_SAMPLER_3D 0x8DCB +#define GL_INT_SAMPLER_CUBE 0x8DCC +#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE +#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF +#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 +#define GL_QUERY_WAIT 0x8E13 +#define GL_QUERY_NO_WAIT 0x8E14 +#define GL_QUERY_BY_REGION_WAIT 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 + +typedef void (GLAPIENTRY * PFNGLBEGINCONDITIONALRENDERPROC) (GLuint, GLenum); +typedef void (GLAPIENTRY * PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum); +typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONPROC) (GLuint, GLuint, const GLchar*); +typedef void (GLAPIENTRY * PFNGLCLAMPCOLORPROC) (GLenum, GLenum); +typedef void (GLAPIENTRY * PFNGLCLEARBUFFERFIPROC) (GLenum, GLint, GLfloat, GLint); +typedef void (GLAPIENTRY * PFNGLCLEARBUFFERFVPROC) (GLenum, GLint, const GLfloat*); +typedef void (GLAPIENTRY * PFNGLCLEARBUFFERIVPROC) (GLenum, GLint, const GLint*); +typedef void (GLAPIENTRY * PFNGLCLEARBUFFERUIVPROC) (GLenum, GLint, const GLuint*); +typedef void (GLAPIENTRY * PFNGLCOLORMASKIPROC) (GLuint, GLboolean, GLboolean, GLboolean, GLboolean); +typedef void (GLAPIENTRY * PFNGLDISABLEIPROC) (GLenum, GLuint); +typedef void (GLAPIENTRY * PFNGLENABLEIPROC) (GLenum, GLuint); +typedef void (GLAPIENTRY * PFNGLENDCONDITIONALRENDERPROC) (void); +typedef void (GLAPIENTRY * PFNGLENDTRANSFORMFEEDBACKPROC) (void); +typedef void (GLAPIENTRY * PFNGLGETBOOLEANI_VPROC) (GLenum, GLuint, GLboolean*); +typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATALOCATIONPROC) (GLuint, const GLchar*); +typedef const GLubyte* (GLAPIENTRY * PFNGLGETSTRINGIPROC) (GLenum, GLuint); +typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIIVPROC) (GLenum, GLenum, GLint*); +typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIUIVPROC) (GLenum, GLenum, GLuint*); +typedef void (GLAPIENTRY * PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMUIVPROC) (GLuint, GLint, GLuint*); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIIVPROC) (GLuint, GLenum, GLint*); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint, GLenum, GLuint*); +typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDIPROC) (GLenum, GLuint); +typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIIVPROC) (GLenum, GLenum, const GLint*); +typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIUIVPROC) (GLenum, GLenum, const GLuint*); +typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint, GLsizei, const GLchar **, GLenum); +typedef void (GLAPIENTRY * PFNGLUNIFORM1UIPROC) (GLint, GLuint); +typedef void (GLAPIENTRY * PFNGLUNIFORM1UIVPROC) (GLint, GLsizei, const GLuint*); +typedef void (GLAPIENTRY * PFNGLUNIFORM2UIPROC) (GLint, GLuint, GLuint); +typedef void (GLAPIENTRY * PFNGLUNIFORM2UIVPROC) (GLint, GLsizei, const GLuint*); +typedef void (GLAPIENTRY * PFNGLUNIFORM3UIPROC) (GLint, GLuint, GLuint, GLuint); +typedef void (GLAPIENTRY * PFNGLUNIFORM3UIVPROC) (GLint, GLsizei, const GLuint*); +typedef void (GLAPIENTRY * PFNGLUNIFORM4UIPROC) (GLint, GLuint, GLuint, GLuint, GLuint); +typedef void (GLAPIENTRY * PFNGLUNIFORM4UIVPROC) (GLint, GLsizei, const GLuint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IPROC) (GLuint, GLint); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IVPROC) (GLuint, const GLint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIPROC) (GLuint, GLuint); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIVPROC) (GLuint, const GLuint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IPROC) (GLuint, GLint, GLint); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IVPROC) (GLuint, const GLint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIPROC) (GLuint, GLuint, GLuint); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIVPROC) (GLuint, const GLuint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IPROC) (GLuint, GLint, GLint, GLint); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IVPROC) (GLuint, const GLint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIPROC) (GLuint, GLuint, GLuint, GLuint); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIVPROC) (GLuint, const GLuint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4BVPROC) (GLuint, const GLbyte*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IPROC) (GLuint, GLint, GLint, GLint, GLint); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IVPROC) (GLuint, const GLint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4SVPROC) (GLuint, const GLshort*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UBVPROC) (GLuint, const GLubyte*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIPROC) (GLuint, GLuint, GLuint, GLuint, GLuint); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIVPROC) (GLuint, const GLuint*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4USVPROC) (GLuint, const GLushort*); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint, GLint, GLenum, GLsizei, const GLvoid*); + +#define glBeginConditionalRender GLEW_GET_FUN(__glewBeginConditionalRender) +#define glBeginTransformFeedback GLEW_GET_FUN(__glewBeginTransformFeedback) +#define glBindFragDataLocation GLEW_GET_FUN(__glewBindFragDataLocation) +#define glClampColor GLEW_GET_FUN(__glewClampColor) +#define glClearBufferfi GLEW_GET_FUN(__glewClearBufferfi) +#define glClearBufferfv GLEW_GET_FUN(__glewClearBufferfv) +#define glClearBufferiv GLEW_GET_FUN(__glewClearBufferiv) +#define glClearBufferuiv GLEW_GET_FUN(__glewClearBufferuiv) +#define glColorMaski GLEW_GET_FUN(__glewColorMaski) +#define glDisablei GLEW_GET_FUN(__glewDisablei) +#define glEnablei GLEW_GET_FUN(__glewEnablei) +#define glEndConditionalRender GLEW_GET_FUN(__glewEndConditionalRender) +#define glEndTransformFeedback GLEW_GET_FUN(__glewEndTransformFeedback) +#define glGetBooleani_v GLEW_GET_FUN(__glewGetBooleani_v) +#define glGetFragDataLocation GLEW_GET_FUN(__glewGetFragDataLocation) +#define glGetStringi GLEW_GET_FUN(__glewGetStringi) +#define glGetTexParameterIiv GLEW_GET_FUN(__glewGetTexParameterIiv) +#define glGetTexParameterIuiv GLEW_GET_FUN(__glewGetTexParameterIuiv) +#define glGetTransformFeedbackVarying GLEW_GET_FUN(__glewGetTransformFeedbackVarying) +#define glGetUniformuiv GLEW_GET_FUN(__glewGetUniformuiv) +#define glGetVertexAttribIiv GLEW_GET_FUN(__glewGetVertexAttribIiv) +#define glGetVertexAttribIuiv GLEW_GET_FUN(__glewGetVertexAttribIuiv) +#define glIsEnabledi GLEW_GET_FUN(__glewIsEnabledi) +#define glTexParameterIiv GLEW_GET_FUN(__glewTexParameterIiv) +#define glTexParameterIuiv GLEW_GET_FUN(__glewTexParameterIuiv) +#define glTransformFeedbackVaryings GLEW_GET_FUN(__glewTransformFeedbackVaryings) +#define glUniform1ui GLEW_GET_FUN(__glewUniform1ui) +#define glUniform1uiv GLEW_GET_FUN(__glewUniform1uiv) +#define glUniform2ui GLEW_GET_FUN(__glewUniform2ui) +#define glUniform2uiv GLEW_GET_FUN(__glewUniform2uiv) +#define glUniform3ui GLEW_GET_FUN(__glewUniform3ui) +#define glUniform3uiv GLEW_GET_FUN(__glewUniform3uiv) +#define glUniform4ui GLEW_GET_FUN(__glewUniform4ui) +#define glUniform4uiv GLEW_GET_FUN(__glewUniform4uiv) +#define glVertexAttribI1i GLEW_GET_FUN(__glewVertexAttribI1i) +#define glVertexAttribI1iv GLEW_GET_FUN(__glewVertexAttribI1iv) +#define glVertexAttribI1ui GLEW_GET_FUN(__glewVertexAttribI1ui) +#define glVertexAttribI1uiv GLEW_GET_FUN(__glewVertexAttribI1uiv) +#define glVertexAttribI2i GLEW_GET_FUN(__glewVertexAttribI2i) +#define glVertexAttribI2iv GLEW_GET_FUN(__glewVertexAttribI2iv) +#define glVertexAttribI2ui GLEW_GET_FUN(__glewVertexAttribI2ui) +#define glVertexAttribI2uiv GLEW_GET_FUN(__glewVertexAttribI2uiv) +#define glVertexAttribI3i GLEW_GET_FUN(__glewVertexAttribI3i) +#define glVertexAttribI3iv GLEW_GET_FUN(__glewVertexAttribI3iv) +#define glVertexAttribI3ui GLEW_GET_FUN(__glewVertexAttribI3ui) +#define glVertexAttribI3uiv GLEW_GET_FUN(__glewVertexAttribI3uiv) +#define glVertexAttribI4bv GLEW_GET_FUN(__glewVertexAttribI4bv) +#define glVertexAttribI4i GLEW_GET_FUN(__glewVertexAttribI4i) +#define glVertexAttribI4iv GLEW_GET_FUN(__glewVertexAttribI4iv) +#define glVertexAttribI4sv GLEW_GET_FUN(__glewVertexAttribI4sv) +#define glVertexAttribI4ubv GLEW_GET_FUN(__glewVertexAttribI4ubv) +#define glVertexAttribI4ui GLEW_GET_FUN(__glewVertexAttribI4ui) +#define glVertexAttribI4uiv GLEW_GET_FUN(__glewVertexAttribI4uiv) +#define glVertexAttribI4usv GLEW_GET_FUN(__glewVertexAttribI4usv) +#define glVertexAttribIPointer GLEW_GET_FUN(__glewVertexAttribIPointer) + +#define GLEW_VERSION_3_0 GLEW_GET_VAR(__GLEW_VERSION_3_0) + +#endif /* GL_VERSION_3_0 */ + +/* ----------------------------- GL_VERSION_3_1 ---------------------------- */ + +#ifndef GL_VERSION_3_1 +#define GL_VERSION_3_1 1 + +#define GL_TEXTURE_RECTANGLE 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 +#define GL_SAMPLER_2D_RECT 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 +#define GL_TEXTURE_BUFFER 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT 0x8C2E +#define GL_SAMPLER_BUFFER 0x8DC2 +#define GL_INT_SAMPLER_2D_RECT 0x8DCD +#define GL_INT_SAMPLER_BUFFER 0x8DD0 +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 +#define GL_RED_SNORM 0x8F90 +#define GL_RG_SNORM 0x8F91 +#define GL_RGB_SNORM 0x8F92 +#define GL_RGBA_SNORM 0x8F93 +#define GL_R8_SNORM 0x8F94 +#define GL_RG8_SNORM 0x8F95 +#define GL_RGB8_SNORM 0x8F96 +#define GL_RGBA8_SNORM 0x8F97 +#define GL_R16_SNORM 0x8F98 +#define GL_RG16_SNORM 0x8F99 +#define GL_RGB16_SNORM 0x8F9A +#define GL_RGBA16_SNORM 0x8F9B +#define GL_SIGNED_NORMALIZED 0x8F9C +#define GL_PRIMITIVE_RESTART 0x8F9D +#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E +#define GL_BUFFER_ACCESS_FLAGS 0x911F +#define GL_BUFFER_MAP_LENGTH 0x9120 +#define GL_BUFFER_MAP_OFFSET 0x9121 + +typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum, GLint, GLsizei, GLsizei); +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum, GLsizei, GLenum, const GLvoid*, GLsizei); +typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint); +typedef void (GLAPIENTRY * PFNGLTEXBUFFERPROC) (GLenum, GLenum, GLuint); + +#define glDrawArraysInstanced GLEW_GET_FUN(__glewDrawArraysInstanced) +#define glDrawElementsInstanced GLEW_GET_FUN(__glewDrawElementsInstanced) +#define glPrimitiveRestartIndex GLEW_GET_FUN(__glewPrimitiveRestartIndex) +#define glTexBuffer GLEW_GET_FUN(__glewTexBuffer) + +#define GLEW_VERSION_3_1 GLEW_GET_VAR(__GLEW_VERSION_3_1) + +#endif /* GL_VERSION_3_1 */ + +/* ----------------------------- GL_VERSION_3_2 ---------------------------- */ + +#ifndef GL_VERSION_3_2 +#define GL_VERSION_3_2 1 + +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_LINES_ADJACENCY 0x000A +#define GL_LINE_STRIP_ADJACENCY 0x000B +#define GL_TRIANGLES_ADJACENCY 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D +#define GL_PROGRAM_POINT_SIZE 0x8642 +#define GL_GEOMETRY_VERTICES_OUT 0x8916 +#define GL_GEOMETRY_INPUT_TYPE 0x8917 +#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 +#define GL_GEOMETRY_SHADER 0x8DD9 +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 +#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 +#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 +#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 +#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 +#define GL_CONTEXT_PROFILE_MASK 0x9126 + +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum, GLenum, GLuint, GLint); +typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum, GLenum, GLint64 *); +typedef void (GLAPIENTRY * PFNGLGETINTEGER64I_VPROC) (GLenum, GLuint, GLint64 *); + +#define glFramebufferTexture GLEW_GET_FUN(__glewFramebufferTexture) +#define glGetBufferParameteri64v GLEW_GET_FUN(__glewGetBufferParameteri64v) +#define glGetInteger64i_v GLEW_GET_FUN(__glewGetInteger64i_v) + +#define GLEW_VERSION_3_2 GLEW_GET_VAR(__GLEW_VERSION_3_2) + +#endif /* GL_VERSION_3_2 */ + +/* ----------------------------- GL_VERSION_3_3 ---------------------------- */ + +#ifndef GL_VERSION_3_3 +#define GL_VERSION_3_3 1 + +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE +#define GL_ANY_SAMPLES_PASSED 0x8C2F +#define GL_TEXTURE_SWIZZLE_R 0x8E42 +#define GL_TEXTURE_SWIZZLE_G 0x8E43 +#define GL_TEXTURE_SWIZZLE_B 0x8E44 +#define GL_TEXTURE_SWIZZLE_A 0x8E45 +#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 +#define GL_RGB10_A2UI 0x906F + +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor); + +#define glVertexAttribDivisor GLEW_GET_FUN(__glewVertexAttribDivisor) + +#define GLEW_VERSION_3_3 GLEW_GET_VAR(__GLEW_VERSION_3_3) + +#endif /* GL_VERSION_3_3 */ + +/* ----------------------------- GL_VERSION_4_0 ---------------------------- */ + +#ifndef GL_VERSION_4_0 +#define GL_VERSION_4_0 1 + +#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F +#define GL_SAMPLE_SHADING 0x8C36 +#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 +#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A +#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B +#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C +#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F +#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS 0x8F9F +#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B +#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F + +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); +typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +typedef void (GLAPIENTRY * PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); +typedef void (GLAPIENTRY * PFNGLMINSAMPLESHADINGPROC) (GLclampf value); + +#define glBlendEquationSeparatei GLEW_GET_FUN(__glewBlendEquationSeparatei) +#define glBlendEquationi GLEW_GET_FUN(__glewBlendEquationi) +#define glBlendFuncSeparatei GLEW_GET_FUN(__glewBlendFuncSeparatei) +#define glBlendFunci GLEW_GET_FUN(__glewBlendFunci) +#define glMinSampleShading GLEW_GET_FUN(__glewMinSampleShading) + +#define GLEW_VERSION_4_0 GLEW_GET_VAR(__GLEW_VERSION_4_0) + +#endif /* GL_VERSION_4_0 */ + +/* ----------------------------- GL_VERSION_4_1 ---------------------------- */ + +#ifndef GL_VERSION_4_1 +#define GL_VERSION_4_1 1 + +#define GLEW_VERSION_4_1 GLEW_GET_VAR(__GLEW_VERSION_4_1) + +#endif /* GL_VERSION_4_1 */ + +/* -------------------------- GL_3DFX_multisample -------------------------- */ + +#ifndef GL_3DFX_multisample +#define GL_3DFX_multisample 1 + +#define GL_MULTISAMPLE_3DFX 0x86B2 +#define GL_SAMPLE_BUFFERS_3DFX 0x86B3 +#define GL_SAMPLES_3DFX 0x86B4 +#define GL_MULTISAMPLE_BIT_3DFX 0x20000000 + +#define GLEW_3DFX_multisample GLEW_GET_VAR(__GLEW_3DFX_multisample) + +#endif /* GL_3DFX_multisample */ + +/* ---------------------------- GL_3DFX_tbuffer ---------------------------- */ + +#ifndef GL_3DFX_tbuffer +#define GL_3DFX_tbuffer 1 + +typedef void (GLAPIENTRY * PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); + +#define glTbufferMask3DFX GLEW_GET_FUN(__glewTbufferMask3DFX) + +#define GLEW_3DFX_tbuffer GLEW_GET_VAR(__GLEW_3DFX_tbuffer) + +#endif /* GL_3DFX_tbuffer */ + +/* -------------------- GL_3DFX_texture_compression_FXT1 ------------------- */ + +#ifndef GL_3DFX_texture_compression_FXT1 +#define GL_3DFX_texture_compression_FXT1 1 + +#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0 +#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1 + +#define GLEW_3DFX_texture_compression_FXT1 GLEW_GET_VAR(__GLEW_3DFX_texture_compression_FXT1) + +#endif /* GL_3DFX_texture_compression_FXT1 */ + +/* ----------------------- GL_AMD_conservative_depth ----------------------- */ + +#ifndef GL_AMD_conservative_depth +#define GL_AMD_conservative_depth 1 + +#define GLEW_AMD_conservative_depth GLEW_GET_VAR(__GLEW_AMD_conservative_depth) + +#endif /* GL_AMD_conservative_depth */ + +/* -------------------------- GL_AMD_debug_output -------------------------- */ + +#ifndef GL_AMD_debug_output +#define GL_AMD_debug_output 1 + +#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145 +#define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM_AMD 0x9147 +#define GL_DEBUG_SEVERITY_LOW_AMD 0x9148 +#define GL_DEBUG_CATEGORY_API_ERROR_AMD 0x9149 +#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A +#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B +#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C +#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D +#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E +#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F +#define GL_DEBUG_CATEGORY_OTHER_AMD 0x9150 + +typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam); + +typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, void* userParam); +typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); +typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const char* buf); +typedef GLuint (GLAPIENTRY * PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufsize, GLenum* categories, GLuint* severities, GLuint* ids, GLsizei* lengths, char* message); + +#define glDebugMessageCallbackAMD GLEW_GET_FUN(__glewDebugMessageCallbackAMD) +#define glDebugMessageEnableAMD GLEW_GET_FUN(__glewDebugMessageEnableAMD) +#define glDebugMessageInsertAMD GLEW_GET_FUN(__glewDebugMessageInsertAMD) +#define glGetDebugMessageLogAMD GLEW_GET_FUN(__glewGetDebugMessageLogAMD) + +#define GLEW_AMD_debug_output GLEW_GET_VAR(__GLEW_AMD_debug_output) + +#endif /* GL_AMD_debug_output */ + +/* ---------------------- GL_AMD_depth_clamp_separate ---------------------- */ + +#ifndef GL_AMD_depth_clamp_separate +#define GL_AMD_depth_clamp_separate 1 + +#define GL_DEPTH_CLAMP_NEAR_AMD 0x901E +#define GL_DEPTH_CLAMP_FAR_AMD 0x901F + +#define GLEW_AMD_depth_clamp_separate GLEW_GET_VAR(__GLEW_AMD_depth_clamp_separate) + +#endif /* GL_AMD_depth_clamp_separate */ + +/* ----------------------- GL_AMD_draw_buffers_blend ----------------------- */ + +#ifndef GL_AMD_draw_buffers_blend +#define GL_AMD_draw_buffers_blend 1 + +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode); +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +typedef void (GLAPIENTRY * PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst); +typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); + +#define glBlendEquationIndexedAMD GLEW_GET_FUN(__glewBlendEquationIndexedAMD) +#define glBlendEquationSeparateIndexedAMD GLEW_GET_FUN(__glewBlendEquationSeparateIndexedAMD) +#define glBlendFuncIndexedAMD GLEW_GET_FUN(__glewBlendFuncIndexedAMD) +#define glBlendFuncSeparateIndexedAMD GLEW_GET_FUN(__glewBlendFuncSeparateIndexedAMD) + +#define GLEW_AMD_draw_buffers_blend GLEW_GET_VAR(__GLEW_AMD_draw_buffers_blend) + +#endif /* GL_AMD_draw_buffers_blend */ + +/* ------------------------- GL_AMD_name_gen_delete ------------------------ */ + +#ifndef GL_AMD_name_gen_delete +#define GL_AMD_name_gen_delete 1 + +#define GL_DATA_BUFFER_AMD 0x9151 +#define GL_PERFORMANCE_MONITOR_AMD 0x9152 +#define GL_QUERY_OBJECT_AMD 0x9153 +#define GL_VERTEX_ARRAY_OBJECT_AMD 0x9154 +#define GL_SAMPLER_OBJECT_AMD 0x9155 + +typedef void (GLAPIENTRY * PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint* names); +typedef void (GLAPIENTRY * PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint* names); +typedef GLboolean (GLAPIENTRY * PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name); + +#define glDeleteNamesAMD GLEW_GET_FUN(__glewDeleteNamesAMD) +#define glGenNamesAMD GLEW_GET_FUN(__glewGenNamesAMD) +#define glIsNameAMD GLEW_GET_FUN(__glewIsNameAMD) + +#define GLEW_AMD_name_gen_delete GLEW_GET_VAR(__GLEW_AMD_name_gen_delete) + +#endif /* GL_AMD_name_gen_delete */ + +/* ----------------------- GL_AMD_performance_monitor ---------------------- */ + +#ifndef GL_AMD_performance_monitor +#define GL_AMD_performance_monitor 1 + +#define GL_UNSIGNED_INT 0x1405 +#define GL_FLOAT 0x1406 +#define GL_COUNTER_TYPE_AMD 0x8BC0 +#define GL_COUNTER_RANGE_AMD 0x8BC1 +#define GL_UNSIGNED_INT64_AMD 0x8BC2 +#define GL_PERCENTAGE_AMD 0x8BC3 +#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4 +#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5 +#define GL_PERFMON_RESULT_AMD 0x8BC6 + +typedef void (GLAPIENTRY * PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor); +typedef void (GLAPIENTRY * PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors); +typedef void (GLAPIENTRY * PFNGLENDPERFMONITORAMDPROC) (GLuint monitor); +typedef void (GLAPIENTRY * PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors); +typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint* data, GLint *bytesWritten); +typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void* data); +typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, char *counterString); +typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint* numCounters, GLint *maxActiveCounters, GLsizei countersSize, GLuint *counters); +typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei* length, char *groupString); +typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint* numGroups, GLsizei groupsSize, GLuint *groups); +typedef void (GLAPIENTRY * PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint* counterList); + +#define glBeginPerfMonitorAMD GLEW_GET_FUN(__glewBeginPerfMonitorAMD) +#define glDeletePerfMonitorsAMD GLEW_GET_FUN(__glewDeletePerfMonitorsAMD) +#define glEndPerfMonitorAMD GLEW_GET_FUN(__glewEndPerfMonitorAMD) +#define glGenPerfMonitorsAMD GLEW_GET_FUN(__glewGenPerfMonitorsAMD) +#define glGetPerfMonitorCounterDataAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterDataAMD) +#define glGetPerfMonitorCounterInfoAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterInfoAMD) +#define glGetPerfMonitorCounterStringAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterStringAMD) +#define glGetPerfMonitorCountersAMD GLEW_GET_FUN(__glewGetPerfMonitorCountersAMD) +#define glGetPerfMonitorGroupStringAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupStringAMD) +#define glGetPerfMonitorGroupsAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupsAMD) +#define glSelectPerfMonitorCountersAMD GLEW_GET_FUN(__glewSelectPerfMonitorCountersAMD) + +#define GLEW_AMD_performance_monitor GLEW_GET_VAR(__GLEW_AMD_performance_monitor) + +#endif /* GL_AMD_performance_monitor */ + +/* ------------------ GL_AMD_seamless_cubemap_per_texture ------------------ */ + +#ifndef GL_AMD_seamless_cubemap_per_texture +#define GL_AMD_seamless_cubemap_per_texture 1 + +#define GL_TEXTURE_CUBE_MAP_SEAMLESS_ARB 0x884F + +#define GLEW_AMD_seamless_cubemap_per_texture GLEW_GET_VAR(__GLEW_AMD_seamless_cubemap_per_texture) + +#endif /* GL_AMD_seamless_cubemap_per_texture */ + +/* ---------------------- GL_AMD_shader_stencil_export --------------------- */ + +#ifndef GL_AMD_shader_stencil_export +#define GL_AMD_shader_stencil_export 1 + +#define GLEW_AMD_shader_stencil_export GLEW_GET_VAR(__GLEW_AMD_shader_stencil_export) + +#endif /* GL_AMD_shader_stencil_export */ + +/* ------------------------ GL_AMD_texture_texture4 ------------------------ */ + +#ifndef GL_AMD_texture_texture4 +#define GL_AMD_texture_texture4 1 + +#define GLEW_AMD_texture_texture4 GLEW_GET_VAR(__GLEW_AMD_texture_texture4) + +#endif /* GL_AMD_texture_texture4 */ + +/* --------------- GL_AMD_transform_feedback3_lines_triangles -------------- */ + +#ifndef GL_AMD_transform_feedback3_lines_triangles +#define GL_AMD_transform_feedback3_lines_triangles 1 + +#define GLEW_AMD_transform_feedback3_lines_triangles GLEW_GET_VAR(__GLEW_AMD_transform_feedback3_lines_triangles) + +#endif /* GL_AMD_transform_feedback3_lines_triangles */ + +/* -------------------- GL_AMD_vertex_shader_tessellator ------------------- */ + +#ifndef GL_AMD_vertex_shader_tessellator +#define GL_AMD_vertex_shader_tessellator 1 + +#define GL_SAMPLER_BUFFER_AMD 0x9001 +#define GL_INT_SAMPLER_BUFFER_AMD 0x9002 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003 +#define GL_TESSELLATION_MODE_AMD 0x9004 +#define GL_TESSELLATION_FACTOR_AMD 0x9005 +#define GL_DISCRETE_AMD 0x9006 +#define GL_CONTINUOUS_AMD 0x9007 + +typedef void (GLAPIENTRY * PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor); +typedef void (GLAPIENTRY * PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode); + +#define glTessellationFactorAMD GLEW_GET_FUN(__glewTessellationFactorAMD) +#define glTessellationModeAMD GLEW_GET_FUN(__glewTessellationModeAMD) + +#define GLEW_AMD_vertex_shader_tessellator GLEW_GET_VAR(__GLEW_AMD_vertex_shader_tessellator) + +#endif /* GL_AMD_vertex_shader_tessellator */ + +/* ----------------------- GL_APPLE_aux_depth_stencil ---------------------- */ + +#ifndef GL_APPLE_aux_depth_stencil +#define GL_APPLE_aux_depth_stencil 1 + +#define GL_AUX_DEPTH_STENCIL_APPLE 0x8A14 + +#define GLEW_APPLE_aux_depth_stencil GLEW_GET_VAR(__GLEW_APPLE_aux_depth_stencil) + +#endif /* GL_APPLE_aux_depth_stencil */ + +/* ------------------------ GL_APPLE_client_storage ------------------------ */ + +#ifndef GL_APPLE_client_storage +#define GL_APPLE_client_storage 1 + +#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 + +#define GLEW_APPLE_client_storage GLEW_GET_VAR(__GLEW_APPLE_client_storage) + +#endif /* GL_APPLE_client_storage */ + +/* ------------------------- GL_APPLE_element_array ------------------------ */ + +#ifndef GL_APPLE_element_array +#define GL_APPLE_element_array 1 + +#define GL_ELEMENT_ARRAY_APPLE 0x8A0C +#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8A0D +#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x8A0E + +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); +typedef void (GLAPIENTRY * PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void* pointer); +typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint* first, const GLsizei *count, GLsizei primcount); +typedef void (GLAPIENTRY * PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint* first, const GLsizei *count, GLsizei primcount); + +#define glDrawElementArrayAPPLE GLEW_GET_FUN(__glewDrawElementArrayAPPLE) +#define glDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewDrawRangeElementArrayAPPLE) +#define glElementPointerAPPLE GLEW_GET_FUN(__glewElementPointerAPPLE) +#define glMultiDrawElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawElementArrayAPPLE) +#define glMultiDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawRangeElementArrayAPPLE) + +#define GLEW_APPLE_element_array GLEW_GET_VAR(__GLEW_APPLE_element_array) + +#endif /* GL_APPLE_element_array */ + +/* ----------------------------- GL_APPLE_fence ---------------------------- */ + +#ifndef GL_APPLE_fence +#define GL_APPLE_fence 1 + +#define GL_DRAW_PIXELS_APPLE 0x8A0A +#define GL_FENCE_APPLE 0x8A0B + +typedef void (GLAPIENTRY * PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint* fences); +typedef void (GLAPIENTRY * PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); +typedef void (GLAPIENTRY * PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); +typedef void (GLAPIENTRY * PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint* fences); +typedef GLboolean (GLAPIENTRY * PFNGLISFENCEAPPLEPROC) (GLuint fence); +typedef void (GLAPIENTRY * PFNGLSETFENCEAPPLEPROC) (GLuint fence); +typedef GLboolean (GLAPIENTRY * PFNGLTESTFENCEAPPLEPROC) (GLuint fence); +typedef GLboolean (GLAPIENTRY * PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); + +#define glDeleteFencesAPPLE GLEW_GET_FUN(__glewDeleteFencesAPPLE) +#define glFinishFenceAPPLE GLEW_GET_FUN(__glewFinishFenceAPPLE) +#define glFinishObjectAPPLE GLEW_GET_FUN(__glewFinishObjectAPPLE) +#define glGenFencesAPPLE GLEW_GET_FUN(__glewGenFencesAPPLE) +#define glIsFenceAPPLE GLEW_GET_FUN(__glewIsFenceAPPLE) +#define glSetFenceAPPLE GLEW_GET_FUN(__glewSetFenceAPPLE) +#define glTestFenceAPPLE GLEW_GET_FUN(__glewTestFenceAPPLE) +#define glTestObjectAPPLE GLEW_GET_FUN(__glewTestObjectAPPLE) + +#define GLEW_APPLE_fence GLEW_GET_VAR(__GLEW_APPLE_fence) + +#endif /* GL_APPLE_fence */ + +/* ------------------------- GL_APPLE_float_pixels ------------------------- */ + +#ifndef GL_APPLE_float_pixels +#define GL_APPLE_float_pixels 1 + +#define GL_HALF_APPLE 0x140B +#define GL_RGBA_FLOAT32_APPLE 0x8814 +#define GL_RGB_FLOAT32_APPLE 0x8815 +#define GL_ALPHA_FLOAT32_APPLE 0x8816 +#define GL_INTENSITY_FLOAT32_APPLE 0x8817 +#define GL_LUMINANCE_FLOAT32_APPLE 0x8818 +#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819 +#define GL_RGBA_FLOAT16_APPLE 0x881A +#define GL_RGB_FLOAT16_APPLE 0x881B +#define GL_ALPHA_FLOAT16_APPLE 0x881C +#define GL_INTENSITY_FLOAT16_APPLE 0x881D +#define GL_LUMINANCE_FLOAT16_APPLE 0x881E +#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F +#define GL_COLOR_FLOAT_APPLE 0x8A0F + +#define GLEW_APPLE_float_pixels GLEW_GET_VAR(__GLEW_APPLE_float_pixels) + +#endif /* GL_APPLE_float_pixels */ + +/* ---------------------- GL_APPLE_flush_buffer_range ---------------------- */ + +#ifndef GL_APPLE_flush_buffer_range +#define GL_APPLE_flush_buffer_range 1 + +#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12 +#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13 + +typedef void (GLAPIENTRY * PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size); + +#define glBufferParameteriAPPLE GLEW_GET_FUN(__glewBufferParameteriAPPLE) +#define glFlushMappedBufferRangeAPPLE GLEW_GET_FUN(__glewFlushMappedBufferRangeAPPLE) + +#define GLEW_APPLE_flush_buffer_range GLEW_GET_VAR(__GLEW_APPLE_flush_buffer_range) + +#endif /* GL_APPLE_flush_buffer_range */ + +/* ----------------------- GL_APPLE_object_purgeable ----------------------- */ + +#ifndef GL_APPLE_object_purgeable +#define GL_APPLE_object_purgeable 1 + +#define GL_BUFFER_OBJECT_APPLE 0x85B3 +#define GL_RELEASED_APPLE 0x8A19 +#define GL_VOLATILE_APPLE 0x8A1A +#define GL_RETAINED_APPLE 0x8A1B +#define GL_UNDEFINED_APPLE 0x8A1C +#define GL_PURGEABLE_APPLE 0x8A1D + +typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint* params); +typedef GLenum (GLAPIENTRY * PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); +typedef GLenum (GLAPIENTRY * PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); + +#define glGetObjectParameterivAPPLE GLEW_GET_FUN(__glewGetObjectParameterivAPPLE) +#define glObjectPurgeableAPPLE GLEW_GET_FUN(__glewObjectPurgeableAPPLE) +#define glObjectUnpurgeableAPPLE GLEW_GET_FUN(__glewObjectUnpurgeableAPPLE) + +#define GLEW_APPLE_object_purgeable GLEW_GET_VAR(__GLEW_APPLE_object_purgeable) + +#endif /* GL_APPLE_object_purgeable */ + +/* ------------------------- GL_APPLE_pixel_buffer ------------------------- */ + +#ifndef GL_APPLE_pixel_buffer +#define GL_APPLE_pixel_buffer 1 + +#define GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE 0x8A10 + +#define GLEW_APPLE_pixel_buffer GLEW_GET_VAR(__GLEW_APPLE_pixel_buffer) + +#endif /* GL_APPLE_pixel_buffer */ + +/* ---------------------------- GL_APPLE_rgb_422 --------------------------- */ + +#ifndef GL_APPLE_rgb_422 +#define GL_APPLE_rgb_422 1 + +#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB +#define GL_RGB_422_APPLE 0x8A1F + +#define GLEW_APPLE_rgb_422 GLEW_GET_VAR(__GLEW_APPLE_rgb_422) + +#endif /* GL_APPLE_rgb_422 */ + +/* --------------------------- GL_APPLE_row_bytes -------------------------- */ + +#ifndef GL_APPLE_row_bytes +#define GL_APPLE_row_bytes 1 + +#define GL_PACK_ROW_BYTES_APPLE 0x8A15 +#define GL_UNPACK_ROW_BYTES_APPLE 0x8A16 + +#define GLEW_APPLE_row_bytes GLEW_GET_VAR(__GLEW_APPLE_row_bytes) + +#endif /* GL_APPLE_row_bytes */ + +/* ------------------------ GL_APPLE_specular_vector ----------------------- */ + +#ifndef GL_APPLE_specular_vector +#define GL_APPLE_specular_vector 1 + +#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0 + +#define GLEW_APPLE_specular_vector GLEW_GET_VAR(__GLEW_APPLE_specular_vector) + +#endif /* GL_APPLE_specular_vector */ + +/* ------------------------- GL_APPLE_texture_range ------------------------ */ + +#ifndef GL_APPLE_texture_range +#define GL_APPLE_texture_range 1 + +#define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7 +#define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8 +#define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC +#define GL_STORAGE_PRIVATE_APPLE 0x85BD +#define GL_STORAGE_CACHED_APPLE 0x85BE +#define GL_STORAGE_SHARED_APPLE 0x85BF + +typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, GLvoid **params); +typedef void (GLAPIENTRY * PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, GLvoid *pointer); + +#define glGetTexParameterPointervAPPLE GLEW_GET_FUN(__glewGetTexParameterPointervAPPLE) +#define glTextureRangeAPPLE GLEW_GET_FUN(__glewTextureRangeAPPLE) + +#define GLEW_APPLE_texture_range GLEW_GET_VAR(__GLEW_APPLE_texture_range) + +#endif /* GL_APPLE_texture_range */ + +/* ------------------------ GL_APPLE_transform_hint ------------------------ */ + +#ifndef GL_APPLE_transform_hint +#define GL_APPLE_transform_hint 1 + +#define GL_TRANSFORM_HINT_APPLE 0x85B1 + +#define GLEW_APPLE_transform_hint GLEW_GET_VAR(__GLEW_APPLE_transform_hint) + +#endif /* GL_APPLE_transform_hint */ + +/* ---------------------- GL_APPLE_vertex_array_object --------------------- */ + +#ifndef GL_APPLE_vertex_array_object +#define GL_APPLE_vertex_array_object 1 + +#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5 + +typedef void (GLAPIENTRY * PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); +typedef void (GLAPIENTRY * PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint* arrays); +typedef void (GLAPIENTRY * PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint* arrays); +typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); + +#define glBindVertexArrayAPPLE GLEW_GET_FUN(__glewBindVertexArrayAPPLE) +#define glDeleteVertexArraysAPPLE GLEW_GET_FUN(__glewDeleteVertexArraysAPPLE) +#define glGenVertexArraysAPPLE GLEW_GET_FUN(__glewGenVertexArraysAPPLE) +#define glIsVertexArrayAPPLE GLEW_GET_FUN(__glewIsVertexArrayAPPLE) + +#define GLEW_APPLE_vertex_array_object GLEW_GET_VAR(__GLEW_APPLE_vertex_array_object) + +#endif /* GL_APPLE_vertex_array_object */ + +/* ---------------------- GL_APPLE_vertex_array_range ---------------------- */ + +#ifndef GL_APPLE_vertex_array_range +#define GL_APPLE_vertex_array_range 1 + +#define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D +#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E +#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F +#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_APPLE 0x8520 +#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521 +#define GL_STORAGE_CLIENT_APPLE 0x85B4 +#define GL_STORAGE_CACHED_APPLE 0x85BE +#define GL_STORAGE_SHARED_APPLE 0x85BF + +typedef void (GLAPIENTRY * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void* pointer); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void* pointer); + +#define glFlushVertexArrayRangeAPPLE GLEW_GET_FUN(__glewFlushVertexArrayRangeAPPLE) +#define glVertexArrayParameteriAPPLE GLEW_GET_FUN(__glewVertexArrayParameteriAPPLE) +#define glVertexArrayRangeAPPLE GLEW_GET_FUN(__glewVertexArrayRangeAPPLE) + +#define GLEW_APPLE_vertex_array_range GLEW_GET_VAR(__GLEW_APPLE_vertex_array_range) + +#endif /* GL_APPLE_vertex_array_range */ + +/* ------------------- GL_APPLE_vertex_program_evaluators ------------------ */ + +#ifndef GL_APPLE_vertex_program_evaluators +#define GL_APPLE_vertex_program_evaluators 1 + +#define GL_VERTEX_ATTRIB_MAP1_APPLE 0x8A00 +#define GL_VERTEX_ATTRIB_MAP2_APPLE 0x8A01 +#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE 0x8A02 +#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03 +#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04 +#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05 +#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE 0x8A06 +#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07 +#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08 +#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09 + +typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); +typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); +typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname); +typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points); +typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points); + +#define glDisableVertexAttribAPPLE GLEW_GET_FUN(__glewDisableVertexAttribAPPLE) +#define glEnableVertexAttribAPPLE GLEW_GET_FUN(__glewEnableVertexAttribAPPLE) +#define glIsVertexAttribEnabledAPPLE GLEW_GET_FUN(__glewIsVertexAttribEnabledAPPLE) +#define glMapVertexAttrib1dAPPLE GLEW_GET_FUN(__glewMapVertexAttrib1dAPPLE) +#define glMapVertexAttrib1fAPPLE GLEW_GET_FUN(__glewMapVertexAttrib1fAPPLE) +#define glMapVertexAttrib2dAPPLE GLEW_GET_FUN(__glewMapVertexAttrib2dAPPLE) +#define glMapVertexAttrib2fAPPLE GLEW_GET_FUN(__glewMapVertexAttrib2fAPPLE) + +#define GLEW_APPLE_vertex_program_evaluators GLEW_GET_VAR(__GLEW_APPLE_vertex_program_evaluators) + +#endif /* GL_APPLE_vertex_program_evaluators */ + +/* --------------------------- GL_APPLE_ycbcr_422 -------------------------- */ + +#ifndef GL_APPLE_ycbcr_422 +#define GL_APPLE_ycbcr_422 1 + +#define GL_YCBCR_422_APPLE 0x85B9 +#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB + +#define GLEW_APPLE_ycbcr_422 GLEW_GET_VAR(__GLEW_APPLE_ycbcr_422) + +#endif /* GL_APPLE_ycbcr_422 */ + +/* ------------------------ GL_ARB_ES2_compatibility ----------------------- */ + +#ifndef GL_ARB_ES2_compatibility +#define GL_ARB_ES2_compatibility 1 + +#define GL_FIXED 0x140C +#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B +#define GL_LOW_FLOAT 0x8DF0 +#define GL_MEDIUM_FLOAT 0x8DF1 +#define GL_HIGH_FLOAT 0x8DF2 +#define GL_LOW_INT 0x8DF3 +#define GL_MEDIUM_INT 0x8DF4 +#define GL_HIGH_INT 0x8DF5 +#define GL_SHADER_BINARY_FORMATS 0x8DF8 +#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 +#define GL_SHADER_COMPILER 0x8DFA +#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB +#define GL_MAX_VARYING_VECTORS 0x8DFC +#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD + +typedef void (GLAPIENTRY * PFNGLCLEARDEPTHFPROC) (GLclampf d); +typedef void (GLAPIENTRY * PFNGLDEPTHRANGEFPROC) (GLclampf n, GLclampf f); +typedef void (GLAPIENTRY * PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint* range, GLint *precision); +typedef void (GLAPIENTRY * PFNGLRELEASESHADERCOMPILERPROC) (void); +typedef void (GLAPIENTRY * PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint* shaders, GLenum binaryformat, const GLvoid*binary, GLsizei length); + +#define glClearDepthf GLEW_GET_FUN(__glewClearDepthf) +#define glDepthRangef GLEW_GET_FUN(__glewDepthRangef) +#define glGetShaderPrecisionFormat GLEW_GET_FUN(__glewGetShaderPrecisionFormat) +#define glReleaseShaderCompiler GLEW_GET_FUN(__glewReleaseShaderCompiler) +#define glShaderBinary GLEW_GET_FUN(__glewShaderBinary) + +#define GLEW_ARB_ES2_compatibility GLEW_GET_VAR(__GLEW_ARB_ES2_compatibility) + +#endif /* GL_ARB_ES2_compatibility */ + +/* ----------------------- GL_ARB_blend_func_extended ---------------------- */ + +#ifndef GL_ARB_blend_func_extended +#define GL_ARB_blend_func_extended 1 + +#define GL_SRC1_COLOR 0x88F9 +#define GL_ONE_MINUS_SRC1_COLOR 0x88FA +#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB +#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC + +typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const char * name); +typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const char * name); + +#define glBindFragDataLocationIndexed GLEW_GET_FUN(__glewBindFragDataLocationIndexed) +#define glGetFragDataIndex GLEW_GET_FUN(__glewGetFragDataIndex) + +#define GLEW_ARB_blend_func_extended GLEW_GET_VAR(__GLEW_ARB_blend_func_extended) + +#endif /* GL_ARB_blend_func_extended */ + +/* ---------------------------- GL_ARB_cl_event ---------------------------- */ + +#ifndef GL_ARB_cl_event +#define GL_ARB_cl_event 1 + +#define GL_SYNC_CL_EVENT_ARB 0x8240 +#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241 + +typedef struct _cl_context *cl_context; +typedef struct _cl_event *cl_event; + +typedef GLsync (GLAPIENTRY * PFNGLCREATESYNCFROMCLEVENTARBPROC) (cl_context context, cl_event event, GLbitfield flags); + +#define glCreateSyncFromCLeventARB GLEW_GET_FUN(__glewCreateSyncFromCLeventARB) + +#define GLEW_ARB_cl_event GLEW_GET_VAR(__GLEW_ARB_cl_event) + +#endif /* GL_ARB_cl_event */ + +/* ----------------------- GL_ARB_color_buffer_float ----------------------- */ + +#ifndef GL_ARB_color_buffer_float +#define GL_ARB_color_buffer_float 1 + +#define GL_RGBA_FLOAT_MODE_ARB 0x8820 +#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A +#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B +#define GL_CLAMP_READ_COLOR_ARB 0x891C +#define GL_FIXED_ONLY_ARB 0x891D + +typedef void (GLAPIENTRY * PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); + +#define glClampColorARB GLEW_GET_FUN(__glewClampColorARB) + +#define GLEW_ARB_color_buffer_float GLEW_GET_VAR(__GLEW_ARB_color_buffer_float) + +#endif /* GL_ARB_color_buffer_float */ + +/* -------------------------- GL_ARB_compatibility ------------------------- */ + +#ifndef GL_ARB_compatibility +#define GL_ARB_compatibility 1 + +#define GLEW_ARB_compatibility GLEW_GET_VAR(__GLEW_ARB_compatibility) + +#endif /* GL_ARB_compatibility */ + +/* --------------------------- GL_ARB_copy_buffer -------------------------- */ + +#ifndef GL_ARB_copy_buffer +#define GL_ARB_copy_buffer 1 + +#define GL_COPY_READ_BUFFER 0x8F36 +#define GL_COPY_WRITE_BUFFER 0x8F37 + +typedef void (GLAPIENTRY * PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readtarget, GLenum writetarget, GLintptr readoffset, GLintptr writeoffset, GLsizeiptr size); + +#define glCopyBufferSubData GLEW_GET_FUN(__glewCopyBufferSubData) + +#define GLEW_ARB_copy_buffer GLEW_GET_VAR(__GLEW_ARB_copy_buffer) + +#endif /* GL_ARB_copy_buffer */ + +/* -------------------------- GL_ARB_debug_output -------------------------- */ + +#ifndef GL_ARB_debug_output +#define GL_ARB_debug_output 1 + +#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 +#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 +#define GL_DEBUG_SOURCE_API_ARB 0x8246 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 +#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 +#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A +#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B +#define GL_DEBUG_TYPE_ERROR_ARB 0x824C +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E +#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F +#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 +#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 +#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 +#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 +#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 + +typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam); + +typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, void* userParam); +typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); +typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* buf); +typedef GLuint (GLAPIENTRY * PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, char* messageLog); + +#define glDebugMessageCallbackARB GLEW_GET_FUN(__glewDebugMessageCallbackARB) +#define glDebugMessageControlARB GLEW_GET_FUN(__glewDebugMessageControlARB) +#define glDebugMessageInsertARB GLEW_GET_FUN(__glewDebugMessageInsertARB) +#define glGetDebugMessageLogARB GLEW_GET_FUN(__glewGetDebugMessageLogARB) + +#define GLEW_ARB_debug_output GLEW_GET_VAR(__GLEW_ARB_debug_output) + +#endif /* GL_ARB_debug_output */ + +/* ----------------------- GL_ARB_depth_buffer_float ----------------------- */ + +#ifndef GL_ARB_depth_buffer_float +#define GL_ARB_depth_buffer_float 1 + +#define GL_DEPTH_COMPONENT32F 0x8CAC +#define GL_DEPTH32F_STENCIL8 0x8CAD +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD + +#define GLEW_ARB_depth_buffer_float GLEW_GET_VAR(__GLEW_ARB_depth_buffer_float) + +#endif /* GL_ARB_depth_buffer_float */ + +/* --------------------------- GL_ARB_depth_clamp -------------------------- */ + +#ifndef GL_ARB_depth_clamp +#define GL_ARB_depth_clamp 1 + +#define GL_DEPTH_CLAMP 0x864F + +#define GLEW_ARB_depth_clamp GLEW_GET_VAR(__GLEW_ARB_depth_clamp) + +#endif /* GL_ARB_depth_clamp */ + +/* -------------------------- GL_ARB_depth_texture ------------------------- */ + +#ifndef GL_ARB_depth_texture +#define GL_ARB_depth_texture 1 + +#define GL_DEPTH_COMPONENT16_ARB 0x81A5 +#define GL_DEPTH_COMPONENT24_ARB 0x81A6 +#define GL_DEPTH_COMPONENT32_ARB 0x81A7 +#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A +#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B + +#define GLEW_ARB_depth_texture GLEW_GET_VAR(__GLEW_ARB_depth_texture) + +#endif /* GL_ARB_depth_texture */ + +/* -------------------------- GL_ARB_draw_buffers -------------------------- */ + +#ifndef GL_ARB_draw_buffers +#define GL_ARB_draw_buffers 1 + +#define GL_MAX_DRAW_BUFFERS_ARB 0x8824 +#define GL_DRAW_BUFFER0_ARB 0x8825 +#define GL_DRAW_BUFFER1_ARB 0x8826 +#define GL_DRAW_BUFFER2_ARB 0x8827 +#define GL_DRAW_BUFFER3_ARB 0x8828 +#define GL_DRAW_BUFFER4_ARB 0x8829 +#define GL_DRAW_BUFFER5_ARB 0x882A +#define GL_DRAW_BUFFER6_ARB 0x882B +#define GL_DRAW_BUFFER7_ARB 0x882C +#define GL_DRAW_BUFFER8_ARB 0x882D +#define GL_DRAW_BUFFER9_ARB 0x882E +#define GL_DRAW_BUFFER10_ARB 0x882F +#define GL_DRAW_BUFFER11_ARB 0x8830 +#define GL_DRAW_BUFFER12_ARB 0x8831 +#define GL_DRAW_BUFFER13_ARB 0x8832 +#define GL_DRAW_BUFFER14_ARB 0x8833 +#define GL_DRAW_BUFFER15_ARB 0x8834 + +typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum* bufs); + +#define glDrawBuffersARB GLEW_GET_FUN(__glewDrawBuffersARB) + +#define GLEW_ARB_draw_buffers GLEW_GET_VAR(__GLEW_ARB_draw_buffers) + +#endif /* GL_ARB_draw_buffers */ + +/* ----------------------- GL_ARB_draw_buffers_blend ----------------------- */ + +#ifndef GL_ARB_draw_buffers_blend +#define GL_ARB_draw_buffers_blend 1 + +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode); +typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +typedef void (GLAPIENTRY * PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst); + +#define glBlendEquationSeparateiARB GLEW_GET_FUN(__glewBlendEquationSeparateiARB) +#define glBlendEquationiARB GLEW_GET_FUN(__glewBlendEquationiARB) +#define glBlendFuncSeparateiARB GLEW_GET_FUN(__glewBlendFuncSeparateiARB) +#define glBlendFunciARB GLEW_GET_FUN(__glewBlendFunciARB) + +#define GLEW_ARB_draw_buffers_blend GLEW_GET_VAR(__GLEW_ARB_draw_buffers_blend) + +#endif /* GL_ARB_draw_buffers_blend */ + +/* -------------------- GL_ARB_draw_elements_base_vertex ------------------- */ + +#ifndef GL_ARB_draw_elements_base_vertex +#define GL_ARB_draw_elements_base_vertex 1 + +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, void* indices, GLint basevertex); +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount, GLint basevertex); +typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, void* indices, GLint basevertex); +typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei* count, GLenum type, GLvoid**indices, GLsizei primcount, GLint *basevertex); + +#define glDrawElementsBaseVertex GLEW_GET_FUN(__glewDrawElementsBaseVertex) +#define glDrawElementsInstancedBaseVertex GLEW_GET_FUN(__glewDrawElementsInstancedBaseVertex) +#define glDrawRangeElementsBaseVertex GLEW_GET_FUN(__glewDrawRangeElementsBaseVertex) +#define glMultiDrawElementsBaseVertex GLEW_GET_FUN(__glewMultiDrawElementsBaseVertex) + +#define GLEW_ARB_draw_elements_base_vertex GLEW_GET_VAR(__GLEW_ARB_draw_elements_base_vertex) + +#endif /* GL_ARB_draw_elements_base_vertex */ + +/* -------------------------- GL_ARB_draw_indirect ------------------------- */ + +#ifndef GL_ARB_draw_indirect +#define GL_ARB_draw_indirect 1 + +#define GL_DRAW_INDIRECT_BUFFER 0x8F3F +#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43 + +typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void* indirect); +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void* indirect); + +#define glDrawArraysIndirect GLEW_GET_FUN(__glewDrawArraysIndirect) +#define glDrawElementsIndirect GLEW_GET_FUN(__glewDrawElementsIndirect) + +#define GLEW_ARB_draw_indirect GLEW_GET_VAR(__GLEW_ARB_draw_indirect) + +#endif /* GL_ARB_draw_indirect */ + +/* ------------------------- GL_ARB_draw_instanced ------------------------- */ + +#ifndef GL_ARB_draw_instanced +#define GL_ARB_draw_instanced 1 + +typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount); + +#define glDrawArraysInstancedARB GLEW_GET_FUN(__glewDrawArraysInstancedARB) +#define glDrawElementsInstancedARB GLEW_GET_FUN(__glewDrawElementsInstancedARB) + +#define GLEW_ARB_draw_instanced GLEW_GET_VAR(__GLEW_ARB_draw_instanced) + +#endif /* GL_ARB_draw_instanced */ + +/* -------------------- GL_ARB_explicit_attrib_location -------------------- */ + +#ifndef GL_ARB_explicit_attrib_location +#define GL_ARB_explicit_attrib_location 1 + +#define GLEW_ARB_explicit_attrib_location GLEW_GET_VAR(__GLEW_ARB_explicit_attrib_location) + +#endif /* GL_ARB_explicit_attrib_location */ + +/* ------------------- GL_ARB_fragment_coord_conventions ------------------- */ + +#ifndef GL_ARB_fragment_coord_conventions +#define GL_ARB_fragment_coord_conventions 1 + +#define GLEW_ARB_fragment_coord_conventions GLEW_GET_VAR(__GLEW_ARB_fragment_coord_conventions) + +#endif /* GL_ARB_fragment_coord_conventions */ + +/* ------------------------ GL_ARB_fragment_program ------------------------ */ + +#ifndef GL_ARB_fragment_program +#define GL_ARB_fragment_program 1 + +#define GL_FRAGMENT_PROGRAM_ARB 0x8804 +#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805 +#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806 +#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807 +#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808 +#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809 +#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A +#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B +#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C +#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D +#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E +#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F +#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810 +#define GL_MAX_TEXTURE_COORDS_ARB 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872 + +#define GLEW_ARB_fragment_program GLEW_GET_VAR(__GLEW_ARB_fragment_program) + +#endif /* GL_ARB_fragment_program */ + +/* --------------------- GL_ARB_fragment_program_shadow -------------------- */ + +#ifndef GL_ARB_fragment_program_shadow +#define GL_ARB_fragment_program_shadow 1 + +#define GLEW_ARB_fragment_program_shadow GLEW_GET_VAR(__GLEW_ARB_fragment_program_shadow) + +#endif /* GL_ARB_fragment_program_shadow */ + +/* ------------------------- GL_ARB_fragment_shader ------------------------ */ + +#ifndef GL_ARB_fragment_shader +#define GL_ARB_fragment_shader 1 + +#define GL_FRAGMENT_SHADER_ARB 0x8B30 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B + +#define GLEW_ARB_fragment_shader GLEW_GET_VAR(__GLEW_ARB_fragment_shader) + +#endif /* GL_ARB_fragment_shader */ + +/* ----------------------- GL_ARB_framebuffer_object ----------------------- */ + +#ifndef GL_ARB_framebuffer_object +#define GL_ARB_framebuffer_object 1 + +#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 +#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 +#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 +#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 +#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 +#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 +#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 +#define GL_FRAMEBUFFER_DEFAULT 0x8218 +#define GL_FRAMEBUFFER_UNDEFINED 0x8219 +#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A +#define GL_INDEX 0x8222 +#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 +#define GL_DEPTH_STENCIL 0x84F9 +#define GL_UNSIGNED_INT_24_8 0x84FA +#define GL_DEPTH24_STENCIL8 0x88F0 +#define GL_TEXTURE_STENCIL_SIZE 0x88F1 +#define GL_UNSIGNED_NORMALIZED 0x8C17 +#define GL_SRGB 0x8C40 +#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_RENDERBUFFER_BINDING 0x8CA7 +#define GL_READ_FRAMEBUFFER 0x8CA8 +#define GL_DRAW_FRAMEBUFFER 0x8CA9 +#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA +#define GL_RENDERBUFFER_SAMPLES 0x8CAB +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_COLOR_ATTACHMENT1 0x8CE1 +#define GL_COLOR_ATTACHMENT2 0x8CE2 +#define GL_COLOR_ATTACHMENT3 0x8CE3 +#define GL_COLOR_ATTACHMENT4 0x8CE4 +#define GL_COLOR_ATTACHMENT5 0x8CE5 +#define GL_COLOR_ATTACHMENT6 0x8CE6 +#define GL_COLOR_ATTACHMENT7 0x8CE7 +#define GL_COLOR_ATTACHMENT8 0x8CE8 +#define GL_COLOR_ATTACHMENT9 0x8CE9 +#define GL_COLOR_ATTACHMENT10 0x8CEA +#define GL_COLOR_ATTACHMENT11 0x8CEB +#define GL_COLOR_ATTACHMENT12 0x8CEC +#define GL_COLOR_ATTACHMENT13 0x8CED +#define GL_COLOR_ATTACHMENT14 0x8CEE +#define GL_COLOR_ATTACHMENT15 0x8CEF +#define GL_DEPTH_ATTACHMENT 0x8D00 +#define GL_STENCIL_ATTACHMENT 0x8D20 +#define GL_FRAMEBUFFER 0x8D40 +#define GL_RENDERBUFFER 0x8D41 +#define GL_RENDERBUFFER_WIDTH 0x8D42 +#define GL_RENDERBUFFER_HEIGHT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 +#define GL_STENCIL_INDEX1 0x8D46 +#define GL_STENCIL_INDEX4 0x8D47 +#define GL_STENCIL_INDEX8 0x8D48 +#define GL_STENCIL_INDEX16 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 +#define GL_MAX_SAMPLES 0x8D57 + +typedef void (GLAPIENTRY * PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); +typedef void (GLAPIENTRY * PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); +typedef void (GLAPIENTRY * PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +typedef GLenum (GLAPIENTRY * PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint* framebuffers); +typedef void (GLAPIENTRY * PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint* renderbuffers); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint layer); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target,GLenum attachment, GLuint texture,GLint level,GLint layer); +typedef void (GLAPIENTRY * PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint* framebuffers); +typedef void (GLAPIENTRY * PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint* renderbuffers); +typedef void (GLAPIENTRY * PFNGLGENERATEMIPMAPPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); +typedef GLboolean (GLAPIENTRY * PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); +typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + +#define glBindFramebuffer GLEW_GET_FUN(__glewBindFramebuffer) +#define glBindRenderbuffer GLEW_GET_FUN(__glewBindRenderbuffer) +#define glBlitFramebuffer GLEW_GET_FUN(__glewBlitFramebuffer) +#define glCheckFramebufferStatus GLEW_GET_FUN(__glewCheckFramebufferStatus) +#define glDeleteFramebuffers GLEW_GET_FUN(__glewDeleteFramebuffers) +#define glDeleteRenderbuffers GLEW_GET_FUN(__glewDeleteRenderbuffers) +#define glFramebufferRenderbuffer GLEW_GET_FUN(__glewFramebufferRenderbuffer) +#define glFramebufferTexture1D GLEW_GET_FUN(__glewFramebufferTexture1D) +#define glFramebufferTexture2D GLEW_GET_FUN(__glewFramebufferTexture2D) +#define glFramebufferTexture3D GLEW_GET_FUN(__glewFramebufferTexture3D) +#define glFramebufferTextureLayer GLEW_GET_FUN(__glewFramebufferTextureLayer) +#define glGenFramebuffers GLEW_GET_FUN(__glewGenFramebuffers) +#define glGenRenderbuffers GLEW_GET_FUN(__glewGenRenderbuffers) +#define glGenerateMipmap GLEW_GET_FUN(__glewGenerateMipmap) +#define glGetFramebufferAttachmentParameteriv GLEW_GET_FUN(__glewGetFramebufferAttachmentParameteriv) +#define glGetRenderbufferParameteriv GLEW_GET_FUN(__glewGetRenderbufferParameteriv) +#define glIsFramebuffer GLEW_GET_FUN(__glewIsFramebuffer) +#define glIsRenderbuffer GLEW_GET_FUN(__glewIsRenderbuffer) +#define glRenderbufferStorage GLEW_GET_FUN(__glewRenderbufferStorage) +#define glRenderbufferStorageMultisample GLEW_GET_FUN(__glewRenderbufferStorageMultisample) + +#define GLEW_ARB_framebuffer_object GLEW_GET_VAR(__GLEW_ARB_framebuffer_object) + +#endif /* GL_ARB_framebuffer_object */ + +/* ------------------------ GL_ARB_framebuffer_sRGB ------------------------ */ + +#ifndef GL_ARB_framebuffer_sRGB +#define GL_ARB_framebuffer_sRGB 1 + +#define GL_FRAMEBUFFER_SRGB 0x8DB9 + +#define GLEW_ARB_framebuffer_sRGB GLEW_GET_VAR(__GLEW_ARB_framebuffer_sRGB) + +#endif /* GL_ARB_framebuffer_sRGB */ + +/* ------------------------ GL_ARB_geometry_shader4 ------------------------ */ + +#ifndef GL_ARB_geometry_shader4 +#define GL_ARB_geometry_shader4 1 + +#define GL_LINES_ADJACENCY_ARB 0xA +#define GL_LINE_STRIP_ADJACENCY_ARB 0xB +#define GL_TRIANGLES_ADJACENCY_ARB 0xC +#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0xD +#define GL_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9 +#define GL_GEOMETRY_SHADER_ARB 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA +#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB +#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC +#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD +#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1 + +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value); + +#define glFramebufferTextureARB GLEW_GET_FUN(__glewFramebufferTextureARB) +#define glFramebufferTextureFaceARB GLEW_GET_FUN(__glewFramebufferTextureFaceARB) +#define glFramebufferTextureLayerARB GLEW_GET_FUN(__glewFramebufferTextureLayerARB) +#define glProgramParameteriARB GLEW_GET_FUN(__glewProgramParameteriARB) + +#define GLEW_ARB_geometry_shader4 GLEW_GET_VAR(__GLEW_ARB_geometry_shader4) + +#endif /* GL_ARB_geometry_shader4 */ + +/* ----------------------- GL_ARB_get_program_binary ----------------------- */ + +#ifndef GL_ARB_get_program_binary +#define GL_ARB_get_program_binary 1 + +#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 +#define GL_PROGRAM_BINARY_LENGTH 0x8741 +#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE +#define GL_PROGRAM_BINARY_FORMATS 0x87FF + +typedef void (GLAPIENTRY * PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLenum *binaryFormat, GLvoid*binary); +typedef void (GLAPIENTRY * PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void* binary, GLsizei length); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value); + +#define glGetProgramBinary GLEW_GET_FUN(__glewGetProgramBinary) +#define glProgramBinary GLEW_GET_FUN(__glewProgramBinary) +#define glProgramParameteri GLEW_GET_FUN(__glewProgramParameteri) + +#define GLEW_ARB_get_program_binary GLEW_GET_VAR(__GLEW_ARB_get_program_binary) + +#endif /* GL_ARB_get_program_binary */ + +/* --------------------------- GL_ARB_gpu_shader5 -------------------------- */ + +#ifndef GL_ARB_gpu_shader5 +#define GL_ARB_gpu_shader5 1 + +#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F +#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A +#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B +#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C +#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D +#define GL_MAX_VERTEX_STREAMS 0x8E71 + +#define GLEW_ARB_gpu_shader5 GLEW_GET_VAR(__GLEW_ARB_gpu_shader5) + +#endif /* GL_ARB_gpu_shader5 */ + +/* ------------------------- GL_ARB_gpu_shader_fp64 ------------------------ */ + +#ifndef GL_ARB_gpu_shader_fp64 +#define GL_ARB_gpu_shader_fp64 1 + +#define GL_DOUBLE_MAT2 0x8F46 +#define GL_DOUBLE_MAT3 0x8F47 +#define GL_DOUBLE_MAT4 0x8F48 +#define GL_DOUBLE_MAT2x3 0x8F49 +#define GL_DOUBLE_MAT2x4 0x8F4A +#define GL_DOUBLE_MAT3x2 0x8F4B +#define GL_DOUBLE_MAT3x4 0x8F4C +#define GL_DOUBLE_MAT4x2 0x8F4D +#define GL_DOUBLE_MAT4x3 0x8F4E +#define GL_DOUBLE_VEC2 0x8FFC +#define GL_DOUBLE_VEC3 0x8FFD +#define GL_DOUBLE_VEC4 0x8FFE + +typedef void (GLAPIENTRY * PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM1DPROC) (GLint location, GLdouble x); +typedef void (GLAPIENTRY * PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + +#define glGetUniformdv GLEW_GET_FUN(__glewGetUniformdv) +#define glProgramUniform1dEXT GLEW_GET_FUN(__glewProgramUniform1dEXT) +#define glProgramUniform1dvEXT GLEW_GET_FUN(__glewProgramUniform1dvEXT) +#define glProgramUniform2dEXT GLEW_GET_FUN(__glewProgramUniform2dEXT) +#define glProgramUniform2dvEXT GLEW_GET_FUN(__glewProgramUniform2dvEXT) +#define glProgramUniform3dEXT GLEW_GET_FUN(__glewProgramUniform3dEXT) +#define glProgramUniform3dvEXT GLEW_GET_FUN(__glewProgramUniform3dvEXT) +#define glProgramUniform4dEXT GLEW_GET_FUN(__glewProgramUniform4dEXT) +#define glProgramUniform4dvEXT GLEW_GET_FUN(__glewProgramUniform4dvEXT) +#define glProgramUniformMatrix2dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2dvEXT) +#define glProgramUniformMatrix2x3dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2x3dvEXT) +#define glProgramUniformMatrix2x4dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2x4dvEXT) +#define glProgramUniformMatrix3dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3dvEXT) +#define glProgramUniformMatrix3x2dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3x2dvEXT) +#define glProgramUniformMatrix3x4dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3x4dvEXT) +#define glProgramUniformMatrix4dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4dvEXT) +#define glProgramUniformMatrix4x2dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4x2dvEXT) +#define glProgramUniformMatrix4x3dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4x3dvEXT) +#define glUniform1d GLEW_GET_FUN(__glewUniform1d) +#define glUniform1dv GLEW_GET_FUN(__glewUniform1dv) +#define glUniform2d GLEW_GET_FUN(__glewUniform2d) +#define glUniform2dv GLEW_GET_FUN(__glewUniform2dv) +#define glUniform3d GLEW_GET_FUN(__glewUniform3d) +#define glUniform3dv GLEW_GET_FUN(__glewUniform3dv) +#define glUniform4d GLEW_GET_FUN(__glewUniform4d) +#define glUniform4dv GLEW_GET_FUN(__glewUniform4dv) +#define glUniformMatrix2dv GLEW_GET_FUN(__glewUniformMatrix2dv) +#define glUniformMatrix2x3dv GLEW_GET_FUN(__glewUniformMatrix2x3dv) +#define glUniformMatrix2x4dv GLEW_GET_FUN(__glewUniformMatrix2x4dv) +#define glUniformMatrix3dv GLEW_GET_FUN(__glewUniformMatrix3dv) +#define glUniformMatrix3x2dv GLEW_GET_FUN(__glewUniformMatrix3x2dv) +#define glUniformMatrix3x4dv GLEW_GET_FUN(__glewUniformMatrix3x4dv) +#define glUniformMatrix4dv GLEW_GET_FUN(__glewUniformMatrix4dv) +#define glUniformMatrix4x2dv GLEW_GET_FUN(__glewUniformMatrix4x2dv) +#define glUniformMatrix4x3dv GLEW_GET_FUN(__glewUniformMatrix4x3dv) + +#define GLEW_ARB_gpu_shader_fp64 GLEW_GET_VAR(__GLEW_ARB_gpu_shader_fp64) + +#endif /* GL_ARB_gpu_shader_fp64 */ + +/* ------------------------ GL_ARB_half_float_pixel ------------------------ */ + +#ifndef GL_ARB_half_float_pixel +#define GL_ARB_half_float_pixel 1 + +#define GL_HALF_FLOAT_ARB 0x140B + +#define GLEW_ARB_half_float_pixel GLEW_GET_VAR(__GLEW_ARB_half_float_pixel) + +#endif /* GL_ARB_half_float_pixel */ + +/* ------------------------ GL_ARB_half_float_vertex ----------------------- */ + +#ifndef GL_ARB_half_float_vertex +#define GL_ARB_half_float_vertex 1 + +#define GL_HALF_FLOAT 0x140B + +#define GLEW_ARB_half_float_vertex GLEW_GET_VAR(__GLEW_ARB_half_float_vertex) + +#endif /* GL_ARB_half_float_vertex */ + +/* ----------------------------- GL_ARB_imaging ---------------------------- */ + +#ifndef GL_ARB_imaging +#define GL_ARB_imaging 1 + +#define GL_CONSTANT_COLOR 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 +#define GL_CONSTANT_ALPHA 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 +#define GL_BLEND_COLOR 0x8005 +#define GL_FUNC_ADD 0x8006 +#define GL_MIN 0x8007 +#define GL_MAX 0x8008 +#define GL_BLEND_EQUATION 0x8009 +#define GL_FUNC_SUBTRACT 0x800A +#define GL_FUNC_REVERSE_SUBTRACT 0x800B +#define GL_CONVOLUTION_1D 0x8010 +#define GL_CONVOLUTION_2D 0x8011 +#define GL_SEPARABLE_2D 0x8012 +#define GL_CONVOLUTION_BORDER_MODE 0x8013 +#define GL_CONVOLUTION_FILTER_SCALE 0x8014 +#define GL_CONVOLUTION_FILTER_BIAS 0x8015 +#define GL_REDUCE 0x8016 +#define GL_CONVOLUTION_FORMAT 0x8017 +#define GL_CONVOLUTION_WIDTH 0x8018 +#define GL_CONVOLUTION_HEIGHT 0x8019 +#define GL_MAX_CONVOLUTION_WIDTH 0x801A +#define GL_MAX_CONVOLUTION_HEIGHT 0x801B +#define GL_POST_CONVOLUTION_RED_SCALE 0x801C +#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D +#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E +#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F +#define GL_POST_CONVOLUTION_RED_BIAS 0x8020 +#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021 +#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022 +#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023 +#define GL_HISTOGRAM 0x8024 +#define GL_PROXY_HISTOGRAM 0x8025 +#define GL_HISTOGRAM_WIDTH 0x8026 +#define GL_HISTOGRAM_FORMAT 0x8027 +#define GL_HISTOGRAM_RED_SIZE 0x8028 +#define GL_HISTOGRAM_GREEN_SIZE 0x8029 +#define GL_HISTOGRAM_BLUE_SIZE 0x802A +#define GL_HISTOGRAM_ALPHA_SIZE 0x802B +#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C +#define GL_HISTOGRAM_SINK 0x802D +#define GL_MINMAX 0x802E +#define GL_MINMAX_FORMAT 0x802F +#define GL_MINMAX_SINK 0x8030 +#define GL_TABLE_TOO_LARGE 0x8031 +#define GL_COLOR_MATRIX 0x80B1 +#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 +#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3 +#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4 +#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5 +#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6 +#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7 +#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 +#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 +#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB +#define GL_COLOR_TABLE 0x80D0 +#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 +#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 +#define GL_PROXY_COLOR_TABLE 0x80D3 +#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4 +#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5 +#define GL_COLOR_TABLE_SCALE 0x80D6 +#define GL_COLOR_TABLE_BIAS 0x80D7 +#define GL_COLOR_TABLE_FORMAT 0x80D8 +#define GL_COLOR_TABLE_WIDTH 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF +#define GL_IGNORE_BORDER 0x8150 +#define GL_CONSTANT_BORDER 0x8151 +#define GL_WRAP_BORDER 0x8152 +#define GL_REPLICATE_BORDER 0x8153 +#define GL_CONVOLUTION_BORDER_COLOR 0x8154 + +typedef void (GLAPIENTRY * PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); +typedef void (GLAPIENTRY * PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); +typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); +typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); +typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values); +typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); +typedef void (GLAPIENTRY * PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); +typedef void (GLAPIENTRY * PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); +typedef void (GLAPIENTRY * PFNGLRESETHISTOGRAMPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLRESETMINMAXPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); + +#define glColorSubTable GLEW_GET_FUN(__glewColorSubTable) +#define glColorTable GLEW_GET_FUN(__glewColorTable) +#define glColorTableParameterfv GLEW_GET_FUN(__glewColorTableParameterfv) +#define glColorTableParameteriv GLEW_GET_FUN(__glewColorTableParameteriv) +#define glConvolutionFilter1D GLEW_GET_FUN(__glewConvolutionFilter1D) +#define glConvolutionFilter2D GLEW_GET_FUN(__glewConvolutionFilter2D) +#define glConvolutionParameterf GLEW_GET_FUN(__glewConvolutionParameterf) +#define glConvolutionParameterfv GLEW_GET_FUN(__glewConvolutionParameterfv) +#define glConvolutionParameteri GLEW_GET_FUN(__glewConvolutionParameteri) +#define glConvolutionParameteriv GLEW_GET_FUN(__glewConvolutionParameteriv) +#define glCopyColorSubTable GLEW_GET_FUN(__glewCopyColorSubTable) +#define glCopyColorTable GLEW_GET_FUN(__glewCopyColorTable) +#define glCopyConvolutionFilter1D GLEW_GET_FUN(__glewCopyConvolutionFilter1D) +#define glCopyConvolutionFilter2D GLEW_GET_FUN(__glewCopyConvolutionFilter2D) +#define glGetColorTable GLEW_GET_FUN(__glewGetColorTable) +#define glGetColorTableParameterfv GLEW_GET_FUN(__glewGetColorTableParameterfv) +#define glGetColorTableParameteriv GLEW_GET_FUN(__glewGetColorTableParameteriv) +#define glGetConvolutionFilter GLEW_GET_FUN(__glewGetConvolutionFilter) +#define glGetConvolutionParameterfv GLEW_GET_FUN(__glewGetConvolutionParameterfv) +#define glGetConvolutionParameteriv GLEW_GET_FUN(__glewGetConvolutionParameteriv) +#define glGetHistogram GLEW_GET_FUN(__glewGetHistogram) +#define glGetHistogramParameterfv GLEW_GET_FUN(__glewGetHistogramParameterfv) +#define glGetHistogramParameteriv GLEW_GET_FUN(__glewGetHistogramParameteriv) +#define glGetMinmax GLEW_GET_FUN(__glewGetMinmax) +#define glGetMinmaxParameterfv GLEW_GET_FUN(__glewGetMinmaxParameterfv) +#define glGetMinmaxParameteriv GLEW_GET_FUN(__glewGetMinmaxParameteriv) +#define glGetSeparableFilter GLEW_GET_FUN(__glewGetSeparableFilter) +#define glHistogram GLEW_GET_FUN(__glewHistogram) +#define glMinmax GLEW_GET_FUN(__glewMinmax) +#define glResetHistogram GLEW_GET_FUN(__glewResetHistogram) +#define glResetMinmax GLEW_GET_FUN(__glewResetMinmax) +#define glSeparableFilter2D GLEW_GET_FUN(__glewSeparableFilter2D) + +#define GLEW_ARB_imaging GLEW_GET_VAR(__GLEW_ARB_imaging) + +#endif /* GL_ARB_imaging */ + +/* ------------------------ GL_ARB_instanced_arrays ------------------------ */ + +#ifndef GL_ARB_instanced_arrays +#define GL_ARB_instanced_arrays 1 + +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE + +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor); + +#define glVertexAttribDivisorARB GLEW_GET_FUN(__glewVertexAttribDivisorARB) + +#define GLEW_ARB_instanced_arrays GLEW_GET_VAR(__GLEW_ARB_instanced_arrays) + +#endif /* GL_ARB_instanced_arrays */ + +/* ------------------------ GL_ARB_map_buffer_range ------------------------ */ + +#ifndef GL_ARB_map_buffer_range +#define GL_ARB_map_buffer_range 1 + +#define GL_MAP_READ_BIT 0x0001 +#define GL_MAP_WRITE_BIT 0x0002 +#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 +#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 +#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 +#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 + +typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); +typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); + +#define glFlushMappedBufferRange GLEW_GET_FUN(__glewFlushMappedBufferRange) +#define glMapBufferRange GLEW_GET_FUN(__glewMapBufferRange) + +#define GLEW_ARB_map_buffer_range GLEW_GET_VAR(__GLEW_ARB_map_buffer_range) + +#endif /* GL_ARB_map_buffer_range */ + +/* ------------------------- GL_ARB_matrix_palette ------------------------- */ + +#ifndef GL_ARB_matrix_palette +#define GL_ARB_matrix_palette 1 + +#define GL_MATRIX_PALETTE_ARB 0x8840 +#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841 +#define GL_MAX_PALETTE_MATRICES_ARB 0x8842 +#define GL_CURRENT_PALETTE_MATRIX_ARB 0x8843 +#define GL_MATRIX_INDEX_ARRAY_ARB 0x8844 +#define GL_CURRENT_MATRIX_INDEX_ARB 0x8845 +#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846 +#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847 +#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848 +#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849 + +typedef void (GLAPIENTRY * PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); +typedef void (GLAPIENTRY * PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUBVARBPROC) (GLint size, GLubyte *indices); +typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUIVARBPROC) (GLint size, GLuint *indices); +typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUSVARBPROC) (GLint size, GLushort *indices); + +#define glCurrentPaletteMatrixARB GLEW_GET_FUN(__glewCurrentPaletteMatrixARB) +#define glMatrixIndexPointerARB GLEW_GET_FUN(__glewMatrixIndexPointerARB) +#define glMatrixIndexubvARB GLEW_GET_FUN(__glewMatrixIndexubvARB) +#define glMatrixIndexuivARB GLEW_GET_FUN(__glewMatrixIndexuivARB) +#define glMatrixIndexusvARB GLEW_GET_FUN(__glewMatrixIndexusvARB) + +#define GLEW_ARB_matrix_palette GLEW_GET_VAR(__GLEW_ARB_matrix_palette) + +#endif /* GL_ARB_matrix_palette */ + +/* --------------------------- GL_ARB_multisample -------------------------- */ + +#ifndef GL_ARB_multisample +#define GL_ARB_multisample 1 + +#define GL_MULTISAMPLE_ARB 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F +#define GL_SAMPLE_COVERAGE_ARB 0x80A0 +#define GL_SAMPLE_BUFFERS_ARB 0x80A8 +#define GL_SAMPLES_ARB 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB +#define GL_MULTISAMPLE_BIT_ARB 0x20000000 + +typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert); + +#define glSampleCoverageARB GLEW_GET_FUN(__glewSampleCoverageARB) + +#define GLEW_ARB_multisample GLEW_GET_VAR(__GLEW_ARB_multisample) + +#endif /* GL_ARB_multisample */ + +/* -------------------------- GL_ARB_multitexture -------------------------- */ + +#ifndef GL_ARB_multitexture +#define GL_ARB_multitexture 1 + +#define GL_TEXTURE0_ARB 0x84C0 +#define GL_TEXTURE1_ARB 0x84C1 +#define GL_TEXTURE2_ARB 0x84C2 +#define GL_TEXTURE3_ARB 0x84C3 +#define GL_TEXTURE4_ARB 0x84C4 +#define GL_TEXTURE5_ARB 0x84C5 +#define GL_TEXTURE6_ARB 0x84C6 +#define GL_TEXTURE7_ARB 0x84C7 +#define GL_TEXTURE8_ARB 0x84C8 +#define GL_TEXTURE9_ARB 0x84C9 +#define GL_TEXTURE10_ARB 0x84CA +#define GL_TEXTURE11_ARB 0x84CB +#define GL_TEXTURE12_ARB 0x84CC +#define GL_TEXTURE13_ARB 0x84CD +#define GL_TEXTURE14_ARB 0x84CE +#define GL_TEXTURE15_ARB 0x84CF +#define GL_TEXTURE16_ARB 0x84D0 +#define GL_TEXTURE17_ARB 0x84D1 +#define GL_TEXTURE18_ARB 0x84D2 +#define GL_TEXTURE19_ARB 0x84D3 +#define GL_TEXTURE20_ARB 0x84D4 +#define GL_TEXTURE21_ARB 0x84D5 +#define GL_TEXTURE22_ARB 0x84D6 +#define GL_TEXTURE23_ARB 0x84D7 +#define GL_TEXTURE24_ARB 0x84D8 +#define GL_TEXTURE25_ARB 0x84D9 +#define GL_TEXTURE26_ARB 0x84DA +#define GL_TEXTURE27_ARB 0x84DB +#define GL_TEXTURE28_ARB 0x84DC +#define GL_TEXTURE29_ARB 0x84DD +#define GL_TEXTURE30_ARB 0x84DE +#define GL_TEXTURE31_ARB 0x84DF +#define GL_ACTIVE_TEXTURE_ARB 0x84E0 +#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 +#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 + +typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum texture); +typedef void (GLAPIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); + +#define glActiveTextureARB GLEW_GET_FUN(__glewActiveTextureARB) +#define glClientActiveTextureARB GLEW_GET_FUN(__glewClientActiveTextureARB) +#define glMultiTexCoord1dARB GLEW_GET_FUN(__glewMultiTexCoord1dARB) +#define glMultiTexCoord1dvARB GLEW_GET_FUN(__glewMultiTexCoord1dvARB) +#define glMultiTexCoord1fARB GLEW_GET_FUN(__glewMultiTexCoord1fARB) +#define glMultiTexCoord1fvARB GLEW_GET_FUN(__glewMultiTexCoord1fvARB) +#define glMultiTexCoord1iARB GLEW_GET_FUN(__glewMultiTexCoord1iARB) +#define glMultiTexCoord1ivARB GLEW_GET_FUN(__glewMultiTexCoord1ivARB) +#define glMultiTexCoord1sARB GLEW_GET_FUN(__glewMultiTexCoord1sARB) +#define glMultiTexCoord1svARB GLEW_GET_FUN(__glewMultiTexCoord1svARB) +#define glMultiTexCoord2dARB GLEW_GET_FUN(__glewMultiTexCoord2dARB) +#define glMultiTexCoord2dvARB GLEW_GET_FUN(__glewMultiTexCoord2dvARB) +#define glMultiTexCoord2fARB GLEW_GET_FUN(__glewMultiTexCoord2fARB) +#define glMultiTexCoord2fvARB GLEW_GET_FUN(__glewMultiTexCoord2fvARB) +#define glMultiTexCoord2iARB GLEW_GET_FUN(__glewMultiTexCoord2iARB) +#define glMultiTexCoord2ivARB GLEW_GET_FUN(__glewMultiTexCoord2ivARB) +#define glMultiTexCoord2sARB GLEW_GET_FUN(__glewMultiTexCoord2sARB) +#define glMultiTexCoord2svARB GLEW_GET_FUN(__glewMultiTexCoord2svARB) +#define glMultiTexCoord3dARB GLEW_GET_FUN(__glewMultiTexCoord3dARB) +#define glMultiTexCoord3dvARB GLEW_GET_FUN(__glewMultiTexCoord3dvARB) +#define glMultiTexCoord3fARB GLEW_GET_FUN(__glewMultiTexCoord3fARB) +#define glMultiTexCoord3fvARB GLEW_GET_FUN(__glewMultiTexCoord3fvARB) +#define glMultiTexCoord3iARB GLEW_GET_FUN(__glewMultiTexCoord3iARB) +#define glMultiTexCoord3ivARB GLEW_GET_FUN(__glewMultiTexCoord3ivARB) +#define glMultiTexCoord3sARB GLEW_GET_FUN(__glewMultiTexCoord3sARB) +#define glMultiTexCoord3svARB GLEW_GET_FUN(__glewMultiTexCoord3svARB) +#define glMultiTexCoord4dARB GLEW_GET_FUN(__glewMultiTexCoord4dARB) +#define glMultiTexCoord4dvARB GLEW_GET_FUN(__glewMultiTexCoord4dvARB) +#define glMultiTexCoord4fARB GLEW_GET_FUN(__glewMultiTexCoord4fARB) +#define glMultiTexCoord4fvARB GLEW_GET_FUN(__glewMultiTexCoord4fvARB) +#define glMultiTexCoord4iARB GLEW_GET_FUN(__glewMultiTexCoord4iARB) +#define glMultiTexCoord4ivARB GLEW_GET_FUN(__glewMultiTexCoord4ivARB) +#define glMultiTexCoord4sARB GLEW_GET_FUN(__glewMultiTexCoord4sARB) +#define glMultiTexCoord4svARB GLEW_GET_FUN(__glewMultiTexCoord4svARB) + +#define GLEW_ARB_multitexture GLEW_GET_VAR(__GLEW_ARB_multitexture) + +#endif /* GL_ARB_multitexture */ + +/* ------------------------- GL_ARB_occlusion_query ------------------------ */ + +#ifndef GL_ARB_occlusion_query +#define GL_ARB_occlusion_query 1 + +#define GL_QUERY_COUNTER_BITS_ARB 0x8864 +#define GL_CURRENT_QUERY_ARB 0x8865 +#define GL_QUERY_RESULT_ARB 0x8866 +#define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867 +#define GL_SAMPLES_PASSED_ARB 0x8914 + +typedef void (GLAPIENTRY * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); +typedef void (GLAPIENTRY * PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint* ids); +typedef void (GLAPIENTRY * PFNGLENDQUERYARBPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint* ids); +typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint* params); +typedef void (GLAPIENTRY * PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISQUERYARBPROC) (GLuint id); + +#define glBeginQueryARB GLEW_GET_FUN(__glewBeginQueryARB) +#define glDeleteQueriesARB GLEW_GET_FUN(__glewDeleteQueriesARB) +#define glEndQueryARB GLEW_GET_FUN(__glewEndQueryARB) +#define glGenQueriesARB GLEW_GET_FUN(__glewGenQueriesARB) +#define glGetQueryObjectivARB GLEW_GET_FUN(__glewGetQueryObjectivARB) +#define glGetQueryObjectuivARB GLEW_GET_FUN(__glewGetQueryObjectuivARB) +#define glGetQueryivARB GLEW_GET_FUN(__glewGetQueryivARB) +#define glIsQueryARB GLEW_GET_FUN(__glewIsQueryARB) + +#define GLEW_ARB_occlusion_query GLEW_GET_VAR(__GLEW_ARB_occlusion_query) + +#endif /* GL_ARB_occlusion_query */ + +/* ------------------------ GL_ARB_occlusion_query2 ------------------------ */ + +#ifndef GL_ARB_occlusion_query2 +#define GL_ARB_occlusion_query2 1 + +#define GL_ANY_SAMPLES_PASSED 0x8C2F + +#define GLEW_ARB_occlusion_query2 GLEW_GET_VAR(__GLEW_ARB_occlusion_query2) + +#endif /* GL_ARB_occlusion_query2 */ + +/* ----------------------- GL_ARB_pixel_buffer_object ---------------------- */ + +#ifndef GL_ARB_pixel_buffer_object +#define GL_ARB_pixel_buffer_object 1 + +#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF + +#define GLEW_ARB_pixel_buffer_object GLEW_GET_VAR(__GLEW_ARB_pixel_buffer_object) + +#endif /* GL_ARB_pixel_buffer_object */ + +/* ------------------------ GL_ARB_point_parameters ------------------------ */ + +#ifndef GL_ARB_point_parameters +#define GL_ARB_point_parameters 1 + +#define GL_POINT_SIZE_MIN_ARB 0x8126 +#define GL_POINT_SIZE_MAX_ARB 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128 +#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129 + +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat* params); + +#define glPointParameterfARB GLEW_GET_FUN(__glewPointParameterfARB) +#define glPointParameterfvARB GLEW_GET_FUN(__glewPointParameterfvARB) + +#define GLEW_ARB_point_parameters GLEW_GET_VAR(__GLEW_ARB_point_parameters) + +#endif /* GL_ARB_point_parameters */ + +/* -------------------------- GL_ARB_point_sprite -------------------------- */ + +#ifndef GL_ARB_point_sprite +#define GL_ARB_point_sprite 1 + +#define GL_POINT_SPRITE_ARB 0x8861 +#define GL_COORD_REPLACE_ARB 0x8862 + +#define GLEW_ARB_point_sprite GLEW_GET_VAR(__GLEW_ARB_point_sprite) + +#endif /* GL_ARB_point_sprite */ + +/* ------------------------ GL_ARB_provoking_vertex ------------------------ */ + +#ifndef GL_ARB_provoking_vertex +#define GL_ARB_provoking_vertex 1 + +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C +#define GL_FIRST_VERTEX_CONVENTION 0x8E4D +#define GL_LAST_VERTEX_CONVENTION 0x8E4E +#define GL_PROVOKING_VERTEX 0x8E4F + +typedef void (GLAPIENTRY * PFNGLPROVOKINGVERTEXPROC) (GLenum mode); + +#define glProvokingVertex GLEW_GET_FUN(__glewProvokingVertex) + +#define GLEW_ARB_provoking_vertex GLEW_GET_VAR(__GLEW_ARB_provoking_vertex) + +#endif /* GL_ARB_provoking_vertex */ + +/* --------------------------- GL_ARB_robustness --------------------------- */ + +#ifndef GL_ARB_robustness +#define GL_ARB_robustness 1 + +#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 +#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 +#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 +#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 + +typedef void (GLAPIENTRY * PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table); +typedef void (GLAPIENTRY * PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void* img); +typedef void (GLAPIENTRY * PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image); +typedef void (GLAPIENTRY * PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); +typedef void (GLAPIENTRY * PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble* v); +typedef void (GLAPIENTRY * PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat* v); +typedef void (GLAPIENTRY * PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint* v); +typedef void (GLAPIENTRY * PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); +typedef void (GLAPIENTRY * PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat* values); +typedef void (GLAPIENTRY * PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint* values); +typedef void (GLAPIENTRY * PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort* values); +typedef void (GLAPIENTRY * PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte* pattern); +typedef void (GLAPIENTRY * PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, GLvoid*column, GLvoid*span); +typedef void (GLAPIENTRY * PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* img); +typedef void (GLAPIENTRY * PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint* params); +typedef void (GLAPIENTRY * PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data); + +#define glGetnColorTableARB GLEW_GET_FUN(__glewGetnColorTableARB) +#define glGetnCompressedTexImageARB GLEW_GET_FUN(__glewGetnCompressedTexImageARB) +#define glGetnConvolutionFilterARB GLEW_GET_FUN(__glewGetnConvolutionFilterARB) +#define glGetnHistogramARB GLEW_GET_FUN(__glewGetnHistogramARB) +#define glGetnMapdvARB GLEW_GET_FUN(__glewGetnMapdvARB) +#define glGetnMapfvARB GLEW_GET_FUN(__glewGetnMapfvARB) +#define glGetnMapivARB GLEW_GET_FUN(__glewGetnMapivARB) +#define glGetnMinmaxARB GLEW_GET_FUN(__glewGetnMinmaxARB) +#define glGetnPixelMapfvARB GLEW_GET_FUN(__glewGetnPixelMapfvARB) +#define glGetnPixelMapuivARB GLEW_GET_FUN(__glewGetnPixelMapuivARB) +#define glGetnPixelMapusvARB GLEW_GET_FUN(__glewGetnPixelMapusvARB) +#define glGetnPolygonStippleARB GLEW_GET_FUN(__glewGetnPolygonStippleARB) +#define glGetnSeparableFilterARB GLEW_GET_FUN(__glewGetnSeparableFilterARB) +#define glGetnTexImageARB GLEW_GET_FUN(__glewGetnTexImageARB) +#define glGetnUniformdvARB GLEW_GET_FUN(__glewGetnUniformdvARB) +#define glGetnUniformfvARB GLEW_GET_FUN(__glewGetnUniformfvARB) +#define glGetnUniformivARB GLEW_GET_FUN(__glewGetnUniformivARB) +#define glGetnUniformuivARB GLEW_GET_FUN(__glewGetnUniformuivARB) +#define glReadnPixelsARB GLEW_GET_FUN(__glewReadnPixelsARB) + +#define GLEW_ARB_robustness GLEW_GET_VAR(__GLEW_ARB_robustness) + +#endif /* GL_ARB_robustness */ + +/* ------------------------- GL_ARB_sample_shading ------------------------- */ + +#ifndef GL_ARB_sample_shading +#define GL_ARB_sample_shading 1 + +#define GL_SAMPLE_SHADING_ARB 0x8C36 +#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37 + +typedef void (GLAPIENTRY * PFNGLMINSAMPLESHADINGARBPROC) (GLclampf value); + +#define glMinSampleShadingARB GLEW_GET_FUN(__glewMinSampleShadingARB) + +#define GLEW_ARB_sample_shading GLEW_GET_VAR(__GLEW_ARB_sample_shading) + +#endif /* GL_ARB_sample_shading */ + +/* ------------------------- GL_ARB_sampler_objects ------------------------ */ + +#ifndef GL_ARB_sampler_objects +#define GL_ARB_sampler_objects 1 + +#define GL_SAMPLER_BINDING 0x8919 + +typedef void (GLAPIENTRY * PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); +typedef void (GLAPIENTRY * PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint * samplers); +typedef void (GLAPIENTRY * PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint* samplers); +typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint* params); +typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISSAMPLERPROC) (GLuint sampler); +typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint* params); +typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint* params); + +#define glBindSampler GLEW_GET_FUN(__glewBindSampler) +#define glDeleteSamplers GLEW_GET_FUN(__glewDeleteSamplers) +#define glGenSamplers GLEW_GET_FUN(__glewGenSamplers) +#define glGetSamplerParameterIiv GLEW_GET_FUN(__glewGetSamplerParameterIiv) +#define glGetSamplerParameterIuiv GLEW_GET_FUN(__glewGetSamplerParameterIuiv) +#define glGetSamplerParameterfv GLEW_GET_FUN(__glewGetSamplerParameterfv) +#define glGetSamplerParameteriv GLEW_GET_FUN(__glewGetSamplerParameteriv) +#define glIsSampler GLEW_GET_FUN(__glewIsSampler) +#define glSamplerParameterIiv GLEW_GET_FUN(__glewSamplerParameterIiv) +#define glSamplerParameterIuiv GLEW_GET_FUN(__glewSamplerParameterIuiv) +#define glSamplerParameterf GLEW_GET_FUN(__glewSamplerParameterf) +#define glSamplerParameterfv GLEW_GET_FUN(__glewSamplerParameterfv) +#define glSamplerParameteri GLEW_GET_FUN(__glewSamplerParameteri) +#define glSamplerParameteriv GLEW_GET_FUN(__glewSamplerParameteriv) + +#define GLEW_ARB_sampler_objects GLEW_GET_VAR(__GLEW_ARB_sampler_objects) + +#endif /* GL_ARB_sampler_objects */ + +/* ------------------------ GL_ARB_seamless_cube_map ----------------------- */ + +#ifndef GL_ARB_seamless_cube_map +#define GL_ARB_seamless_cube_map 1 + +#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F + +#define GLEW_ARB_seamless_cube_map GLEW_GET_VAR(__GLEW_ARB_seamless_cube_map) + +#endif /* GL_ARB_seamless_cube_map */ + +/* --------------------- GL_ARB_separate_shader_objects -------------------- */ + +#ifndef GL_ARB_separate_shader_objects +#define GL_ARB_separate_shader_objects 1 + +#define GL_VERTEX_SHADER_BIT 0x00000001 +#define GL_FRAGMENT_SHADER_BIT 0x00000002 +#define GL_GEOMETRY_SHADER_BIT 0x00000004 +#define GL_TESS_CONTROL_SHADER_BIT 0x00000008 +#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010 +#define GL_PROGRAM_SEPARABLE 0x8258 +#define GL_ACTIVE_PROGRAM 0x8259 +#define GL_PROGRAM_PIPELINE_BINDING 0x825A +#define GL_ALL_SHADER_BITS 0xFFFFFFFF + +typedef void (GLAPIENTRY * PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program); +typedef void (GLAPIENTRY * PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline); +typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const char ** strings); +typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint* pipelines); +typedef void (GLAPIENTRY * PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint* pipelines); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei* length, char *infoLog); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble x); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat x); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint x); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint x); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint x, GLint y); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint x, GLuint y); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint x, GLuint y, GLuint z); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program); +typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline); + +#define glActiveShaderProgram GLEW_GET_FUN(__glewActiveShaderProgram) +#define glBindProgramPipeline GLEW_GET_FUN(__glewBindProgramPipeline) +#define glCreateShaderProgramv GLEW_GET_FUN(__glewCreateShaderProgramv) +#define glDeleteProgramPipelines GLEW_GET_FUN(__glewDeleteProgramPipelines) +#define glGenProgramPipelines GLEW_GET_FUN(__glewGenProgramPipelines) +#define glGetProgramPipelineInfoLog GLEW_GET_FUN(__glewGetProgramPipelineInfoLog) +#define glGetProgramPipelineiv GLEW_GET_FUN(__glewGetProgramPipelineiv) +#define glIsProgramPipeline GLEW_GET_FUN(__glewIsProgramPipeline) +#define glProgramUniform1d GLEW_GET_FUN(__glewProgramUniform1d) +#define glProgramUniform1dv GLEW_GET_FUN(__glewProgramUniform1dv) +#define glProgramUniform1f GLEW_GET_FUN(__glewProgramUniform1f) +#define glProgramUniform1fv GLEW_GET_FUN(__glewProgramUniform1fv) +#define glProgramUniform1i GLEW_GET_FUN(__glewProgramUniform1i) +#define glProgramUniform1iv GLEW_GET_FUN(__glewProgramUniform1iv) +#define glProgramUniform1ui GLEW_GET_FUN(__glewProgramUniform1ui) +#define glProgramUniform1uiv GLEW_GET_FUN(__glewProgramUniform1uiv) +#define glProgramUniform2d GLEW_GET_FUN(__glewProgramUniform2d) +#define glProgramUniform2dv GLEW_GET_FUN(__glewProgramUniform2dv) +#define glProgramUniform2f GLEW_GET_FUN(__glewProgramUniform2f) +#define glProgramUniform2fv GLEW_GET_FUN(__glewProgramUniform2fv) +#define glProgramUniform2i GLEW_GET_FUN(__glewProgramUniform2i) +#define glProgramUniform2iv GLEW_GET_FUN(__glewProgramUniform2iv) +#define glProgramUniform2ui GLEW_GET_FUN(__glewProgramUniform2ui) +#define glProgramUniform2uiv GLEW_GET_FUN(__glewProgramUniform2uiv) +#define glProgramUniform3d GLEW_GET_FUN(__glewProgramUniform3d) +#define glProgramUniform3dv GLEW_GET_FUN(__glewProgramUniform3dv) +#define glProgramUniform3f GLEW_GET_FUN(__glewProgramUniform3f) +#define glProgramUniform3fv GLEW_GET_FUN(__glewProgramUniform3fv) +#define glProgramUniform3i GLEW_GET_FUN(__glewProgramUniform3i) +#define glProgramUniform3iv GLEW_GET_FUN(__glewProgramUniform3iv) +#define glProgramUniform3ui GLEW_GET_FUN(__glewProgramUniform3ui) +#define glProgramUniform3uiv GLEW_GET_FUN(__glewProgramUniform3uiv) +#define glProgramUniform4d GLEW_GET_FUN(__glewProgramUniform4d) +#define glProgramUniform4dv GLEW_GET_FUN(__glewProgramUniform4dv) +#define glProgramUniform4f GLEW_GET_FUN(__glewProgramUniform4f) +#define glProgramUniform4fv GLEW_GET_FUN(__glewProgramUniform4fv) +#define glProgramUniform4i GLEW_GET_FUN(__glewProgramUniform4i) +#define glProgramUniform4iv GLEW_GET_FUN(__glewProgramUniform4iv) +#define glProgramUniform4ui GLEW_GET_FUN(__glewProgramUniform4ui) +#define glProgramUniform4uiv GLEW_GET_FUN(__glewProgramUniform4uiv) +#define glProgramUniformMatrix2dv GLEW_GET_FUN(__glewProgramUniformMatrix2dv) +#define glProgramUniformMatrix2fv GLEW_GET_FUN(__glewProgramUniformMatrix2fv) +#define glProgramUniformMatrix2x3dv GLEW_GET_FUN(__glewProgramUniformMatrix2x3dv) +#define glProgramUniformMatrix2x3fv GLEW_GET_FUN(__glewProgramUniformMatrix2x3fv) +#define glProgramUniformMatrix2x4dv GLEW_GET_FUN(__glewProgramUniformMatrix2x4dv) +#define glProgramUniformMatrix2x4fv GLEW_GET_FUN(__glewProgramUniformMatrix2x4fv) +#define glProgramUniformMatrix3dv GLEW_GET_FUN(__glewProgramUniformMatrix3dv) +#define glProgramUniformMatrix3fv GLEW_GET_FUN(__glewProgramUniformMatrix3fv) +#define glProgramUniformMatrix3x2dv GLEW_GET_FUN(__glewProgramUniformMatrix3x2dv) +#define glProgramUniformMatrix3x2fv GLEW_GET_FUN(__glewProgramUniformMatrix3x2fv) +#define glProgramUniformMatrix3x4dv GLEW_GET_FUN(__glewProgramUniformMatrix3x4dv) +#define glProgramUniformMatrix3x4fv GLEW_GET_FUN(__glewProgramUniformMatrix3x4fv) +#define glProgramUniformMatrix4dv GLEW_GET_FUN(__glewProgramUniformMatrix4dv) +#define glProgramUniformMatrix4fv GLEW_GET_FUN(__glewProgramUniformMatrix4fv) +#define glProgramUniformMatrix4x2dv GLEW_GET_FUN(__glewProgramUniformMatrix4x2dv) +#define glProgramUniformMatrix4x2fv GLEW_GET_FUN(__glewProgramUniformMatrix4x2fv) +#define glProgramUniformMatrix4x3dv GLEW_GET_FUN(__glewProgramUniformMatrix4x3dv) +#define glProgramUniformMatrix4x3fv GLEW_GET_FUN(__glewProgramUniformMatrix4x3fv) +#define glUseProgramStages GLEW_GET_FUN(__glewUseProgramStages) +#define glValidateProgramPipeline GLEW_GET_FUN(__glewValidateProgramPipeline) + +#define GLEW_ARB_separate_shader_objects GLEW_GET_VAR(__GLEW_ARB_separate_shader_objects) + +#endif /* GL_ARB_separate_shader_objects */ + +/* ----------------------- GL_ARB_shader_bit_encoding ---------------------- */ + +#ifndef GL_ARB_shader_bit_encoding +#define GL_ARB_shader_bit_encoding 1 + +#define GLEW_ARB_shader_bit_encoding GLEW_GET_VAR(__GLEW_ARB_shader_bit_encoding) + +#endif /* GL_ARB_shader_bit_encoding */ + +/* ------------------------- GL_ARB_shader_objects ------------------------- */ + +#ifndef GL_ARB_shader_objects +#define GL_ARB_shader_objects 1 + +#define GL_PROGRAM_OBJECT_ARB 0x8B40 +#define GL_SHADER_OBJECT_ARB 0x8B48 +#define GL_OBJECT_TYPE_ARB 0x8B4E +#define GL_OBJECT_SUBTYPE_ARB 0x8B4F +#define GL_FLOAT_VEC2_ARB 0x8B50 +#define GL_FLOAT_VEC3_ARB 0x8B51 +#define GL_FLOAT_VEC4_ARB 0x8B52 +#define GL_INT_VEC2_ARB 0x8B53 +#define GL_INT_VEC3_ARB 0x8B54 +#define GL_INT_VEC4_ARB 0x8B55 +#define GL_BOOL_ARB 0x8B56 +#define GL_BOOL_VEC2_ARB 0x8B57 +#define GL_BOOL_VEC3_ARB 0x8B58 +#define GL_BOOL_VEC4_ARB 0x8B59 +#define GL_FLOAT_MAT2_ARB 0x8B5A +#define GL_FLOAT_MAT3_ARB 0x8B5B +#define GL_FLOAT_MAT4_ARB 0x8B5C +#define GL_SAMPLER_1D_ARB 0x8B5D +#define GL_SAMPLER_2D_ARB 0x8B5E +#define GL_SAMPLER_3D_ARB 0x8B5F +#define GL_SAMPLER_CUBE_ARB 0x8B60 +#define GL_SAMPLER_1D_SHADOW_ARB 0x8B61 +#define GL_SAMPLER_2D_SHADOW_ARB 0x8B62 +#define GL_SAMPLER_2D_RECT_ARB 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64 +#define GL_OBJECT_DELETE_STATUS_ARB 0x8B80 +#define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81 +#define GL_OBJECT_LINK_STATUS_ARB 0x8B82 +#define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83 +#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84 +#define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85 +#define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86 +#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87 +#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88 + +typedef char GLcharARB; +typedef unsigned int GLhandleARB; + +typedef void (GLAPIENTRY * PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj); +typedef void (GLAPIENTRY * PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj); +typedef GLhandleARB (GLAPIENTRY * PFNGLCREATEPROGRAMOBJECTARBPROC) (void); +typedef GLhandleARB (GLAPIENTRY * PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); +typedef void (GLAPIENTRY * PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj); +typedef void (GLAPIENTRY * PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj); +typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint *size, GLenum *type, GLcharARB *name); +typedef void (GLAPIENTRY * PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei* count, GLhandleARB *obj); +typedef GLhandleARB (GLAPIENTRY * PFNGLGETHANDLEARBPROC) (GLenum pname); +typedef void (GLAPIENTRY * PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB *infoLog); +typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB *source); +typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB* name); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint* params); +typedef void (GLAPIENTRY * PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj); +typedef void (GLAPIENTRY * PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB ** string, const GLint *length); +typedef void (GLAPIENTRY * PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); +typedef void (GLAPIENTRY * PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); +typedef void (GLAPIENTRY * PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); +typedef void (GLAPIENTRY * PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); +typedef void (GLAPIENTRY * PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (GLAPIENTRY * PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); +typedef void (GLAPIENTRY * PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (GLAPIENTRY * PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (GLAPIENTRY * PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj); +typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj); + +#define glAttachObjectARB GLEW_GET_FUN(__glewAttachObjectARB) +#define glCompileShaderARB GLEW_GET_FUN(__glewCompileShaderARB) +#define glCreateProgramObjectARB GLEW_GET_FUN(__glewCreateProgramObjectARB) +#define glCreateShaderObjectARB GLEW_GET_FUN(__glewCreateShaderObjectARB) +#define glDeleteObjectARB GLEW_GET_FUN(__glewDeleteObjectARB) +#define glDetachObjectARB GLEW_GET_FUN(__glewDetachObjectARB) +#define glGetActiveUniformARB GLEW_GET_FUN(__glewGetActiveUniformARB) +#define glGetAttachedObjectsARB GLEW_GET_FUN(__glewGetAttachedObjectsARB) +#define glGetHandleARB GLEW_GET_FUN(__glewGetHandleARB) +#define glGetInfoLogARB GLEW_GET_FUN(__glewGetInfoLogARB) +#define glGetObjectParameterfvARB GLEW_GET_FUN(__glewGetObjectParameterfvARB) +#define glGetObjectParameterivARB GLEW_GET_FUN(__glewGetObjectParameterivARB) +#define glGetShaderSourceARB GLEW_GET_FUN(__glewGetShaderSourceARB) +#define glGetUniformLocationARB GLEW_GET_FUN(__glewGetUniformLocationARB) +#define glGetUniformfvARB GLEW_GET_FUN(__glewGetUniformfvARB) +#define glGetUniformivARB GLEW_GET_FUN(__glewGetUniformivARB) +#define glLinkProgramARB GLEW_GET_FUN(__glewLinkProgramARB) +#define glShaderSourceARB GLEW_GET_FUN(__glewShaderSourceARB) +#define glUniform1fARB GLEW_GET_FUN(__glewUniform1fARB) +#define glUniform1fvARB GLEW_GET_FUN(__glewUniform1fvARB) +#define glUniform1iARB GLEW_GET_FUN(__glewUniform1iARB) +#define glUniform1ivARB GLEW_GET_FUN(__glewUniform1ivARB) +#define glUniform2fARB GLEW_GET_FUN(__glewUniform2fARB) +#define glUniform2fvARB GLEW_GET_FUN(__glewUniform2fvARB) +#define glUniform2iARB GLEW_GET_FUN(__glewUniform2iARB) +#define glUniform2ivARB GLEW_GET_FUN(__glewUniform2ivARB) +#define glUniform3fARB GLEW_GET_FUN(__glewUniform3fARB) +#define glUniform3fvARB GLEW_GET_FUN(__glewUniform3fvARB) +#define glUniform3iARB GLEW_GET_FUN(__glewUniform3iARB) +#define glUniform3ivARB GLEW_GET_FUN(__glewUniform3ivARB) +#define glUniform4fARB GLEW_GET_FUN(__glewUniform4fARB) +#define glUniform4fvARB GLEW_GET_FUN(__glewUniform4fvARB) +#define glUniform4iARB GLEW_GET_FUN(__glewUniform4iARB) +#define glUniform4ivARB GLEW_GET_FUN(__glewUniform4ivARB) +#define glUniformMatrix2fvARB GLEW_GET_FUN(__glewUniformMatrix2fvARB) +#define glUniformMatrix3fvARB GLEW_GET_FUN(__glewUniformMatrix3fvARB) +#define glUniformMatrix4fvARB GLEW_GET_FUN(__glewUniformMatrix4fvARB) +#define glUseProgramObjectARB GLEW_GET_FUN(__glewUseProgramObjectARB) +#define glValidateProgramARB GLEW_GET_FUN(__glewValidateProgramARB) + +#define GLEW_ARB_shader_objects GLEW_GET_VAR(__GLEW_ARB_shader_objects) + +#endif /* GL_ARB_shader_objects */ + +/* ------------------------ GL_ARB_shader_precision ------------------------ */ + +#ifndef GL_ARB_shader_precision +#define GL_ARB_shader_precision 1 + +#define GLEW_ARB_shader_precision GLEW_GET_VAR(__GLEW_ARB_shader_precision) + +#endif /* GL_ARB_shader_precision */ + +/* ---------------------- GL_ARB_shader_stencil_export --------------------- */ + +#ifndef GL_ARB_shader_stencil_export +#define GL_ARB_shader_stencil_export 1 + +#define GLEW_ARB_shader_stencil_export GLEW_GET_VAR(__GLEW_ARB_shader_stencil_export) + +#endif /* GL_ARB_shader_stencil_export */ + +/* ------------------------ GL_ARB_shader_subroutine ----------------------- */ + +#ifndef GL_ARB_shader_subroutine +#define GL_ARB_shader_subroutine 1 + +#define GL_ACTIVE_SUBROUTINES 0x8DE5 +#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6 +#define GL_MAX_SUBROUTINES 0x8DE7 +#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8 +#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47 +#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48 +#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49 +#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A +#define GL_COMPATIBLE_SUBROUTINES 0x8E4B + +typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, char *name); +typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, char *name); +typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint* values); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint* values); +typedef GLuint (GLAPIENTRY * PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const char* name); +typedef GLint (GLAPIENTRY * PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const char* name); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint* params); +typedef void (GLAPIENTRY * PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint* indices); + +#define glGetActiveSubroutineName GLEW_GET_FUN(__glewGetActiveSubroutineName) +#define glGetActiveSubroutineUniformName GLEW_GET_FUN(__glewGetActiveSubroutineUniformName) +#define glGetActiveSubroutineUniformiv GLEW_GET_FUN(__glewGetActiveSubroutineUniformiv) +#define glGetProgramStageiv GLEW_GET_FUN(__glewGetProgramStageiv) +#define glGetSubroutineIndex GLEW_GET_FUN(__glewGetSubroutineIndex) +#define glGetSubroutineUniformLocation GLEW_GET_FUN(__glewGetSubroutineUniformLocation) +#define glGetUniformSubroutineuiv GLEW_GET_FUN(__glewGetUniformSubroutineuiv) +#define glUniformSubroutinesuiv GLEW_GET_FUN(__glewUniformSubroutinesuiv) + +#define GLEW_ARB_shader_subroutine GLEW_GET_VAR(__GLEW_ARB_shader_subroutine) + +#endif /* GL_ARB_shader_subroutine */ + +/* ----------------------- GL_ARB_shader_texture_lod ----------------------- */ + +#ifndef GL_ARB_shader_texture_lod +#define GL_ARB_shader_texture_lod 1 + +#define GLEW_ARB_shader_texture_lod GLEW_GET_VAR(__GLEW_ARB_shader_texture_lod) + +#endif /* GL_ARB_shader_texture_lod */ + +/* ---------------------- GL_ARB_shading_language_100 ---------------------- */ + +#ifndef GL_ARB_shading_language_100 +#define GL_ARB_shading_language_100 1 + +#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C + +#define GLEW_ARB_shading_language_100 GLEW_GET_VAR(__GLEW_ARB_shading_language_100) + +#endif /* GL_ARB_shading_language_100 */ + +/* -------------------- GL_ARB_shading_language_include -------------------- */ + +#ifndef GL_ARB_shading_language_include +#define GL_ARB_shading_language_include 1 + +#define GL_SHADER_INCLUDE_ARB 0x8DAE +#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9 +#define GL_NAMED_STRING_TYPE_ARB 0x8DEA + +typedef void (GLAPIENTRY * PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const char ** path, const GLint *length); +typedef void (GLAPIENTRY * PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const char* name); +typedef void (GLAPIENTRY * PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const char* name, GLsizei bufSize, GLint *stringlen, char *string); +typedef void (GLAPIENTRY * PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const char* name, GLenum pname, GLint *params); +typedef GLboolean (GLAPIENTRY * PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const char* name); +typedef void (GLAPIENTRY * PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const char* name, GLint stringlen, const char *string); + +#define glCompileShaderIncludeARB GLEW_GET_FUN(__glewCompileShaderIncludeARB) +#define glDeleteNamedStringARB GLEW_GET_FUN(__glewDeleteNamedStringARB) +#define glGetNamedStringARB GLEW_GET_FUN(__glewGetNamedStringARB) +#define glGetNamedStringivARB GLEW_GET_FUN(__glewGetNamedStringivARB) +#define glIsNamedStringARB GLEW_GET_FUN(__glewIsNamedStringARB) +#define glNamedStringARB GLEW_GET_FUN(__glewNamedStringARB) + +#define GLEW_ARB_shading_language_include GLEW_GET_VAR(__GLEW_ARB_shading_language_include) + +#endif /* GL_ARB_shading_language_include */ + +/* ----------------------------- GL_ARB_shadow ----------------------------- */ + +#ifndef GL_ARB_shadow +#define GL_ARB_shadow 1 + +#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C +#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D +#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E + +#define GLEW_ARB_shadow GLEW_GET_VAR(__GLEW_ARB_shadow) + +#endif /* GL_ARB_shadow */ + +/* ------------------------- GL_ARB_shadow_ambient ------------------------- */ + +#ifndef GL_ARB_shadow_ambient +#define GL_ARB_shadow_ambient 1 + +#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF + +#define GLEW_ARB_shadow_ambient GLEW_GET_VAR(__GLEW_ARB_shadow_ambient) + +#endif /* GL_ARB_shadow_ambient */ + +/* ------------------------------ GL_ARB_sync ------------------------------ */ + +#ifndef GL_ARB_sync +#define GL_ARB_sync 1 + +#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 +#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 +#define GL_OBJECT_TYPE 0x9112 +#define GL_SYNC_CONDITION 0x9113 +#define GL_SYNC_STATUS 0x9114 +#define GL_SYNC_FLAGS 0x9115 +#define GL_SYNC_FENCE 0x9116 +#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 +#define GL_UNSIGNALED 0x9118 +#define GL_SIGNALED 0x9119 +#define GL_ALREADY_SIGNALED 0x911A +#define GL_TIMEOUT_EXPIRED 0x911B +#define GL_CONDITION_SATISFIED 0x911C +#define GL_WAIT_FAILED 0x911D +#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFF + +typedef GLenum (GLAPIENTRY * PFNGLCLIENTWAITSYNCPROC) (GLsync GLsync,GLbitfield flags,GLuint64 timeout); +typedef void (GLAPIENTRY * PFNGLDELETESYNCPROC) (GLsync GLsync); +typedef GLsync (GLAPIENTRY * PFNGLFENCESYNCPROC) (GLenum condition,GLbitfield flags); +typedef void (GLAPIENTRY * PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64* params); +typedef void (GLAPIENTRY * PFNGLGETSYNCIVPROC) (GLsync GLsync,GLenum pname,GLsizei bufSize,GLsizei* length, GLint *values); +typedef GLboolean (GLAPIENTRY * PFNGLISSYNCPROC) (GLsync GLsync); +typedef void (GLAPIENTRY * PFNGLWAITSYNCPROC) (GLsync GLsync,GLbitfield flags,GLuint64 timeout); + +#define glClientWaitSync GLEW_GET_FUN(__glewClientWaitSync) +#define glDeleteSync GLEW_GET_FUN(__glewDeleteSync) +#define glFenceSync GLEW_GET_FUN(__glewFenceSync) +#define glGetInteger64v GLEW_GET_FUN(__glewGetInteger64v) +#define glGetSynciv GLEW_GET_FUN(__glewGetSynciv) +#define glIsSync GLEW_GET_FUN(__glewIsSync) +#define glWaitSync GLEW_GET_FUN(__glewWaitSync) + +#define GLEW_ARB_sync GLEW_GET_VAR(__GLEW_ARB_sync) + +#endif /* GL_ARB_sync */ + +/* ----------------------- GL_ARB_tessellation_shader ---------------------- */ + +#ifndef GL_ARB_tessellation_shader +#define GL_ARB_tessellation_shader 1 + +#define GL_PATCHES 0xE +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1 +#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C +#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D +#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E +#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F +#define GL_PATCH_VERTICES 0x8E72 +#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73 +#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74 +#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75 +#define GL_TESS_GEN_MODE 0x8E76 +#define GL_TESS_GEN_SPACING 0x8E77 +#define GL_TESS_GEN_VERTEX_ORDER 0x8E78 +#define GL_TESS_GEN_POINT_MODE 0x8E79 +#define GL_ISOLINES 0x8E7A +#define GL_FRACTIONAL_ODD 0x8E7B +#define GL_FRACTIONAL_EVEN 0x8E7C +#define GL_MAX_PATCH_VERTICES 0x8E7D +#define GL_MAX_TESS_GEN_LEVEL 0x8E7E +#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F +#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80 +#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81 +#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82 +#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83 +#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84 +#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85 +#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86 +#define GL_TESS_EVALUATION_SHADER 0x8E87 +#define GL_TESS_CONTROL_SHADER 0x8E88 +#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89 +#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A + +typedef void (GLAPIENTRY * PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat* values); +typedef void (GLAPIENTRY * PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value); + +#define glPatchParameterfv GLEW_GET_FUN(__glewPatchParameterfv) +#define glPatchParameteri GLEW_GET_FUN(__glewPatchParameteri) + +#define GLEW_ARB_tessellation_shader GLEW_GET_VAR(__GLEW_ARB_tessellation_shader) + +#endif /* GL_ARB_tessellation_shader */ + +/* ---------------------- GL_ARB_texture_border_clamp ---------------------- */ + +#ifndef GL_ARB_texture_border_clamp +#define GL_ARB_texture_border_clamp 1 + +#define GL_CLAMP_TO_BORDER_ARB 0x812D + +#define GLEW_ARB_texture_border_clamp GLEW_GET_VAR(__GLEW_ARB_texture_border_clamp) + +#endif /* GL_ARB_texture_border_clamp */ + +/* ---------------------- GL_ARB_texture_buffer_object --------------------- */ + +#ifndef GL_ARB_texture_buffer_object +#define GL_ARB_texture_buffer_object 1 + +#define GL_TEXTURE_BUFFER_ARB 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E + +typedef void (GLAPIENTRY * PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer); + +#define glTexBufferARB GLEW_GET_FUN(__glewTexBufferARB) + +#define GLEW_ARB_texture_buffer_object GLEW_GET_VAR(__GLEW_ARB_texture_buffer_object) + +#endif /* GL_ARB_texture_buffer_object */ + +/* ------------------- GL_ARB_texture_buffer_object_rgb32 ------------------ */ + +#ifndef GL_ARB_texture_buffer_object_rgb32 +#define GL_ARB_texture_buffer_object_rgb32 1 + +#define GLEW_ARB_texture_buffer_object_rgb32 GLEW_GET_VAR(__GLEW_ARB_texture_buffer_object_rgb32) + +#endif /* GL_ARB_texture_buffer_object_rgb32 */ + +/* ----------------------- GL_ARB_texture_compression ---------------------- */ + +#ifndef GL_ARB_texture_compression +#define GL_ARB_texture_compression 1 + +#define GL_COMPRESSED_ALPHA_ARB 0x84E9 +#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB +#define GL_COMPRESSED_INTENSITY_ARB 0x84EC +#define GL_COMPRESSED_RGB_ARB 0x84ED +#define GL_COMPRESSED_RGBA_ARB 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0 +#define GL_TEXTURE_COMPRESSED_ARB 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3 + +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, void* img); + +#define glCompressedTexImage1DARB GLEW_GET_FUN(__glewCompressedTexImage1DARB) +#define glCompressedTexImage2DARB GLEW_GET_FUN(__glewCompressedTexImage2DARB) +#define glCompressedTexImage3DARB GLEW_GET_FUN(__glewCompressedTexImage3DARB) +#define glCompressedTexSubImage1DARB GLEW_GET_FUN(__glewCompressedTexSubImage1DARB) +#define glCompressedTexSubImage2DARB GLEW_GET_FUN(__glewCompressedTexSubImage2DARB) +#define glCompressedTexSubImage3DARB GLEW_GET_FUN(__glewCompressedTexSubImage3DARB) +#define glGetCompressedTexImageARB GLEW_GET_FUN(__glewGetCompressedTexImageARB) + +#define GLEW_ARB_texture_compression GLEW_GET_VAR(__GLEW_ARB_texture_compression) + +#endif /* GL_ARB_texture_compression */ + +/* -------------------- GL_ARB_texture_compression_bptc -------------------- */ + +#ifndef GL_ARB_texture_compression_bptc +#define GL_ARB_texture_compression_bptc 1 + +#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C +#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D +#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E +#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F + +#define GLEW_ARB_texture_compression_bptc GLEW_GET_VAR(__GLEW_ARB_texture_compression_bptc) + +#endif /* GL_ARB_texture_compression_bptc */ + +/* -------------------- GL_ARB_texture_compression_rgtc -------------------- */ + +#ifndef GL_ARB_texture_compression_rgtc +#define GL_ARB_texture_compression_rgtc 1 + +#define GL_COMPRESSED_RED_RGTC1 0x8DBB +#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC +#define GL_COMPRESSED_RG_RGTC2 0x8DBD +#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE + +#define GLEW_ARB_texture_compression_rgtc GLEW_GET_VAR(__GLEW_ARB_texture_compression_rgtc) + +#endif /* GL_ARB_texture_compression_rgtc */ + +/* ------------------------ GL_ARB_texture_cube_map ------------------------ */ + +#ifndef GL_ARB_texture_cube_map +#define GL_ARB_texture_cube_map 1 + +#define GL_NORMAL_MAP_ARB 0x8511 +#define GL_REFLECTION_MAP_ARB 0x8512 +#define GL_TEXTURE_CUBE_MAP_ARB 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C + +#define GLEW_ARB_texture_cube_map GLEW_GET_VAR(__GLEW_ARB_texture_cube_map) + +#endif /* GL_ARB_texture_cube_map */ + +/* --------------------- GL_ARB_texture_cube_map_array --------------------- */ + +#ifndef GL_ARB_texture_cube_map_array +#define GL_ARB_texture_cube_map_array 1 + +#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B +#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F + +#define GLEW_ARB_texture_cube_map_array GLEW_GET_VAR(__GLEW_ARB_texture_cube_map_array) + +#endif /* GL_ARB_texture_cube_map_array */ + +/* ------------------------- GL_ARB_texture_env_add ------------------------ */ + +#ifndef GL_ARB_texture_env_add +#define GL_ARB_texture_env_add 1 + +#define GLEW_ARB_texture_env_add GLEW_GET_VAR(__GLEW_ARB_texture_env_add) + +#endif /* GL_ARB_texture_env_add */ + +/* ----------------------- GL_ARB_texture_env_combine ---------------------- */ + +#ifndef GL_ARB_texture_env_combine +#define GL_ARB_texture_env_combine 1 + +#define GL_SUBTRACT_ARB 0x84E7 +#define GL_COMBINE_ARB 0x8570 +#define GL_COMBINE_RGB_ARB 0x8571 +#define GL_COMBINE_ALPHA_ARB 0x8572 +#define GL_RGB_SCALE_ARB 0x8573 +#define GL_ADD_SIGNED_ARB 0x8574 +#define GL_INTERPOLATE_ARB 0x8575 +#define GL_CONSTANT_ARB 0x8576 +#define GL_PRIMARY_COLOR_ARB 0x8577 +#define GL_PREVIOUS_ARB 0x8578 +#define GL_SOURCE0_RGB_ARB 0x8580 +#define GL_SOURCE1_RGB_ARB 0x8581 +#define GL_SOURCE2_RGB_ARB 0x8582 +#define GL_SOURCE0_ALPHA_ARB 0x8588 +#define GL_SOURCE1_ALPHA_ARB 0x8589 +#define GL_SOURCE2_ALPHA_ARB 0x858A +#define GL_OPERAND0_RGB_ARB 0x8590 +#define GL_OPERAND1_RGB_ARB 0x8591 +#define GL_OPERAND2_RGB_ARB 0x8592 +#define GL_OPERAND0_ALPHA_ARB 0x8598 +#define GL_OPERAND1_ALPHA_ARB 0x8599 +#define GL_OPERAND2_ALPHA_ARB 0x859A + +#define GLEW_ARB_texture_env_combine GLEW_GET_VAR(__GLEW_ARB_texture_env_combine) + +#endif /* GL_ARB_texture_env_combine */ + +/* ---------------------- GL_ARB_texture_env_crossbar ---------------------- */ + +#ifndef GL_ARB_texture_env_crossbar +#define GL_ARB_texture_env_crossbar 1 + +#define GLEW_ARB_texture_env_crossbar GLEW_GET_VAR(__GLEW_ARB_texture_env_crossbar) + +#endif /* GL_ARB_texture_env_crossbar */ + +/* ------------------------ GL_ARB_texture_env_dot3 ------------------------ */ + +#ifndef GL_ARB_texture_env_dot3 +#define GL_ARB_texture_env_dot3 1 + +#define GL_DOT3_RGB_ARB 0x86AE +#define GL_DOT3_RGBA_ARB 0x86AF + +#define GLEW_ARB_texture_env_dot3 GLEW_GET_VAR(__GLEW_ARB_texture_env_dot3) + +#endif /* GL_ARB_texture_env_dot3 */ + +/* -------------------------- GL_ARB_texture_float ------------------------- */ + +#ifndef GL_ARB_texture_float +#define GL_ARB_texture_float 1 + +#define GL_RGBA32F_ARB 0x8814 +#define GL_RGB32F_ARB 0x8815 +#define GL_ALPHA32F_ARB 0x8816 +#define GL_INTENSITY32F_ARB 0x8817 +#define GL_LUMINANCE32F_ARB 0x8818 +#define GL_LUMINANCE_ALPHA32F_ARB 0x8819 +#define GL_RGBA16F_ARB 0x881A +#define GL_RGB16F_ARB 0x881B +#define GL_ALPHA16F_ARB 0x881C +#define GL_INTENSITY16F_ARB 0x881D +#define GL_LUMINANCE16F_ARB 0x881E +#define GL_LUMINANCE_ALPHA16F_ARB 0x881F +#define GL_TEXTURE_RED_TYPE_ARB 0x8C10 +#define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11 +#define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13 +#define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14 +#define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15 +#define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16 +#define GL_UNSIGNED_NORMALIZED_ARB 0x8C17 + +#define GLEW_ARB_texture_float GLEW_GET_VAR(__GLEW_ARB_texture_float) + +#endif /* GL_ARB_texture_float */ + +/* ------------------------- GL_ARB_texture_gather ------------------------- */ + +#ifndef GL_ARB_texture_gather +#define GL_ARB_texture_gather 1 + +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F +#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F + +#define GLEW_ARB_texture_gather GLEW_GET_VAR(__GLEW_ARB_texture_gather) + +#endif /* GL_ARB_texture_gather */ + +/* --------------------- GL_ARB_texture_mirrored_repeat -------------------- */ + +#ifndef GL_ARB_texture_mirrored_repeat +#define GL_ARB_texture_mirrored_repeat 1 + +#define GL_MIRRORED_REPEAT_ARB 0x8370 + +#define GLEW_ARB_texture_mirrored_repeat GLEW_GET_VAR(__GLEW_ARB_texture_mirrored_repeat) + +#endif /* GL_ARB_texture_mirrored_repeat */ + +/* ----------------------- GL_ARB_texture_multisample ---------------------- */ + +#ifndef GL_ARB_texture_multisample +#define GL_ARB_texture_multisample 1 + +#define GL_SAMPLE_POSITION 0x8E50 +#define GL_SAMPLE_MASK 0x8E51 +#define GL_SAMPLE_MASK_VALUE 0x8E52 +#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 +#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 +#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 +#define GL_TEXTURE_SAMPLES 0x9106 +#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 +#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 +#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A +#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B +#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D +#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E +#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F +#define GL_MAX_INTEGER_SAMPLES 0x9110 + +typedef void (GLAPIENTRY * PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat* val); +typedef void (GLAPIENTRY * PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask); +typedef void (GLAPIENTRY * PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + +#define glGetMultisamplefv GLEW_GET_FUN(__glewGetMultisamplefv) +#define glSampleMaski GLEW_GET_FUN(__glewSampleMaski) +#define glTexImage2DMultisample GLEW_GET_FUN(__glewTexImage2DMultisample) +#define glTexImage3DMultisample GLEW_GET_FUN(__glewTexImage3DMultisample) + +#define GLEW_ARB_texture_multisample GLEW_GET_VAR(__GLEW_ARB_texture_multisample) + +#endif /* GL_ARB_texture_multisample */ + +/* -------------------- GL_ARB_texture_non_power_of_two -------------------- */ + +#ifndef GL_ARB_texture_non_power_of_two +#define GL_ARB_texture_non_power_of_two 1 + +#define GLEW_ARB_texture_non_power_of_two GLEW_GET_VAR(__GLEW_ARB_texture_non_power_of_two) + +#endif /* GL_ARB_texture_non_power_of_two */ + +/* ------------------------ GL_ARB_texture_query_lod ----------------------- */ + +#ifndef GL_ARB_texture_query_lod +#define GL_ARB_texture_query_lod 1 + +#define GLEW_ARB_texture_query_lod GLEW_GET_VAR(__GLEW_ARB_texture_query_lod) + +#endif /* GL_ARB_texture_query_lod */ + +/* ------------------------ GL_ARB_texture_rectangle ----------------------- */ + +#ifndef GL_ARB_texture_rectangle +#define GL_ARB_texture_rectangle 1 + +#define GL_TEXTURE_RECTANGLE_ARB 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 +#define GL_SAMPLER_2D_RECT_ARB 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64 + +#define GLEW_ARB_texture_rectangle GLEW_GET_VAR(__GLEW_ARB_texture_rectangle) + +#endif /* GL_ARB_texture_rectangle */ + +/* --------------------------- GL_ARB_texture_rg --------------------------- */ + +#ifndef GL_ARB_texture_rg +#define GL_ARB_texture_rg 1 + +#define GL_RED 0x1903 +#define GL_COMPRESSED_RED 0x8225 +#define GL_COMPRESSED_RG 0x8226 +#define GL_RG 0x8227 +#define GL_RG_INTEGER 0x8228 +#define GL_R8 0x8229 +#define GL_R16 0x822A +#define GL_RG8 0x822B +#define GL_RG16 0x822C +#define GL_R16F 0x822D +#define GL_R32F 0x822E +#define GL_RG16F 0x822F +#define GL_RG32F 0x8230 +#define GL_R8I 0x8231 +#define GL_R8UI 0x8232 +#define GL_R16I 0x8233 +#define GL_R16UI 0x8234 +#define GL_R32I 0x8235 +#define GL_R32UI 0x8236 +#define GL_RG8I 0x8237 +#define GL_RG8UI 0x8238 +#define GL_RG16I 0x8239 +#define GL_RG16UI 0x823A +#define GL_RG32I 0x823B +#define GL_RG32UI 0x823C + +#define GLEW_ARB_texture_rg GLEW_GET_VAR(__GLEW_ARB_texture_rg) + +#endif /* GL_ARB_texture_rg */ + +/* ----------------------- GL_ARB_texture_rgb10_a2ui ----------------------- */ + +#ifndef GL_ARB_texture_rgb10_a2ui +#define GL_ARB_texture_rgb10_a2ui 1 + +#define GL_RGB10_A2UI 0x906F + +#define GLEW_ARB_texture_rgb10_a2ui GLEW_GET_VAR(__GLEW_ARB_texture_rgb10_a2ui) + +#endif /* GL_ARB_texture_rgb10_a2ui */ + +/* ------------------------- GL_ARB_texture_swizzle ------------------------ */ + +#ifndef GL_ARB_texture_swizzle +#define GL_ARB_texture_swizzle 1 + +#define GL_TEXTURE_SWIZZLE_R 0x8E42 +#define GL_TEXTURE_SWIZZLE_G 0x8E43 +#define GL_TEXTURE_SWIZZLE_B 0x8E44 +#define GL_TEXTURE_SWIZZLE_A 0x8E45 +#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 + +#define GLEW_ARB_texture_swizzle GLEW_GET_VAR(__GLEW_ARB_texture_swizzle) + +#endif /* GL_ARB_texture_swizzle */ + +/* --------------------------- GL_ARB_timer_query -------------------------- */ + +#ifndef GL_ARB_timer_query +#define GL_ARB_timer_query 1 + +#define GL_TIME_ELAPSED 0x88BF +#define GL_TIMESTAMP 0x8E28 + +typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64* params); +typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64* params); +typedef void (GLAPIENTRY * PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target); + +#define glGetQueryObjecti64v GLEW_GET_FUN(__glewGetQueryObjecti64v) +#define glGetQueryObjectui64v GLEW_GET_FUN(__glewGetQueryObjectui64v) +#define glQueryCounter GLEW_GET_FUN(__glewQueryCounter) + +#define GLEW_ARB_timer_query GLEW_GET_VAR(__GLEW_ARB_timer_query) + +#endif /* GL_ARB_timer_query */ + +/* ----------------------- GL_ARB_transform_feedback2 ---------------------- */ + +#ifndef GL_ARB_transform_feedback2 +#define GL_ARB_transform_feedback2 1 + +#define GL_TRANSFORM_FEEDBACK 0x8E22 +#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23 +#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24 +#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25 + +typedef void (GLAPIENTRY * PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id); +typedef void (GLAPIENTRY * PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint* ids); +typedef void (GLAPIENTRY * PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id); +typedef void (GLAPIENTRY * PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint* ids); +typedef GLboolean (GLAPIENTRY * PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLPAUSETRANSFORMFEEDBACKPROC) (void); +typedef void (GLAPIENTRY * PFNGLRESUMETRANSFORMFEEDBACKPROC) (void); + +#define glBindTransformFeedback GLEW_GET_FUN(__glewBindTransformFeedback) +#define glDeleteTransformFeedbacks GLEW_GET_FUN(__glewDeleteTransformFeedbacks) +#define glDrawTransformFeedback GLEW_GET_FUN(__glewDrawTransformFeedback) +#define glGenTransformFeedbacks GLEW_GET_FUN(__glewGenTransformFeedbacks) +#define glIsTransformFeedback GLEW_GET_FUN(__glewIsTransformFeedback) +#define glPauseTransformFeedback GLEW_GET_FUN(__glewPauseTransformFeedback) +#define glResumeTransformFeedback GLEW_GET_FUN(__glewResumeTransformFeedback) + +#define GLEW_ARB_transform_feedback2 GLEW_GET_VAR(__GLEW_ARB_transform_feedback2) + +#endif /* GL_ARB_transform_feedback2 */ + +/* ----------------------- GL_ARB_transform_feedback3 ---------------------- */ + +#ifndef GL_ARB_transform_feedback3 +#define GL_ARB_transform_feedback3 1 + +#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70 +#define GL_MAX_VERTEX_STREAMS 0x8E71 + +typedef void (GLAPIENTRY * PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id); +typedef void (GLAPIENTRY * PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream); +typedef void (GLAPIENTRY * PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index); +typedef void (GLAPIENTRY * PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint* params); + +#define glBeginQueryIndexed GLEW_GET_FUN(__glewBeginQueryIndexed) +#define glDrawTransformFeedbackStream GLEW_GET_FUN(__glewDrawTransformFeedbackStream) +#define glEndQueryIndexed GLEW_GET_FUN(__glewEndQueryIndexed) +#define glGetQueryIndexediv GLEW_GET_FUN(__glewGetQueryIndexediv) + +#define GLEW_ARB_transform_feedback3 GLEW_GET_VAR(__GLEW_ARB_transform_feedback3) + +#endif /* GL_ARB_transform_feedback3 */ + +/* ------------------------ GL_ARB_transpose_matrix ------------------------ */ + +#ifndef GL_ARB_transpose_matrix +#define GL_ARB_transpose_matrix 1 + +#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5 +#define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6 + +typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXDARBPROC) (GLdouble m[16]); +typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXFARBPROC) (GLfloat m[16]); +typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXDARBPROC) (GLdouble m[16]); +typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXFARBPROC) (GLfloat m[16]); + +#define glLoadTransposeMatrixdARB GLEW_GET_FUN(__glewLoadTransposeMatrixdARB) +#define glLoadTransposeMatrixfARB GLEW_GET_FUN(__glewLoadTransposeMatrixfARB) +#define glMultTransposeMatrixdARB GLEW_GET_FUN(__glewMultTransposeMatrixdARB) +#define glMultTransposeMatrixfARB GLEW_GET_FUN(__glewMultTransposeMatrixfARB) + +#define GLEW_ARB_transpose_matrix GLEW_GET_VAR(__GLEW_ARB_transpose_matrix) + +#endif /* GL_ARB_transpose_matrix */ + +/* ---------------------- GL_ARB_uniform_buffer_object --------------------- */ + +#ifndef GL_ARB_uniform_buffer_object +#define GL_ARB_uniform_buffer_object 1 + +#define GL_UNIFORM_BUFFER 0x8A11 +#define GL_UNIFORM_BUFFER_BINDING 0x8A28 +#define GL_UNIFORM_BUFFER_START 0x8A29 +#define GL_UNIFORM_BUFFER_SIZE 0x8A2A +#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B +#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C +#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D +#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E +#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F +#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 +#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 +#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 +#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 +#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 +#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 +#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 +#define GL_UNIFORM_TYPE 0x8A37 +#define GL_UNIFORM_SIZE 0x8A38 +#define GL_UNIFORM_NAME_LENGTH 0x8A39 +#define GL_UNIFORM_BLOCK_INDEX 0x8A3A +#define GL_UNIFORM_OFFSET 0x8A3B +#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C +#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D +#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E +#define GL_UNIFORM_BLOCK_BINDING 0x8A3F +#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 +#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 +#define GL_INVALID_INDEX 0xFFFFFFFF + +typedef void (GLAPIENTRY * PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); +typedef void (GLAPIENTRY * PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, char* uniformBlockName); +typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, char* uniformName); +typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint* data); +typedef GLuint (GLAPIENTRY * PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const char* uniformBlockName); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const char** uniformNames, GLuint* uniformIndices); +typedef void (GLAPIENTRY * PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); + +#define glBindBufferBase GLEW_GET_FUN(__glewBindBufferBase) +#define glBindBufferRange GLEW_GET_FUN(__glewBindBufferRange) +#define glGetActiveUniformBlockName GLEW_GET_FUN(__glewGetActiveUniformBlockName) +#define glGetActiveUniformBlockiv GLEW_GET_FUN(__glewGetActiveUniformBlockiv) +#define glGetActiveUniformName GLEW_GET_FUN(__glewGetActiveUniformName) +#define glGetActiveUniformsiv GLEW_GET_FUN(__glewGetActiveUniformsiv) +#define glGetIntegeri_v GLEW_GET_FUN(__glewGetIntegeri_v) +#define glGetUniformBlockIndex GLEW_GET_FUN(__glewGetUniformBlockIndex) +#define glGetUniformIndices GLEW_GET_FUN(__glewGetUniformIndices) +#define glUniformBlockBinding GLEW_GET_FUN(__glewUniformBlockBinding) + +#define GLEW_ARB_uniform_buffer_object GLEW_GET_VAR(__GLEW_ARB_uniform_buffer_object) + +#endif /* GL_ARB_uniform_buffer_object */ + +/* ------------------------ GL_ARB_vertex_array_bgra ----------------------- */ + +#ifndef GL_ARB_vertex_array_bgra +#define GL_ARB_vertex_array_bgra 1 + +#define GL_BGRA 0x80E1 + +#define GLEW_ARB_vertex_array_bgra GLEW_GET_VAR(__GLEW_ARB_vertex_array_bgra) + +#endif /* GL_ARB_vertex_array_bgra */ + +/* ----------------------- GL_ARB_vertex_array_object ---------------------- */ + +#ifndef GL_ARB_vertex_array_object +#define GL_ARB_vertex_array_object 1 + +#define GL_VERTEX_ARRAY_BINDING 0x85B5 + +typedef void (GLAPIENTRY * PFNGLBINDVERTEXARRAYPROC) (GLuint array); +typedef void (GLAPIENTRY * PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint* arrays); +typedef void (GLAPIENTRY * PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint* arrays); +typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXARRAYPROC) (GLuint array); + +#define glBindVertexArray GLEW_GET_FUN(__glewBindVertexArray) +#define glDeleteVertexArrays GLEW_GET_FUN(__glewDeleteVertexArrays) +#define glGenVertexArrays GLEW_GET_FUN(__glewGenVertexArrays) +#define glIsVertexArray GLEW_GET_FUN(__glewIsVertexArray) + +#define GLEW_ARB_vertex_array_object GLEW_GET_VAR(__GLEW_ARB_vertex_array_object) + +#endif /* GL_ARB_vertex_array_object */ + +/* ----------------------- GL_ARB_vertex_attrib_64bit ---------------------- */ + +#ifndef GL_ARB_vertex_attrib_64bit +#define GL_ARB_vertex_attrib_64bit 1 + +#define GL_DOUBLE_MAT2 0x8F46 +#define GL_DOUBLE_MAT3 0x8F47 +#define GL_DOUBLE_MAT4 0x8F48 +#define GL_DOUBLE_VEC2 0x8FFC +#define GL_DOUBLE_VEC3 0x8FFD +#define GL_DOUBLE_VEC4 0x8FFE + +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + +#define glGetVertexAttribLdv GLEW_GET_FUN(__glewGetVertexAttribLdv) +#define glVertexAttribL1d GLEW_GET_FUN(__glewVertexAttribL1d) +#define glVertexAttribL1dv GLEW_GET_FUN(__glewVertexAttribL1dv) +#define glVertexAttribL2d GLEW_GET_FUN(__glewVertexAttribL2d) +#define glVertexAttribL2dv GLEW_GET_FUN(__glewVertexAttribL2dv) +#define glVertexAttribL3d GLEW_GET_FUN(__glewVertexAttribL3d) +#define glVertexAttribL3dv GLEW_GET_FUN(__glewVertexAttribL3dv) +#define glVertexAttribL4d GLEW_GET_FUN(__glewVertexAttribL4d) +#define glVertexAttribL4dv GLEW_GET_FUN(__glewVertexAttribL4dv) +#define glVertexAttribLPointer GLEW_GET_FUN(__glewVertexAttribLPointer) + +#define GLEW_ARB_vertex_attrib_64bit GLEW_GET_VAR(__GLEW_ARB_vertex_attrib_64bit) + +#endif /* GL_ARB_vertex_attrib_64bit */ + +/* -------------------------- GL_ARB_vertex_blend -------------------------- */ + +#ifndef GL_ARB_vertex_blend +#define GL_ARB_vertex_blend 1 + +#define GL_MODELVIEW0_ARB 0x1700 +#define GL_MODELVIEW1_ARB 0x850A +#define GL_MAX_VERTEX_UNITS_ARB 0x86A4 +#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5 +#define GL_WEIGHT_SUM_UNITY_ARB 0x86A6 +#define GL_VERTEX_BLEND_ARB 0x86A7 +#define GL_CURRENT_WEIGHT_ARB 0x86A8 +#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9 +#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA +#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB +#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC +#define GL_WEIGHT_ARRAY_ARB 0x86AD +#define GL_MODELVIEW2_ARB 0x8722 +#define GL_MODELVIEW3_ARB 0x8723 +#define GL_MODELVIEW4_ARB 0x8724 +#define GL_MODELVIEW5_ARB 0x8725 +#define GL_MODELVIEW6_ARB 0x8726 +#define GL_MODELVIEW7_ARB 0x8727 +#define GL_MODELVIEW8_ARB 0x8728 +#define GL_MODELVIEW9_ARB 0x8729 +#define GL_MODELVIEW10_ARB 0x872A +#define GL_MODELVIEW11_ARB 0x872B +#define GL_MODELVIEW12_ARB 0x872C +#define GL_MODELVIEW13_ARB 0x872D +#define GL_MODELVIEW14_ARB 0x872E +#define GL_MODELVIEW15_ARB 0x872F +#define GL_MODELVIEW16_ARB 0x8730 +#define GL_MODELVIEW17_ARB 0x8731 +#define GL_MODELVIEW18_ARB 0x8732 +#define GL_MODELVIEW19_ARB 0x8733 +#define GL_MODELVIEW20_ARB 0x8734 +#define GL_MODELVIEW21_ARB 0x8735 +#define GL_MODELVIEW22_ARB 0x8736 +#define GL_MODELVIEW23_ARB 0x8737 +#define GL_MODELVIEW24_ARB 0x8738 +#define GL_MODELVIEW25_ARB 0x8739 +#define GL_MODELVIEW26_ARB 0x873A +#define GL_MODELVIEW27_ARB 0x873B +#define GL_MODELVIEW28_ARB 0x873C +#define GL_MODELVIEW29_ARB 0x873D +#define GL_MODELVIEW30_ARB 0x873E +#define GL_MODELVIEW31_ARB 0x873F + +typedef void (GLAPIENTRY * PFNGLVERTEXBLENDARBPROC) (GLint count); +typedef void (GLAPIENTRY * PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLWEIGHTBVARBPROC) (GLint size, GLbyte *weights); +typedef void (GLAPIENTRY * PFNGLWEIGHTDVARBPROC) (GLint size, GLdouble *weights); +typedef void (GLAPIENTRY * PFNGLWEIGHTFVARBPROC) (GLint size, GLfloat *weights); +typedef void (GLAPIENTRY * PFNGLWEIGHTIVARBPROC) (GLint size, GLint *weights); +typedef void (GLAPIENTRY * PFNGLWEIGHTSVARBPROC) (GLint size, GLshort *weights); +typedef void (GLAPIENTRY * PFNGLWEIGHTUBVARBPROC) (GLint size, GLubyte *weights); +typedef void (GLAPIENTRY * PFNGLWEIGHTUIVARBPROC) (GLint size, GLuint *weights); +typedef void (GLAPIENTRY * PFNGLWEIGHTUSVARBPROC) (GLint size, GLushort *weights); + +#define glVertexBlendARB GLEW_GET_FUN(__glewVertexBlendARB) +#define glWeightPointerARB GLEW_GET_FUN(__glewWeightPointerARB) +#define glWeightbvARB GLEW_GET_FUN(__glewWeightbvARB) +#define glWeightdvARB GLEW_GET_FUN(__glewWeightdvARB) +#define glWeightfvARB GLEW_GET_FUN(__glewWeightfvARB) +#define glWeightivARB GLEW_GET_FUN(__glewWeightivARB) +#define glWeightsvARB GLEW_GET_FUN(__glewWeightsvARB) +#define glWeightubvARB GLEW_GET_FUN(__glewWeightubvARB) +#define glWeightuivARB GLEW_GET_FUN(__glewWeightuivARB) +#define glWeightusvARB GLEW_GET_FUN(__glewWeightusvARB) + +#define GLEW_ARB_vertex_blend GLEW_GET_VAR(__GLEW_ARB_vertex_blend) + +#endif /* GL_ARB_vertex_blend */ + +/* ---------------------- GL_ARB_vertex_buffer_object ---------------------- */ + +#ifndef GL_ARB_vertex_buffer_object +#define GL_ARB_vertex_buffer_object 1 + +#define GL_BUFFER_SIZE_ARB 0x8764 +#define GL_BUFFER_USAGE_ARB 0x8765 +#define GL_ARRAY_BUFFER_ARB 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 +#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895 +#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896 +#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897 +#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898 +#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F +#define GL_READ_ONLY_ARB 0x88B8 +#define GL_WRITE_ONLY_ARB 0x88B9 +#define GL_READ_WRITE_ARB 0x88BA +#define GL_BUFFER_ACCESS_ARB 0x88BB +#define GL_BUFFER_MAPPED_ARB 0x88BC +#define GL_BUFFER_MAP_POINTER_ARB 0x88BD +#define GL_STREAM_DRAW_ARB 0x88E0 +#define GL_STREAM_READ_ARB 0x88E1 +#define GL_STREAM_COPY_ARB 0x88E2 +#define GL_STATIC_DRAW_ARB 0x88E4 +#define GL_STATIC_READ_ARB 0x88E5 +#define GL_STATIC_COPY_ARB 0x88E6 +#define GL_DYNAMIC_DRAW_ARB 0x88E8 +#define GL_DYNAMIC_READ_ARB 0x88E9 +#define GL_DYNAMIC_COPY_ARB 0x88EA + +typedef ptrdiff_t GLintptrARB; +typedef ptrdiff_t GLsizeiptrARB; + +typedef void (GLAPIENTRY * PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); +typedef void (GLAPIENTRY * PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid* data, GLenum usage); +typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid* data); +typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint* buffers); +typedef void (GLAPIENTRY * PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint* buffers); +typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid** params); +typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid* data); +typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERARBPROC) (GLuint buffer); +typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); +typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERARBPROC) (GLenum target); + +#define glBindBufferARB GLEW_GET_FUN(__glewBindBufferARB) +#define glBufferDataARB GLEW_GET_FUN(__glewBufferDataARB) +#define glBufferSubDataARB GLEW_GET_FUN(__glewBufferSubDataARB) +#define glDeleteBuffersARB GLEW_GET_FUN(__glewDeleteBuffersARB) +#define glGenBuffersARB GLEW_GET_FUN(__glewGenBuffersARB) +#define glGetBufferParameterivARB GLEW_GET_FUN(__glewGetBufferParameterivARB) +#define glGetBufferPointervARB GLEW_GET_FUN(__glewGetBufferPointervARB) +#define glGetBufferSubDataARB GLEW_GET_FUN(__glewGetBufferSubDataARB) +#define glIsBufferARB GLEW_GET_FUN(__glewIsBufferARB) +#define glMapBufferARB GLEW_GET_FUN(__glewMapBufferARB) +#define glUnmapBufferARB GLEW_GET_FUN(__glewUnmapBufferARB) + +#define GLEW_ARB_vertex_buffer_object GLEW_GET_VAR(__GLEW_ARB_vertex_buffer_object) + +#endif /* GL_ARB_vertex_buffer_object */ + +/* ------------------------- GL_ARB_vertex_program ------------------------- */ + +#ifndef GL_ARB_vertex_program +#define GL_ARB_vertex_program 1 + +#define GL_COLOR_SUM_ARB 0x8458 +#define GL_VERTEX_PROGRAM_ARB 0x8620 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626 +#define GL_PROGRAM_LENGTH_ARB 0x8627 +#define GL_PROGRAM_STRING_ARB 0x8628 +#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E +#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F +#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640 +#define GL_CURRENT_MATRIX_ARB 0x8641 +#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645 +#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B +#define GL_PROGRAM_BINDING_ARB 0x8677 +#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A +#define GL_PROGRAM_ERROR_STRING_ARB 0x8874 +#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875 +#define GL_PROGRAM_FORMAT_ARB 0x8876 +#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0 +#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1 +#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2 +#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3 +#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4 +#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5 +#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6 +#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7 +#define GL_PROGRAM_PARAMETERS_ARB 0x88A8 +#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9 +#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA +#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB +#define GL_PROGRAM_ATTRIBS_ARB 0x88AC +#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD +#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE +#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF +#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0 +#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1 +#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2 +#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3 +#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4 +#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5 +#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6 +#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7 +#define GL_MATRIX0_ARB 0x88C0 +#define GL_MATRIX1_ARB 0x88C1 +#define GL_MATRIX2_ARB 0x88C2 +#define GL_MATRIX3_ARB 0x88C3 +#define GL_MATRIX4_ARB 0x88C4 +#define GL_MATRIX5_ARB 0x88C5 +#define GL_MATRIX6_ARB 0x88C6 +#define GL_MATRIX7_ARB 0x88C7 +#define GL_MATRIX8_ARB 0x88C8 +#define GL_MATRIX9_ARB 0x88C9 +#define GL_MATRIX10_ARB 0x88CA +#define GL_MATRIX11_ARB 0x88CB +#define GL_MATRIX12_ARB 0x88CC +#define GL_MATRIX13_ARB 0x88CD +#define GL_MATRIX14_ARB 0x88CE +#define GL_MATRIX15_ARB 0x88CF +#define GL_MATRIX16_ARB 0x88D0 +#define GL_MATRIX17_ARB 0x88D1 +#define GL_MATRIX18_ARB 0x88D2 +#define GL_MATRIX19_ARB 0x88D3 +#define GL_MATRIX20_ARB 0x88D4 +#define GL_MATRIX21_ARB 0x88D5 +#define GL_MATRIX22_ARB 0x88D6 +#define GL_MATRIX23_ARB 0x88D7 +#define GL_MATRIX24_ARB 0x88D8 +#define GL_MATRIX25_ARB 0x88D9 +#define GL_MATRIX26_ARB 0x88DA +#define GL_MATRIX27_ARB 0x88DB +#define GL_MATRIX28_ARB 0x88DC +#define GL_MATRIX29_ARB 0x88DD +#define GL_MATRIX30_ARB 0x88DE +#define GL_MATRIX31_ARB 0x88DF + +typedef void (GLAPIENTRY * PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); +typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint* programs); +typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); +typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); +typedef void (GLAPIENTRY * PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint* programs); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void* string); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid** pointer); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMARBPROC) (GLuint program); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void* string); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); + +#define glBindProgramARB GLEW_GET_FUN(__glewBindProgramARB) +#define glDeleteProgramsARB GLEW_GET_FUN(__glewDeleteProgramsARB) +#define glDisableVertexAttribArrayARB GLEW_GET_FUN(__glewDisableVertexAttribArrayARB) +#define glEnableVertexAttribArrayARB GLEW_GET_FUN(__glewEnableVertexAttribArrayARB) +#define glGenProgramsARB GLEW_GET_FUN(__glewGenProgramsARB) +#define glGetProgramEnvParameterdvARB GLEW_GET_FUN(__glewGetProgramEnvParameterdvARB) +#define glGetProgramEnvParameterfvARB GLEW_GET_FUN(__glewGetProgramEnvParameterfvARB) +#define glGetProgramLocalParameterdvARB GLEW_GET_FUN(__glewGetProgramLocalParameterdvARB) +#define glGetProgramLocalParameterfvARB GLEW_GET_FUN(__glewGetProgramLocalParameterfvARB) +#define glGetProgramStringARB GLEW_GET_FUN(__glewGetProgramStringARB) +#define glGetProgramivARB GLEW_GET_FUN(__glewGetProgramivARB) +#define glGetVertexAttribPointervARB GLEW_GET_FUN(__glewGetVertexAttribPointervARB) +#define glGetVertexAttribdvARB GLEW_GET_FUN(__glewGetVertexAttribdvARB) +#define glGetVertexAttribfvARB GLEW_GET_FUN(__glewGetVertexAttribfvARB) +#define glGetVertexAttribivARB GLEW_GET_FUN(__glewGetVertexAttribivARB) +#define glIsProgramARB GLEW_GET_FUN(__glewIsProgramARB) +#define glProgramEnvParameter4dARB GLEW_GET_FUN(__glewProgramEnvParameter4dARB) +#define glProgramEnvParameter4dvARB GLEW_GET_FUN(__glewProgramEnvParameter4dvARB) +#define glProgramEnvParameter4fARB GLEW_GET_FUN(__glewProgramEnvParameter4fARB) +#define glProgramEnvParameter4fvARB GLEW_GET_FUN(__glewProgramEnvParameter4fvARB) +#define glProgramLocalParameter4dARB GLEW_GET_FUN(__glewProgramLocalParameter4dARB) +#define glProgramLocalParameter4dvARB GLEW_GET_FUN(__glewProgramLocalParameter4dvARB) +#define glProgramLocalParameter4fARB GLEW_GET_FUN(__glewProgramLocalParameter4fARB) +#define glProgramLocalParameter4fvARB GLEW_GET_FUN(__glewProgramLocalParameter4fvARB) +#define glProgramStringARB GLEW_GET_FUN(__glewProgramStringARB) +#define glVertexAttrib1dARB GLEW_GET_FUN(__glewVertexAttrib1dARB) +#define glVertexAttrib1dvARB GLEW_GET_FUN(__glewVertexAttrib1dvARB) +#define glVertexAttrib1fARB GLEW_GET_FUN(__glewVertexAttrib1fARB) +#define glVertexAttrib1fvARB GLEW_GET_FUN(__glewVertexAttrib1fvARB) +#define glVertexAttrib1sARB GLEW_GET_FUN(__glewVertexAttrib1sARB) +#define glVertexAttrib1svARB GLEW_GET_FUN(__glewVertexAttrib1svARB) +#define glVertexAttrib2dARB GLEW_GET_FUN(__glewVertexAttrib2dARB) +#define glVertexAttrib2dvARB GLEW_GET_FUN(__glewVertexAttrib2dvARB) +#define glVertexAttrib2fARB GLEW_GET_FUN(__glewVertexAttrib2fARB) +#define glVertexAttrib2fvARB GLEW_GET_FUN(__glewVertexAttrib2fvARB) +#define glVertexAttrib2sARB GLEW_GET_FUN(__glewVertexAttrib2sARB) +#define glVertexAttrib2svARB GLEW_GET_FUN(__glewVertexAttrib2svARB) +#define glVertexAttrib3dARB GLEW_GET_FUN(__glewVertexAttrib3dARB) +#define glVertexAttrib3dvARB GLEW_GET_FUN(__glewVertexAttrib3dvARB) +#define glVertexAttrib3fARB GLEW_GET_FUN(__glewVertexAttrib3fARB) +#define glVertexAttrib3fvARB GLEW_GET_FUN(__glewVertexAttrib3fvARB) +#define glVertexAttrib3sARB GLEW_GET_FUN(__glewVertexAttrib3sARB) +#define glVertexAttrib3svARB GLEW_GET_FUN(__glewVertexAttrib3svARB) +#define glVertexAttrib4NbvARB GLEW_GET_FUN(__glewVertexAttrib4NbvARB) +#define glVertexAttrib4NivARB GLEW_GET_FUN(__glewVertexAttrib4NivARB) +#define glVertexAttrib4NsvARB GLEW_GET_FUN(__glewVertexAttrib4NsvARB) +#define glVertexAttrib4NubARB GLEW_GET_FUN(__glewVertexAttrib4NubARB) +#define glVertexAttrib4NubvARB GLEW_GET_FUN(__glewVertexAttrib4NubvARB) +#define glVertexAttrib4NuivARB GLEW_GET_FUN(__glewVertexAttrib4NuivARB) +#define glVertexAttrib4NusvARB GLEW_GET_FUN(__glewVertexAttrib4NusvARB) +#define glVertexAttrib4bvARB GLEW_GET_FUN(__glewVertexAttrib4bvARB) +#define glVertexAttrib4dARB GLEW_GET_FUN(__glewVertexAttrib4dARB) +#define glVertexAttrib4dvARB GLEW_GET_FUN(__glewVertexAttrib4dvARB) +#define glVertexAttrib4fARB GLEW_GET_FUN(__glewVertexAttrib4fARB) +#define glVertexAttrib4fvARB GLEW_GET_FUN(__glewVertexAttrib4fvARB) +#define glVertexAttrib4ivARB GLEW_GET_FUN(__glewVertexAttrib4ivARB) +#define glVertexAttrib4sARB GLEW_GET_FUN(__glewVertexAttrib4sARB) +#define glVertexAttrib4svARB GLEW_GET_FUN(__glewVertexAttrib4svARB) +#define glVertexAttrib4ubvARB GLEW_GET_FUN(__glewVertexAttrib4ubvARB) +#define glVertexAttrib4uivARB GLEW_GET_FUN(__glewVertexAttrib4uivARB) +#define glVertexAttrib4usvARB GLEW_GET_FUN(__glewVertexAttrib4usvARB) +#define glVertexAttribPointerARB GLEW_GET_FUN(__glewVertexAttribPointerARB) + +#define GLEW_ARB_vertex_program GLEW_GET_VAR(__GLEW_ARB_vertex_program) + +#endif /* GL_ARB_vertex_program */ + +/* -------------------------- GL_ARB_vertex_shader ------------------------- */ + +#ifndef GL_ARB_vertex_shader +#define GL_ARB_vertex_shader 1 + +#define GL_VERTEX_SHADER_ARB 0x8B31 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A +#define GL_MAX_VARYING_FLOATS_ARB 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D +#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89 +#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A + +typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB* name); +typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint *size, GLenum *type, GLcharARB *name); +typedef GLint (GLAPIENTRY * PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB* name); + +#define glBindAttribLocationARB GLEW_GET_FUN(__glewBindAttribLocationARB) +#define glGetActiveAttribARB GLEW_GET_FUN(__glewGetActiveAttribARB) +#define glGetAttribLocationARB GLEW_GET_FUN(__glewGetAttribLocationARB) + +#define GLEW_ARB_vertex_shader GLEW_GET_VAR(__GLEW_ARB_vertex_shader) + +#endif /* GL_ARB_vertex_shader */ + +/* ------------------- GL_ARB_vertex_type_2_10_10_10_rev ------------------- */ + +#ifndef GL_ARB_vertex_type_2_10_10_10_rev +#define GL_ARB_vertex_type_2_10_10_10_rev 1 + +#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 +#define GL_INT_2_10_10_10_REV 0x8D9F + +typedef void (GLAPIENTRY * PFNGLCOLORP3UIPROC) (GLenum type, GLuint color); +typedef void (GLAPIENTRY * PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint* color); +typedef void (GLAPIENTRY * PFNGLCOLORP4UIPROC) (GLenum type, GLuint color); +typedef void (GLAPIENTRY * PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint* color); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint* color); +typedef void (GLAPIENTRY * PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords); +typedef void (GLAPIENTRY * PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint* coords); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value); +typedef void (GLAPIENTRY * PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value); +typedef void (GLAPIENTRY * PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value); +typedef void (GLAPIENTRY * PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint* value); + +#define glColorP3ui GLEW_GET_FUN(__glewColorP3ui) +#define glColorP3uiv GLEW_GET_FUN(__glewColorP3uiv) +#define glColorP4ui GLEW_GET_FUN(__glewColorP4ui) +#define glColorP4uiv GLEW_GET_FUN(__glewColorP4uiv) +#define glMultiTexCoordP1ui GLEW_GET_FUN(__glewMultiTexCoordP1ui) +#define glMultiTexCoordP1uiv GLEW_GET_FUN(__glewMultiTexCoordP1uiv) +#define glMultiTexCoordP2ui GLEW_GET_FUN(__glewMultiTexCoordP2ui) +#define glMultiTexCoordP2uiv GLEW_GET_FUN(__glewMultiTexCoordP2uiv) +#define glMultiTexCoordP3ui GLEW_GET_FUN(__glewMultiTexCoordP3ui) +#define glMultiTexCoordP3uiv GLEW_GET_FUN(__glewMultiTexCoordP3uiv) +#define glMultiTexCoordP4ui GLEW_GET_FUN(__glewMultiTexCoordP4ui) +#define glMultiTexCoordP4uiv GLEW_GET_FUN(__glewMultiTexCoordP4uiv) +#define glNormalP3ui GLEW_GET_FUN(__glewNormalP3ui) +#define glNormalP3uiv GLEW_GET_FUN(__glewNormalP3uiv) +#define glSecondaryColorP3ui GLEW_GET_FUN(__glewSecondaryColorP3ui) +#define glSecondaryColorP3uiv GLEW_GET_FUN(__glewSecondaryColorP3uiv) +#define glTexCoordP1ui GLEW_GET_FUN(__glewTexCoordP1ui) +#define glTexCoordP1uiv GLEW_GET_FUN(__glewTexCoordP1uiv) +#define glTexCoordP2ui GLEW_GET_FUN(__glewTexCoordP2ui) +#define glTexCoordP2uiv GLEW_GET_FUN(__glewTexCoordP2uiv) +#define glTexCoordP3ui GLEW_GET_FUN(__glewTexCoordP3ui) +#define glTexCoordP3uiv GLEW_GET_FUN(__glewTexCoordP3uiv) +#define glTexCoordP4ui GLEW_GET_FUN(__glewTexCoordP4ui) +#define glTexCoordP4uiv GLEW_GET_FUN(__glewTexCoordP4uiv) +#define glVertexAttribP1ui GLEW_GET_FUN(__glewVertexAttribP1ui) +#define glVertexAttribP1uiv GLEW_GET_FUN(__glewVertexAttribP1uiv) +#define glVertexAttribP2ui GLEW_GET_FUN(__glewVertexAttribP2ui) +#define glVertexAttribP2uiv GLEW_GET_FUN(__glewVertexAttribP2uiv) +#define glVertexAttribP3ui GLEW_GET_FUN(__glewVertexAttribP3ui) +#define glVertexAttribP3uiv GLEW_GET_FUN(__glewVertexAttribP3uiv) +#define glVertexAttribP4ui GLEW_GET_FUN(__glewVertexAttribP4ui) +#define glVertexAttribP4uiv GLEW_GET_FUN(__glewVertexAttribP4uiv) +#define glVertexP2ui GLEW_GET_FUN(__glewVertexP2ui) +#define glVertexP2uiv GLEW_GET_FUN(__glewVertexP2uiv) +#define glVertexP3ui GLEW_GET_FUN(__glewVertexP3ui) +#define glVertexP3uiv GLEW_GET_FUN(__glewVertexP3uiv) +#define glVertexP4ui GLEW_GET_FUN(__glewVertexP4ui) +#define glVertexP4uiv GLEW_GET_FUN(__glewVertexP4uiv) + +#define GLEW_ARB_vertex_type_2_10_10_10_rev GLEW_GET_VAR(__GLEW_ARB_vertex_type_2_10_10_10_rev) + +#endif /* GL_ARB_vertex_type_2_10_10_10_rev */ + +/* ------------------------- GL_ARB_viewport_array ------------------------- */ + +#ifndef GL_ARB_viewport_array +#define GL_ARB_viewport_array 1 + +#define GL_DEPTH_RANGE 0x0B70 +#define GL_VIEWPORT 0x0BA2 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_MAX_VIEWPORTS 0x825B +#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C +#define GL_VIEWPORT_BOUNDS_RANGE 0x825D +#define GL_LAYER_PROVOKING_VERTEX 0x825E +#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F +#define GL_UNDEFINED_VERTEX 0x8260 +#define GL_FIRST_VERTEX_CONVENTION 0x8E4D +#define GL_LAST_VERTEX_CONVENTION 0x8E4E +#define GL_PROVOKING_VERTEX 0x8E4F + +typedef void (GLAPIENTRY * PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLclampd * v); +typedef void (GLAPIENTRY * PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLclampd n, GLclampd f); +typedef void (GLAPIENTRY * PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble* data); +typedef void (GLAPIENTRY * PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat* data); +typedef void (GLAPIENTRY * PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint * v); +typedef void (GLAPIENTRY * PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint * v); +typedef void (GLAPIENTRY * PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat * v); +typedef void (GLAPIENTRY * PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); +typedef void (GLAPIENTRY * PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat * v); + +#define glDepthRangeArrayv GLEW_GET_FUN(__glewDepthRangeArrayv) +#define glDepthRangeIndexed GLEW_GET_FUN(__glewDepthRangeIndexed) +#define glGetDoublei_v GLEW_GET_FUN(__glewGetDoublei_v) +#define glGetFloati_v GLEW_GET_FUN(__glewGetFloati_v) +#define glScissorArrayv GLEW_GET_FUN(__glewScissorArrayv) +#define glScissorIndexed GLEW_GET_FUN(__glewScissorIndexed) +#define glScissorIndexedv GLEW_GET_FUN(__glewScissorIndexedv) +#define glViewportArrayv GLEW_GET_FUN(__glewViewportArrayv) +#define glViewportIndexedf GLEW_GET_FUN(__glewViewportIndexedf) +#define glViewportIndexedfv GLEW_GET_FUN(__glewViewportIndexedfv) + +#define GLEW_ARB_viewport_array GLEW_GET_VAR(__GLEW_ARB_viewport_array) + +#endif /* GL_ARB_viewport_array */ + +/* --------------------------- GL_ARB_window_pos --------------------------- */ + +#ifndef GL_ARB_window_pos +#define GL_ARB_window_pos 1 + +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVARBPROC) (const GLdouble* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVARBPROC) (const GLfloat* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVARBPROC) (const GLint* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVARBPROC) (const GLshort* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVARBPROC) (const GLdouble* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVARBPROC) (const GLfloat* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVARBPROC) (const GLint* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVARBPROC) (const GLshort* p); + +#define glWindowPos2dARB GLEW_GET_FUN(__glewWindowPos2dARB) +#define glWindowPos2dvARB GLEW_GET_FUN(__glewWindowPos2dvARB) +#define glWindowPos2fARB GLEW_GET_FUN(__glewWindowPos2fARB) +#define glWindowPos2fvARB GLEW_GET_FUN(__glewWindowPos2fvARB) +#define glWindowPos2iARB GLEW_GET_FUN(__glewWindowPos2iARB) +#define glWindowPos2ivARB GLEW_GET_FUN(__glewWindowPos2ivARB) +#define glWindowPos2sARB GLEW_GET_FUN(__glewWindowPos2sARB) +#define glWindowPos2svARB GLEW_GET_FUN(__glewWindowPos2svARB) +#define glWindowPos3dARB GLEW_GET_FUN(__glewWindowPos3dARB) +#define glWindowPos3dvARB GLEW_GET_FUN(__glewWindowPos3dvARB) +#define glWindowPos3fARB GLEW_GET_FUN(__glewWindowPos3fARB) +#define glWindowPos3fvARB GLEW_GET_FUN(__glewWindowPos3fvARB) +#define glWindowPos3iARB GLEW_GET_FUN(__glewWindowPos3iARB) +#define glWindowPos3ivARB GLEW_GET_FUN(__glewWindowPos3ivARB) +#define glWindowPos3sARB GLEW_GET_FUN(__glewWindowPos3sARB) +#define glWindowPos3svARB GLEW_GET_FUN(__glewWindowPos3svARB) + +#define GLEW_ARB_window_pos GLEW_GET_VAR(__GLEW_ARB_window_pos) + +#endif /* GL_ARB_window_pos */ + +/* ------------------------- GL_ATIX_point_sprites ------------------------- */ + +#ifndef GL_ATIX_point_sprites +#define GL_ATIX_point_sprites 1 + +#define GL_TEXTURE_POINT_MODE_ATIX 0x60B0 +#define GL_TEXTURE_POINT_ONE_COORD_ATIX 0x60B1 +#define GL_TEXTURE_POINT_SPRITE_ATIX 0x60B2 +#define GL_POINT_SPRITE_CULL_MODE_ATIX 0x60B3 +#define GL_POINT_SPRITE_CULL_CENTER_ATIX 0x60B4 +#define GL_POINT_SPRITE_CULL_CLIP_ATIX 0x60B5 + +#define GLEW_ATIX_point_sprites GLEW_GET_VAR(__GLEW_ATIX_point_sprites) + +#endif /* GL_ATIX_point_sprites */ + +/* ---------------------- GL_ATIX_texture_env_combine3 --------------------- */ + +#ifndef GL_ATIX_texture_env_combine3 +#define GL_ATIX_texture_env_combine3 1 + +#define GL_MODULATE_ADD_ATIX 0x8744 +#define GL_MODULATE_SIGNED_ADD_ATIX 0x8745 +#define GL_MODULATE_SUBTRACT_ATIX 0x8746 + +#define GLEW_ATIX_texture_env_combine3 GLEW_GET_VAR(__GLEW_ATIX_texture_env_combine3) + +#endif /* GL_ATIX_texture_env_combine3 */ + +/* ----------------------- GL_ATIX_texture_env_route ----------------------- */ + +#ifndef GL_ATIX_texture_env_route +#define GL_ATIX_texture_env_route 1 + +#define GL_SECONDARY_COLOR_ATIX 0x8747 +#define GL_TEXTURE_OUTPUT_RGB_ATIX 0x8748 +#define GL_TEXTURE_OUTPUT_ALPHA_ATIX 0x8749 + +#define GLEW_ATIX_texture_env_route GLEW_GET_VAR(__GLEW_ATIX_texture_env_route) + +#endif /* GL_ATIX_texture_env_route */ + +/* ---------------- GL_ATIX_vertex_shader_output_point_size ---------------- */ + +#ifndef GL_ATIX_vertex_shader_output_point_size +#define GL_ATIX_vertex_shader_output_point_size 1 + +#define GL_OUTPUT_POINT_SIZE_ATIX 0x610E + +#define GLEW_ATIX_vertex_shader_output_point_size GLEW_GET_VAR(__GLEW_ATIX_vertex_shader_output_point_size) + +#endif /* GL_ATIX_vertex_shader_output_point_size */ + +/* -------------------------- GL_ATI_draw_buffers -------------------------- */ + +#ifndef GL_ATI_draw_buffers +#define GL_ATI_draw_buffers 1 + +#define GL_MAX_DRAW_BUFFERS_ATI 0x8824 +#define GL_DRAW_BUFFER0_ATI 0x8825 +#define GL_DRAW_BUFFER1_ATI 0x8826 +#define GL_DRAW_BUFFER2_ATI 0x8827 +#define GL_DRAW_BUFFER3_ATI 0x8828 +#define GL_DRAW_BUFFER4_ATI 0x8829 +#define GL_DRAW_BUFFER5_ATI 0x882A +#define GL_DRAW_BUFFER6_ATI 0x882B +#define GL_DRAW_BUFFER7_ATI 0x882C +#define GL_DRAW_BUFFER8_ATI 0x882D +#define GL_DRAW_BUFFER9_ATI 0x882E +#define GL_DRAW_BUFFER10_ATI 0x882F +#define GL_DRAW_BUFFER11_ATI 0x8830 +#define GL_DRAW_BUFFER12_ATI 0x8831 +#define GL_DRAW_BUFFER13_ATI 0x8832 +#define GL_DRAW_BUFFER14_ATI 0x8833 +#define GL_DRAW_BUFFER15_ATI 0x8834 + +typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum* bufs); + +#define glDrawBuffersATI GLEW_GET_FUN(__glewDrawBuffersATI) + +#define GLEW_ATI_draw_buffers GLEW_GET_VAR(__GLEW_ATI_draw_buffers) + +#endif /* GL_ATI_draw_buffers */ + +/* -------------------------- GL_ATI_element_array ------------------------- */ + +#ifndef GL_ATI_element_array +#define GL_ATI_element_array 1 + +#define GL_ELEMENT_ARRAY_ATI 0x8768 +#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769 +#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A + +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); +typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); +typedef void (GLAPIENTRY * PFNGLELEMENTPOINTERATIPROC) (GLenum type, const void* pointer); + +#define glDrawElementArrayATI GLEW_GET_FUN(__glewDrawElementArrayATI) +#define glDrawRangeElementArrayATI GLEW_GET_FUN(__glewDrawRangeElementArrayATI) +#define glElementPointerATI GLEW_GET_FUN(__glewElementPointerATI) + +#define GLEW_ATI_element_array GLEW_GET_VAR(__GLEW_ATI_element_array) + +#endif /* GL_ATI_element_array */ + +/* ------------------------- GL_ATI_envmap_bumpmap ------------------------- */ + +#ifndef GL_ATI_envmap_bumpmap +#define GL_ATI_envmap_bumpmap 1 + +#define GL_BUMP_ROT_MATRIX_ATI 0x8775 +#define GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776 +#define GL_BUMP_NUM_TEX_UNITS_ATI 0x8777 +#define GL_BUMP_TEX_UNITS_ATI 0x8778 +#define GL_DUDV_ATI 0x8779 +#define GL_DU8DV8_ATI 0x877A +#define GL_BUMP_ENVMAP_ATI 0x877B +#define GL_BUMP_TARGET_ATI 0x877C + +typedef void (GLAPIENTRY * PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); +typedef void (GLAPIENTRY * PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); +typedef void (GLAPIENTRY * PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); +typedef void (GLAPIENTRY * PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); + +#define glGetTexBumpParameterfvATI GLEW_GET_FUN(__glewGetTexBumpParameterfvATI) +#define glGetTexBumpParameterivATI GLEW_GET_FUN(__glewGetTexBumpParameterivATI) +#define glTexBumpParameterfvATI GLEW_GET_FUN(__glewTexBumpParameterfvATI) +#define glTexBumpParameterivATI GLEW_GET_FUN(__glewTexBumpParameterivATI) + +#define GLEW_ATI_envmap_bumpmap GLEW_GET_VAR(__GLEW_ATI_envmap_bumpmap) + +#endif /* GL_ATI_envmap_bumpmap */ + +/* ------------------------- GL_ATI_fragment_shader ------------------------ */ + +#ifndef GL_ATI_fragment_shader +#define GL_ATI_fragment_shader 1 + +#define GL_RED_BIT_ATI 0x00000001 +#define GL_2X_BIT_ATI 0x00000001 +#define GL_4X_BIT_ATI 0x00000002 +#define GL_GREEN_BIT_ATI 0x00000002 +#define GL_COMP_BIT_ATI 0x00000002 +#define GL_BLUE_BIT_ATI 0x00000004 +#define GL_8X_BIT_ATI 0x00000004 +#define GL_NEGATE_BIT_ATI 0x00000004 +#define GL_BIAS_BIT_ATI 0x00000008 +#define GL_HALF_BIT_ATI 0x00000008 +#define GL_QUARTER_BIT_ATI 0x00000010 +#define GL_EIGHTH_BIT_ATI 0x00000020 +#define GL_SATURATE_BIT_ATI 0x00000040 +#define GL_FRAGMENT_SHADER_ATI 0x8920 +#define GL_REG_0_ATI 0x8921 +#define GL_REG_1_ATI 0x8922 +#define GL_REG_2_ATI 0x8923 +#define GL_REG_3_ATI 0x8924 +#define GL_REG_4_ATI 0x8925 +#define GL_REG_5_ATI 0x8926 +#define GL_CON_0_ATI 0x8941 +#define GL_CON_1_ATI 0x8942 +#define GL_CON_2_ATI 0x8943 +#define GL_CON_3_ATI 0x8944 +#define GL_CON_4_ATI 0x8945 +#define GL_CON_5_ATI 0x8946 +#define GL_CON_6_ATI 0x8947 +#define GL_CON_7_ATI 0x8948 +#define GL_MOV_ATI 0x8961 +#define GL_ADD_ATI 0x8963 +#define GL_MUL_ATI 0x8964 +#define GL_SUB_ATI 0x8965 +#define GL_DOT3_ATI 0x8966 +#define GL_DOT4_ATI 0x8967 +#define GL_MAD_ATI 0x8968 +#define GL_LERP_ATI 0x8969 +#define GL_CND_ATI 0x896A +#define GL_CND0_ATI 0x896B +#define GL_DOT2_ADD_ATI 0x896C +#define GL_SECONDARY_INTERPOLATOR_ATI 0x896D +#define GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E +#define GL_NUM_FRAGMENT_CONSTANTS_ATI 0x896F +#define GL_NUM_PASSES_ATI 0x8970 +#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI 0x8971 +#define GL_NUM_INSTRUCTIONS_TOTAL_ATI 0x8972 +#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973 +#define GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974 +#define GL_COLOR_ALPHA_PAIRING_ATI 0x8975 +#define GL_SWIZZLE_STR_ATI 0x8976 +#define GL_SWIZZLE_STQ_ATI 0x8977 +#define GL_SWIZZLE_STR_DR_ATI 0x8978 +#define GL_SWIZZLE_STQ_DQ_ATI 0x8979 +#define GL_SWIZZLE_STRQ_ATI 0x897A +#define GL_SWIZZLE_STRQ_DQ_ATI 0x897B + +typedef void (GLAPIENTRY * PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); +typedef void (GLAPIENTRY * PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLBEGINFRAGMENTSHADERATIPROC) (void); +typedef void (GLAPIENTRY * PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); +typedef void (GLAPIENTRY * PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLENDFRAGMENTSHADERATIPROC) (void); +typedef GLuint (GLAPIENTRY * PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); +typedef void (GLAPIENTRY * PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); +typedef void (GLAPIENTRY * PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); +typedef void (GLAPIENTRY * PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat* value); + +#define glAlphaFragmentOp1ATI GLEW_GET_FUN(__glewAlphaFragmentOp1ATI) +#define glAlphaFragmentOp2ATI GLEW_GET_FUN(__glewAlphaFragmentOp2ATI) +#define glAlphaFragmentOp3ATI GLEW_GET_FUN(__glewAlphaFragmentOp3ATI) +#define glBeginFragmentShaderATI GLEW_GET_FUN(__glewBeginFragmentShaderATI) +#define glBindFragmentShaderATI GLEW_GET_FUN(__glewBindFragmentShaderATI) +#define glColorFragmentOp1ATI GLEW_GET_FUN(__glewColorFragmentOp1ATI) +#define glColorFragmentOp2ATI GLEW_GET_FUN(__glewColorFragmentOp2ATI) +#define glColorFragmentOp3ATI GLEW_GET_FUN(__glewColorFragmentOp3ATI) +#define glDeleteFragmentShaderATI GLEW_GET_FUN(__glewDeleteFragmentShaderATI) +#define glEndFragmentShaderATI GLEW_GET_FUN(__glewEndFragmentShaderATI) +#define glGenFragmentShadersATI GLEW_GET_FUN(__glewGenFragmentShadersATI) +#define glPassTexCoordATI GLEW_GET_FUN(__glewPassTexCoordATI) +#define glSampleMapATI GLEW_GET_FUN(__glewSampleMapATI) +#define glSetFragmentShaderConstantATI GLEW_GET_FUN(__glewSetFragmentShaderConstantATI) + +#define GLEW_ATI_fragment_shader GLEW_GET_VAR(__GLEW_ATI_fragment_shader) + +#endif /* GL_ATI_fragment_shader */ + +/* ------------------------ GL_ATI_map_object_buffer ----------------------- */ + +#ifndef GL_ATI_map_object_buffer +#define GL_ATI_map_object_buffer 1 + +typedef void* (GLAPIENTRY * PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); +typedef void (GLAPIENTRY * PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); + +#define glMapObjectBufferATI GLEW_GET_FUN(__glewMapObjectBufferATI) +#define glUnmapObjectBufferATI GLEW_GET_FUN(__glewUnmapObjectBufferATI) + +#define GLEW_ATI_map_object_buffer GLEW_GET_VAR(__GLEW_ATI_map_object_buffer) + +#endif /* GL_ATI_map_object_buffer */ + +/* ----------------------------- GL_ATI_meminfo ---------------------------- */ + +#ifndef GL_ATI_meminfo +#define GL_ATI_meminfo 1 + +#define GL_VBO_FREE_MEMORY_ATI 0x87FB +#define GL_TEXTURE_FREE_MEMORY_ATI 0x87FC +#define GL_RENDERBUFFER_FREE_MEMORY_ATI 0x87FD + +#define GLEW_ATI_meminfo GLEW_GET_VAR(__GLEW_ATI_meminfo) + +#endif /* GL_ATI_meminfo */ + +/* -------------------------- GL_ATI_pn_triangles -------------------------- */ + +#ifndef GL_ATI_pn_triangles +#define GL_ATI_pn_triangles 1 + +#define GL_PN_TRIANGLES_ATI 0x87F0 +#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1 +#define GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2 +#define GL_PN_TRIANGLES_NORMAL_MODE_ATI 0x87F3 +#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4 +#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5 +#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6 +#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7 +#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8 + +typedef void (GLAPIENTRY * PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); + +#define glPNTrianglesfATI GLEW_GET_FUN(__glPNTrianglewesfATI) +#define glPNTrianglesiATI GLEW_GET_FUN(__glPNTrianglewesiATI) + +#define GLEW_ATI_pn_triangles GLEW_GET_VAR(__GLEW_ATI_pn_triangles) + +#endif /* GL_ATI_pn_triangles */ + +/* ------------------------ GL_ATI_separate_stencil ------------------------ */ + +#ifndef GL_ATI_separate_stencil +#define GL_ATI_separate_stencil 1 + +#define GL_STENCIL_BACK_FUNC_ATI 0x8800 +#define GL_STENCIL_BACK_FAIL_ATI 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803 + +typedef void (GLAPIENTRY * PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +typedef void (GLAPIENTRY * PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); + +#define glStencilFuncSeparateATI GLEW_GET_FUN(__glewStencilFuncSeparateATI) +#define glStencilOpSeparateATI GLEW_GET_FUN(__glewStencilOpSeparateATI) + +#define GLEW_ATI_separate_stencil GLEW_GET_VAR(__GLEW_ATI_separate_stencil) + +#endif /* GL_ATI_separate_stencil */ + +/* ----------------------- GL_ATI_shader_texture_lod ----------------------- */ + +#ifndef GL_ATI_shader_texture_lod +#define GL_ATI_shader_texture_lod 1 + +#define GLEW_ATI_shader_texture_lod GLEW_GET_VAR(__GLEW_ATI_shader_texture_lod) + +#endif /* GL_ATI_shader_texture_lod */ + +/* ---------------------- GL_ATI_text_fragment_shader ---------------------- */ + +#ifndef GL_ATI_text_fragment_shader +#define GL_ATI_text_fragment_shader 1 + +#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200 + +#define GLEW_ATI_text_fragment_shader GLEW_GET_VAR(__GLEW_ATI_text_fragment_shader) + +#endif /* GL_ATI_text_fragment_shader */ + +/* --------------------- GL_ATI_texture_compression_3dc -------------------- */ + +#ifndef GL_ATI_texture_compression_3dc +#define GL_ATI_texture_compression_3dc 1 + +#define GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837 + +#define GLEW_ATI_texture_compression_3dc GLEW_GET_VAR(__GLEW_ATI_texture_compression_3dc) + +#endif /* GL_ATI_texture_compression_3dc */ + +/* ---------------------- GL_ATI_texture_env_combine3 ---------------------- */ + +#ifndef GL_ATI_texture_env_combine3 +#define GL_ATI_texture_env_combine3 1 + +#define GL_MODULATE_ADD_ATI 0x8744 +#define GL_MODULATE_SIGNED_ADD_ATI 0x8745 +#define GL_MODULATE_SUBTRACT_ATI 0x8746 + +#define GLEW_ATI_texture_env_combine3 GLEW_GET_VAR(__GLEW_ATI_texture_env_combine3) + +#endif /* GL_ATI_texture_env_combine3 */ + +/* -------------------------- GL_ATI_texture_float ------------------------- */ + +#ifndef GL_ATI_texture_float +#define GL_ATI_texture_float 1 + +#define GL_RGBA_FLOAT32_ATI 0x8814 +#define GL_RGB_FLOAT32_ATI 0x8815 +#define GL_ALPHA_FLOAT32_ATI 0x8816 +#define GL_INTENSITY_FLOAT32_ATI 0x8817 +#define GL_LUMINANCE_FLOAT32_ATI 0x8818 +#define GL_LUMINANCE_ALPHA_FLOAT32_ATI 0x8819 +#define GL_RGBA_FLOAT16_ATI 0x881A +#define GL_RGB_FLOAT16_ATI 0x881B +#define GL_ALPHA_FLOAT16_ATI 0x881C +#define GL_INTENSITY_FLOAT16_ATI 0x881D +#define GL_LUMINANCE_FLOAT16_ATI 0x881E +#define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F + +#define GLEW_ATI_texture_float GLEW_GET_VAR(__GLEW_ATI_texture_float) + +#endif /* GL_ATI_texture_float */ + +/* ----------------------- GL_ATI_texture_mirror_once ---------------------- */ + +#ifndef GL_ATI_texture_mirror_once +#define GL_ATI_texture_mirror_once 1 + +#define GL_MIRROR_CLAMP_ATI 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 + +#define GLEW_ATI_texture_mirror_once GLEW_GET_VAR(__GLEW_ATI_texture_mirror_once) + +#endif /* GL_ATI_texture_mirror_once */ + +/* ----------------------- GL_ATI_vertex_array_object ---------------------- */ + +#ifndef GL_ATI_vertex_array_object +#define GL_ATI_vertex_array_object 1 + +#define GL_STATIC_ATI 0x8760 +#define GL_DYNAMIC_ATI 0x8761 +#define GL_PRESERVE_ATI 0x8762 +#define GL_DISCARD_ATI 0x8763 +#define GL_OBJECT_BUFFER_SIZE_ATI 0x8764 +#define GL_OBJECT_BUFFER_USAGE_ATI 0x8765 +#define GL_ARRAY_OBJECT_BUFFER_ATI 0x8766 +#define GL_ARRAY_OBJECT_OFFSET_ATI 0x8767 + +typedef void (GLAPIENTRY * PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); +typedef void (GLAPIENTRY * PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); +typedef void (GLAPIENTRY * PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); +typedef GLuint (GLAPIENTRY * PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const void* pointer, GLenum usage); +typedef void (GLAPIENTRY * PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const void* pointer, GLenum preserve); +typedef void (GLAPIENTRY * PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); + +#define glArrayObjectATI GLEW_GET_FUN(__glewArrayObjectATI) +#define glFreeObjectBufferATI GLEW_GET_FUN(__glewFreeObjectBufferATI) +#define glGetArrayObjectfvATI GLEW_GET_FUN(__glewGetArrayObjectfvATI) +#define glGetArrayObjectivATI GLEW_GET_FUN(__glewGetArrayObjectivATI) +#define glGetObjectBufferfvATI GLEW_GET_FUN(__glewGetObjectBufferfvATI) +#define glGetObjectBufferivATI GLEW_GET_FUN(__glewGetObjectBufferivATI) +#define glGetVariantArrayObjectfvATI GLEW_GET_FUN(__glewGetVariantArrayObjectfvATI) +#define glGetVariantArrayObjectivATI GLEW_GET_FUN(__glewGetVariantArrayObjectivATI) +#define glIsObjectBufferATI GLEW_GET_FUN(__glewIsObjectBufferATI) +#define glNewObjectBufferATI GLEW_GET_FUN(__glewNewObjectBufferATI) +#define glUpdateObjectBufferATI GLEW_GET_FUN(__glewUpdateObjectBufferATI) +#define glVariantArrayObjectATI GLEW_GET_FUN(__glewVariantArrayObjectATI) + +#define GLEW_ATI_vertex_array_object GLEW_GET_VAR(__GLEW_ATI_vertex_array_object) + +#endif /* GL_ATI_vertex_array_object */ + +/* ------------------- GL_ATI_vertex_attrib_array_object ------------------- */ + +#ifndef GL_ATI_vertex_attrib_array_object +#define GL_ATI_vertex_attrib_array_object 1 + +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); + +#define glGetVertexAttribArrayObjectfvATI GLEW_GET_FUN(__glewGetVertexAttribArrayObjectfvATI) +#define glGetVertexAttribArrayObjectivATI GLEW_GET_FUN(__glewGetVertexAttribArrayObjectivATI) +#define glVertexAttribArrayObjectATI GLEW_GET_FUN(__glewVertexAttribArrayObjectATI) + +#define GLEW_ATI_vertex_attrib_array_object GLEW_GET_VAR(__GLEW_ATI_vertex_attrib_array_object) + +#endif /* GL_ATI_vertex_attrib_array_object */ + +/* ------------------------- GL_ATI_vertex_streams ------------------------- */ + +#ifndef GL_ATI_vertex_streams +#define GL_ATI_vertex_streams 1 + +#define GL_MAX_VERTEX_STREAMS_ATI 0x876B +#define GL_VERTEX_SOURCE_ATI 0x876C +#define GL_VERTEX_STREAM0_ATI 0x876D +#define GL_VERTEX_STREAM1_ATI 0x876E +#define GL_VERTEX_STREAM2_ATI 0x876F +#define GL_VERTEX_STREAM3_ATI 0x8770 +#define GL_VERTEX_STREAM4_ATI 0x8771 +#define GL_VERTEX_STREAM5_ATI 0x8772 +#define GL_VERTEX_STREAM6_ATI 0x8773 +#define GL_VERTEX_STREAM7_ATI 0x8774 + +typedef void (GLAPIENTRY * PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte x, GLbyte y, GLbyte z); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *v); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *v); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *v); + +#define glClientActiveVertexStreamATI GLEW_GET_FUN(__glewClientActiveVertexStreamATI) +#define glNormalStream3bATI GLEW_GET_FUN(__glewNormalStream3bATI) +#define glNormalStream3bvATI GLEW_GET_FUN(__glewNormalStream3bvATI) +#define glNormalStream3dATI GLEW_GET_FUN(__glewNormalStream3dATI) +#define glNormalStream3dvATI GLEW_GET_FUN(__glewNormalStream3dvATI) +#define glNormalStream3fATI GLEW_GET_FUN(__glewNormalStream3fATI) +#define glNormalStream3fvATI GLEW_GET_FUN(__glewNormalStream3fvATI) +#define glNormalStream3iATI GLEW_GET_FUN(__glewNormalStream3iATI) +#define glNormalStream3ivATI GLEW_GET_FUN(__glewNormalStream3ivATI) +#define glNormalStream3sATI GLEW_GET_FUN(__glewNormalStream3sATI) +#define glNormalStream3svATI GLEW_GET_FUN(__glewNormalStream3svATI) +#define glVertexBlendEnvfATI GLEW_GET_FUN(__glewVertexBlendEnvfATI) +#define glVertexBlendEnviATI GLEW_GET_FUN(__glewVertexBlendEnviATI) +#define glVertexStream2dATI GLEW_GET_FUN(__glewVertexStream2dATI) +#define glVertexStream2dvATI GLEW_GET_FUN(__glewVertexStream2dvATI) +#define glVertexStream2fATI GLEW_GET_FUN(__glewVertexStream2fATI) +#define glVertexStream2fvATI GLEW_GET_FUN(__glewVertexStream2fvATI) +#define glVertexStream2iATI GLEW_GET_FUN(__glewVertexStream2iATI) +#define glVertexStream2ivATI GLEW_GET_FUN(__glewVertexStream2ivATI) +#define glVertexStream2sATI GLEW_GET_FUN(__glewVertexStream2sATI) +#define glVertexStream2svATI GLEW_GET_FUN(__glewVertexStream2svATI) +#define glVertexStream3dATI GLEW_GET_FUN(__glewVertexStream3dATI) +#define glVertexStream3dvATI GLEW_GET_FUN(__glewVertexStream3dvATI) +#define glVertexStream3fATI GLEW_GET_FUN(__glewVertexStream3fATI) +#define glVertexStream3fvATI GLEW_GET_FUN(__glewVertexStream3fvATI) +#define glVertexStream3iATI GLEW_GET_FUN(__glewVertexStream3iATI) +#define glVertexStream3ivATI GLEW_GET_FUN(__glewVertexStream3ivATI) +#define glVertexStream3sATI GLEW_GET_FUN(__glewVertexStream3sATI) +#define glVertexStream3svATI GLEW_GET_FUN(__glewVertexStream3svATI) +#define glVertexStream4dATI GLEW_GET_FUN(__glewVertexStream4dATI) +#define glVertexStream4dvATI GLEW_GET_FUN(__glewVertexStream4dvATI) +#define glVertexStream4fATI GLEW_GET_FUN(__glewVertexStream4fATI) +#define glVertexStream4fvATI GLEW_GET_FUN(__glewVertexStream4fvATI) +#define glVertexStream4iATI GLEW_GET_FUN(__glewVertexStream4iATI) +#define glVertexStream4ivATI GLEW_GET_FUN(__glewVertexStream4ivATI) +#define glVertexStream4sATI GLEW_GET_FUN(__glewVertexStream4sATI) +#define glVertexStream4svATI GLEW_GET_FUN(__glewVertexStream4svATI) + +#define GLEW_ATI_vertex_streams GLEW_GET_VAR(__GLEW_ATI_vertex_streams) + +#endif /* GL_ATI_vertex_streams */ + +/* --------------------------- GL_EXT_422_pixels --------------------------- */ + +#ifndef GL_EXT_422_pixels +#define GL_EXT_422_pixels 1 + +#define GL_422_EXT 0x80CC +#define GL_422_REV_EXT 0x80CD +#define GL_422_AVERAGE_EXT 0x80CE +#define GL_422_REV_AVERAGE_EXT 0x80CF + +#define GLEW_EXT_422_pixels GLEW_GET_VAR(__GLEW_EXT_422_pixels) + +#endif /* GL_EXT_422_pixels */ + +/* ---------------------------- GL_EXT_Cg_shader --------------------------- */ + +#ifndef GL_EXT_Cg_shader +#define GL_EXT_Cg_shader 1 + +#define GL_CG_VERTEX_SHADER_EXT 0x890E +#define GL_CG_FRAGMENT_SHADER_EXT 0x890F + +#define GLEW_EXT_Cg_shader GLEW_GET_VAR(__GLEW_EXT_Cg_shader) + +#endif /* GL_EXT_Cg_shader */ + +/* ------------------------------ GL_EXT_abgr ------------------------------ */ + +#ifndef GL_EXT_abgr +#define GL_EXT_abgr 1 + +#define GL_ABGR_EXT 0x8000 + +#define GLEW_EXT_abgr GLEW_GET_VAR(__GLEW_EXT_abgr) + +#endif /* GL_EXT_abgr */ + +/* ------------------------------ GL_EXT_bgra ------------------------------ */ + +#ifndef GL_EXT_bgra +#define GL_EXT_bgra 1 + +#define GL_BGR_EXT 0x80E0 +#define GL_BGRA_EXT 0x80E1 + +#define GLEW_EXT_bgra GLEW_GET_VAR(__GLEW_EXT_bgra) + +#endif /* GL_EXT_bgra */ + +/* ------------------------ GL_EXT_bindable_uniform ------------------------ */ + +#ifndef GL_EXT_bindable_uniform +#define GL_EXT_bindable_uniform 1 + +#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2 +#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3 +#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4 +#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED +#define GL_UNIFORM_BUFFER_EXT 0x8DEE +#define GL_UNIFORM_BUFFER_BINDING_EXT 0x8DEF + +typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location); +typedef GLintptr (GLAPIENTRY * PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location); +typedef void (GLAPIENTRY * PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer); + +#define glGetUniformBufferSizeEXT GLEW_GET_FUN(__glewGetUniformBufferSizeEXT) +#define glGetUniformOffsetEXT GLEW_GET_FUN(__glewGetUniformOffsetEXT) +#define glUniformBufferEXT GLEW_GET_FUN(__glewUniformBufferEXT) + +#define GLEW_EXT_bindable_uniform GLEW_GET_VAR(__GLEW_EXT_bindable_uniform) + +#endif /* GL_EXT_bindable_uniform */ + +/* --------------------------- GL_EXT_blend_color -------------------------- */ + +#ifndef GL_EXT_blend_color +#define GL_EXT_blend_color 1 + +#define GL_CONSTANT_COLOR_EXT 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002 +#define GL_CONSTANT_ALPHA_EXT 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004 +#define GL_BLEND_COLOR_EXT 0x8005 + +typedef void (GLAPIENTRY * PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); + +#define glBlendColorEXT GLEW_GET_FUN(__glewBlendColorEXT) + +#define GLEW_EXT_blend_color GLEW_GET_VAR(__GLEW_EXT_blend_color) + +#endif /* GL_EXT_blend_color */ + +/* --------------------- GL_EXT_blend_equation_separate -------------------- */ + +#ifndef GL_EXT_blend_equation_separate +#define GL_EXT_blend_equation_separate 1 + +#define GL_BLEND_EQUATION_RGB_EXT 0x8009 +#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D + +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); + +#define glBlendEquationSeparateEXT GLEW_GET_FUN(__glewBlendEquationSeparateEXT) + +#define GLEW_EXT_blend_equation_separate GLEW_GET_VAR(__GLEW_EXT_blend_equation_separate) + +#endif /* GL_EXT_blend_equation_separate */ + +/* ----------------------- GL_EXT_blend_func_separate ---------------------- */ + +#ifndef GL_EXT_blend_func_separate +#define GL_EXT_blend_func_separate 1 + +#define GL_BLEND_DST_RGB_EXT 0x80C8 +#define GL_BLEND_SRC_RGB_EXT 0x80C9 +#define GL_BLEND_DST_ALPHA_EXT 0x80CA +#define GL_BLEND_SRC_ALPHA_EXT 0x80CB + +typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); + +#define glBlendFuncSeparateEXT GLEW_GET_FUN(__glewBlendFuncSeparateEXT) + +#define GLEW_EXT_blend_func_separate GLEW_GET_VAR(__GLEW_EXT_blend_func_separate) + +#endif /* GL_EXT_blend_func_separate */ + +/* ------------------------- GL_EXT_blend_logic_op ------------------------- */ + +#ifndef GL_EXT_blend_logic_op +#define GL_EXT_blend_logic_op 1 + +#define GLEW_EXT_blend_logic_op GLEW_GET_VAR(__GLEW_EXT_blend_logic_op) + +#endif /* GL_EXT_blend_logic_op */ + +/* -------------------------- GL_EXT_blend_minmax -------------------------- */ + +#ifndef GL_EXT_blend_minmax +#define GL_EXT_blend_minmax 1 + +#define GL_FUNC_ADD_EXT 0x8006 +#define GL_MIN_EXT 0x8007 +#define GL_MAX_EXT 0x8008 +#define GL_BLEND_EQUATION_EXT 0x8009 + +typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); + +#define glBlendEquationEXT GLEW_GET_FUN(__glewBlendEquationEXT) + +#define GLEW_EXT_blend_minmax GLEW_GET_VAR(__GLEW_EXT_blend_minmax) + +#endif /* GL_EXT_blend_minmax */ + +/* ------------------------- GL_EXT_blend_subtract ------------------------- */ + +#ifndef GL_EXT_blend_subtract +#define GL_EXT_blend_subtract 1 + +#define GL_FUNC_SUBTRACT_EXT 0x800A +#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B + +#define GLEW_EXT_blend_subtract GLEW_GET_VAR(__GLEW_EXT_blend_subtract) + +#endif /* GL_EXT_blend_subtract */ + +/* ------------------------ GL_EXT_clip_volume_hint ------------------------ */ + +#ifndef GL_EXT_clip_volume_hint +#define GL_EXT_clip_volume_hint 1 + +#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0 + +#define GLEW_EXT_clip_volume_hint GLEW_GET_VAR(__GLEW_EXT_clip_volume_hint) + +#endif /* GL_EXT_clip_volume_hint */ + +/* ------------------------------ GL_EXT_cmyka ----------------------------- */ + +#ifndef GL_EXT_cmyka +#define GL_EXT_cmyka 1 + +#define GL_CMYK_EXT 0x800C +#define GL_CMYKA_EXT 0x800D +#define GL_PACK_CMYK_HINT_EXT 0x800E +#define GL_UNPACK_CMYK_HINT_EXT 0x800F + +#define GLEW_EXT_cmyka GLEW_GET_VAR(__GLEW_EXT_cmyka) + +#endif /* GL_EXT_cmyka */ + +/* ------------------------- GL_EXT_color_subtable ------------------------- */ + +#ifndef GL_EXT_color_subtable +#define GL_EXT_color_subtable 1 + +typedef void (GLAPIENTRY * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void* data); +typedef void (GLAPIENTRY * PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); + +#define glColorSubTableEXT GLEW_GET_FUN(__glewColorSubTableEXT) +#define glCopyColorSubTableEXT GLEW_GET_FUN(__glewCopyColorSubTableEXT) + +#define GLEW_EXT_color_subtable GLEW_GET_VAR(__GLEW_EXT_color_subtable) + +#endif /* GL_EXT_color_subtable */ + +/* ---------------------- GL_EXT_compiled_vertex_array --------------------- */ + +#ifndef GL_EXT_compiled_vertex_array +#define GL_EXT_compiled_vertex_array 1 + +#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8 +#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9 + +typedef void (GLAPIENTRY * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); +typedef void (GLAPIENTRY * PFNGLUNLOCKARRAYSEXTPROC) (void); + +#define glLockArraysEXT GLEW_GET_FUN(__glewLockArraysEXT) +#define glUnlockArraysEXT GLEW_GET_FUN(__glewUnlockArraysEXT) + +#define GLEW_EXT_compiled_vertex_array GLEW_GET_VAR(__GLEW_EXT_compiled_vertex_array) + +#endif /* GL_EXT_compiled_vertex_array */ + +/* --------------------------- GL_EXT_convolution -------------------------- */ + +#ifndef GL_EXT_convolution +#define GL_EXT_convolution 1 + +#define GL_CONVOLUTION_1D_EXT 0x8010 +#define GL_CONVOLUTION_2D_EXT 0x8011 +#define GL_SEPARABLE_2D_EXT 0x8012 +#define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013 +#define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014 +#define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015 +#define GL_REDUCE_EXT 0x8016 +#define GL_CONVOLUTION_FORMAT_EXT 0x8017 +#define GL_CONVOLUTION_WIDTH_EXT 0x8018 +#define GL_CONVOLUTION_HEIGHT_EXT 0x8019 +#define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A +#define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B +#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C +#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D +#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E +#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F +#define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020 +#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021 +#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022 +#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023 + +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* image); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* image); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void* image); +typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void* row, void* column, void* span); +typedef void (GLAPIENTRY * PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* row, const void* column); + +#define glConvolutionFilter1DEXT GLEW_GET_FUN(__glewConvolutionFilter1DEXT) +#define glConvolutionFilter2DEXT GLEW_GET_FUN(__glewConvolutionFilter2DEXT) +#define glConvolutionParameterfEXT GLEW_GET_FUN(__glewConvolutionParameterfEXT) +#define glConvolutionParameterfvEXT GLEW_GET_FUN(__glewConvolutionParameterfvEXT) +#define glConvolutionParameteriEXT GLEW_GET_FUN(__glewConvolutionParameteriEXT) +#define glConvolutionParameterivEXT GLEW_GET_FUN(__glewConvolutionParameterivEXT) +#define glCopyConvolutionFilter1DEXT GLEW_GET_FUN(__glewCopyConvolutionFilter1DEXT) +#define glCopyConvolutionFilter2DEXT GLEW_GET_FUN(__glewCopyConvolutionFilter2DEXT) +#define glGetConvolutionFilterEXT GLEW_GET_FUN(__glewGetConvolutionFilterEXT) +#define glGetConvolutionParameterfvEXT GLEW_GET_FUN(__glewGetConvolutionParameterfvEXT) +#define glGetConvolutionParameterivEXT GLEW_GET_FUN(__glewGetConvolutionParameterivEXT) +#define glGetSeparableFilterEXT GLEW_GET_FUN(__glewGetSeparableFilterEXT) +#define glSeparableFilter2DEXT GLEW_GET_FUN(__glewSeparableFilter2DEXT) + +#define GLEW_EXT_convolution GLEW_GET_VAR(__GLEW_EXT_convolution) + +#endif /* GL_EXT_convolution */ + +/* ------------------------ GL_EXT_coordinate_frame ------------------------ */ + +#ifndef GL_EXT_coordinate_frame +#define GL_EXT_coordinate_frame 1 + +#define GL_TANGENT_ARRAY_EXT 0x8439 +#define GL_BINORMAL_ARRAY_EXT 0x843A +#define GL_CURRENT_TANGENT_EXT 0x843B +#define GL_CURRENT_BINORMAL_EXT 0x843C +#define GL_TANGENT_ARRAY_TYPE_EXT 0x843E +#define GL_TANGENT_ARRAY_STRIDE_EXT 0x843F +#define GL_BINORMAL_ARRAY_TYPE_EXT 0x8440 +#define GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441 +#define GL_TANGENT_ARRAY_POINTER_EXT 0x8442 +#define GL_BINORMAL_ARRAY_POINTER_EXT 0x8443 +#define GL_MAP1_TANGENT_EXT 0x8444 +#define GL_MAP2_TANGENT_EXT 0x8445 +#define GL_MAP1_BINORMAL_EXT 0x8446 +#define GL_MAP2_BINORMAL_EXT 0x8447 + +typedef void (GLAPIENTRY * PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, void* pointer); +typedef void (GLAPIENTRY * PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, void* pointer); + +#define glBinormalPointerEXT GLEW_GET_FUN(__glewBinormalPointerEXT) +#define glTangentPointerEXT GLEW_GET_FUN(__glewTangentPointerEXT) + +#define GLEW_EXT_coordinate_frame GLEW_GET_VAR(__GLEW_EXT_coordinate_frame) + +#endif /* GL_EXT_coordinate_frame */ + +/* -------------------------- GL_EXT_copy_texture -------------------------- */ + +#ifndef GL_EXT_copy_texture +#define GL_EXT_copy_texture 1 + +typedef void (GLAPIENTRY * PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (GLAPIENTRY * PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + +#define glCopyTexImage1DEXT GLEW_GET_FUN(__glewCopyTexImage1DEXT) +#define glCopyTexImage2DEXT GLEW_GET_FUN(__glewCopyTexImage2DEXT) +#define glCopyTexSubImage1DEXT GLEW_GET_FUN(__glewCopyTexSubImage1DEXT) +#define glCopyTexSubImage2DEXT GLEW_GET_FUN(__glewCopyTexSubImage2DEXT) +#define glCopyTexSubImage3DEXT GLEW_GET_FUN(__glewCopyTexSubImage3DEXT) + +#define GLEW_EXT_copy_texture GLEW_GET_VAR(__GLEW_EXT_copy_texture) + +#endif /* GL_EXT_copy_texture */ + +/* --------------------------- GL_EXT_cull_vertex -------------------------- */ + +#ifndef GL_EXT_cull_vertex +#define GL_EXT_cull_vertex 1 + +#define GL_CULL_VERTEX_EXT 0x81AA +#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB +#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC + +typedef void (GLAPIENTRY * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat* params); + +#define glCullParameterdvEXT GLEW_GET_FUN(__glewCullParameterdvEXT) +#define glCullParameterfvEXT GLEW_GET_FUN(__glewCullParameterfvEXT) + +#define GLEW_EXT_cull_vertex GLEW_GET_VAR(__GLEW_EXT_cull_vertex) + +#endif /* GL_EXT_cull_vertex */ + +/* ------------------------ GL_EXT_depth_bounds_test ----------------------- */ + +#ifndef GL_EXT_depth_bounds_test +#define GL_EXT_depth_bounds_test 1 + +#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 +#define GL_DEPTH_BOUNDS_EXT 0x8891 + +typedef void (GLAPIENTRY * PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); + +#define glDepthBoundsEXT GLEW_GET_FUN(__glewDepthBoundsEXT) + +#define GLEW_EXT_depth_bounds_test GLEW_GET_VAR(__GLEW_EXT_depth_bounds_test) + +#endif /* GL_EXT_depth_bounds_test */ + +/* ----------------------- GL_EXT_direct_state_access ---------------------- */ + +#ifndef GL_EXT_direct_state_access +#define GL_EXT_direct_state_access 1 + +#define GL_PROGRAM_MATRIX_EXT 0x8E2D +#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E +#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F + +typedef void (GLAPIENTRY * PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture); +typedef GLenum (GLAPIENTRY * PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target); +typedef void (GLAPIENTRY * PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); +typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (GLAPIENTRY * PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (GLAPIENTRY * PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); +typedef void (GLAPIENTRY * PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); +typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); +typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); +typedef void (GLAPIENTRY * PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); +typedef void (GLAPIENTRY * PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); +typedef void (GLAPIENTRY * PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); +typedef void (GLAPIENTRY * PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); +typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum* bufs); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); +typedef void (GLAPIENTRY * PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target); +typedef void (GLAPIENTRY * PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target); +typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, void* img); +typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, void* img); +typedef void (GLAPIENTRY * PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint* param); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void* pixels); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void** params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void* data); +typedef void (GLAPIENTRY * PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint* params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void* string); +typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLvoid** params); +typedef void (GLAPIENTRY * PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, GLvoid** params); +typedef void (GLAPIENTRY * PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void* pixels); +typedef void (GLAPIENTRY * PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint* params); +typedef void (GLAPIENTRY * PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint* param); +typedef void (GLAPIENTRY * PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint* param); +typedef void (GLAPIENTRY * PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLvoid** param); +typedef void (GLAPIENTRY * PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, GLvoid** param); +typedef GLvoid * (GLAPIENTRY * PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); +typedef GLvoid * (GLAPIENTRY * PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef void (GLAPIENTRY * PFNGLMATRIXFRUSTUMEXTPROC) (GLenum matrixMode, GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f); +typedef void (GLAPIENTRY * PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum matrixMode); +typedef void (GLAPIENTRY * PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum matrixMode, const GLdouble* m); +typedef void (GLAPIENTRY * PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum matrixMode, const GLfloat* m); +typedef void (GLAPIENTRY * PFNGLMATRIXLOADDEXTPROC) (GLenum matrixMode, const GLdouble* m); +typedef void (GLAPIENTRY * PFNGLMATRIXLOADFEXTPROC) (GLenum matrixMode, const GLfloat* m); +typedef void (GLAPIENTRY * PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum matrixMode, const GLdouble* m); +typedef void (GLAPIENTRY * PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum matrixMode, const GLfloat* m); +typedef void (GLAPIENTRY * PFNGLMATRIXMULTDEXTPROC) (GLenum matrixMode, const GLdouble* m); +typedef void (GLAPIENTRY * PFNGLMATRIXMULTFEXTPROC) (GLenum matrixMode, const GLfloat* m); +typedef void (GLAPIENTRY * PFNGLMATRIXORTHOEXTPROC) (GLenum matrixMode, GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f); +typedef void (GLAPIENTRY * PFNGLMATRIXPOPEXTPROC) (GLenum matrixMode); +typedef void (GLAPIENTRY * PFNGLMATRIXPUSHEXTPROC) (GLenum matrixMode); +typedef void (GLAPIENTRY * PFNGLMATRIXROTATEDEXTPROC) (GLenum matrixMode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLMATRIXROTATEFEXTPROC) (GLenum matrixMode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLMATRIXSCALEDEXTPROC) (GLenum matrixMode, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLMATRIXSCALEFEXTPROC) (GLenum matrixMode, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum matrixMode, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum matrixMode, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void* pointer); +typedef void (GLAPIENTRY * PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); +typedef void (GLAPIENTRY * PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble* params); +typedef void (GLAPIENTRY * PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint* params); +typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat* param); +typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* param); +typedef void (GLAPIENTRY * PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer); +typedef void (GLAPIENTRY * PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void* data, GLenum usage); +typedef void (GLAPIENTRY * PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); +typedef void (GLAPIENTRY * PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); +typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble* params); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint* params); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint* params); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint* params); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint* params); +typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void* string); +typedef void (GLAPIENTRY * PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +typedef void (GLAPIENTRY * PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); +typedef void (GLAPIENTRY * PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); +typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint* params); +typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat* param); +typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint* param); +typedef void (GLAPIENTRY * PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer); +typedef void (GLAPIENTRY * PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); +typedef GLboolean (GLAPIENTRY * PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + +#define glBindMultiTextureEXT GLEW_GET_FUN(__glewBindMultiTextureEXT) +#define glCheckNamedFramebufferStatusEXT GLEW_GET_FUN(__glewCheckNamedFramebufferStatusEXT) +#define glClientAttribDefaultEXT GLEW_GET_FUN(__glewClientAttribDefaultEXT) +#define glCompressedMultiTexImage1DEXT GLEW_GET_FUN(__glewCompressedMultiTexImage1DEXT) +#define glCompressedMultiTexImage2DEXT GLEW_GET_FUN(__glewCompressedMultiTexImage2DEXT) +#define glCompressedMultiTexImage3DEXT GLEW_GET_FUN(__glewCompressedMultiTexImage3DEXT) +#define glCompressedMultiTexSubImage1DEXT GLEW_GET_FUN(__glewCompressedMultiTexSubImage1DEXT) +#define glCompressedMultiTexSubImage2DEXT GLEW_GET_FUN(__glewCompressedMultiTexSubImage2DEXT) +#define glCompressedMultiTexSubImage3DEXT GLEW_GET_FUN(__glewCompressedMultiTexSubImage3DEXT) +#define glCompressedTextureImage1DEXT GLEW_GET_FUN(__glewCompressedTextureImage1DEXT) +#define glCompressedTextureImage2DEXT GLEW_GET_FUN(__glewCompressedTextureImage2DEXT) +#define glCompressedTextureImage3DEXT GLEW_GET_FUN(__glewCompressedTextureImage3DEXT) +#define glCompressedTextureSubImage1DEXT GLEW_GET_FUN(__glewCompressedTextureSubImage1DEXT) +#define glCompressedTextureSubImage2DEXT GLEW_GET_FUN(__glewCompressedTextureSubImage2DEXT) +#define glCompressedTextureSubImage3DEXT GLEW_GET_FUN(__glewCompressedTextureSubImage3DEXT) +#define glCopyMultiTexImage1DEXT GLEW_GET_FUN(__glewCopyMultiTexImage1DEXT) +#define glCopyMultiTexImage2DEXT GLEW_GET_FUN(__glewCopyMultiTexImage2DEXT) +#define glCopyMultiTexSubImage1DEXT GLEW_GET_FUN(__glewCopyMultiTexSubImage1DEXT) +#define glCopyMultiTexSubImage2DEXT GLEW_GET_FUN(__glewCopyMultiTexSubImage2DEXT) +#define glCopyMultiTexSubImage3DEXT GLEW_GET_FUN(__glewCopyMultiTexSubImage3DEXT) +#define glCopyTextureImage1DEXT GLEW_GET_FUN(__glewCopyTextureImage1DEXT) +#define glCopyTextureImage2DEXT GLEW_GET_FUN(__glewCopyTextureImage2DEXT) +#define glCopyTextureSubImage1DEXT GLEW_GET_FUN(__glewCopyTextureSubImage1DEXT) +#define glCopyTextureSubImage2DEXT GLEW_GET_FUN(__glewCopyTextureSubImage2DEXT) +#define glCopyTextureSubImage3DEXT GLEW_GET_FUN(__glewCopyTextureSubImage3DEXT) +#define glDisableClientStateIndexedEXT GLEW_GET_FUN(__glewDisableClientStateIndexedEXT) +#define glDisableClientStateiEXT GLEW_GET_FUN(__glewDisableClientStateiEXT) +#define glDisableVertexArrayAttribEXT GLEW_GET_FUN(__glewDisableVertexArrayAttribEXT) +#define glDisableVertexArrayEXT GLEW_GET_FUN(__glewDisableVertexArrayEXT) +#define glEnableClientStateIndexedEXT GLEW_GET_FUN(__glewEnableClientStateIndexedEXT) +#define glEnableClientStateiEXT GLEW_GET_FUN(__glewEnableClientStateiEXT) +#define glEnableVertexArrayAttribEXT GLEW_GET_FUN(__glewEnableVertexArrayAttribEXT) +#define glEnableVertexArrayEXT GLEW_GET_FUN(__glewEnableVertexArrayEXT) +#define glFlushMappedNamedBufferRangeEXT GLEW_GET_FUN(__glewFlushMappedNamedBufferRangeEXT) +#define glFramebufferDrawBufferEXT GLEW_GET_FUN(__glewFramebufferDrawBufferEXT) +#define glFramebufferDrawBuffersEXT GLEW_GET_FUN(__glewFramebufferDrawBuffersEXT) +#define glFramebufferReadBufferEXT GLEW_GET_FUN(__glewFramebufferReadBufferEXT) +#define glGenerateMultiTexMipmapEXT GLEW_GET_FUN(__glewGenerateMultiTexMipmapEXT) +#define glGenerateTextureMipmapEXT GLEW_GET_FUN(__glewGenerateTextureMipmapEXT) +#define glGetCompressedMultiTexImageEXT GLEW_GET_FUN(__glewGetCompressedMultiTexImageEXT) +#define glGetCompressedTextureImageEXT GLEW_GET_FUN(__glewGetCompressedTextureImageEXT) +#define glGetDoubleIndexedvEXT GLEW_GET_FUN(__glewGetDoubleIndexedvEXT) +#define glGetDoublei_vEXT GLEW_GET_FUN(__glewGetDoublei_vEXT) +#define glGetFloatIndexedvEXT GLEW_GET_FUN(__glewGetFloatIndexedvEXT) +#define glGetFloati_vEXT GLEW_GET_FUN(__glewGetFloati_vEXT) +#define glGetFramebufferParameterivEXT GLEW_GET_FUN(__glewGetFramebufferParameterivEXT) +#define glGetMultiTexEnvfvEXT GLEW_GET_FUN(__glewGetMultiTexEnvfvEXT) +#define glGetMultiTexEnvivEXT GLEW_GET_FUN(__glewGetMultiTexEnvivEXT) +#define glGetMultiTexGendvEXT GLEW_GET_FUN(__glewGetMultiTexGendvEXT) +#define glGetMultiTexGenfvEXT GLEW_GET_FUN(__glewGetMultiTexGenfvEXT) +#define glGetMultiTexGenivEXT GLEW_GET_FUN(__glewGetMultiTexGenivEXT) +#define glGetMultiTexImageEXT GLEW_GET_FUN(__glewGetMultiTexImageEXT) +#define glGetMultiTexLevelParameterfvEXT GLEW_GET_FUN(__glewGetMultiTexLevelParameterfvEXT) +#define glGetMultiTexLevelParameterivEXT GLEW_GET_FUN(__glewGetMultiTexLevelParameterivEXT) +#define glGetMultiTexParameterIivEXT GLEW_GET_FUN(__glewGetMultiTexParameterIivEXT) +#define glGetMultiTexParameterIuivEXT GLEW_GET_FUN(__glewGetMultiTexParameterIuivEXT) +#define glGetMultiTexParameterfvEXT GLEW_GET_FUN(__glewGetMultiTexParameterfvEXT) +#define glGetMultiTexParameterivEXT GLEW_GET_FUN(__glewGetMultiTexParameterivEXT) +#define glGetNamedBufferParameterivEXT GLEW_GET_FUN(__glewGetNamedBufferParameterivEXT) +#define glGetNamedBufferPointervEXT GLEW_GET_FUN(__glewGetNamedBufferPointervEXT) +#define glGetNamedBufferSubDataEXT GLEW_GET_FUN(__glewGetNamedBufferSubDataEXT) +#define glGetNamedFramebufferAttachmentParameterivEXT GLEW_GET_FUN(__glewGetNamedFramebufferAttachmentParameterivEXT) +#define glGetNamedProgramLocalParameterIivEXT GLEW_GET_FUN(__glewGetNamedProgramLocalParameterIivEXT) +#define glGetNamedProgramLocalParameterIuivEXT GLEW_GET_FUN(__glewGetNamedProgramLocalParameterIuivEXT) +#define glGetNamedProgramLocalParameterdvEXT GLEW_GET_FUN(__glewGetNamedProgramLocalParameterdvEXT) +#define glGetNamedProgramLocalParameterfvEXT GLEW_GET_FUN(__glewGetNamedProgramLocalParameterfvEXT) +#define glGetNamedProgramStringEXT GLEW_GET_FUN(__glewGetNamedProgramStringEXT) +#define glGetNamedProgramivEXT GLEW_GET_FUN(__glewGetNamedProgramivEXT) +#define glGetNamedRenderbufferParameterivEXT GLEW_GET_FUN(__glewGetNamedRenderbufferParameterivEXT) +#define glGetPointerIndexedvEXT GLEW_GET_FUN(__glewGetPointerIndexedvEXT) +#define glGetPointeri_vEXT GLEW_GET_FUN(__glewGetPointeri_vEXT) +#define glGetTextureImageEXT GLEW_GET_FUN(__glewGetTextureImageEXT) +#define glGetTextureLevelParameterfvEXT GLEW_GET_FUN(__glewGetTextureLevelParameterfvEXT) +#define glGetTextureLevelParameterivEXT GLEW_GET_FUN(__glewGetTextureLevelParameterivEXT) +#define glGetTextureParameterIivEXT GLEW_GET_FUN(__glewGetTextureParameterIivEXT) +#define glGetTextureParameterIuivEXT GLEW_GET_FUN(__glewGetTextureParameterIuivEXT) +#define glGetTextureParameterfvEXT GLEW_GET_FUN(__glewGetTextureParameterfvEXT) +#define glGetTextureParameterivEXT GLEW_GET_FUN(__glewGetTextureParameterivEXT) +#define glGetVertexArrayIntegeri_vEXT GLEW_GET_FUN(__glewGetVertexArrayIntegeri_vEXT) +#define glGetVertexArrayIntegervEXT GLEW_GET_FUN(__glewGetVertexArrayIntegervEXT) +#define glGetVertexArrayPointeri_vEXT GLEW_GET_FUN(__glewGetVertexArrayPointeri_vEXT) +#define glGetVertexArrayPointervEXT GLEW_GET_FUN(__glewGetVertexArrayPointervEXT) +#define glMapNamedBufferEXT GLEW_GET_FUN(__glewMapNamedBufferEXT) +#define glMapNamedBufferRangeEXT GLEW_GET_FUN(__glewMapNamedBufferRangeEXT) +#define glMatrixFrustumEXT GLEW_GET_FUN(__glewMatrixFrustumEXT) +#define glMatrixLoadIdentityEXT GLEW_GET_FUN(__glewMatrixLoadIdentityEXT) +#define glMatrixLoadTransposedEXT GLEW_GET_FUN(__glewMatrixLoadTransposedEXT) +#define glMatrixLoadTransposefEXT GLEW_GET_FUN(__glewMatrixLoadTransposefEXT) +#define glMatrixLoaddEXT GLEW_GET_FUN(__glewMatrixLoaddEXT) +#define glMatrixLoadfEXT GLEW_GET_FUN(__glewMatrixLoadfEXT) +#define glMatrixMultTransposedEXT GLEW_GET_FUN(__glewMatrixMultTransposedEXT) +#define glMatrixMultTransposefEXT GLEW_GET_FUN(__glewMatrixMultTransposefEXT) +#define glMatrixMultdEXT GLEW_GET_FUN(__glewMatrixMultdEXT) +#define glMatrixMultfEXT GLEW_GET_FUN(__glewMatrixMultfEXT) +#define glMatrixOrthoEXT GLEW_GET_FUN(__glewMatrixOrthoEXT) +#define glMatrixPopEXT GLEW_GET_FUN(__glewMatrixPopEXT) +#define glMatrixPushEXT GLEW_GET_FUN(__glewMatrixPushEXT) +#define glMatrixRotatedEXT GLEW_GET_FUN(__glewMatrixRotatedEXT) +#define glMatrixRotatefEXT GLEW_GET_FUN(__glewMatrixRotatefEXT) +#define glMatrixScaledEXT GLEW_GET_FUN(__glewMatrixScaledEXT) +#define glMatrixScalefEXT GLEW_GET_FUN(__glewMatrixScalefEXT) +#define glMatrixTranslatedEXT GLEW_GET_FUN(__glewMatrixTranslatedEXT) +#define glMatrixTranslatefEXT GLEW_GET_FUN(__glewMatrixTranslatefEXT) +#define glMultiTexBufferEXT GLEW_GET_FUN(__glewMultiTexBufferEXT) +#define glMultiTexCoordPointerEXT GLEW_GET_FUN(__glewMultiTexCoordPointerEXT) +#define glMultiTexEnvfEXT GLEW_GET_FUN(__glewMultiTexEnvfEXT) +#define glMultiTexEnvfvEXT GLEW_GET_FUN(__glewMultiTexEnvfvEXT) +#define glMultiTexEnviEXT GLEW_GET_FUN(__glewMultiTexEnviEXT) +#define glMultiTexEnvivEXT GLEW_GET_FUN(__glewMultiTexEnvivEXT) +#define glMultiTexGendEXT GLEW_GET_FUN(__glewMultiTexGendEXT) +#define glMultiTexGendvEXT GLEW_GET_FUN(__glewMultiTexGendvEXT) +#define glMultiTexGenfEXT GLEW_GET_FUN(__glewMultiTexGenfEXT) +#define glMultiTexGenfvEXT GLEW_GET_FUN(__glewMultiTexGenfvEXT) +#define glMultiTexGeniEXT GLEW_GET_FUN(__glewMultiTexGeniEXT) +#define glMultiTexGenivEXT GLEW_GET_FUN(__glewMultiTexGenivEXT) +#define glMultiTexImage1DEXT GLEW_GET_FUN(__glewMultiTexImage1DEXT) +#define glMultiTexImage2DEXT GLEW_GET_FUN(__glewMultiTexImage2DEXT) +#define glMultiTexImage3DEXT GLEW_GET_FUN(__glewMultiTexImage3DEXT) +#define glMultiTexParameterIivEXT GLEW_GET_FUN(__glewMultiTexParameterIivEXT) +#define glMultiTexParameterIuivEXT GLEW_GET_FUN(__glewMultiTexParameterIuivEXT) +#define glMultiTexParameterfEXT GLEW_GET_FUN(__glewMultiTexParameterfEXT) +#define glMultiTexParameterfvEXT GLEW_GET_FUN(__glewMultiTexParameterfvEXT) +#define glMultiTexParameteriEXT GLEW_GET_FUN(__glewMultiTexParameteriEXT) +#define glMultiTexParameterivEXT GLEW_GET_FUN(__glewMultiTexParameterivEXT) +#define glMultiTexRenderbufferEXT GLEW_GET_FUN(__glewMultiTexRenderbufferEXT) +#define glMultiTexSubImage1DEXT GLEW_GET_FUN(__glewMultiTexSubImage1DEXT) +#define glMultiTexSubImage2DEXT GLEW_GET_FUN(__glewMultiTexSubImage2DEXT) +#define glMultiTexSubImage3DEXT GLEW_GET_FUN(__glewMultiTexSubImage3DEXT) +#define glNamedBufferDataEXT GLEW_GET_FUN(__glewNamedBufferDataEXT) +#define glNamedBufferSubDataEXT GLEW_GET_FUN(__glewNamedBufferSubDataEXT) +#define glNamedCopyBufferSubDataEXT GLEW_GET_FUN(__glewNamedCopyBufferSubDataEXT) +#define glNamedFramebufferRenderbufferEXT GLEW_GET_FUN(__glewNamedFramebufferRenderbufferEXT) +#define glNamedFramebufferTexture1DEXT GLEW_GET_FUN(__glewNamedFramebufferTexture1DEXT) +#define glNamedFramebufferTexture2DEXT GLEW_GET_FUN(__glewNamedFramebufferTexture2DEXT) +#define glNamedFramebufferTexture3DEXT GLEW_GET_FUN(__glewNamedFramebufferTexture3DEXT) +#define glNamedFramebufferTextureEXT GLEW_GET_FUN(__glewNamedFramebufferTextureEXT) +#define glNamedFramebufferTextureFaceEXT GLEW_GET_FUN(__glewNamedFramebufferTextureFaceEXT) +#define glNamedFramebufferTextureLayerEXT GLEW_GET_FUN(__glewNamedFramebufferTextureLayerEXT) +#define glNamedProgramLocalParameter4dEXT GLEW_GET_FUN(__glewNamedProgramLocalParameter4dEXT) +#define glNamedProgramLocalParameter4dvEXT GLEW_GET_FUN(__glewNamedProgramLocalParameter4dvEXT) +#define glNamedProgramLocalParameter4fEXT GLEW_GET_FUN(__glewNamedProgramLocalParameter4fEXT) +#define glNamedProgramLocalParameter4fvEXT GLEW_GET_FUN(__glewNamedProgramLocalParameter4fvEXT) +#define glNamedProgramLocalParameterI4iEXT GLEW_GET_FUN(__glewNamedProgramLocalParameterI4iEXT) +#define glNamedProgramLocalParameterI4ivEXT GLEW_GET_FUN(__glewNamedProgramLocalParameterI4ivEXT) +#define glNamedProgramLocalParameterI4uiEXT GLEW_GET_FUN(__glewNamedProgramLocalParameterI4uiEXT) +#define glNamedProgramLocalParameterI4uivEXT GLEW_GET_FUN(__glewNamedProgramLocalParameterI4uivEXT) +#define glNamedProgramLocalParameters4fvEXT GLEW_GET_FUN(__glewNamedProgramLocalParameters4fvEXT) +#define glNamedProgramLocalParametersI4ivEXT GLEW_GET_FUN(__glewNamedProgramLocalParametersI4ivEXT) +#define glNamedProgramLocalParametersI4uivEXT GLEW_GET_FUN(__glewNamedProgramLocalParametersI4uivEXT) +#define glNamedProgramStringEXT GLEW_GET_FUN(__glewNamedProgramStringEXT) +#define glNamedRenderbufferStorageEXT GLEW_GET_FUN(__glewNamedRenderbufferStorageEXT) +#define glNamedRenderbufferStorageMultisampleCoverageEXT GLEW_GET_FUN(__glewNamedRenderbufferStorageMultisampleCoverageEXT) +#define glNamedRenderbufferStorageMultisampleEXT GLEW_GET_FUN(__glewNamedRenderbufferStorageMultisampleEXT) +#define glProgramUniform1fEXT GLEW_GET_FUN(__glewProgramUniform1fEXT) +#define glProgramUniform1fvEXT GLEW_GET_FUN(__glewProgramUniform1fvEXT) +#define glProgramUniform1iEXT GLEW_GET_FUN(__glewProgramUniform1iEXT) +#define glProgramUniform1ivEXT GLEW_GET_FUN(__glewProgramUniform1ivEXT) +#define glProgramUniform1uiEXT GLEW_GET_FUN(__glewProgramUniform1uiEXT) +#define glProgramUniform1uivEXT GLEW_GET_FUN(__glewProgramUniform1uivEXT) +#define glProgramUniform2fEXT GLEW_GET_FUN(__glewProgramUniform2fEXT) +#define glProgramUniform2fvEXT GLEW_GET_FUN(__glewProgramUniform2fvEXT) +#define glProgramUniform2iEXT GLEW_GET_FUN(__glewProgramUniform2iEXT) +#define glProgramUniform2ivEXT GLEW_GET_FUN(__glewProgramUniform2ivEXT) +#define glProgramUniform2uiEXT GLEW_GET_FUN(__glewProgramUniform2uiEXT) +#define glProgramUniform2uivEXT GLEW_GET_FUN(__glewProgramUniform2uivEXT) +#define glProgramUniform3fEXT GLEW_GET_FUN(__glewProgramUniform3fEXT) +#define glProgramUniform3fvEXT GLEW_GET_FUN(__glewProgramUniform3fvEXT) +#define glProgramUniform3iEXT GLEW_GET_FUN(__glewProgramUniform3iEXT) +#define glProgramUniform3ivEXT GLEW_GET_FUN(__glewProgramUniform3ivEXT) +#define glProgramUniform3uiEXT GLEW_GET_FUN(__glewProgramUniform3uiEXT) +#define glProgramUniform3uivEXT GLEW_GET_FUN(__glewProgramUniform3uivEXT) +#define glProgramUniform4fEXT GLEW_GET_FUN(__glewProgramUniform4fEXT) +#define glProgramUniform4fvEXT GLEW_GET_FUN(__glewProgramUniform4fvEXT) +#define glProgramUniform4iEXT GLEW_GET_FUN(__glewProgramUniform4iEXT) +#define glProgramUniform4ivEXT GLEW_GET_FUN(__glewProgramUniform4ivEXT) +#define glProgramUniform4uiEXT GLEW_GET_FUN(__glewProgramUniform4uiEXT) +#define glProgramUniform4uivEXT GLEW_GET_FUN(__glewProgramUniform4uivEXT) +#define glProgramUniformMatrix2fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2fvEXT) +#define glProgramUniformMatrix2x3fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2x3fvEXT) +#define glProgramUniformMatrix2x4fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2x4fvEXT) +#define glProgramUniformMatrix3fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3fvEXT) +#define glProgramUniformMatrix3x2fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3x2fvEXT) +#define glProgramUniformMatrix3x4fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3x4fvEXT) +#define glProgramUniformMatrix4fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4fvEXT) +#define glProgramUniformMatrix4x2fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4x2fvEXT) +#define glProgramUniformMatrix4x3fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4x3fvEXT) +#define glPushClientAttribDefaultEXT GLEW_GET_FUN(__glewPushClientAttribDefaultEXT) +#define glTextureBufferEXT GLEW_GET_FUN(__glewTextureBufferEXT) +#define glTextureImage1DEXT GLEW_GET_FUN(__glewTextureImage1DEXT) +#define glTextureImage2DEXT GLEW_GET_FUN(__glewTextureImage2DEXT) +#define glTextureImage3DEXT GLEW_GET_FUN(__glewTextureImage3DEXT) +#define glTextureParameterIivEXT GLEW_GET_FUN(__glewTextureParameterIivEXT) +#define glTextureParameterIuivEXT GLEW_GET_FUN(__glewTextureParameterIuivEXT) +#define glTextureParameterfEXT GLEW_GET_FUN(__glewTextureParameterfEXT) +#define glTextureParameterfvEXT GLEW_GET_FUN(__glewTextureParameterfvEXT) +#define glTextureParameteriEXT GLEW_GET_FUN(__glewTextureParameteriEXT) +#define glTextureParameterivEXT GLEW_GET_FUN(__glewTextureParameterivEXT) +#define glTextureRenderbufferEXT GLEW_GET_FUN(__glewTextureRenderbufferEXT) +#define glTextureSubImage1DEXT GLEW_GET_FUN(__glewTextureSubImage1DEXT) +#define glTextureSubImage2DEXT GLEW_GET_FUN(__glewTextureSubImage2DEXT) +#define glTextureSubImage3DEXT GLEW_GET_FUN(__glewTextureSubImage3DEXT) +#define glUnmapNamedBufferEXT GLEW_GET_FUN(__glewUnmapNamedBufferEXT) +#define glVertexArrayColorOffsetEXT GLEW_GET_FUN(__glewVertexArrayColorOffsetEXT) +#define glVertexArrayEdgeFlagOffsetEXT GLEW_GET_FUN(__glewVertexArrayEdgeFlagOffsetEXT) +#define glVertexArrayFogCoordOffsetEXT GLEW_GET_FUN(__glewVertexArrayFogCoordOffsetEXT) +#define glVertexArrayIndexOffsetEXT GLEW_GET_FUN(__glewVertexArrayIndexOffsetEXT) +#define glVertexArrayMultiTexCoordOffsetEXT GLEW_GET_FUN(__glewVertexArrayMultiTexCoordOffsetEXT) +#define glVertexArrayNormalOffsetEXT GLEW_GET_FUN(__glewVertexArrayNormalOffsetEXT) +#define glVertexArraySecondaryColorOffsetEXT GLEW_GET_FUN(__glewVertexArraySecondaryColorOffsetEXT) +#define glVertexArrayTexCoordOffsetEXT GLEW_GET_FUN(__glewVertexArrayTexCoordOffsetEXT) +#define glVertexArrayVertexAttribIOffsetEXT GLEW_GET_FUN(__glewVertexArrayVertexAttribIOffsetEXT) +#define glVertexArrayVertexAttribOffsetEXT GLEW_GET_FUN(__glewVertexArrayVertexAttribOffsetEXT) +#define glVertexArrayVertexOffsetEXT GLEW_GET_FUN(__glewVertexArrayVertexOffsetEXT) + +#define GLEW_EXT_direct_state_access GLEW_GET_VAR(__GLEW_EXT_direct_state_access) + +#endif /* GL_EXT_direct_state_access */ + +/* -------------------------- GL_EXT_draw_buffers2 ------------------------- */ + +#ifndef GL_EXT_draw_buffers2 +#define GL_EXT_draw_buffers2 1 + +typedef void (GLAPIENTRY * PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint buf, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +typedef void (GLAPIENTRY * PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef void (GLAPIENTRY * PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef void (GLAPIENTRY * PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum value, GLuint index, GLboolean* data); +typedef void (GLAPIENTRY * PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum value, GLuint index, GLint* data); +typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); + +#define glColorMaskIndexedEXT GLEW_GET_FUN(__glewColorMaskIndexedEXT) +#define glDisableIndexedEXT GLEW_GET_FUN(__glewDisableIndexedEXT) +#define glEnableIndexedEXT GLEW_GET_FUN(__glewEnableIndexedEXT) +#define glGetBooleanIndexedvEXT GLEW_GET_FUN(__glewGetBooleanIndexedvEXT) +#define glGetIntegerIndexedvEXT GLEW_GET_FUN(__glewGetIntegerIndexedvEXT) +#define glIsEnabledIndexedEXT GLEW_GET_FUN(__glewIsEnabledIndexedEXT) + +#define GLEW_EXT_draw_buffers2 GLEW_GET_VAR(__GLEW_EXT_draw_buffers2) + +#endif /* GL_EXT_draw_buffers2 */ + +/* ------------------------- GL_EXT_draw_instanced ------------------------- */ + +#ifndef GL_EXT_draw_instanced +#define GL_EXT_draw_instanced 1 + +typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount); + +#define glDrawArraysInstancedEXT GLEW_GET_FUN(__glewDrawArraysInstancedEXT) +#define glDrawElementsInstancedEXT GLEW_GET_FUN(__glewDrawElementsInstancedEXT) + +#define GLEW_EXT_draw_instanced GLEW_GET_VAR(__GLEW_EXT_draw_instanced) + +#endif /* GL_EXT_draw_instanced */ + +/* ----------------------- GL_EXT_draw_range_elements ---------------------- */ + +#ifndef GL_EXT_draw_range_elements +#define GL_EXT_draw_range_elements 1 + +#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 +#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 + +typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); + +#define glDrawRangeElementsEXT GLEW_GET_FUN(__glewDrawRangeElementsEXT) + +#define GLEW_EXT_draw_range_elements GLEW_GET_VAR(__GLEW_EXT_draw_range_elements) + +#endif /* GL_EXT_draw_range_elements */ + +/* ---------------------------- GL_EXT_fog_coord --------------------------- */ + +#ifndef GL_EXT_fog_coord +#define GL_EXT_fog_coord 1 + +#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450 +#define GL_FOG_COORDINATE_EXT 0x8451 +#define GL_FRAGMENT_DEPTH_EXT 0x8452 +#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453 +#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454 +#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455 +#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456 +#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457 + +typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLFOGCOORDDEXTPROC) (GLdouble coord); +typedef void (GLAPIENTRY * PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); +typedef void (GLAPIENTRY * PFNGLFOGCOORDFEXTPROC) (GLfloat coord); +typedef void (GLAPIENTRY * PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); + +#define glFogCoordPointerEXT GLEW_GET_FUN(__glewFogCoordPointerEXT) +#define glFogCoorddEXT GLEW_GET_FUN(__glewFogCoorddEXT) +#define glFogCoorddvEXT GLEW_GET_FUN(__glewFogCoorddvEXT) +#define glFogCoordfEXT GLEW_GET_FUN(__glewFogCoordfEXT) +#define glFogCoordfvEXT GLEW_GET_FUN(__glewFogCoordfvEXT) + +#define GLEW_EXT_fog_coord GLEW_GET_VAR(__GLEW_EXT_fog_coord) + +#endif /* GL_EXT_fog_coord */ + +/* ------------------------ GL_EXT_fragment_lighting ----------------------- */ + +#ifndef GL_EXT_fragment_lighting +#define GL_EXT_fragment_lighting 1 + +#define GL_FRAGMENT_LIGHTING_EXT 0x8400 +#define GL_FRAGMENT_COLOR_MATERIAL_EXT 0x8401 +#define GL_FRAGMENT_COLOR_MATERIAL_FACE_EXT 0x8402 +#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_EXT 0x8403 +#define GL_MAX_FRAGMENT_LIGHTS_EXT 0x8404 +#define GL_MAX_ACTIVE_LIGHTS_EXT 0x8405 +#define GL_CURRENT_RASTER_NORMAL_EXT 0x8406 +#define GL_LIGHT_ENV_MODE_EXT 0x8407 +#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_EXT 0x8408 +#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_EXT 0x8409 +#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_EXT 0x840A +#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_EXT 0x840B +#define GL_FRAGMENT_LIGHT0_EXT 0x840C +#define GL_FRAGMENT_LIGHT7_EXT 0x8413 + +typedef void (GLAPIENTRY * PFNGLFRAGMENTCOLORMATERIALEXTPROC) (GLenum face, GLenum mode); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFEXTPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFVEXTPROC) (GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELIEXTPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELIVEXTPROC) (GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFEXTPROC) (GLenum light, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFVEXTPROC) (GLenum light, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIEXTPROC) (GLenum light, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIVEXTPROC) (GLenum light, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALFEXTPROC) (GLenum face, GLenum pname, const GLfloat param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALFVEXTPROC) (GLenum face, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALIEXTPROC) (GLenum face, GLenum pname, const GLint param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALIVEXTPROC) (GLenum face, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLGETFRAGMENTLIGHTFVEXTPROC) (GLenum light, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETFRAGMENTLIGHTIVEXTPROC) (GLenum light, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALFVEXTPROC) (GLenum face, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALIVEXTPROC) (GLenum face, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLLIGHTENVIEXTPROC) (GLenum pname, GLint param); + +#define glFragmentColorMaterialEXT GLEW_GET_FUN(__glewFragmentColorMaterialEXT) +#define glFragmentLightModelfEXT GLEW_GET_FUN(__glewFragmentLightModelfEXT) +#define glFragmentLightModelfvEXT GLEW_GET_FUN(__glewFragmentLightModelfvEXT) +#define glFragmentLightModeliEXT GLEW_GET_FUN(__glewFragmentLightModeliEXT) +#define glFragmentLightModelivEXT GLEW_GET_FUN(__glewFragmentLightModelivEXT) +#define glFragmentLightfEXT GLEW_GET_FUN(__glewFragmentLightfEXT) +#define glFragmentLightfvEXT GLEW_GET_FUN(__glewFragmentLightfvEXT) +#define glFragmentLightiEXT GLEW_GET_FUN(__glewFragmentLightiEXT) +#define glFragmentLightivEXT GLEW_GET_FUN(__glewFragmentLightivEXT) +#define glFragmentMaterialfEXT GLEW_GET_FUN(__glewFragmentMaterialfEXT) +#define glFragmentMaterialfvEXT GLEW_GET_FUN(__glewFragmentMaterialfvEXT) +#define glFragmentMaterialiEXT GLEW_GET_FUN(__glewFragmentMaterialiEXT) +#define glFragmentMaterialivEXT GLEW_GET_FUN(__glewFragmentMaterialivEXT) +#define glGetFragmentLightfvEXT GLEW_GET_FUN(__glewGetFragmentLightfvEXT) +#define glGetFragmentLightivEXT GLEW_GET_FUN(__glewGetFragmentLightivEXT) +#define glGetFragmentMaterialfvEXT GLEW_GET_FUN(__glewGetFragmentMaterialfvEXT) +#define glGetFragmentMaterialivEXT GLEW_GET_FUN(__glewGetFragmentMaterialivEXT) +#define glLightEnviEXT GLEW_GET_FUN(__glewLightEnviEXT) + +#define GLEW_EXT_fragment_lighting GLEW_GET_VAR(__GLEW_EXT_fragment_lighting) + +#endif /* GL_EXT_fragment_lighting */ + +/* ------------------------ GL_EXT_framebuffer_blit ------------------------ */ + +#ifndef GL_EXT_framebuffer_blit +#define GL_EXT_framebuffer_blit 1 + +#define GL_DRAW_FRAMEBUFFER_BINDING_EXT 0x8CA6 +#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 +#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 +#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA + +typedef void (GLAPIENTRY * PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + +#define glBlitFramebufferEXT GLEW_GET_FUN(__glewBlitFramebufferEXT) + +#define GLEW_EXT_framebuffer_blit GLEW_GET_VAR(__GLEW_EXT_framebuffer_blit) + +#endif /* GL_EXT_framebuffer_blit */ + +/* --------------------- GL_EXT_framebuffer_multisample -------------------- */ + +#ifndef GL_EXT_framebuffer_multisample +#define GL_EXT_framebuffer_multisample 1 + +#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 +#define GL_MAX_SAMPLES_EXT 0x8D57 + +typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + +#define glRenderbufferStorageMultisampleEXT GLEW_GET_FUN(__glewRenderbufferStorageMultisampleEXT) + +#define GLEW_EXT_framebuffer_multisample GLEW_GET_VAR(__GLEW_EXT_framebuffer_multisample) + +#endif /* GL_EXT_framebuffer_multisample */ + +/* ----------------------- GL_EXT_framebuffer_object ----------------------- */ + +#ifndef GL_EXT_framebuffer_object +#define GL_EXT_framebuffer_object 1 + +#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 +#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 +#define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 +#define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 +#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF +#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 +#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 +#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 +#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 +#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 +#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 +#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 +#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 +#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 +#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 +#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA +#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB +#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC +#define GL_COLOR_ATTACHMENT13_EXT 0x8CED +#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE +#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF +#define GL_DEPTH_ATTACHMENT_EXT 0x8D00 +#define GL_STENCIL_ATTACHMENT_EXT 0x8D20 +#define GL_FRAMEBUFFER_EXT 0x8D40 +#define GL_RENDERBUFFER_EXT 0x8D41 +#define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 +#define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 +#define GL_STENCIL_INDEX1_EXT 0x8D46 +#define GL_STENCIL_INDEX4_EXT 0x8D47 +#define GL_STENCIL_INDEX8_EXT 0x8D48 +#define GL_STENCIL_INDEX16_EXT 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55 + +typedef void (GLAPIENTRY * PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer); +typedef void (GLAPIENTRY * PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer); +typedef GLenum (GLAPIENTRY * PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint* framebuffers); +typedef void (GLAPIENTRY * PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint* renderbuffers); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (GLAPIENTRY * PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint* framebuffers); +typedef void (GLAPIENTRY * PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint* renderbuffers); +typedef void (GLAPIENTRY * PFNGLGENERATEMIPMAPEXTPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer); +typedef GLboolean (GLAPIENTRY * PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer); +typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); + +#define glBindFramebufferEXT GLEW_GET_FUN(__glewBindFramebufferEXT) +#define glBindRenderbufferEXT GLEW_GET_FUN(__glewBindRenderbufferEXT) +#define glCheckFramebufferStatusEXT GLEW_GET_FUN(__glewCheckFramebufferStatusEXT) +#define glDeleteFramebuffersEXT GLEW_GET_FUN(__glewDeleteFramebuffersEXT) +#define glDeleteRenderbuffersEXT GLEW_GET_FUN(__glewDeleteRenderbuffersEXT) +#define glFramebufferRenderbufferEXT GLEW_GET_FUN(__glewFramebufferRenderbufferEXT) +#define glFramebufferTexture1DEXT GLEW_GET_FUN(__glewFramebufferTexture1DEXT) +#define glFramebufferTexture2DEXT GLEW_GET_FUN(__glewFramebufferTexture2DEXT) +#define glFramebufferTexture3DEXT GLEW_GET_FUN(__glewFramebufferTexture3DEXT) +#define glGenFramebuffersEXT GLEW_GET_FUN(__glewGenFramebuffersEXT) +#define glGenRenderbuffersEXT GLEW_GET_FUN(__glewGenRenderbuffersEXT) +#define glGenerateMipmapEXT GLEW_GET_FUN(__glewGenerateMipmapEXT) +#define glGetFramebufferAttachmentParameterivEXT GLEW_GET_FUN(__glewGetFramebufferAttachmentParameterivEXT) +#define glGetRenderbufferParameterivEXT GLEW_GET_FUN(__glewGetRenderbufferParameterivEXT) +#define glIsFramebufferEXT GLEW_GET_FUN(__glewIsFramebufferEXT) +#define glIsRenderbufferEXT GLEW_GET_FUN(__glewIsRenderbufferEXT) +#define glRenderbufferStorageEXT GLEW_GET_FUN(__glewRenderbufferStorageEXT) + +#define GLEW_EXT_framebuffer_object GLEW_GET_VAR(__GLEW_EXT_framebuffer_object) + +#endif /* GL_EXT_framebuffer_object */ + +/* ------------------------ GL_EXT_framebuffer_sRGB ------------------------ */ + +#ifndef GL_EXT_framebuffer_sRGB +#define GL_EXT_framebuffer_sRGB 1 + +#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 +#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA + +#define GLEW_EXT_framebuffer_sRGB GLEW_GET_VAR(__GLEW_EXT_framebuffer_sRGB) + +#endif /* GL_EXT_framebuffer_sRGB */ + +/* ------------------------ GL_EXT_geometry_shader4 ------------------------ */ + +#ifndef GL_EXT_geometry_shader4 +#define GL_EXT_geometry_shader4 1 + +#define GL_LINES_ADJACENCY_EXT 0xA +#define GL_LINE_STRIP_ADJACENCY_EXT 0xB +#define GL_TRIANGLES_ADJACENCY_EXT 0xC +#define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0xD +#define GL_PROGRAM_POINT_SIZE_EXT 0x8642 +#define GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9 +#define GL_GEOMETRY_SHADER_EXT 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA +#define GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB +#define GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC +#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD +#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1 + +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value); + +#define glFramebufferTextureEXT GLEW_GET_FUN(__glewFramebufferTextureEXT) +#define glFramebufferTextureFaceEXT GLEW_GET_FUN(__glewFramebufferTextureFaceEXT) +#define glFramebufferTextureLayerEXT GLEW_GET_FUN(__glewFramebufferTextureLayerEXT) +#define glProgramParameteriEXT GLEW_GET_FUN(__glewProgramParameteriEXT) + +#define GLEW_EXT_geometry_shader4 GLEW_GET_VAR(__GLEW_EXT_geometry_shader4) + +#endif /* GL_EXT_geometry_shader4 */ + +/* --------------------- GL_EXT_gpu_program_parameters --------------------- */ + +#ifndef GL_EXT_gpu_program_parameters +#define GL_EXT_gpu_program_parameters 1 + +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat* params); + +#define glProgramEnvParameters4fvEXT GLEW_GET_FUN(__glewProgramEnvParameters4fvEXT) +#define glProgramLocalParameters4fvEXT GLEW_GET_FUN(__glewProgramLocalParameters4fvEXT) + +#define GLEW_EXT_gpu_program_parameters GLEW_GET_VAR(__GLEW_EXT_gpu_program_parameters) + +#endif /* GL_EXT_gpu_program_parameters */ + +/* --------------------------- GL_EXT_gpu_shader4 -------------------------- */ + +#ifndef GL_EXT_gpu_shader4 +#define GL_EXT_gpu_shader4 1 + +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD +#define GL_SAMPLER_1D_ARRAY_EXT 0x8DC0 +#define GL_SAMPLER_2D_ARRAY_EXT 0x8DC1 +#define GL_SAMPLER_BUFFER_EXT 0x8DC2 +#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3 +#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4 +#define GL_SAMPLER_CUBE_SHADOW_EXT 0x8DC5 +#define GL_UNSIGNED_INT_VEC2_EXT 0x8DC6 +#define GL_UNSIGNED_INT_VEC3_EXT 0x8DC7 +#define GL_UNSIGNED_INT_VEC4_EXT 0x8DC8 +#define GL_INT_SAMPLER_1D_EXT 0x8DC9 +#define GL_INT_SAMPLER_2D_EXT 0x8DCA +#define GL_INT_SAMPLER_3D_EXT 0x8DCB +#define GL_INT_SAMPLER_CUBE_EXT 0x8DCC +#define GL_INT_SAMPLER_2D_RECT_EXT 0x8DCD +#define GL_INT_SAMPLER_1D_ARRAY_EXT 0x8DCE +#define GL_INT_SAMPLER_2D_ARRAY_EXT 0x8DCF +#define GL_INT_SAMPLER_BUFFER_EXT 0x8DD0 +#define GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4 +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8 + +typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name); +typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params); +typedef void (GLAPIENTRY * PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0); +typedef void (GLAPIENTRY * PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (GLAPIENTRY * PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1); +typedef void (GLAPIENTRY * PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (GLAPIENTRY * PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (GLAPIENTRY * PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (GLAPIENTRY * PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (GLAPIENTRY * PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); + +#define glBindFragDataLocationEXT GLEW_GET_FUN(__glewBindFragDataLocationEXT) +#define glGetFragDataLocationEXT GLEW_GET_FUN(__glewGetFragDataLocationEXT) +#define glGetUniformuivEXT GLEW_GET_FUN(__glewGetUniformuivEXT) +#define glGetVertexAttribIivEXT GLEW_GET_FUN(__glewGetVertexAttribIivEXT) +#define glGetVertexAttribIuivEXT GLEW_GET_FUN(__glewGetVertexAttribIuivEXT) +#define glUniform1uiEXT GLEW_GET_FUN(__glewUniform1uiEXT) +#define glUniform1uivEXT GLEW_GET_FUN(__glewUniform1uivEXT) +#define glUniform2uiEXT GLEW_GET_FUN(__glewUniform2uiEXT) +#define glUniform2uivEXT GLEW_GET_FUN(__glewUniform2uivEXT) +#define glUniform3uiEXT GLEW_GET_FUN(__glewUniform3uiEXT) +#define glUniform3uivEXT GLEW_GET_FUN(__glewUniform3uivEXT) +#define glUniform4uiEXT GLEW_GET_FUN(__glewUniform4uiEXT) +#define glUniform4uivEXT GLEW_GET_FUN(__glewUniform4uivEXT) +#define glVertexAttribI1iEXT GLEW_GET_FUN(__glewVertexAttribI1iEXT) +#define glVertexAttribI1ivEXT GLEW_GET_FUN(__glewVertexAttribI1ivEXT) +#define glVertexAttribI1uiEXT GLEW_GET_FUN(__glewVertexAttribI1uiEXT) +#define glVertexAttribI1uivEXT GLEW_GET_FUN(__glewVertexAttribI1uivEXT) +#define glVertexAttribI2iEXT GLEW_GET_FUN(__glewVertexAttribI2iEXT) +#define glVertexAttribI2ivEXT GLEW_GET_FUN(__glewVertexAttribI2ivEXT) +#define glVertexAttribI2uiEXT GLEW_GET_FUN(__glewVertexAttribI2uiEXT) +#define glVertexAttribI2uivEXT GLEW_GET_FUN(__glewVertexAttribI2uivEXT) +#define glVertexAttribI3iEXT GLEW_GET_FUN(__glewVertexAttribI3iEXT) +#define glVertexAttribI3ivEXT GLEW_GET_FUN(__glewVertexAttribI3ivEXT) +#define glVertexAttribI3uiEXT GLEW_GET_FUN(__glewVertexAttribI3uiEXT) +#define glVertexAttribI3uivEXT GLEW_GET_FUN(__glewVertexAttribI3uivEXT) +#define glVertexAttribI4bvEXT GLEW_GET_FUN(__glewVertexAttribI4bvEXT) +#define glVertexAttribI4iEXT GLEW_GET_FUN(__glewVertexAttribI4iEXT) +#define glVertexAttribI4ivEXT GLEW_GET_FUN(__glewVertexAttribI4ivEXT) +#define glVertexAttribI4svEXT GLEW_GET_FUN(__glewVertexAttribI4svEXT) +#define glVertexAttribI4ubvEXT GLEW_GET_FUN(__glewVertexAttribI4ubvEXT) +#define glVertexAttribI4uiEXT GLEW_GET_FUN(__glewVertexAttribI4uiEXT) +#define glVertexAttribI4uivEXT GLEW_GET_FUN(__glewVertexAttribI4uivEXT) +#define glVertexAttribI4usvEXT GLEW_GET_FUN(__glewVertexAttribI4usvEXT) +#define glVertexAttribIPointerEXT GLEW_GET_FUN(__glewVertexAttribIPointerEXT) + +#define GLEW_EXT_gpu_shader4 GLEW_GET_VAR(__GLEW_EXT_gpu_shader4) + +#endif /* GL_EXT_gpu_shader4 */ + +/* ---------------------------- GL_EXT_histogram --------------------------- */ + +#ifndef GL_EXT_histogram +#define GL_EXT_histogram 1 + +#define GL_HISTOGRAM_EXT 0x8024 +#define GL_PROXY_HISTOGRAM_EXT 0x8025 +#define GL_HISTOGRAM_WIDTH_EXT 0x8026 +#define GL_HISTOGRAM_FORMAT_EXT 0x8027 +#define GL_HISTOGRAM_RED_SIZE_EXT 0x8028 +#define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029 +#define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A +#define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B +#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C +#define GL_HISTOGRAM_SINK_EXT 0x802D +#define GL_MINMAX_EXT 0x802E +#define GL_MINMAX_FORMAT_EXT 0x802F +#define GL_MINMAX_SINK_EXT 0x8030 + +typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); +typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); +typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); +typedef void (GLAPIENTRY * PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); +typedef void (GLAPIENTRY * PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLRESETMINMAXEXTPROC) (GLenum target); + +#define glGetHistogramEXT GLEW_GET_FUN(__glewGetHistogramEXT) +#define glGetHistogramParameterfvEXT GLEW_GET_FUN(__glewGetHistogramParameterfvEXT) +#define glGetHistogramParameterivEXT GLEW_GET_FUN(__glewGetHistogramParameterivEXT) +#define glGetMinmaxEXT GLEW_GET_FUN(__glewGetMinmaxEXT) +#define glGetMinmaxParameterfvEXT GLEW_GET_FUN(__glewGetMinmaxParameterfvEXT) +#define glGetMinmaxParameterivEXT GLEW_GET_FUN(__glewGetMinmaxParameterivEXT) +#define glHistogramEXT GLEW_GET_FUN(__glewHistogramEXT) +#define glMinmaxEXT GLEW_GET_FUN(__glewMinmaxEXT) +#define glResetHistogramEXT GLEW_GET_FUN(__glewResetHistogramEXT) +#define glResetMinmaxEXT GLEW_GET_FUN(__glewResetMinmaxEXT) + +#define GLEW_EXT_histogram GLEW_GET_VAR(__GLEW_EXT_histogram) + +#endif /* GL_EXT_histogram */ + +/* ----------------------- GL_EXT_index_array_formats ---------------------- */ + +#ifndef GL_EXT_index_array_formats +#define GL_EXT_index_array_formats 1 + +#define GLEW_EXT_index_array_formats GLEW_GET_VAR(__GLEW_EXT_index_array_formats) + +#endif /* GL_EXT_index_array_formats */ + +/* --------------------------- GL_EXT_index_func --------------------------- */ + +#ifndef GL_EXT_index_func +#define GL_EXT_index_func 1 + +typedef void (GLAPIENTRY * PFNGLINDEXFUNCEXTPROC) (GLenum func, GLfloat ref); + +#define glIndexFuncEXT GLEW_GET_FUN(__glewIndexFuncEXT) + +#define GLEW_EXT_index_func GLEW_GET_VAR(__GLEW_EXT_index_func) + +#endif /* GL_EXT_index_func */ + +/* ------------------------- GL_EXT_index_material ------------------------- */ + +#ifndef GL_EXT_index_material +#define GL_EXT_index_material 1 + +typedef void (GLAPIENTRY * PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); + +#define glIndexMaterialEXT GLEW_GET_FUN(__glewIndexMaterialEXT) + +#define GLEW_EXT_index_material GLEW_GET_VAR(__GLEW_EXT_index_material) + +#endif /* GL_EXT_index_material */ + +/* -------------------------- GL_EXT_index_texture ------------------------- */ + +#ifndef GL_EXT_index_texture +#define GL_EXT_index_texture 1 + +#define GLEW_EXT_index_texture GLEW_GET_VAR(__GLEW_EXT_index_texture) + +#endif /* GL_EXT_index_texture */ + +/* -------------------------- GL_EXT_light_texture ------------------------- */ + +#ifndef GL_EXT_light_texture +#define GL_EXT_light_texture 1 + +#define GL_FRAGMENT_MATERIAL_EXT 0x8349 +#define GL_FRAGMENT_NORMAL_EXT 0x834A +#define GL_FRAGMENT_COLOR_EXT 0x834C +#define GL_ATTENUATION_EXT 0x834D +#define GL_SHADOW_ATTENUATION_EXT 0x834E +#define GL_TEXTURE_APPLICATION_MODE_EXT 0x834F +#define GL_TEXTURE_LIGHT_EXT 0x8350 +#define GL_TEXTURE_MATERIAL_FACE_EXT 0x8351 +#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352 +#define GL_FRAGMENT_DEPTH_EXT 0x8452 + +typedef void (GLAPIENTRY * PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); +typedef void (GLAPIENTRY * PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); + +#define glApplyTextureEXT GLEW_GET_FUN(__glewApplyTextureEXT) +#define glTextureLightEXT GLEW_GET_FUN(__glewTextureLightEXT) +#define glTextureMaterialEXT GLEW_GET_FUN(__glewTextureMaterialEXT) + +#define GLEW_EXT_light_texture GLEW_GET_VAR(__GLEW_EXT_light_texture) + +#endif /* GL_EXT_light_texture */ + +/* ------------------------- GL_EXT_misc_attribute ------------------------- */ + +#ifndef GL_EXT_misc_attribute +#define GL_EXT_misc_attribute 1 + +#define GLEW_EXT_misc_attribute GLEW_GET_VAR(__GLEW_EXT_misc_attribute) + +#endif /* GL_EXT_misc_attribute */ + +/* ------------------------ GL_EXT_multi_draw_arrays ----------------------- */ + +#ifndef GL_EXT_multi_draw_arrays +#define GL_EXT_multi_draw_arrays 1 + +typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint* first, const GLsizei *count, GLsizei primcount); +typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, GLsizei* count, GLenum type, const GLvoid **indices, GLsizei primcount); + +#define glMultiDrawArraysEXT GLEW_GET_FUN(__glewMultiDrawArraysEXT) +#define glMultiDrawElementsEXT GLEW_GET_FUN(__glewMultiDrawElementsEXT) + +#define GLEW_EXT_multi_draw_arrays GLEW_GET_VAR(__GLEW_EXT_multi_draw_arrays) + +#endif /* GL_EXT_multi_draw_arrays */ + +/* --------------------------- GL_EXT_multisample -------------------------- */ + +#ifndef GL_EXT_multisample +#define GL_EXT_multisample 1 + +#define GL_MULTISAMPLE_EXT 0x809D +#define GL_SAMPLE_ALPHA_TO_MASK_EXT 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F +#define GL_SAMPLE_MASK_EXT 0x80A0 +#define GL_1PASS_EXT 0x80A1 +#define GL_2PASS_0_EXT 0x80A2 +#define GL_2PASS_1_EXT 0x80A3 +#define GL_4PASS_0_EXT 0x80A4 +#define GL_4PASS_1_EXT 0x80A5 +#define GL_4PASS_2_EXT 0x80A6 +#define GL_4PASS_3_EXT 0x80A7 +#define GL_SAMPLE_BUFFERS_EXT 0x80A8 +#define GL_SAMPLES_EXT 0x80A9 +#define GL_SAMPLE_MASK_VALUE_EXT 0x80AA +#define GL_SAMPLE_MASK_INVERT_EXT 0x80AB +#define GL_SAMPLE_PATTERN_EXT 0x80AC +#define GL_MULTISAMPLE_BIT_EXT 0x20000000 + +typedef void (GLAPIENTRY * PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); +typedef void (GLAPIENTRY * PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); + +#define glSampleMaskEXT GLEW_GET_FUN(__glewSampleMaskEXT) +#define glSamplePatternEXT GLEW_GET_FUN(__glewSamplePatternEXT) + +#define GLEW_EXT_multisample GLEW_GET_VAR(__GLEW_EXT_multisample) + +#endif /* GL_EXT_multisample */ + +/* ---------------------- GL_EXT_packed_depth_stencil ---------------------- */ + +#ifndef GL_EXT_packed_depth_stencil +#define GL_EXT_packed_depth_stencil 1 + +#define GL_DEPTH_STENCIL_EXT 0x84F9 +#define GL_UNSIGNED_INT_24_8_EXT 0x84FA +#define GL_DEPTH24_STENCIL8_EXT 0x88F0 +#define GL_TEXTURE_STENCIL_SIZE_EXT 0x88F1 + +#define GLEW_EXT_packed_depth_stencil GLEW_GET_VAR(__GLEW_EXT_packed_depth_stencil) + +#endif /* GL_EXT_packed_depth_stencil */ + +/* -------------------------- GL_EXT_packed_float -------------------------- */ + +#ifndef GL_EXT_packed_float +#define GL_EXT_packed_float 1 + +#define GL_R11F_G11F_B10F_EXT 0x8C3A +#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B +#define GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C + +#define GLEW_EXT_packed_float GLEW_GET_VAR(__GLEW_EXT_packed_float) + +#endif /* GL_EXT_packed_float */ + +/* -------------------------- GL_EXT_packed_pixels ------------------------- */ + +#ifndef GL_EXT_packed_pixels +#define GL_EXT_packed_pixels 1 + +#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036 + +#define GLEW_EXT_packed_pixels GLEW_GET_VAR(__GLEW_EXT_packed_pixels) + +#endif /* GL_EXT_packed_pixels */ + +/* ------------------------ GL_EXT_paletted_texture ------------------------ */ + +#ifndef GL_EXT_paletted_texture +#define GL_EXT_paletted_texture 1 + +#define GL_TEXTURE_1D 0x0DE0 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_PROXY_TEXTURE_1D 0x8063 +#define GL_PROXY_TEXTURE_2D 0x8064 +#define GL_TEXTURE_3D_EXT 0x806F +#define GL_PROXY_TEXTURE_3D_EXT 0x8070 +#define GL_COLOR_TABLE_FORMAT_EXT 0x80D8 +#define GL_COLOR_TABLE_WIDTH_EXT 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF +#define GL_COLOR_INDEX1_EXT 0x80E2 +#define GL_COLOR_INDEX2_EXT 0x80E3 +#define GL_COLOR_INDEX4_EXT 0x80E4 +#define GL_COLOR_INDEX8_EXT 0x80E5 +#define GL_COLOR_INDEX12_EXT 0x80E6 +#define GL_COLOR_INDEX16_EXT 0x80E7 +#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED +#define GL_TEXTURE_CUBE_MAP_ARB 0x8513 +#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B + +typedef void (GLAPIENTRY * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void* data); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, void* data); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); + +#define glColorTableEXT GLEW_GET_FUN(__glewColorTableEXT) +#define glGetColorTableEXT GLEW_GET_FUN(__glewGetColorTableEXT) +#define glGetColorTableParameterfvEXT GLEW_GET_FUN(__glewGetColorTableParameterfvEXT) +#define glGetColorTableParameterivEXT GLEW_GET_FUN(__glewGetColorTableParameterivEXT) + +#define GLEW_EXT_paletted_texture GLEW_GET_VAR(__GLEW_EXT_paletted_texture) + +#endif /* GL_EXT_paletted_texture */ + +/* ----------------------- GL_EXT_pixel_buffer_object ---------------------- */ + +#ifndef GL_EXT_pixel_buffer_object +#define GL_EXT_pixel_buffer_object 1 + +#define GL_PIXEL_PACK_BUFFER_EXT 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF + +#define GLEW_EXT_pixel_buffer_object GLEW_GET_VAR(__GLEW_EXT_pixel_buffer_object) + +#endif /* GL_EXT_pixel_buffer_object */ + +/* ------------------------- GL_EXT_pixel_transform ------------------------ */ + +#ifndef GL_EXT_pixel_transform +#define GL_EXT_pixel_transform 1 + +#define GL_PIXEL_TRANSFORM_2D_EXT 0x8330 +#define GL_PIXEL_MAG_FILTER_EXT 0x8331 +#define GL_PIXEL_MIN_FILTER_EXT 0x8332 +#define GL_PIXEL_CUBIC_WEIGHT_EXT 0x8333 +#define GL_CUBIC_EXT 0x8334 +#define GL_AVERAGE_EXT 0x8335 +#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336 +#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337 +#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT 0x8338 + +typedef void (GLAPIENTRY * PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, const GLfloat param); +typedef void (GLAPIENTRY * PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, const GLint param); +typedef void (GLAPIENTRY * PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); + +#define glGetPixelTransformParameterfvEXT GLEW_GET_FUN(__glewGetPixelTransformParameterfvEXT) +#define glGetPixelTransformParameterivEXT GLEW_GET_FUN(__glewGetPixelTransformParameterivEXT) +#define glPixelTransformParameterfEXT GLEW_GET_FUN(__glewPixelTransformParameterfEXT) +#define glPixelTransformParameterfvEXT GLEW_GET_FUN(__glewPixelTransformParameterfvEXT) +#define glPixelTransformParameteriEXT GLEW_GET_FUN(__glewPixelTransformParameteriEXT) +#define glPixelTransformParameterivEXT GLEW_GET_FUN(__glewPixelTransformParameterivEXT) + +#define GLEW_EXT_pixel_transform GLEW_GET_VAR(__GLEW_EXT_pixel_transform) + +#endif /* GL_EXT_pixel_transform */ + +/* ------------------- GL_EXT_pixel_transform_color_table ------------------ */ + +#ifndef GL_EXT_pixel_transform_color_table +#define GL_EXT_pixel_transform_color_table 1 + +#define GLEW_EXT_pixel_transform_color_table GLEW_GET_VAR(__GLEW_EXT_pixel_transform_color_table) + +#endif /* GL_EXT_pixel_transform_color_table */ + +/* ------------------------ GL_EXT_point_parameters ------------------------ */ + +#ifndef GL_EXT_point_parameters +#define GL_EXT_point_parameters 1 + +#define GL_POINT_SIZE_MIN_EXT 0x8126 +#define GL_POINT_SIZE_MAX_EXT 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 +#define GL_DISTANCE_ATTENUATION_EXT 0x8129 + +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat* params); + +#define glPointParameterfEXT GLEW_GET_FUN(__glewPointParameterfEXT) +#define glPointParameterfvEXT GLEW_GET_FUN(__glewPointParameterfvEXT) + +#define GLEW_EXT_point_parameters GLEW_GET_VAR(__GLEW_EXT_point_parameters) + +#endif /* GL_EXT_point_parameters */ + +/* ------------------------- GL_EXT_polygon_offset ------------------------- */ + +#ifndef GL_EXT_polygon_offset +#define GL_EXT_polygon_offset 1 + +#define GL_POLYGON_OFFSET_EXT 0x8037 +#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 +#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 + +typedef void (GLAPIENTRY * PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); + +#define glPolygonOffsetEXT GLEW_GET_FUN(__glewPolygonOffsetEXT) + +#define GLEW_EXT_polygon_offset GLEW_GET_VAR(__GLEW_EXT_polygon_offset) + +#endif /* GL_EXT_polygon_offset */ + +/* ------------------------ GL_EXT_provoking_vertex ------------------------ */ + +#ifndef GL_EXT_provoking_vertex +#define GL_EXT_provoking_vertex 1 + +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C +#define GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D +#define GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E +#define GL_PROVOKING_VERTEX_EXT 0x8E4F + +typedef void (GLAPIENTRY * PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode); + +#define glProvokingVertexEXT GLEW_GET_FUN(__glewProvokingVertexEXT) + +#define GLEW_EXT_provoking_vertex GLEW_GET_VAR(__GLEW_EXT_provoking_vertex) + +#endif /* GL_EXT_provoking_vertex */ + +/* ------------------------- GL_EXT_rescale_normal ------------------------- */ + +#ifndef GL_EXT_rescale_normal +#define GL_EXT_rescale_normal 1 + +#define GL_RESCALE_NORMAL_EXT 0x803A + +#define GLEW_EXT_rescale_normal GLEW_GET_VAR(__GLEW_EXT_rescale_normal) + +#endif /* GL_EXT_rescale_normal */ + +/* -------------------------- GL_EXT_scene_marker -------------------------- */ + +#ifndef GL_EXT_scene_marker +#define GL_EXT_scene_marker 1 + +typedef void (GLAPIENTRY * PFNGLBEGINSCENEEXTPROC) (void); +typedef void (GLAPIENTRY * PFNGLENDSCENEEXTPROC) (void); + +#define glBeginSceneEXT GLEW_GET_FUN(__glewBeginSceneEXT) +#define glEndSceneEXT GLEW_GET_FUN(__glewEndSceneEXT) + +#define GLEW_EXT_scene_marker GLEW_GET_VAR(__GLEW_EXT_scene_marker) + +#endif /* GL_EXT_scene_marker */ + +/* ------------------------- GL_EXT_secondary_color ------------------------ */ + +#ifndef GL_EXT_secondary_color +#define GL_EXT_secondary_color 1 + +#define GL_COLOR_SUM_EXT 0x8458 +#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459 +#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A +#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B +#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C +#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D +#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E + +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); + +#define glSecondaryColor3bEXT GLEW_GET_FUN(__glewSecondaryColor3bEXT) +#define glSecondaryColor3bvEXT GLEW_GET_FUN(__glewSecondaryColor3bvEXT) +#define glSecondaryColor3dEXT GLEW_GET_FUN(__glewSecondaryColor3dEXT) +#define glSecondaryColor3dvEXT GLEW_GET_FUN(__glewSecondaryColor3dvEXT) +#define glSecondaryColor3fEXT GLEW_GET_FUN(__glewSecondaryColor3fEXT) +#define glSecondaryColor3fvEXT GLEW_GET_FUN(__glewSecondaryColor3fvEXT) +#define glSecondaryColor3iEXT GLEW_GET_FUN(__glewSecondaryColor3iEXT) +#define glSecondaryColor3ivEXT GLEW_GET_FUN(__glewSecondaryColor3ivEXT) +#define glSecondaryColor3sEXT GLEW_GET_FUN(__glewSecondaryColor3sEXT) +#define glSecondaryColor3svEXT GLEW_GET_FUN(__glewSecondaryColor3svEXT) +#define glSecondaryColor3ubEXT GLEW_GET_FUN(__glewSecondaryColor3ubEXT) +#define glSecondaryColor3ubvEXT GLEW_GET_FUN(__glewSecondaryColor3ubvEXT) +#define glSecondaryColor3uiEXT GLEW_GET_FUN(__glewSecondaryColor3uiEXT) +#define glSecondaryColor3uivEXT GLEW_GET_FUN(__glewSecondaryColor3uivEXT) +#define glSecondaryColor3usEXT GLEW_GET_FUN(__glewSecondaryColor3usEXT) +#define glSecondaryColor3usvEXT GLEW_GET_FUN(__glewSecondaryColor3usvEXT) +#define glSecondaryColorPointerEXT GLEW_GET_FUN(__glewSecondaryColorPointerEXT) + +#define GLEW_EXT_secondary_color GLEW_GET_VAR(__GLEW_EXT_secondary_color) + +#endif /* GL_EXT_secondary_color */ + +/* --------------------- GL_EXT_separate_shader_objects -------------------- */ + +#ifndef GL_EXT_separate_shader_objects +#define GL_EXT_separate_shader_objects 1 + +#define GL_ACTIVE_PROGRAM_EXT 0x8B8D + +typedef void (GLAPIENTRY * PFNGLACTIVEPROGRAMEXTPROC) (GLuint program); +typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const char* string); +typedef void (GLAPIENTRY * PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program); + +#define glActiveProgramEXT GLEW_GET_FUN(__glewActiveProgramEXT) +#define glCreateShaderProgramEXT GLEW_GET_FUN(__glewCreateShaderProgramEXT) +#define glUseShaderProgramEXT GLEW_GET_FUN(__glewUseShaderProgramEXT) + +#define GLEW_EXT_separate_shader_objects GLEW_GET_VAR(__GLEW_EXT_separate_shader_objects) + +#endif /* GL_EXT_separate_shader_objects */ + +/* --------------------- GL_EXT_separate_specular_color -------------------- */ + +#ifndef GL_EXT_separate_specular_color +#define GL_EXT_separate_specular_color 1 + +#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 +#define GL_SINGLE_COLOR_EXT 0x81F9 +#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA + +#define GLEW_EXT_separate_specular_color GLEW_GET_VAR(__GLEW_EXT_separate_specular_color) + +#endif /* GL_EXT_separate_specular_color */ + +/* --------------------- GL_EXT_shader_image_load_store -------------------- */ + +#ifndef GL_EXT_shader_image_load_store +#define GL_EXT_shader_image_load_store 1 + +#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001 +#define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT 0x00000002 +#define GL_UNIFORM_BARRIER_BIT_EXT 0x00000004 +#define GL_TEXTURE_FETCH_BARRIER_BIT_EXT 0x00000008 +#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020 +#define GL_COMMAND_BARRIER_BIT_EXT 0x00000040 +#define GL_PIXEL_BUFFER_BARRIER_BIT_EXT 0x00000080 +#define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100 +#define GL_BUFFER_UPDATE_BARRIER_BIT_EXT 0x00000200 +#define GL_FRAMEBUFFER_BARRIER_BIT_EXT 0x00000400 +#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800 +#define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000 +#define GL_MAX_IMAGE_UNITS_EXT 0x8F38 +#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39 +#define GL_IMAGE_BINDING_NAME_EXT 0x8F3A +#define GL_IMAGE_BINDING_LEVEL_EXT 0x8F3B +#define GL_IMAGE_BINDING_LAYERED_EXT 0x8F3C +#define GL_IMAGE_BINDING_LAYER_EXT 0x8F3D +#define GL_IMAGE_BINDING_ACCESS_EXT 0x8F3E +#define GL_IMAGE_1D_EXT 0x904C +#define GL_IMAGE_2D_EXT 0x904D +#define GL_IMAGE_3D_EXT 0x904E +#define GL_IMAGE_2D_RECT_EXT 0x904F +#define GL_IMAGE_CUBE_EXT 0x9050 +#define GL_IMAGE_BUFFER_EXT 0x9051 +#define GL_IMAGE_1D_ARRAY_EXT 0x9052 +#define GL_IMAGE_2D_ARRAY_EXT 0x9053 +#define GL_IMAGE_CUBE_MAP_ARRAY_EXT 0x9054 +#define GL_IMAGE_2D_MULTISAMPLE_EXT 0x9055 +#define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056 +#define GL_INT_IMAGE_1D_EXT 0x9057 +#define GL_INT_IMAGE_2D_EXT 0x9058 +#define GL_INT_IMAGE_3D_EXT 0x9059 +#define GL_INT_IMAGE_2D_RECT_EXT 0x905A +#define GL_INT_IMAGE_CUBE_EXT 0x905B +#define GL_INT_IMAGE_BUFFER_EXT 0x905C +#define GL_INT_IMAGE_1D_ARRAY_EXT 0x905D +#define GL_INT_IMAGE_2D_ARRAY_EXT 0x905E +#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x905F +#define GL_INT_IMAGE_2D_MULTISAMPLE_EXT 0x9060 +#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061 +#define GL_UNSIGNED_INT_IMAGE_1D_EXT 0x9062 +#define GL_UNSIGNED_INT_IMAGE_2D_EXT 0x9063 +#define GL_UNSIGNED_INT_IMAGE_3D_EXT 0x9064 +#define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065 +#define GL_UNSIGNED_INT_IMAGE_CUBE_EXT 0x9066 +#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT 0x9067 +#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068 +#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069 +#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C +#define GL_MAX_IMAGE_SAMPLES_EXT 0x906D +#define GL_IMAGE_BINDING_FORMAT_EXT 0x906E +#define GL_ALL_BARRIER_BITS_EXT 0xFFFFFFFF + +typedef void (GLAPIENTRY * PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); +typedef void (GLAPIENTRY * PFNGLMEMORYBARRIEREXTPROC) (GLbitfield barriers); + +#define glBindImageTextureEXT GLEW_GET_FUN(__glewBindImageTextureEXT) +#define glMemoryBarrierEXT GLEW_GET_FUN(__glewMemoryBarrierEXT) + +#define GLEW_EXT_shader_image_load_store GLEW_GET_VAR(__GLEW_EXT_shader_image_load_store) + +#endif /* GL_EXT_shader_image_load_store */ + +/* -------------------------- GL_EXT_shadow_funcs -------------------------- */ + +#ifndef GL_EXT_shadow_funcs +#define GL_EXT_shadow_funcs 1 + +#define GLEW_EXT_shadow_funcs GLEW_GET_VAR(__GLEW_EXT_shadow_funcs) + +#endif /* GL_EXT_shadow_funcs */ + +/* --------------------- GL_EXT_shared_texture_palette --------------------- */ + +#ifndef GL_EXT_shared_texture_palette +#define GL_EXT_shared_texture_palette 1 + +#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB + +#define GLEW_EXT_shared_texture_palette GLEW_GET_VAR(__GLEW_EXT_shared_texture_palette) + +#endif /* GL_EXT_shared_texture_palette */ + +/* ------------------------ GL_EXT_stencil_clear_tag ----------------------- */ + +#ifndef GL_EXT_stencil_clear_tag +#define GL_EXT_stencil_clear_tag 1 + +#define GL_STENCIL_TAG_BITS_EXT 0x88F2 +#define GL_STENCIL_CLEAR_TAG_VALUE_EXT 0x88F3 + +#define GLEW_EXT_stencil_clear_tag GLEW_GET_VAR(__GLEW_EXT_stencil_clear_tag) + +#endif /* GL_EXT_stencil_clear_tag */ + +/* ------------------------ GL_EXT_stencil_two_side ------------------------ */ + +#ifndef GL_EXT_stencil_two_side +#define GL_EXT_stencil_two_side 1 + +#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 +#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911 + +typedef void (GLAPIENTRY * PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); + +#define glActiveStencilFaceEXT GLEW_GET_FUN(__glewActiveStencilFaceEXT) + +#define GLEW_EXT_stencil_two_side GLEW_GET_VAR(__GLEW_EXT_stencil_two_side) + +#endif /* GL_EXT_stencil_two_side */ + +/* -------------------------- GL_EXT_stencil_wrap -------------------------- */ + +#ifndef GL_EXT_stencil_wrap +#define GL_EXT_stencil_wrap 1 + +#define GL_INCR_WRAP_EXT 0x8507 +#define GL_DECR_WRAP_EXT 0x8508 + +#define GLEW_EXT_stencil_wrap GLEW_GET_VAR(__GLEW_EXT_stencil_wrap) + +#endif /* GL_EXT_stencil_wrap */ + +/* --------------------------- GL_EXT_subtexture --------------------------- */ + +#ifndef GL_EXT_subtexture +#define GL_EXT_subtexture 1 + +typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + +#define glTexSubImage1DEXT GLEW_GET_FUN(__glewTexSubImage1DEXT) +#define glTexSubImage2DEXT GLEW_GET_FUN(__glewTexSubImage2DEXT) +#define glTexSubImage3DEXT GLEW_GET_FUN(__glewTexSubImage3DEXT) + +#define GLEW_EXT_subtexture GLEW_GET_VAR(__GLEW_EXT_subtexture) + +#endif /* GL_EXT_subtexture */ + +/* ----------------------------- GL_EXT_texture ---------------------------- */ + +#ifndef GL_EXT_texture +#define GL_EXT_texture 1 + +#define GL_ALPHA4_EXT 0x803B +#define GL_ALPHA8_EXT 0x803C +#define GL_ALPHA12_EXT 0x803D +#define GL_ALPHA16_EXT 0x803E +#define GL_LUMINANCE4_EXT 0x803F +#define GL_LUMINANCE8_EXT 0x8040 +#define GL_LUMINANCE12_EXT 0x8041 +#define GL_LUMINANCE16_EXT 0x8042 +#define GL_LUMINANCE4_ALPHA4_EXT 0x8043 +#define GL_LUMINANCE6_ALPHA2_EXT 0x8044 +#define GL_LUMINANCE8_ALPHA8_EXT 0x8045 +#define GL_LUMINANCE12_ALPHA4_EXT 0x8046 +#define GL_LUMINANCE12_ALPHA12_EXT 0x8047 +#define GL_LUMINANCE16_ALPHA16_EXT 0x8048 +#define GL_INTENSITY_EXT 0x8049 +#define GL_INTENSITY4_EXT 0x804A +#define GL_INTENSITY8_EXT 0x804B +#define GL_INTENSITY12_EXT 0x804C +#define GL_INTENSITY16_EXT 0x804D +#define GL_RGB2_EXT 0x804E +#define GL_RGB4_EXT 0x804F +#define GL_RGB5_EXT 0x8050 +#define GL_RGB8_EXT 0x8051 +#define GL_RGB10_EXT 0x8052 +#define GL_RGB12_EXT 0x8053 +#define GL_RGB16_EXT 0x8054 +#define GL_RGBA2_EXT 0x8055 +#define GL_RGBA4_EXT 0x8056 +#define GL_RGB5_A1_EXT 0x8057 +#define GL_RGBA8_EXT 0x8058 +#define GL_RGB10_A2_EXT 0x8059 +#define GL_RGBA12_EXT 0x805A +#define GL_RGBA16_EXT 0x805B +#define GL_TEXTURE_RED_SIZE_EXT 0x805C +#define GL_TEXTURE_GREEN_SIZE_EXT 0x805D +#define GL_TEXTURE_BLUE_SIZE_EXT 0x805E +#define GL_TEXTURE_ALPHA_SIZE_EXT 0x805F +#define GL_TEXTURE_LUMINANCE_SIZE_EXT 0x8060 +#define GL_TEXTURE_INTENSITY_SIZE_EXT 0x8061 +#define GL_REPLACE_EXT 0x8062 +#define GL_PROXY_TEXTURE_1D_EXT 0x8063 +#define GL_PROXY_TEXTURE_2D_EXT 0x8064 + +#define GLEW_EXT_texture GLEW_GET_VAR(__GLEW_EXT_texture) + +#endif /* GL_EXT_texture */ + +/* ---------------------------- GL_EXT_texture3D --------------------------- */ + +#ifndef GL_EXT_texture3D +#define GL_EXT_texture3D 1 + +#define GL_PACK_SKIP_IMAGES_EXT 0x806B +#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C +#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D +#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E +#define GL_TEXTURE_3D_EXT 0x806F +#define GL_PROXY_TEXTURE_3D_EXT 0x8070 +#define GL_TEXTURE_DEPTH_EXT 0x8071 +#define GL_TEXTURE_WRAP_R_EXT 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073 + +typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + +#define glTexImage3DEXT GLEW_GET_FUN(__glewTexImage3DEXT) + +#define GLEW_EXT_texture3D GLEW_GET_VAR(__GLEW_EXT_texture3D) + +#endif /* GL_EXT_texture3D */ + +/* -------------------------- GL_EXT_texture_array ------------------------- */ + +#ifndef GL_EXT_texture_array +#define GL_EXT_texture_array 1 + +#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E +#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF +#define GL_TEXTURE_1D_ARRAY_EXT 0x8C18 +#define GL_PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19 +#define GL_TEXTURE_2D_ARRAY_EXT 0x8C1A +#define GL_PROXY_TEXTURE_2D_ARRAY_EXT 0x8C1B +#define GL_TEXTURE_BINDING_1D_ARRAY_EXT 0x8C1C +#define GL_TEXTURE_BINDING_2D_ARRAY_EXT 0x8C1D + +#define GLEW_EXT_texture_array GLEW_GET_VAR(__GLEW_EXT_texture_array) + +#endif /* GL_EXT_texture_array */ + +/* ---------------------- GL_EXT_texture_buffer_object --------------------- */ + +#ifndef GL_EXT_texture_buffer_object +#define GL_EXT_texture_buffer_object 1 + +#define GL_TEXTURE_BUFFER_EXT 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT_EXT 0x8C2E + +typedef void (GLAPIENTRY * PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); + +#define glTexBufferEXT GLEW_GET_FUN(__glewTexBufferEXT) + +#define GLEW_EXT_texture_buffer_object GLEW_GET_VAR(__GLEW_EXT_texture_buffer_object) + +#endif /* GL_EXT_texture_buffer_object */ + +/* -------------------- GL_EXT_texture_compression_dxt1 -------------------- */ + +#ifndef GL_EXT_texture_compression_dxt1 +#define GL_EXT_texture_compression_dxt1 1 + +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 + +#define GLEW_EXT_texture_compression_dxt1 GLEW_GET_VAR(__GLEW_EXT_texture_compression_dxt1) + +#endif /* GL_EXT_texture_compression_dxt1 */ + +/* -------------------- GL_EXT_texture_compression_latc -------------------- */ + +#ifndef GL_EXT_texture_compression_latc +#define GL_EXT_texture_compression_latc 1 + +#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70 +#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71 +#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72 +#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73 + +#define GLEW_EXT_texture_compression_latc GLEW_GET_VAR(__GLEW_EXT_texture_compression_latc) + +#endif /* GL_EXT_texture_compression_latc */ + +/* -------------------- GL_EXT_texture_compression_rgtc -------------------- */ + +#ifndef GL_EXT_texture_compression_rgtc +#define GL_EXT_texture_compression_rgtc 1 + +#define GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB +#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC +#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD +#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE + +#define GLEW_EXT_texture_compression_rgtc GLEW_GET_VAR(__GLEW_EXT_texture_compression_rgtc) + +#endif /* GL_EXT_texture_compression_rgtc */ + +/* -------------------- GL_EXT_texture_compression_s3tc -------------------- */ + +#ifndef GL_EXT_texture_compression_s3tc +#define GL_EXT_texture_compression_s3tc 1 + +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 + +#define GLEW_EXT_texture_compression_s3tc GLEW_GET_VAR(__GLEW_EXT_texture_compression_s3tc) + +#endif /* GL_EXT_texture_compression_s3tc */ + +/* ------------------------ GL_EXT_texture_cube_map ------------------------ */ + +#ifndef GL_EXT_texture_cube_map +#define GL_EXT_texture_cube_map 1 + +#define GL_NORMAL_MAP_EXT 0x8511 +#define GL_REFLECTION_MAP_EXT 0x8512 +#define GL_TEXTURE_CUBE_MAP_EXT 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C + +#define GLEW_EXT_texture_cube_map GLEW_GET_VAR(__GLEW_EXT_texture_cube_map) + +#endif /* GL_EXT_texture_cube_map */ + +/* ----------------------- GL_EXT_texture_edge_clamp ----------------------- */ + +#ifndef GL_EXT_texture_edge_clamp +#define GL_EXT_texture_edge_clamp 1 + +#define GL_CLAMP_TO_EDGE_EXT 0x812F + +#define GLEW_EXT_texture_edge_clamp GLEW_GET_VAR(__GLEW_EXT_texture_edge_clamp) + +#endif /* GL_EXT_texture_edge_clamp */ + +/* --------------------------- GL_EXT_texture_env -------------------------- */ + +#ifndef GL_EXT_texture_env +#define GL_EXT_texture_env 1 + +#define GL_TEXTURE_ENV0_EXT 0 +#define GL_ENV_BLEND_EXT 0 +#define GL_TEXTURE_ENV_SHIFT_EXT 0 +#define GL_ENV_REPLACE_EXT 0 +#define GL_ENV_ADD_EXT 0 +#define GL_ENV_SUBTRACT_EXT 0 +#define GL_TEXTURE_ENV_MODE_ALPHA_EXT 0 +#define GL_ENV_REVERSE_SUBTRACT_EXT 0 +#define GL_ENV_REVERSE_BLEND_EXT 0 +#define GL_ENV_COPY_EXT 0 +#define GL_ENV_MODULATE_EXT 0 + +#define GLEW_EXT_texture_env GLEW_GET_VAR(__GLEW_EXT_texture_env) + +#endif /* GL_EXT_texture_env */ + +/* ------------------------- GL_EXT_texture_env_add ------------------------ */ + +#ifndef GL_EXT_texture_env_add +#define GL_EXT_texture_env_add 1 + +#define GLEW_EXT_texture_env_add GLEW_GET_VAR(__GLEW_EXT_texture_env_add) + +#endif /* GL_EXT_texture_env_add */ + +/* ----------------------- GL_EXT_texture_env_combine ---------------------- */ + +#ifndef GL_EXT_texture_env_combine +#define GL_EXT_texture_env_combine 1 + +#define GL_COMBINE_EXT 0x8570 +#define GL_COMBINE_RGB_EXT 0x8571 +#define GL_COMBINE_ALPHA_EXT 0x8572 +#define GL_RGB_SCALE_EXT 0x8573 +#define GL_ADD_SIGNED_EXT 0x8574 +#define GL_INTERPOLATE_EXT 0x8575 +#define GL_CONSTANT_EXT 0x8576 +#define GL_PRIMARY_COLOR_EXT 0x8577 +#define GL_PREVIOUS_EXT 0x8578 +#define GL_SOURCE0_RGB_EXT 0x8580 +#define GL_SOURCE1_RGB_EXT 0x8581 +#define GL_SOURCE2_RGB_EXT 0x8582 +#define GL_SOURCE0_ALPHA_EXT 0x8588 +#define GL_SOURCE1_ALPHA_EXT 0x8589 +#define GL_SOURCE2_ALPHA_EXT 0x858A +#define GL_OPERAND0_RGB_EXT 0x8590 +#define GL_OPERAND1_RGB_EXT 0x8591 +#define GL_OPERAND2_RGB_EXT 0x8592 +#define GL_OPERAND0_ALPHA_EXT 0x8598 +#define GL_OPERAND1_ALPHA_EXT 0x8599 +#define GL_OPERAND2_ALPHA_EXT 0x859A + +#define GLEW_EXT_texture_env_combine GLEW_GET_VAR(__GLEW_EXT_texture_env_combine) + +#endif /* GL_EXT_texture_env_combine */ + +/* ------------------------ GL_EXT_texture_env_dot3 ------------------------ */ + +#ifndef GL_EXT_texture_env_dot3 +#define GL_EXT_texture_env_dot3 1 + +#define GL_DOT3_RGB_EXT 0x8740 +#define GL_DOT3_RGBA_EXT 0x8741 + +#define GLEW_EXT_texture_env_dot3 GLEW_GET_VAR(__GLEW_EXT_texture_env_dot3) + +#endif /* GL_EXT_texture_env_dot3 */ + +/* ------------------- GL_EXT_texture_filter_anisotropic ------------------- */ + +#ifndef GL_EXT_texture_filter_anisotropic +#define GL_EXT_texture_filter_anisotropic 1 + +#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE +#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF + +#define GLEW_EXT_texture_filter_anisotropic GLEW_GET_VAR(__GLEW_EXT_texture_filter_anisotropic) + +#endif /* GL_EXT_texture_filter_anisotropic */ + +/* ------------------------- GL_EXT_texture_integer ------------------------ */ + +#ifndef GL_EXT_texture_integer +#define GL_EXT_texture_integer 1 + +#define GL_RGBA32UI_EXT 0x8D70 +#define GL_RGB32UI_EXT 0x8D71 +#define GL_ALPHA32UI_EXT 0x8D72 +#define GL_INTENSITY32UI_EXT 0x8D73 +#define GL_LUMINANCE32UI_EXT 0x8D74 +#define GL_LUMINANCE_ALPHA32UI_EXT 0x8D75 +#define GL_RGBA16UI_EXT 0x8D76 +#define GL_RGB16UI_EXT 0x8D77 +#define GL_ALPHA16UI_EXT 0x8D78 +#define GL_INTENSITY16UI_EXT 0x8D79 +#define GL_LUMINANCE16UI_EXT 0x8D7A +#define GL_LUMINANCE_ALPHA16UI_EXT 0x8D7B +#define GL_RGBA8UI_EXT 0x8D7C +#define GL_RGB8UI_EXT 0x8D7D +#define GL_ALPHA8UI_EXT 0x8D7E +#define GL_INTENSITY8UI_EXT 0x8D7F +#define GL_LUMINANCE8UI_EXT 0x8D80 +#define GL_LUMINANCE_ALPHA8UI_EXT 0x8D81 +#define GL_RGBA32I_EXT 0x8D82 +#define GL_RGB32I_EXT 0x8D83 +#define GL_ALPHA32I_EXT 0x8D84 +#define GL_INTENSITY32I_EXT 0x8D85 +#define GL_LUMINANCE32I_EXT 0x8D86 +#define GL_LUMINANCE_ALPHA32I_EXT 0x8D87 +#define GL_RGBA16I_EXT 0x8D88 +#define GL_RGB16I_EXT 0x8D89 +#define GL_ALPHA16I_EXT 0x8D8A +#define GL_INTENSITY16I_EXT 0x8D8B +#define GL_LUMINANCE16I_EXT 0x8D8C +#define GL_LUMINANCE_ALPHA16I_EXT 0x8D8D +#define GL_RGBA8I_EXT 0x8D8E +#define GL_RGB8I_EXT 0x8D8F +#define GL_ALPHA8I_EXT 0x8D90 +#define GL_INTENSITY8I_EXT 0x8D91 +#define GL_LUMINANCE8I_EXT 0x8D92 +#define GL_LUMINANCE_ALPHA8I_EXT 0x8D93 +#define GL_RED_INTEGER_EXT 0x8D94 +#define GL_GREEN_INTEGER_EXT 0x8D95 +#define GL_BLUE_INTEGER_EXT 0x8D96 +#define GL_ALPHA_INTEGER_EXT 0x8D97 +#define GL_RGB_INTEGER_EXT 0x8D98 +#define GL_RGBA_INTEGER_EXT 0x8D99 +#define GL_BGR_INTEGER_EXT 0x8D9A +#define GL_BGRA_INTEGER_EXT 0x8D9B +#define GL_LUMINANCE_INTEGER_EXT 0x8D9C +#define GL_LUMINANCE_ALPHA_INTEGER_EXT 0x8D9D +#define GL_RGBA_INTEGER_MODE_EXT 0x8D9E + +typedef void (GLAPIENTRY * PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha); +typedef void (GLAPIENTRY * PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); +typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params); +typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params); + +#define glClearColorIiEXT GLEW_GET_FUN(__glewClearColorIiEXT) +#define glClearColorIuiEXT GLEW_GET_FUN(__glewClearColorIuiEXT) +#define glGetTexParameterIivEXT GLEW_GET_FUN(__glewGetTexParameterIivEXT) +#define glGetTexParameterIuivEXT GLEW_GET_FUN(__glewGetTexParameterIuivEXT) +#define glTexParameterIivEXT GLEW_GET_FUN(__glewTexParameterIivEXT) +#define glTexParameterIuivEXT GLEW_GET_FUN(__glewTexParameterIuivEXT) + +#define GLEW_EXT_texture_integer GLEW_GET_VAR(__GLEW_EXT_texture_integer) + +#endif /* GL_EXT_texture_integer */ + +/* ------------------------ GL_EXT_texture_lod_bias ------------------------ */ + +#ifndef GL_EXT_texture_lod_bias +#define GL_EXT_texture_lod_bias 1 + +#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD +#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 +#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 + +#define GLEW_EXT_texture_lod_bias GLEW_GET_VAR(__GLEW_EXT_texture_lod_bias) + +#endif /* GL_EXT_texture_lod_bias */ + +/* ---------------------- GL_EXT_texture_mirror_clamp ---------------------- */ + +#ifndef GL_EXT_texture_mirror_clamp +#define GL_EXT_texture_mirror_clamp 1 + +#define GL_MIRROR_CLAMP_EXT 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743 +#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912 + +#define GLEW_EXT_texture_mirror_clamp GLEW_GET_VAR(__GLEW_EXT_texture_mirror_clamp) + +#endif /* GL_EXT_texture_mirror_clamp */ + +/* ------------------------- GL_EXT_texture_object ------------------------- */ + +#ifndef GL_EXT_texture_object +#define GL_EXT_texture_object 1 + +#define GL_TEXTURE_PRIORITY_EXT 0x8066 +#define GL_TEXTURE_RESIDENT_EXT 0x8067 +#define GL_TEXTURE_1D_BINDING_EXT 0x8068 +#define GL_TEXTURE_2D_BINDING_EXT 0x8069 +#define GL_TEXTURE_3D_BINDING_EXT 0x806A + +typedef GLboolean (GLAPIENTRY * PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint* textures, GLboolean* residences); +typedef void (GLAPIENTRY * PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); +typedef void (GLAPIENTRY * PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint* textures); +typedef void (GLAPIENTRY * PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint* textures); +typedef GLboolean (GLAPIENTRY * PFNGLISTEXTUREEXTPROC) (GLuint texture); +typedef void (GLAPIENTRY * PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint* textures, const GLclampf* priorities); + +#define glAreTexturesResidentEXT GLEW_GET_FUN(__glewAreTexturesResidentEXT) +#define glBindTextureEXT GLEW_GET_FUN(__glewBindTextureEXT) +#define glDeleteTexturesEXT GLEW_GET_FUN(__glewDeleteTexturesEXT) +#define glGenTexturesEXT GLEW_GET_FUN(__glewGenTexturesEXT) +#define glIsTextureEXT GLEW_GET_FUN(__glewIsTextureEXT) +#define glPrioritizeTexturesEXT GLEW_GET_FUN(__glewPrioritizeTexturesEXT) + +#define GLEW_EXT_texture_object GLEW_GET_VAR(__GLEW_EXT_texture_object) + +#endif /* GL_EXT_texture_object */ + +/* --------------------- GL_EXT_texture_perturb_normal --------------------- */ + +#ifndef GL_EXT_texture_perturb_normal +#define GL_EXT_texture_perturb_normal 1 + +#define GL_PERTURB_EXT 0x85AE +#define GL_TEXTURE_NORMAL_EXT 0x85AF + +typedef void (GLAPIENTRY * PFNGLTEXTURENORMALEXTPROC) (GLenum mode); + +#define glTextureNormalEXT GLEW_GET_FUN(__glewTextureNormalEXT) + +#define GLEW_EXT_texture_perturb_normal GLEW_GET_VAR(__GLEW_EXT_texture_perturb_normal) + +#endif /* GL_EXT_texture_perturb_normal */ + +/* ------------------------ GL_EXT_texture_rectangle ----------------------- */ + +#ifndef GL_EXT_texture_rectangle +#define GL_EXT_texture_rectangle 1 + +#define GL_TEXTURE_RECTANGLE_EXT 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_EXT 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_EXT 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT 0x84F8 + +#define GLEW_EXT_texture_rectangle GLEW_GET_VAR(__GLEW_EXT_texture_rectangle) + +#endif /* GL_EXT_texture_rectangle */ + +/* -------------------------- GL_EXT_texture_sRGB -------------------------- */ + +#ifndef GL_EXT_texture_sRGB +#define GL_EXT_texture_sRGB 1 + +#define GL_SRGB_EXT 0x8C40 +#define GL_SRGB8_EXT 0x8C41 +#define GL_SRGB_ALPHA_EXT 0x8C42 +#define GL_SRGB8_ALPHA8_EXT 0x8C43 +#define GL_SLUMINANCE_ALPHA_EXT 0x8C44 +#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45 +#define GL_SLUMINANCE_EXT 0x8C46 +#define GL_SLUMINANCE8_EXT 0x8C47 +#define GL_COMPRESSED_SRGB_EXT 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49 +#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A +#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B +#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F + +#define GLEW_EXT_texture_sRGB GLEW_GET_VAR(__GLEW_EXT_texture_sRGB) + +#endif /* GL_EXT_texture_sRGB */ + +/* ----------------------- GL_EXT_texture_sRGB_decode ---------------------- */ + +#ifndef GL_EXT_texture_sRGB_decode +#define GL_EXT_texture_sRGB_decode 1 + +#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48 +#define GL_DECODE_EXT 0x8A49 +#define GL_SKIP_DECODE_EXT 0x8A4A + +#define GLEW_EXT_texture_sRGB_decode GLEW_GET_VAR(__GLEW_EXT_texture_sRGB_decode) + +#endif /* GL_EXT_texture_sRGB_decode */ + +/* --------------------- GL_EXT_texture_shared_exponent -------------------- */ + +#ifndef GL_EXT_texture_shared_exponent +#define GL_EXT_texture_shared_exponent 1 + +#define GL_RGB9_E5_EXT 0x8C3D +#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E +#define GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F + +#define GLEW_EXT_texture_shared_exponent GLEW_GET_VAR(__GLEW_EXT_texture_shared_exponent) + +#endif /* GL_EXT_texture_shared_exponent */ + +/* -------------------------- GL_EXT_texture_snorm ------------------------- */ + +#ifndef GL_EXT_texture_snorm +#define GL_EXT_texture_snorm 1 + +#define GL_RED_SNORM 0x8F90 +#define GL_RG_SNORM 0x8F91 +#define GL_RGB_SNORM 0x8F92 +#define GL_RGBA_SNORM 0x8F93 +#define GL_R8_SNORM 0x8F94 +#define GL_RG8_SNORM 0x8F95 +#define GL_RGB8_SNORM 0x8F96 +#define GL_RGBA8_SNORM 0x8F97 +#define GL_R16_SNORM 0x8F98 +#define GL_RG16_SNORM 0x8F99 +#define GL_RGB16_SNORM 0x8F9A +#define GL_RGBA16_SNORM 0x8F9B +#define GL_SIGNED_NORMALIZED 0x8F9C +#define GL_ALPHA_SNORM 0x9010 +#define GL_LUMINANCE_SNORM 0x9011 +#define GL_LUMINANCE_ALPHA_SNORM 0x9012 +#define GL_INTENSITY_SNORM 0x9013 +#define GL_ALPHA8_SNORM 0x9014 +#define GL_LUMINANCE8_SNORM 0x9015 +#define GL_LUMINANCE8_ALPHA8_SNORM 0x9016 +#define GL_INTENSITY8_SNORM 0x9017 +#define GL_ALPHA16_SNORM 0x9018 +#define GL_LUMINANCE16_SNORM 0x9019 +#define GL_LUMINANCE16_ALPHA16_SNORM 0x901A +#define GL_INTENSITY16_SNORM 0x901B + +#define GLEW_EXT_texture_snorm GLEW_GET_VAR(__GLEW_EXT_texture_snorm) + +#endif /* GL_EXT_texture_snorm */ + +/* ------------------------- GL_EXT_texture_swizzle ------------------------ */ + +#ifndef GL_EXT_texture_swizzle +#define GL_EXT_texture_swizzle 1 + +#define GL_TEXTURE_SWIZZLE_R_EXT 0x8E42 +#define GL_TEXTURE_SWIZZLE_G_EXT 0x8E43 +#define GL_TEXTURE_SWIZZLE_B_EXT 0x8E44 +#define GL_TEXTURE_SWIZZLE_A_EXT 0x8E45 +#define GL_TEXTURE_SWIZZLE_RGBA_EXT 0x8E46 + +#define GLEW_EXT_texture_swizzle GLEW_GET_VAR(__GLEW_EXT_texture_swizzle) + +#endif /* GL_EXT_texture_swizzle */ + +/* --------------------------- GL_EXT_timer_query -------------------------- */ + +#ifndef GL_EXT_timer_query +#define GL_EXT_timer_query 1 + +#define GL_TIME_ELAPSED_EXT 0x88BF + +typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params); +typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params); + +#define glGetQueryObjecti64vEXT GLEW_GET_FUN(__glewGetQueryObjecti64vEXT) +#define glGetQueryObjectui64vEXT GLEW_GET_FUN(__glewGetQueryObjectui64vEXT) + +#define GLEW_EXT_timer_query GLEW_GET_VAR(__GLEW_EXT_timer_query) + +#endif /* GL_EXT_timer_query */ + +/* ----------------------- GL_EXT_transform_feedback ----------------------- */ + +#ifndef GL_EXT_transform_feedback +#define GL_EXT_transform_feedback 1 + +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76 +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80 +#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85 +#define GL_PRIMITIVES_GENERATED_EXT 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88 +#define GL_RASTERIZER_DISCARD_EXT 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B +#define GL_INTERLEAVED_ATTRIBS_EXT 0x8C8C +#define GL_SEPARATE_ATTRIBS_EXT 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F + +typedef void (GLAPIENTRY * PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode); +typedef void (GLAPIENTRY * PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer); +typedef void (GLAPIENTRY * PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (GLAPIENTRY * PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void); +typedef void (GLAPIENTRY * PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei *size, GLenum *type, char *name); +typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const char ** varyings, GLenum bufferMode); + +#define glBeginTransformFeedbackEXT GLEW_GET_FUN(__glewBeginTransformFeedbackEXT) +#define glBindBufferBaseEXT GLEW_GET_FUN(__glewBindBufferBaseEXT) +#define glBindBufferOffsetEXT GLEW_GET_FUN(__glewBindBufferOffsetEXT) +#define glBindBufferRangeEXT GLEW_GET_FUN(__glewBindBufferRangeEXT) +#define glEndTransformFeedbackEXT GLEW_GET_FUN(__glewEndTransformFeedbackEXT) +#define glGetTransformFeedbackVaryingEXT GLEW_GET_FUN(__glewGetTransformFeedbackVaryingEXT) +#define glTransformFeedbackVaryingsEXT GLEW_GET_FUN(__glewTransformFeedbackVaryingsEXT) + +#define GLEW_EXT_transform_feedback GLEW_GET_VAR(__GLEW_EXT_transform_feedback) + +#endif /* GL_EXT_transform_feedback */ + +/* -------------------------- GL_EXT_vertex_array -------------------------- */ + +#ifndef GL_EXT_vertex_array +#define GL_EXT_vertex_array 1 + +#define GL_DOUBLE_EXT 0x140A +#define GL_VERTEX_ARRAY_EXT 0x8074 +#define GL_NORMAL_ARRAY_EXT 0x8075 +#define GL_COLOR_ARRAY_EXT 0x8076 +#define GL_INDEX_ARRAY_EXT 0x8077 +#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 +#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 +#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A +#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B +#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C +#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D +#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E +#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F +#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 +#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 +#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 +#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 +#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 +#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 +#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 +#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 +#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A +#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B +#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C +#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D +#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E +#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F +#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 +#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 + +typedef void (GLAPIENTRY * PFNGLARRAYELEMENTEXTPROC) (GLint i); +typedef void (GLAPIENTRY * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); +typedef void (GLAPIENTRY * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (GLAPIENTRY * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean* pointer); +typedef void (GLAPIENTRY * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void* pointer); +typedef void (GLAPIENTRY * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void* pointer); +typedef void (GLAPIENTRY * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); +typedef void (GLAPIENTRY * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); + +#define glArrayElementEXT GLEW_GET_FUN(__glewArrayElementEXT) +#define glColorPointerEXT GLEW_GET_FUN(__glewColorPointerEXT) +#define glDrawArraysEXT GLEW_GET_FUN(__glewDrawArraysEXT) +#define glEdgeFlagPointerEXT GLEW_GET_FUN(__glewEdgeFlagPointerEXT) +#define glIndexPointerEXT GLEW_GET_FUN(__glewIndexPointerEXT) +#define glNormalPointerEXT GLEW_GET_FUN(__glewNormalPointerEXT) +#define glTexCoordPointerEXT GLEW_GET_FUN(__glewTexCoordPointerEXT) +#define glVertexPointerEXT GLEW_GET_FUN(__glewVertexPointerEXT) + +#define GLEW_EXT_vertex_array GLEW_GET_VAR(__GLEW_EXT_vertex_array) + +#endif /* GL_EXT_vertex_array */ + +/* ------------------------ GL_EXT_vertex_array_bgra ----------------------- */ + +#ifndef GL_EXT_vertex_array_bgra +#define GL_EXT_vertex_array_bgra 1 + +#define GL_BGRA 0x80E1 + +#define GLEW_EXT_vertex_array_bgra GLEW_GET_VAR(__GLEW_EXT_vertex_array_bgra) + +#endif /* GL_EXT_vertex_array_bgra */ + +/* ----------------------- GL_EXT_vertex_attrib_64bit ---------------------- */ + +#ifndef GL_EXT_vertex_attrib_64bit +#define GL_EXT_vertex_attrib_64bit 1 + +#define GL_DOUBLE_MAT2_EXT 0x8F46 +#define GL_DOUBLE_MAT3_EXT 0x8F47 +#define GL_DOUBLE_MAT4_EXT 0x8F48 +#define GL_DOUBLE_MAT2x3_EXT 0x8F49 +#define GL_DOUBLE_MAT2x4_EXT 0x8F4A +#define GL_DOUBLE_MAT3x2_EXT 0x8F4B +#define GL_DOUBLE_MAT3x4_EXT 0x8F4C +#define GL_DOUBLE_MAT4x2_EXT 0x8F4D +#define GL_DOUBLE_MAT4x3_EXT 0x8F4E +#define GL_DOUBLE_VEC2_EXT 0x8FFC +#define GL_DOUBLE_VEC3_EXT 0x8FFD +#define GL_DOUBLE_VEC4_EXT 0x8FFE + +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBLDVEXTPROC) (GLuint index, GLenum pname, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1DEXTPROC) (GLuint index, GLdouble x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1DVEXTPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2DEXTPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2DVEXTPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3DVEXTPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4DVEXTPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBLPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + +#define glGetVertexAttribLdvEXT GLEW_GET_FUN(__glewGetVertexAttribLdvEXT) +#define glVertexArrayVertexAttribLOffsetEXT GLEW_GET_FUN(__glewVertexArrayVertexAttribLOffsetEXT) +#define glVertexAttribL1dEXT GLEW_GET_FUN(__glewVertexAttribL1dEXT) +#define glVertexAttribL1dvEXT GLEW_GET_FUN(__glewVertexAttribL1dvEXT) +#define glVertexAttribL2dEXT GLEW_GET_FUN(__glewVertexAttribL2dEXT) +#define glVertexAttribL2dvEXT GLEW_GET_FUN(__glewVertexAttribL2dvEXT) +#define glVertexAttribL3dEXT GLEW_GET_FUN(__glewVertexAttribL3dEXT) +#define glVertexAttribL3dvEXT GLEW_GET_FUN(__glewVertexAttribL3dvEXT) +#define glVertexAttribL4dEXT GLEW_GET_FUN(__glewVertexAttribL4dEXT) +#define glVertexAttribL4dvEXT GLEW_GET_FUN(__glewVertexAttribL4dvEXT) +#define glVertexAttribLPointerEXT GLEW_GET_FUN(__glewVertexAttribLPointerEXT) + +#define GLEW_EXT_vertex_attrib_64bit GLEW_GET_VAR(__GLEW_EXT_vertex_attrib_64bit) + +#endif /* GL_EXT_vertex_attrib_64bit */ + +/* -------------------------- GL_EXT_vertex_shader ------------------------- */ + +#ifndef GL_EXT_vertex_shader +#define GL_EXT_vertex_shader 1 + +#define GL_VERTEX_SHADER_EXT 0x8780 +#define GL_VERTEX_SHADER_BINDING_EXT 0x8781 +#define GL_OP_INDEX_EXT 0x8782 +#define GL_OP_NEGATE_EXT 0x8783 +#define GL_OP_DOT3_EXT 0x8784 +#define GL_OP_DOT4_EXT 0x8785 +#define GL_OP_MUL_EXT 0x8786 +#define GL_OP_ADD_EXT 0x8787 +#define GL_OP_MADD_EXT 0x8788 +#define GL_OP_FRAC_EXT 0x8789 +#define GL_OP_MAX_EXT 0x878A +#define GL_OP_MIN_EXT 0x878B +#define GL_OP_SET_GE_EXT 0x878C +#define GL_OP_SET_LT_EXT 0x878D +#define GL_OP_CLAMP_EXT 0x878E +#define GL_OP_FLOOR_EXT 0x878F +#define GL_OP_ROUND_EXT 0x8790 +#define GL_OP_EXP_BASE_2_EXT 0x8791 +#define GL_OP_LOG_BASE_2_EXT 0x8792 +#define GL_OP_POWER_EXT 0x8793 +#define GL_OP_RECIP_EXT 0x8794 +#define GL_OP_RECIP_SQRT_EXT 0x8795 +#define GL_OP_SUB_EXT 0x8796 +#define GL_OP_CROSS_PRODUCT_EXT 0x8797 +#define GL_OP_MULTIPLY_MATRIX_EXT 0x8798 +#define GL_OP_MOV_EXT 0x8799 +#define GL_OUTPUT_VERTEX_EXT 0x879A +#define GL_OUTPUT_COLOR0_EXT 0x879B +#define GL_OUTPUT_COLOR1_EXT 0x879C +#define GL_OUTPUT_TEXTURE_COORD0_EXT 0x879D +#define GL_OUTPUT_TEXTURE_COORD1_EXT 0x879E +#define GL_OUTPUT_TEXTURE_COORD2_EXT 0x879F +#define GL_OUTPUT_TEXTURE_COORD3_EXT 0x87A0 +#define GL_OUTPUT_TEXTURE_COORD4_EXT 0x87A1 +#define GL_OUTPUT_TEXTURE_COORD5_EXT 0x87A2 +#define GL_OUTPUT_TEXTURE_COORD6_EXT 0x87A3 +#define GL_OUTPUT_TEXTURE_COORD7_EXT 0x87A4 +#define GL_OUTPUT_TEXTURE_COORD8_EXT 0x87A5 +#define GL_OUTPUT_TEXTURE_COORD9_EXT 0x87A6 +#define GL_OUTPUT_TEXTURE_COORD10_EXT 0x87A7 +#define GL_OUTPUT_TEXTURE_COORD11_EXT 0x87A8 +#define GL_OUTPUT_TEXTURE_COORD12_EXT 0x87A9 +#define GL_OUTPUT_TEXTURE_COORD13_EXT 0x87AA +#define GL_OUTPUT_TEXTURE_COORD14_EXT 0x87AB +#define GL_OUTPUT_TEXTURE_COORD15_EXT 0x87AC +#define GL_OUTPUT_TEXTURE_COORD16_EXT 0x87AD +#define GL_OUTPUT_TEXTURE_COORD17_EXT 0x87AE +#define GL_OUTPUT_TEXTURE_COORD18_EXT 0x87AF +#define GL_OUTPUT_TEXTURE_COORD19_EXT 0x87B0 +#define GL_OUTPUT_TEXTURE_COORD20_EXT 0x87B1 +#define GL_OUTPUT_TEXTURE_COORD21_EXT 0x87B2 +#define GL_OUTPUT_TEXTURE_COORD22_EXT 0x87B3 +#define GL_OUTPUT_TEXTURE_COORD23_EXT 0x87B4 +#define GL_OUTPUT_TEXTURE_COORD24_EXT 0x87B5 +#define GL_OUTPUT_TEXTURE_COORD25_EXT 0x87B6 +#define GL_OUTPUT_TEXTURE_COORD26_EXT 0x87B7 +#define GL_OUTPUT_TEXTURE_COORD27_EXT 0x87B8 +#define GL_OUTPUT_TEXTURE_COORD28_EXT 0x87B9 +#define GL_OUTPUT_TEXTURE_COORD29_EXT 0x87BA +#define GL_OUTPUT_TEXTURE_COORD30_EXT 0x87BB +#define GL_OUTPUT_TEXTURE_COORD31_EXT 0x87BC +#define GL_OUTPUT_FOG_EXT 0x87BD +#define GL_SCALAR_EXT 0x87BE +#define GL_VECTOR_EXT 0x87BF +#define GL_MATRIX_EXT 0x87C0 +#define GL_VARIANT_EXT 0x87C1 +#define GL_INVARIANT_EXT 0x87C2 +#define GL_LOCAL_CONSTANT_EXT 0x87C3 +#define GL_LOCAL_EXT 0x87C4 +#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5 +#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6 +#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7 +#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8 +#define GL_MAX_VERTEX_SHADER_LOCALS_EXT 0x87C9 +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CC +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CD +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE +#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF +#define GL_VERTEX_SHADER_VARIANTS_EXT 0x87D0 +#define GL_VERTEX_SHADER_INVARIANTS_EXT 0x87D1 +#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2 +#define GL_VERTEX_SHADER_LOCALS_EXT 0x87D3 +#define GL_VERTEX_SHADER_OPTIMIZED_EXT 0x87D4 +#define GL_X_EXT 0x87D5 +#define GL_Y_EXT 0x87D6 +#define GL_Z_EXT 0x87D7 +#define GL_W_EXT 0x87D8 +#define GL_NEGATIVE_X_EXT 0x87D9 +#define GL_NEGATIVE_Y_EXT 0x87DA +#define GL_NEGATIVE_Z_EXT 0x87DB +#define GL_NEGATIVE_W_EXT 0x87DC +#define GL_ZERO_EXT 0x87DD +#define GL_ONE_EXT 0x87DE +#define GL_NEGATIVE_ONE_EXT 0x87DF +#define GL_NORMALIZED_RANGE_EXT 0x87E0 +#define GL_FULL_RANGE_EXT 0x87E1 +#define GL_CURRENT_VERTEX_EXT 0x87E2 +#define GL_MVP_MATRIX_EXT 0x87E3 +#define GL_VARIANT_VALUE_EXT 0x87E4 +#define GL_VARIANT_DATATYPE_EXT 0x87E5 +#define GL_VARIANT_ARRAY_STRIDE_EXT 0x87E6 +#define GL_VARIANT_ARRAY_TYPE_EXT 0x87E7 +#define GL_VARIANT_ARRAY_EXT 0x87E8 +#define GL_VARIANT_ARRAY_POINTER_EXT 0x87E9 +#define GL_INVARIANT_VALUE_EXT 0x87EA +#define GL_INVARIANT_DATATYPE_EXT 0x87EB +#define GL_LOCAL_CONSTANT_VALUE_EXT 0x87EC +#define GL_LOCAL_CONSTANT_DATATYPE_EXT 0x87ED + +typedef void (GLAPIENTRY * PFNGLBEGINVERTEXSHADEREXTPROC) (void); +typedef GLuint (GLAPIENTRY * PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); +typedef GLuint (GLAPIENTRY * PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); +typedef GLuint (GLAPIENTRY * PFNGLBINDPARAMETEREXTPROC) (GLenum value); +typedef GLuint (GLAPIENTRY * PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); +typedef GLuint (GLAPIENTRY * PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); +typedef void (GLAPIENTRY * PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLENDVERTEXSHADEREXTPROC) (void); +typedef void (GLAPIENTRY * PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); +typedef GLuint (GLAPIENTRY * PFNGLGENSYMBOLSEXTPROC) (GLenum dataType, GLenum storageType, GLenum range, GLuint components); +typedef GLuint (GLAPIENTRY * PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); +typedef void (GLAPIENTRY * PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (GLAPIENTRY * PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +typedef void (GLAPIENTRY * PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (GLAPIENTRY * PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (GLAPIENTRY * PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +typedef void (GLAPIENTRY * PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (GLAPIENTRY * PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); +typedef void (GLAPIENTRY * PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); +typedef void (GLAPIENTRY * PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); +typedef void (GLAPIENTRY * PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid **data); +typedef void (GLAPIENTRY * PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); +typedef GLboolean (GLAPIENTRY * PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); +typedef void (GLAPIENTRY * PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, GLvoid *addr); +typedef void (GLAPIENTRY * PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, GLvoid *addr); +typedef void (GLAPIENTRY * PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); +typedef void (GLAPIENTRY * PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); +typedef void (GLAPIENTRY * PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); +typedef void (GLAPIENTRY * PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); +typedef void (GLAPIENTRY * PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, GLvoid *addr); +typedef void (GLAPIENTRY * PFNGLVARIANTBVEXTPROC) (GLuint id, GLbyte *addr); +typedef void (GLAPIENTRY * PFNGLVARIANTDVEXTPROC) (GLuint id, GLdouble *addr); +typedef void (GLAPIENTRY * PFNGLVARIANTFVEXTPROC) (GLuint id, GLfloat *addr); +typedef void (GLAPIENTRY * PFNGLVARIANTIVEXTPROC) (GLuint id, GLint *addr); +typedef void (GLAPIENTRY * PFNGLVARIANTSVEXTPROC) (GLuint id, GLshort *addr); +typedef void (GLAPIENTRY * PFNGLVARIANTUBVEXTPROC) (GLuint id, GLubyte *addr); +typedef void (GLAPIENTRY * PFNGLVARIANTUIVEXTPROC) (GLuint id, GLuint *addr); +typedef void (GLAPIENTRY * PFNGLVARIANTUSVEXTPROC) (GLuint id, GLushort *addr); +typedef void (GLAPIENTRY * PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); + +#define glBeginVertexShaderEXT GLEW_GET_FUN(__glewBeginVertexShaderEXT) +#define glBindLightParameterEXT GLEW_GET_FUN(__glewBindLightParameterEXT) +#define glBindMaterialParameterEXT GLEW_GET_FUN(__glewBindMaterialParameterEXT) +#define glBindParameterEXT GLEW_GET_FUN(__glewBindParameterEXT) +#define glBindTexGenParameterEXT GLEW_GET_FUN(__glewBindTexGenParameterEXT) +#define glBindTextureUnitParameterEXT GLEW_GET_FUN(__glewBindTextureUnitParameterEXT) +#define glBindVertexShaderEXT GLEW_GET_FUN(__glewBindVertexShaderEXT) +#define glDeleteVertexShaderEXT GLEW_GET_FUN(__glewDeleteVertexShaderEXT) +#define glDisableVariantClientStateEXT GLEW_GET_FUN(__glewDisableVariantClientStateEXT) +#define glEnableVariantClientStateEXT GLEW_GET_FUN(__glewEnableVariantClientStateEXT) +#define glEndVertexShaderEXT GLEW_GET_FUN(__glewEndVertexShaderEXT) +#define glExtractComponentEXT GLEW_GET_FUN(__glewExtractComponentEXT) +#define glGenSymbolsEXT GLEW_GET_FUN(__glewGenSymbolsEXT) +#define glGenVertexShadersEXT GLEW_GET_FUN(__glewGenVertexShadersEXT) +#define glGetInvariantBooleanvEXT GLEW_GET_FUN(__glewGetInvariantBooleanvEXT) +#define glGetInvariantFloatvEXT GLEW_GET_FUN(__glewGetInvariantFloatvEXT) +#define glGetInvariantIntegervEXT GLEW_GET_FUN(__glewGetInvariantIntegervEXT) +#define glGetLocalConstantBooleanvEXT GLEW_GET_FUN(__glewGetLocalConstantBooleanvEXT) +#define glGetLocalConstantFloatvEXT GLEW_GET_FUN(__glewGetLocalConstantFloatvEXT) +#define glGetLocalConstantIntegervEXT GLEW_GET_FUN(__glewGetLocalConstantIntegervEXT) +#define glGetVariantBooleanvEXT GLEW_GET_FUN(__glewGetVariantBooleanvEXT) +#define glGetVariantFloatvEXT GLEW_GET_FUN(__glewGetVariantFloatvEXT) +#define glGetVariantIntegervEXT GLEW_GET_FUN(__glewGetVariantIntegervEXT) +#define glGetVariantPointervEXT GLEW_GET_FUN(__glewGetVariantPointervEXT) +#define glInsertComponentEXT GLEW_GET_FUN(__glewInsertComponentEXT) +#define glIsVariantEnabledEXT GLEW_GET_FUN(__glewIsVariantEnabledEXT) +#define glSetInvariantEXT GLEW_GET_FUN(__glewSetInvariantEXT) +#define glSetLocalConstantEXT GLEW_GET_FUN(__glewSetLocalConstantEXT) +#define glShaderOp1EXT GLEW_GET_FUN(__glewShaderOp1EXT) +#define glShaderOp2EXT GLEW_GET_FUN(__glewShaderOp2EXT) +#define glShaderOp3EXT GLEW_GET_FUN(__glewShaderOp3EXT) +#define glSwizzleEXT GLEW_GET_FUN(__glewSwizzleEXT) +#define glVariantPointerEXT GLEW_GET_FUN(__glewVariantPointerEXT) +#define glVariantbvEXT GLEW_GET_FUN(__glewVariantbvEXT) +#define glVariantdvEXT GLEW_GET_FUN(__glewVariantdvEXT) +#define glVariantfvEXT GLEW_GET_FUN(__glewVariantfvEXT) +#define glVariantivEXT GLEW_GET_FUN(__glewVariantivEXT) +#define glVariantsvEXT GLEW_GET_FUN(__glewVariantsvEXT) +#define glVariantubvEXT GLEW_GET_FUN(__glewVariantubvEXT) +#define glVariantuivEXT GLEW_GET_FUN(__glewVariantuivEXT) +#define glVariantusvEXT GLEW_GET_FUN(__glewVariantusvEXT) +#define glWriteMaskEXT GLEW_GET_FUN(__glewWriteMaskEXT) + +#define GLEW_EXT_vertex_shader GLEW_GET_VAR(__GLEW_EXT_vertex_shader) + +#endif /* GL_EXT_vertex_shader */ + +/* ------------------------ GL_EXT_vertex_weighting ------------------------ */ + +#ifndef GL_EXT_vertex_weighting +#define GL_EXT_vertex_weighting 1 + +#define GL_MODELVIEW0_STACK_DEPTH_EXT 0x0BA3 +#define GL_MODELVIEW0_MATRIX_EXT 0x0BA6 +#define GL_MODELVIEW0_EXT 0x1700 +#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502 +#define GL_MODELVIEW1_MATRIX_EXT 0x8506 +#define GL_VERTEX_WEIGHTING_EXT 0x8509 +#define GL_MODELVIEW1_EXT 0x850A +#define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850B +#define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850C +#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850D +#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850E +#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F +#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510 + +typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, void* pointer); +typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); +typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTFVEXTPROC) (GLfloat* weight); + +#define glVertexWeightPointerEXT GLEW_GET_FUN(__glewVertexWeightPointerEXT) +#define glVertexWeightfEXT GLEW_GET_FUN(__glewVertexWeightfEXT) +#define glVertexWeightfvEXT GLEW_GET_FUN(__glewVertexWeightfvEXT) + +#define GLEW_EXT_vertex_weighting GLEW_GET_VAR(__GLEW_EXT_vertex_weighting) + +#endif /* GL_EXT_vertex_weighting */ + +/* ---------------------- GL_GREMEDY_frame_terminator ---------------------- */ + +#ifndef GL_GREMEDY_frame_terminator +#define GL_GREMEDY_frame_terminator 1 + +typedef void (GLAPIENTRY * PFNGLFRAMETERMINATORGREMEDYPROC) (void); + +#define glFrameTerminatorGREMEDY GLEW_GET_FUN(__glewFrameTerminatorGREMEDY) + +#define GLEW_GREMEDY_frame_terminator GLEW_GET_VAR(__GLEW_GREMEDY_frame_terminator) + +#endif /* GL_GREMEDY_frame_terminator */ + +/* ------------------------ GL_GREMEDY_string_marker ----------------------- */ + +#ifndef GL_GREMEDY_string_marker +#define GL_GREMEDY_string_marker 1 + +typedef void (GLAPIENTRY * PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const void* string); + +#define glStringMarkerGREMEDY GLEW_GET_FUN(__glewStringMarkerGREMEDY) + +#define GLEW_GREMEDY_string_marker GLEW_GET_VAR(__GLEW_GREMEDY_string_marker) + +#endif /* GL_GREMEDY_string_marker */ + +/* --------------------- GL_HP_convolution_border_modes -------------------- */ + +#ifndef GL_HP_convolution_border_modes +#define GL_HP_convolution_border_modes 1 + +#define GLEW_HP_convolution_border_modes GLEW_GET_VAR(__GLEW_HP_convolution_border_modes) + +#endif /* GL_HP_convolution_border_modes */ + +/* ------------------------- GL_HP_image_transform ------------------------- */ + +#ifndef GL_HP_image_transform +#define GL_HP_image_transform 1 + +typedef void (GLAPIENTRY * PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, const GLfloat param); +typedef void (GLAPIENTRY * PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, const GLint param); +typedef void (GLAPIENTRY * PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint* params); + +#define glGetImageTransformParameterfvHP GLEW_GET_FUN(__glewGetImageTransformParameterfvHP) +#define glGetImageTransformParameterivHP GLEW_GET_FUN(__glewGetImageTransformParameterivHP) +#define glImageTransformParameterfHP GLEW_GET_FUN(__glewImageTransformParameterfHP) +#define glImageTransformParameterfvHP GLEW_GET_FUN(__glewImageTransformParameterfvHP) +#define glImageTransformParameteriHP GLEW_GET_FUN(__glewImageTransformParameteriHP) +#define glImageTransformParameterivHP GLEW_GET_FUN(__glewImageTransformParameterivHP) + +#define GLEW_HP_image_transform GLEW_GET_VAR(__GLEW_HP_image_transform) + +#endif /* GL_HP_image_transform */ + +/* -------------------------- GL_HP_occlusion_test ------------------------- */ + +#ifndef GL_HP_occlusion_test +#define GL_HP_occlusion_test 1 + +#define GL_OCCLUSION_TEST_HP 0x8165 +#define GL_OCCLUSION_TEST_RESULT_HP 0x8166 + +#define GLEW_HP_occlusion_test GLEW_GET_VAR(__GLEW_HP_occlusion_test) + +#endif /* GL_HP_occlusion_test */ + +/* ------------------------- GL_HP_texture_lighting ------------------------ */ + +#ifndef GL_HP_texture_lighting +#define GL_HP_texture_lighting 1 + +#define GLEW_HP_texture_lighting GLEW_GET_VAR(__GLEW_HP_texture_lighting) + +#endif /* GL_HP_texture_lighting */ + +/* --------------------------- GL_IBM_cull_vertex -------------------------- */ + +#ifndef GL_IBM_cull_vertex +#define GL_IBM_cull_vertex 1 + +#define GL_CULL_VERTEX_IBM 103050 + +#define GLEW_IBM_cull_vertex GLEW_GET_VAR(__GLEW_IBM_cull_vertex) + +#endif /* GL_IBM_cull_vertex */ + +/* ---------------------- GL_IBM_multimode_draw_arrays --------------------- */ + +#ifndef GL_IBM_multimode_draw_arrays +#define GL_IBM_multimode_draw_arrays 1 + +typedef void (GLAPIENTRY * PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum* mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); +typedef void (GLAPIENTRY * PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum* mode, const GLsizei *count, GLenum type, const GLvoid * const *indices, GLsizei primcount, GLint modestride); + +#define glMultiModeDrawArraysIBM GLEW_GET_FUN(__glewMultiModeDrawArraysIBM) +#define glMultiModeDrawElementsIBM GLEW_GET_FUN(__glewMultiModeDrawElementsIBM) + +#define GLEW_IBM_multimode_draw_arrays GLEW_GET_VAR(__GLEW_IBM_multimode_draw_arrays) + +#endif /* GL_IBM_multimode_draw_arrays */ + +/* ------------------------- GL_IBM_rasterpos_clip ------------------------- */ + +#ifndef GL_IBM_rasterpos_clip +#define GL_IBM_rasterpos_clip 1 + +#define GL_RASTER_POSITION_UNCLIPPED_IBM 103010 + +#define GLEW_IBM_rasterpos_clip GLEW_GET_VAR(__GLEW_IBM_rasterpos_clip) + +#endif /* GL_IBM_rasterpos_clip */ + +/* --------------------------- GL_IBM_static_data -------------------------- */ + +#ifndef GL_IBM_static_data +#define GL_IBM_static_data 1 + +#define GL_ALL_STATIC_DATA_IBM 103060 +#define GL_STATIC_VERTEX_ARRAY_IBM 103061 + +#define GLEW_IBM_static_data GLEW_GET_VAR(__GLEW_IBM_static_data) + +#endif /* GL_IBM_static_data */ + +/* --------------------- GL_IBM_texture_mirrored_repeat -------------------- */ + +#ifndef GL_IBM_texture_mirrored_repeat +#define GL_IBM_texture_mirrored_repeat 1 + +#define GL_MIRRORED_REPEAT_IBM 0x8370 + +#define GLEW_IBM_texture_mirrored_repeat GLEW_GET_VAR(__GLEW_IBM_texture_mirrored_repeat) + +#endif /* GL_IBM_texture_mirrored_repeat */ + +/* ----------------------- GL_IBM_vertex_array_lists ----------------------- */ + +#ifndef GL_IBM_vertex_array_lists +#define GL_IBM_vertex_array_lists 1 + +#define GL_VERTEX_ARRAY_LIST_IBM 103070 +#define GL_NORMAL_ARRAY_LIST_IBM 103071 +#define GL_COLOR_ARRAY_LIST_IBM 103072 +#define GL_INDEX_ARRAY_LIST_IBM 103073 +#define GL_TEXTURE_COORD_ARRAY_LIST_IBM 103074 +#define GL_EDGE_FLAG_ARRAY_LIST_IBM 103075 +#define GL_FOG_COORDINATE_ARRAY_LIST_IBM 103076 +#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077 +#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM 103080 +#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM 103081 +#define GL_COLOR_ARRAY_LIST_STRIDE_IBM 103082 +#define GL_INDEX_ARRAY_LIST_STRIDE_IBM 103083 +#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084 +#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085 +#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086 +#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087 + +typedef void (GLAPIENTRY * PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); +typedef void (GLAPIENTRY * PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean ** pointer, GLint ptrstride); +typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); +typedef void (GLAPIENTRY * PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); +typedef void (GLAPIENTRY * PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); +typedef void (GLAPIENTRY * PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); +typedef void (GLAPIENTRY * PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); + +#define glColorPointerListIBM GLEW_GET_FUN(__glewColorPointerListIBM) +#define glEdgeFlagPointerListIBM GLEW_GET_FUN(__glewEdgeFlagPointerListIBM) +#define glFogCoordPointerListIBM GLEW_GET_FUN(__glewFogCoordPointerListIBM) +#define glIndexPointerListIBM GLEW_GET_FUN(__glewIndexPointerListIBM) +#define glNormalPointerListIBM GLEW_GET_FUN(__glewNormalPointerListIBM) +#define glSecondaryColorPointerListIBM GLEW_GET_FUN(__glewSecondaryColorPointerListIBM) +#define glTexCoordPointerListIBM GLEW_GET_FUN(__glewTexCoordPointerListIBM) +#define glVertexPointerListIBM GLEW_GET_FUN(__glewVertexPointerListIBM) + +#define GLEW_IBM_vertex_array_lists GLEW_GET_VAR(__GLEW_IBM_vertex_array_lists) + +#endif /* GL_IBM_vertex_array_lists */ + +/* -------------------------- GL_INGR_color_clamp -------------------------- */ + +#ifndef GL_INGR_color_clamp +#define GL_INGR_color_clamp 1 + +#define GL_RED_MIN_CLAMP_INGR 0x8560 +#define GL_GREEN_MIN_CLAMP_INGR 0x8561 +#define GL_BLUE_MIN_CLAMP_INGR 0x8562 +#define GL_ALPHA_MIN_CLAMP_INGR 0x8563 +#define GL_RED_MAX_CLAMP_INGR 0x8564 +#define GL_GREEN_MAX_CLAMP_INGR 0x8565 +#define GL_BLUE_MAX_CLAMP_INGR 0x8566 +#define GL_ALPHA_MAX_CLAMP_INGR 0x8567 + +#define GLEW_INGR_color_clamp GLEW_GET_VAR(__GLEW_INGR_color_clamp) + +#endif /* GL_INGR_color_clamp */ + +/* ------------------------- GL_INGR_interlace_read ------------------------ */ + +#ifndef GL_INGR_interlace_read +#define GL_INGR_interlace_read 1 + +#define GL_INTERLACE_READ_INGR 0x8568 + +#define GLEW_INGR_interlace_read GLEW_GET_VAR(__GLEW_INGR_interlace_read) + +#endif /* GL_INGR_interlace_read */ + +/* ------------------------ GL_INTEL_parallel_arrays ----------------------- */ + +#ifndef GL_INTEL_parallel_arrays +#define GL_INTEL_parallel_arrays 1 + +#define GL_PARALLEL_ARRAYS_INTEL 0x83F4 +#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5 +#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6 +#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7 +#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8 + +typedef void (GLAPIENTRY * PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); +typedef void (GLAPIENTRY * PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const void** pointer); +typedef void (GLAPIENTRY * PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); +typedef void (GLAPIENTRY * PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); + +#define glColorPointervINTEL GLEW_GET_FUN(__glewColorPointervINTEL) +#define glNormalPointervINTEL GLEW_GET_FUN(__glewNormalPointervINTEL) +#define glTexCoordPointervINTEL GLEW_GET_FUN(__glewTexCoordPointervINTEL) +#define glVertexPointervINTEL GLEW_GET_FUN(__glewVertexPointervINTEL) + +#define GLEW_INTEL_parallel_arrays GLEW_GET_VAR(__GLEW_INTEL_parallel_arrays) + +#endif /* GL_INTEL_parallel_arrays */ + +/* ------------------------ GL_INTEL_texture_scissor ----------------------- */ + +#ifndef GL_INTEL_texture_scissor +#define GL_INTEL_texture_scissor 1 + +typedef void (GLAPIENTRY * PFNGLTEXSCISSORFUNCINTELPROC) (GLenum target, GLenum lfunc, GLenum hfunc); +typedef void (GLAPIENTRY * PFNGLTEXSCISSORINTELPROC) (GLenum target, GLclampf tlow, GLclampf thigh); + +#define glTexScissorFuncINTEL GLEW_GET_FUN(__glewTexScissorFuncINTEL) +#define glTexScissorINTEL GLEW_GET_FUN(__glewTexScissorINTEL) + +#define GLEW_INTEL_texture_scissor GLEW_GET_VAR(__GLEW_INTEL_texture_scissor) + +#endif /* GL_INTEL_texture_scissor */ + +/* -------------------------- GL_KTX_buffer_region ------------------------- */ + +#ifndef GL_KTX_buffer_region +#define GL_KTX_buffer_region 1 + +#define GL_KTX_FRONT_REGION 0x0 +#define GL_KTX_BACK_REGION 0x1 +#define GL_KTX_Z_REGION 0x2 +#define GL_KTX_STENCIL_REGION 0x3 + +typedef GLuint (GLAPIENTRY * PFNGLBUFFERREGIONENABLEDEXTPROC) (void); +typedef void (GLAPIENTRY * PFNGLDELETEBUFFERREGIONEXTPROC) (GLenum region); +typedef void (GLAPIENTRY * PFNGLDRAWBUFFERREGIONEXTPROC) (GLuint region, GLint x, GLint y, GLsizei width, GLsizei height, GLint xDest, GLint yDest); +typedef GLuint (GLAPIENTRY * PFNGLNEWBUFFERREGIONEXTPROC) (GLenum region); +typedef void (GLAPIENTRY * PFNGLREADBUFFERREGIONEXTPROC) (GLuint region, GLint x, GLint y, GLsizei width, GLsizei height); + +#define glBufferRegionEnabledEXT GLEW_GET_FUN(__glewBufferRegionEnabledEXT) +#define glDeleteBufferRegionEXT GLEW_GET_FUN(__glewDeleteBufferRegionEXT) +#define glDrawBufferRegionEXT GLEW_GET_FUN(__glewDrawBufferRegionEXT) +#define glNewBufferRegionEXT GLEW_GET_FUN(__glewNewBufferRegionEXT) +#define glReadBufferRegionEXT GLEW_GET_FUN(__glewReadBufferRegionEXT) + +#define GLEW_KTX_buffer_region GLEW_GET_VAR(__GLEW_KTX_buffer_region) + +#endif /* GL_KTX_buffer_region */ + +/* ------------------------- GL_MESAX_texture_stack ------------------------ */ + +#ifndef GL_MESAX_texture_stack +#define GL_MESAX_texture_stack 1 + +#define GL_TEXTURE_1D_STACK_MESAX 0x8759 +#define GL_TEXTURE_2D_STACK_MESAX 0x875A +#define GL_PROXY_TEXTURE_1D_STACK_MESAX 0x875B +#define GL_PROXY_TEXTURE_2D_STACK_MESAX 0x875C +#define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D +#define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E + +#define GLEW_MESAX_texture_stack GLEW_GET_VAR(__GLEW_MESAX_texture_stack) + +#endif /* GL_MESAX_texture_stack */ + +/* -------------------------- GL_MESA_pack_invert -------------------------- */ + +#ifndef GL_MESA_pack_invert +#define GL_MESA_pack_invert 1 + +#define GL_PACK_INVERT_MESA 0x8758 + +#define GLEW_MESA_pack_invert GLEW_GET_VAR(__GLEW_MESA_pack_invert) + +#endif /* GL_MESA_pack_invert */ + +/* ------------------------- GL_MESA_resize_buffers ------------------------ */ + +#ifndef GL_MESA_resize_buffers +#define GL_MESA_resize_buffers 1 + +typedef void (GLAPIENTRY * PFNGLRESIZEBUFFERSMESAPROC) (void); + +#define glResizeBuffersMESA GLEW_GET_FUN(__glewResizeBuffersMESA) + +#define GLEW_MESA_resize_buffers GLEW_GET_VAR(__GLEW_MESA_resize_buffers) + +#endif /* GL_MESA_resize_buffers */ + +/* --------------------------- GL_MESA_window_pos -------------------------- */ + +#ifndef GL_MESA_window_pos +#define GL_MESA_window_pos 1 + +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVMESAPROC) (const GLint* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVMESAPROC) (const GLshort* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVMESAPROC) (const GLint* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVMESAPROC) (const GLshort* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS4IVMESAPROC) (const GLint* p); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAPIENTRY * PFNGLWINDOWPOS4SVMESAPROC) (const GLshort* p); + +#define glWindowPos2dMESA GLEW_GET_FUN(__glewWindowPos2dMESA) +#define glWindowPos2dvMESA GLEW_GET_FUN(__glewWindowPos2dvMESA) +#define glWindowPos2fMESA GLEW_GET_FUN(__glewWindowPos2fMESA) +#define glWindowPos2fvMESA GLEW_GET_FUN(__glewWindowPos2fvMESA) +#define glWindowPos2iMESA GLEW_GET_FUN(__glewWindowPos2iMESA) +#define glWindowPos2ivMESA GLEW_GET_FUN(__glewWindowPos2ivMESA) +#define glWindowPos2sMESA GLEW_GET_FUN(__glewWindowPos2sMESA) +#define glWindowPos2svMESA GLEW_GET_FUN(__glewWindowPos2svMESA) +#define glWindowPos3dMESA GLEW_GET_FUN(__glewWindowPos3dMESA) +#define glWindowPos3dvMESA GLEW_GET_FUN(__glewWindowPos3dvMESA) +#define glWindowPos3fMESA GLEW_GET_FUN(__glewWindowPos3fMESA) +#define glWindowPos3fvMESA GLEW_GET_FUN(__glewWindowPos3fvMESA) +#define glWindowPos3iMESA GLEW_GET_FUN(__glewWindowPos3iMESA) +#define glWindowPos3ivMESA GLEW_GET_FUN(__glewWindowPos3ivMESA) +#define glWindowPos3sMESA GLEW_GET_FUN(__glewWindowPos3sMESA) +#define glWindowPos3svMESA GLEW_GET_FUN(__glewWindowPos3svMESA) +#define glWindowPos4dMESA GLEW_GET_FUN(__glewWindowPos4dMESA) +#define glWindowPos4dvMESA GLEW_GET_FUN(__glewWindowPos4dvMESA) +#define glWindowPos4fMESA GLEW_GET_FUN(__glewWindowPos4fMESA) +#define glWindowPos4fvMESA GLEW_GET_FUN(__glewWindowPos4fvMESA) +#define glWindowPos4iMESA GLEW_GET_FUN(__glewWindowPos4iMESA) +#define glWindowPos4ivMESA GLEW_GET_FUN(__glewWindowPos4ivMESA) +#define glWindowPos4sMESA GLEW_GET_FUN(__glewWindowPos4sMESA) +#define glWindowPos4svMESA GLEW_GET_FUN(__glewWindowPos4svMESA) + +#define GLEW_MESA_window_pos GLEW_GET_VAR(__GLEW_MESA_window_pos) + +#endif /* GL_MESA_window_pos */ + +/* ------------------------- GL_MESA_ycbcr_texture ------------------------- */ + +#ifndef GL_MESA_ycbcr_texture +#define GL_MESA_ycbcr_texture 1 + +#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB +#define GL_YCBCR_MESA 0x8757 + +#define GLEW_MESA_ycbcr_texture GLEW_GET_VAR(__GLEW_MESA_ycbcr_texture) + +#endif /* GL_MESA_ycbcr_texture */ + +/* ------------------------- GL_NVX_gpu_memory_info ------------------------ */ + +#ifndef GL_NVX_gpu_memory_info +#define GL_NVX_gpu_memory_info 1 + +#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047 +#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048 +#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049 +#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A +#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B + +#define GLEW_NVX_gpu_memory_info GLEW_GET_VAR(__GLEW_NVX_gpu_memory_info) + +#endif /* GL_NVX_gpu_memory_info */ + +/* --------------------------- GL_NV_blend_square -------------------------- */ + +#ifndef GL_NV_blend_square +#define GL_NV_blend_square 1 + +#define GLEW_NV_blend_square GLEW_GET_VAR(__GLEW_NV_blend_square) + +#endif /* GL_NV_blend_square */ + +/* ------------------------ GL_NV_conditional_render ----------------------- */ + +#ifndef GL_NV_conditional_render +#define GL_NV_conditional_render 1 + +#define GL_QUERY_WAIT_NV 0x8E13 +#define GL_QUERY_NO_WAIT_NV 0x8E14 +#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16 + +typedef void (GLAPIENTRY * PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode); +typedef void (GLAPIENTRY * PFNGLENDCONDITIONALRENDERNVPROC) (void); + +#define glBeginConditionalRenderNV GLEW_GET_FUN(__glewBeginConditionalRenderNV) +#define glEndConditionalRenderNV GLEW_GET_FUN(__glewEndConditionalRenderNV) + +#define GLEW_NV_conditional_render GLEW_GET_VAR(__GLEW_NV_conditional_render) + +#endif /* GL_NV_conditional_render */ + +/* ----------------------- GL_NV_copy_depth_to_color ----------------------- */ + +#ifndef GL_NV_copy_depth_to_color +#define GL_NV_copy_depth_to_color 1 + +#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E +#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F + +#define GLEW_NV_copy_depth_to_color GLEW_GET_VAR(__GLEW_NV_copy_depth_to_color) + +#endif /* GL_NV_copy_depth_to_color */ + +/* ---------------------------- GL_NV_copy_image --------------------------- */ + +#ifndef GL_NV_copy_image +#define GL_NV_copy_image 1 + +typedef void (GLAPIENTRY * 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); + +#define glCopyImageSubDataNV GLEW_GET_FUN(__glewCopyImageSubDataNV) + +#define GLEW_NV_copy_image GLEW_GET_VAR(__GLEW_NV_copy_image) + +#endif /* GL_NV_copy_image */ + +/* ------------------------ GL_NV_depth_buffer_float ----------------------- */ + +#ifndef GL_NV_depth_buffer_float +#define GL_NV_depth_buffer_float 1 + +#define GL_DEPTH_COMPONENT32F_NV 0x8DAB +#define GL_DEPTH32F_STENCIL8_NV 0x8DAC +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD +#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF + +typedef void (GLAPIENTRY * PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); +typedef void (GLAPIENTRY * PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); +typedef void (GLAPIENTRY * PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); + +#define glClearDepthdNV GLEW_GET_FUN(__glewClearDepthdNV) +#define glDepthBoundsdNV GLEW_GET_FUN(__glewDepthBoundsdNV) +#define glDepthRangedNV GLEW_GET_FUN(__glewDepthRangedNV) + +#define GLEW_NV_depth_buffer_float GLEW_GET_VAR(__GLEW_NV_depth_buffer_float) + +#endif /* GL_NV_depth_buffer_float */ + +/* --------------------------- GL_NV_depth_clamp --------------------------- */ + +#ifndef GL_NV_depth_clamp +#define GL_NV_depth_clamp 1 + +#define GL_DEPTH_CLAMP_NV 0x864F + +#define GLEW_NV_depth_clamp GLEW_GET_VAR(__GLEW_NV_depth_clamp) + +#endif /* GL_NV_depth_clamp */ + +/* ---------------------- GL_NV_depth_range_unclamped ---------------------- */ + +#ifndef GL_NV_depth_range_unclamped +#define GL_NV_depth_range_unclamped 1 + +#define GL_SAMPLE_COUNT_BITS_NV 0x8864 +#define GL_CURRENT_SAMPLE_COUNT_QUERY_NV 0x8865 +#define GL_QUERY_RESULT_NV 0x8866 +#define GL_QUERY_RESULT_AVAILABLE_NV 0x8867 +#define GL_SAMPLE_COUNT_NV 0x8914 + +#define GLEW_NV_depth_range_unclamped GLEW_GET_VAR(__GLEW_NV_depth_range_unclamped) + +#endif /* GL_NV_depth_range_unclamped */ + +/* ---------------------------- GL_NV_evaluators --------------------------- */ + +#ifndef GL_NV_evaluators +#define GL_NV_evaluators 1 + +#define GL_EVAL_2D_NV 0x86C0 +#define GL_EVAL_TRIANGULAR_2D_NV 0x86C1 +#define GL_MAP_TESSELLATION_NV 0x86C2 +#define GL_MAP_ATTRIB_U_ORDER_NV 0x86C3 +#define GL_MAP_ATTRIB_V_ORDER_NV 0x86C4 +#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5 +#define GL_EVAL_VERTEX_ATTRIB0_NV 0x86C6 +#define GL_EVAL_VERTEX_ATTRIB1_NV 0x86C7 +#define GL_EVAL_VERTEX_ATTRIB2_NV 0x86C8 +#define GL_EVAL_VERTEX_ATTRIB3_NV 0x86C9 +#define GL_EVAL_VERTEX_ATTRIB4_NV 0x86CA +#define GL_EVAL_VERTEX_ATTRIB5_NV 0x86CB +#define GL_EVAL_VERTEX_ATTRIB6_NV 0x86CC +#define GL_EVAL_VERTEX_ATTRIB7_NV 0x86CD +#define GL_EVAL_VERTEX_ATTRIB8_NV 0x86CE +#define GL_EVAL_VERTEX_ATTRIB9_NV 0x86CF +#define GL_EVAL_VERTEX_ATTRIB10_NV 0x86D0 +#define GL_EVAL_VERTEX_ATTRIB11_NV 0x86D1 +#define GL_EVAL_VERTEX_ATTRIB12_NV 0x86D2 +#define GL_EVAL_VERTEX_ATTRIB13_NV 0x86D3 +#define GL_EVAL_VERTEX_ATTRIB14_NV 0x86D4 +#define GL_EVAL_VERTEX_ATTRIB15_NV 0x86D5 +#define GL_MAX_MAP_TESSELLATION_NV 0x86D6 +#define GL_MAX_RATIONAL_EVAL_ORDER_NV 0x86D7 + +typedef void (GLAPIENTRY * PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); +typedef void (GLAPIENTRY * PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void* points); +typedef void (GLAPIENTRY * PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void* points); +typedef void (GLAPIENTRY * PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint* params); + +#define glEvalMapsNV GLEW_GET_FUN(__glewEvalMapsNV) +#define glGetMapAttribParameterfvNV GLEW_GET_FUN(__glewGetMapAttribParameterfvNV) +#define glGetMapAttribParameterivNV GLEW_GET_FUN(__glewGetMapAttribParameterivNV) +#define glGetMapControlPointsNV GLEW_GET_FUN(__glewGetMapControlPointsNV) +#define glGetMapParameterfvNV GLEW_GET_FUN(__glewGetMapParameterfvNV) +#define glGetMapParameterivNV GLEW_GET_FUN(__glewGetMapParameterivNV) +#define glMapControlPointsNV GLEW_GET_FUN(__glewMapControlPointsNV) +#define glMapParameterfvNV GLEW_GET_FUN(__glewMapParameterfvNV) +#define glMapParameterivNV GLEW_GET_FUN(__glewMapParameterivNV) + +#define GLEW_NV_evaluators GLEW_GET_VAR(__GLEW_NV_evaluators) + +#endif /* GL_NV_evaluators */ + +/* ----------------------- GL_NV_explicit_multisample ---------------------- */ + +#ifndef GL_NV_explicit_multisample +#define GL_NV_explicit_multisample 1 + +#define GL_SAMPLE_POSITION_NV 0x8E50 +#define GL_SAMPLE_MASK_NV 0x8E51 +#define GL_SAMPLE_MASK_VALUE_NV 0x8E52 +#define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53 +#define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54 +#define GL_TEXTURE_RENDERBUFFER_NV 0x8E55 +#define GL_SAMPLER_RENDERBUFFER_NV 0x8E56 +#define GL_INT_SAMPLER_RENDERBUFFER_NV 0x8E57 +#define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58 +#define GL_MAX_SAMPLE_MASK_WORDS_NV 0x8E59 + +typedef void (GLAPIENTRY * PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat* val); +typedef void (GLAPIENTRY * PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask); +typedef void (GLAPIENTRY * PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer); + +#define glGetMultisamplefvNV GLEW_GET_FUN(__glewGetMultisamplefvNV) +#define glSampleMaskIndexedNV GLEW_GET_FUN(__glewSampleMaskIndexedNV) +#define glTexRenderbufferNV GLEW_GET_FUN(__glewTexRenderbufferNV) + +#define GLEW_NV_explicit_multisample GLEW_GET_VAR(__GLEW_NV_explicit_multisample) + +#endif /* GL_NV_explicit_multisample */ + +/* ------------------------------ GL_NV_fence ------------------------------ */ + +#ifndef GL_NV_fence +#define GL_NV_fence 1 + +#define GL_ALL_COMPLETED_NV 0x84F2 +#define GL_FENCE_STATUS_NV 0x84F3 +#define GL_FENCE_CONDITION_NV 0x84F4 + +typedef void (GLAPIENTRY * PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint* fences); +typedef void (GLAPIENTRY * PFNGLFINISHFENCENVPROC) (GLuint fence); +typedef void (GLAPIENTRY * PFNGLGENFENCESNVPROC) (GLsizei n, GLuint* fences); +typedef void (GLAPIENTRY * PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISFENCENVPROC) (GLuint fence); +typedef void (GLAPIENTRY * PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); +typedef GLboolean (GLAPIENTRY * PFNGLTESTFENCENVPROC) (GLuint fence); + +#define glDeleteFencesNV GLEW_GET_FUN(__glewDeleteFencesNV) +#define glFinishFenceNV GLEW_GET_FUN(__glewFinishFenceNV) +#define glGenFencesNV GLEW_GET_FUN(__glewGenFencesNV) +#define glGetFenceivNV GLEW_GET_FUN(__glewGetFenceivNV) +#define glIsFenceNV GLEW_GET_FUN(__glewIsFenceNV) +#define glSetFenceNV GLEW_GET_FUN(__glewSetFenceNV) +#define glTestFenceNV GLEW_GET_FUN(__glewTestFenceNV) + +#define GLEW_NV_fence GLEW_GET_VAR(__GLEW_NV_fence) + +#endif /* GL_NV_fence */ + +/* --------------------------- GL_NV_float_buffer -------------------------- */ + +#ifndef GL_NV_float_buffer +#define GL_NV_float_buffer 1 + +#define GL_FLOAT_R_NV 0x8880 +#define GL_FLOAT_RG_NV 0x8881 +#define GL_FLOAT_RGB_NV 0x8882 +#define GL_FLOAT_RGBA_NV 0x8883 +#define GL_FLOAT_R16_NV 0x8884 +#define GL_FLOAT_R32_NV 0x8885 +#define GL_FLOAT_RG16_NV 0x8886 +#define GL_FLOAT_RG32_NV 0x8887 +#define GL_FLOAT_RGB16_NV 0x8888 +#define GL_FLOAT_RGB32_NV 0x8889 +#define GL_FLOAT_RGBA16_NV 0x888A +#define GL_FLOAT_RGBA32_NV 0x888B +#define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C +#define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D +#define GL_FLOAT_RGBA_MODE_NV 0x888E + +#define GLEW_NV_float_buffer GLEW_GET_VAR(__GLEW_NV_float_buffer) + +#endif /* GL_NV_float_buffer */ + +/* --------------------------- GL_NV_fog_distance -------------------------- */ + +#ifndef GL_NV_fog_distance +#define GL_NV_fog_distance 1 + +#define GL_FOG_DISTANCE_MODE_NV 0x855A +#define GL_EYE_RADIAL_NV 0x855B +#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C + +#define GLEW_NV_fog_distance GLEW_GET_VAR(__GLEW_NV_fog_distance) + +#endif /* GL_NV_fog_distance */ + +/* ------------------------- GL_NV_fragment_program ------------------------ */ + +#ifndef GL_NV_fragment_program +#define GL_NV_fragment_program 1 + +#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868 +#define GL_FRAGMENT_PROGRAM_NV 0x8870 +#define GL_MAX_TEXTURE_COORDS_NV 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872 +#define GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873 +#define GL_PROGRAM_ERROR_STRING_NV 0x8874 + +typedef void (GLAPIENTRY * PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLdouble *params); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, const GLdouble v[]); +typedef void (GLAPIENTRY * PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, const GLfloat v[]); + +#define glGetProgramNamedParameterdvNV GLEW_GET_FUN(__glewGetProgramNamedParameterdvNV) +#define glGetProgramNamedParameterfvNV GLEW_GET_FUN(__glewGetProgramNamedParameterfvNV) +#define glProgramNamedParameter4dNV GLEW_GET_FUN(__glewProgramNamedParameter4dNV) +#define glProgramNamedParameter4dvNV GLEW_GET_FUN(__glewProgramNamedParameter4dvNV) +#define glProgramNamedParameter4fNV GLEW_GET_FUN(__glewProgramNamedParameter4fNV) +#define glProgramNamedParameter4fvNV GLEW_GET_FUN(__glewProgramNamedParameter4fvNV) + +#define GLEW_NV_fragment_program GLEW_GET_VAR(__GLEW_NV_fragment_program) + +#endif /* GL_NV_fragment_program */ + +/* ------------------------ GL_NV_fragment_program2 ------------------------ */ + +#ifndef GL_NV_fragment_program2 +#define GL_NV_fragment_program2 1 + +#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 +#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 +#define GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6 +#define GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7 +#define GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8 + +#define GLEW_NV_fragment_program2 GLEW_GET_VAR(__GLEW_NV_fragment_program2) + +#endif /* GL_NV_fragment_program2 */ + +/* ------------------------ GL_NV_fragment_program4 ------------------------ */ + +#ifndef GL_NV_fragment_program4 +#define GL_NV_fragment_program4 1 + +#define GLEW_NV_fragment_program4 GLEW_GET_VAR(__GLEW_NV_fragment_program4) + +#endif /* GL_NV_fragment_program4 */ + +/* --------------------- GL_NV_fragment_program_option --------------------- */ + +#ifndef GL_NV_fragment_program_option +#define GL_NV_fragment_program_option 1 + +#define GLEW_NV_fragment_program_option GLEW_GET_VAR(__GLEW_NV_fragment_program_option) + +#endif /* GL_NV_fragment_program_option */ + +/* ----------------- GL_NV_framebuffer_multisample_coverage ---------------- */ + +#ifndef GL_NV_framebuffer_multisample_coverage +#define GL_NV_framebuffer_multisample_coverage 1 + +#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB +#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10 +#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11 +#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12 + +typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); + +#define glRenderbufferStorageMultisampleCoverageNV GLEW_GET_FUN(__glewRenderbufferStorageMultisampleCoverageNV) + +#define GLEW_NV_framebuffer_multisample_coverage GLEW_GET_VAR(__GLEW_NV_framebuffer_multisample_coverage) + +#endif /* GL_NV_framebuffer_multisample_coverage */ + +/* ------------------------ GL_NV_geometry_program4 ------------------------ */ + +#ifndef GL_NV_geometry_program4 +#define GL_NV_geometry_program4 1 + +#define GL_GEOMETRY_PROGRAM_NV 0x8C26 +#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27 +#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28 + +typedef void (GLAPIENTRY * PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit); + +#define glProgramVertexLimitNV GLEW_GET_FUN(__glewProgramVertexLimitNV) + +#define GLEW_NV_geometry_program4 GLEW_GET_VAR(__GLEW_NV_geometry_program4) + +#endif /* GL_NV_geometry_program4 */ + +/* ------------------------- GL_NV_geometry_shader4 ------------------------ */ + +#ifndef GL_NV_geometry_shader4 +#define GL_NV_geometry_shader4 1 + +#define GLEW_NV_geometry_shader4 GLEW_GET_VAR(__GLEW_NV_geometry_shader4) + +#endif /* GL_NV_geometry_shader4 */ + +/* --------------------------- GL_NV_gpu_program4 -------------------------- */ + +#ifndef GL_NV_gpu_program4 +#define GL_NV_gpu_program4 1 + +#define GL_MIN_PROGRAM_TEXEL_OFFSET_NV 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET_NV 0x8905 +#define GL_PROGRAM_ATTRIB_COMPONENTS_NV 0x8906 +#define GL_PROGRAM_RESULT_COMPONENTS_NV 0x8907 +#define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908 +#define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909 +#define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5 +#define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6 + +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); + +#define glProgramEnvParameterI4iNV GLEW_GET_FUN(__glewProgramEnvParameterI4iNV) +#define glProgramEnvParameterI4ivNV GLEW_GET_FUN(__glewProgramEnvParameterI4ivNV) +#define glProgramEnvParameterI4uiNV GLEW_GET_FUN(__glewProgramEnvParameterI4uiNV) +#define glProgramEnvParameterI4uivNV GLEW_GET_FUN(__glewProgramEnvParameterI4uivNV) +#define glProgramEnvParametersI4ivNV GLEW_GET_FUN(__glewProgramEnvParametersI4ivNV) +#define glProgramEnvParametersI4uivNV GLEW_GET_FUN(__glewProgramEnvParametersI4uivNV) +#define glProgramLocalParameterI4iNV GLEW_GET_FUN(__glewProgramLocalParameterI4iNV) +#define glProgramLocalParameterI4ivNV GLEW_GET_FUN(__glewProgramLocalParameterI4ivNV) +#define glProgramLocalParameterI4uiNV GLEW_GET_FUN(__glewProgramLocalParameterI4uiNV) +#define glProgramLocalParameterI4uivNV GLEW_GET_FUN(__glewProgramLocalParameterI4uivNV) +#define glProgramLocalParametersI4ivNV GLEW_GET_FUN(__glewProgramLocalParametersI4ivNV) +#define glProgramLocalParametersI4uivNV GLEW_GET_FUN(__glewProgramLocalParametersI4uivNV) + +#define GLEW_NV_gpu_program4 GLEW_GET_VAR(__GLEW_NV_gpu_program4) + +#endif /* GL_NV_gpu_program4 */ + +/* --------------------------- GL_NV_gpu_program5 -------------------------- */ + +#ifndef GL_NV_gpu_program5 +#define GL_NV_gpu_program5 1 + +#define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A +#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B +#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C +#define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F + +#define GLEW_NV_gpu_program5 GLEW_GET_VAR(__GLEW_NV_gpu_program5) + +#endif /* GL_NV_gpu_program5 */ + +/* ------------------------- GL_NV_gpu_program_fp64 ------------------------ */ + +#ifndef GL_NV_gpu_program_fp64 +#define GL_NV_gpu_program_fp64 1 + +#define GLEW_NV_gpu_program_fp64 GLEW_GET_VAR(__GLEW_NV_gpu_program_fp64) + +#endif /* GL_NV_gpu_program_fp64 */ + +/* --------------------------- GL_NV_gpu_shader5 --------------------------- */ + +#ifndef GL_NV_gpu_shader5 +#define GL_NV_gpu_shader5 1 + +#define GL_INT64_NV 0x140E +#define GL_UNSIGNED_INT64_NV 0x140F +#define GL_INT8_NV 0x8FE0 +#define GL_INT8_VEC2_NV 0x8FE1 +#define GL_INT8_VEC3_NV 0x8FE2 +#define GL_INT8_VEC4_NV 0x8FE3 +#define GL_INT16_NV 0x8FE4 +#define GL_INT16_VEC2_NV 0x8FE5 +#define GL_INT16_VEC3_NV 0x8FE6 +#define GL_INT16_VEC4_NV 0x8FE7 +#define GL_INT64_VEC2_NV 0x8FE9 +#define GL_INT64_VEC3_NV 0x8FEA +#define GL_INT64_VEC4_NV 0x8FEB +#define GL_UNSIGNED_INT8_NV 0x8FEC +#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED +#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE +#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF +#define GL_UNSIGNED_INT16_NV 0x8FF0 +#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1 +#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2 +#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3 +#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5 +#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6 +#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7 +#define GL_FLOAT16_NV 0x8FF8 +#define GL_FLOAT16_VEC2_NV 0x8FF9 +#define GL_FLOAT16_VEC3_NV 0x8FFA +#define GL_FLOAT16_VEC4_NV 0x8FFB + +typedef void (GLAPIENTRY * PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT* params); +typedef void (GLAPIENTRY * PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x); +typedef void (GLAPIENTRY * PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x); +typedef void (GLAPIENTRY * PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y); +typedef void (GLAPIENTRY * PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y); +typedef void (GLAPIENTRY * PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (GLAPIENTRY * PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (GLAPIENTRY * PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (GLAPIENTRY * PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (GLAPIENTRY * PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); + +#define glGetUniformi64vNV GLEW_GET_FUN(__glewGetUniformi64vNV) +#define glGetUniformui64vNV GLEW_GET_FUN(__glewGetUniformui64vNV) +#define glProgramUniform1i64NV GLEW_GET_FUN(__glewProgramUniform1i64NV) +#define glProgramUniform1i64vNV GLEW_GET_FUN(__glewProgramUniform1i64vNV) +#define glProgramUniform1ui64NV GLEW_GET_FUN(__glewProgramUniform1ui64NV) +#define glProgramUniform1ui64vNV GLEW_GET_FUN(__glewProgramUniform1ui64vNV) +#define glProgramUniform2i64NV GLEW_GET_FUN(__glewProgramUniform2i64NV) +#define glProgramUniform2i64vNV GLEW_GET_FUN(__glewProgramUniform2i64vNV) +#define glProgramUniform2ui64NV GLEW_GET_FUN(__glewProgramUniform2ui64NV) +#define glProgramUniform2ui64vNV GLEW_GET_FUN(__glewProgramUniform2ui64vNV) +#define glProgramUniform3i64NV GLEW_GET_FUN(__glewProgramUniform3i64NV) +#define glProgramUniform3i64vNV GLEW_GET_FUN(__glewProgramUniform3i64vNV) +#define glProgramUniform3ui64NV GLEW_GET_FUN(__glewProgramUniform3ui64NV) +#define glProgramUniform3ui64vNV GLEW_GET_FUN(__glewProgramUniform3ui64vNV) +#define glProgramUniform4i64NV GLEW_GET_FUN(__glewProgramUniform4i64NV) +#define glProgramUniform4i64vNV GLEW_GET_FUN(__glewProgramUniform4i64vNV) +#define glProgramUniform4ui64NV GLEW_GET_FUN(__glewProgramUniform4ui64NV) +#define glProgramUniform4ui64vNV GLEW_GET_FUN(__glewProgramUniform4ui64vNV) +#define glUniform1i64NV GLEW_GET_FUN(__glewUniform1i64NV) +#define glUniform1i64vNV GLEW_GET_FUN(__glewUniform1i64vNV) +#define glUniform1ui64NV GLEW_GET_FUN(__glewUniform1ui64NV) +#define glUniform1ui64vNV GLEW_GET_FUN(__glewUniform1ui64vNV) +#define glUniform2i64NV GLEW_GET_FUN(__glewUniform2i64NV) +#define glUniform2i64vNV GLEW_GET_FUN(__glewUniform2i64vNV) +#define glUniform2ui64NV GLEW_GET_FUN(__glewUniform2ui64NV) +#define glUniform2ui64vNV GLEW_GET_FUN(__glewUniform2ui64vNV) +#define glUniform3i64NV GLEW_GET_FUN(__glewUniform3i64NV) +#define glUniform3i64vNV GLEW_GET_FUN(__glewUniform3i64vNV) +#define glUniform3ui64NV GLEW_GET_FUN(__glewUniform3ui64NV) +#define glUniform3ui64vNV GLEW_GET_FUN(__glewUniform3ui64vNV) +#define glUniform4i64NV GLEW_GET_FUN(__glewUniform4i64NV) +#define glUniform4i64vNV GLEW_GET_FUN(__glewUniform4i64vNV) +#define glUniform4ui64NV GLEW_GET_FUN(__glewUniform4ui64NV) +#define glUniform4ui64vNV GLEW_GET_FUN(__glewUniform4ui64vNV) + +#define GLEW_NV_gpu_shader5 GLEW_GET_VAR(__GLEW_NV_gpu_shader5) + +#endif /* GL_NV_gpu_shader5 */ + +/* ---------------------------- GL_NV_half_float --------------------------- */ + +#ifndef GL_NV_half_float +#define GL_NV_half_float 1 + +#define GL_HALF_FLOAT_NV 0x140B + +typedef unsigned short GLhalf; + +typedef void (GLAPIENTRY * PFNGLCOLOR3HNVPROC) (GLhalf red, GLhalf green, GLhalf blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLCOLOR4HNVPROC) (GLhalf red, GLhalf green, GLhalf blue, GLhalf alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLFOGCOORDHNVPROC) (GLhalf fog); +typedef void (GLAPIENTRY * PFNGLFOGCOORDHVNVPROC) (const GLhalf* fog); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalf s); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalf s, GLhalf t); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r, GLhalf q); +typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLNORMAL3HNVPROC) (GLhalf nx, GLhalf ny, GLhalf nz); +typedef void (GLAPIENTRY * PFNGLNORMAL3HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3HNVPROC) (GLhalf red, GLhalf green, GLhalf blue); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1HNVPROC) (GLhalf s); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2HNVPROC) (GLhalf s, GLhalf t); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3HNVPROC) (GLhalf s, GLhalf t, GLhalf r); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4HNVPROC) (GLhalf s, GLhalf t, GLhalf r, GLhalf q); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEX2HNVPROC) (GLhalf x, GLhalf y); +typedef void (GLAPIENTRY * PFNGLVERTEX2HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEX3HNVPROC) (GLhalf x, GLhalf y, GLhalf z); +typedef void (GLAPIENTRY * PFNGLVERTEX3HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEX4HNVPROC) (GLhalf x, GLhalf y, GLhalf z, GLhalf w); +typedef void (GLAPIENTRY * PFNGLVERTEX4HVNVPROC) (const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalf x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalf x, GLhalf y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z, GLhalf w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalf* v); +typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTHNVPROC) (GLhalf weight); +typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalf* weight); + +#define glColor3hNV GLEW_GET_FUN(__glewColor3hNV) +#define glColor3hvNV GLEW_GET_FUN(__glewColor3hvNV) +#define glColor4hNV GLEW_GET_FUN(__glewColor4hNV) +#define glColor4hvNV GLEW_GET_FUN(__glewColor4hvNV) +#define glFogCoordhNV GLEW_GET_FUN(__glewFogCoordhNV) +#define glFogCoordhvNV GLEW_GET_FUN(__glewFogCoordhvNV) +#define glMultiTexCoord1hNV GLEW_GET_FUN(__glewMultiTexCoord1hNV) +#define glMultiTexCoord1hvNV GLEW_GET_FUN(__glewMultiTexCoord1hvNV) +#define glMultiTexCoord2hNV GLEW_GET_FUN(__glewMultiTexCoord2hNV) +#define glMultiTexCoord2hvNV GLEW_GET_FUN(__glewMultiTexCoord2hvNV) +#define glMultiTexCoord3hNV GLEW_GET_FUN(__glewMultiTexCoord3hNV) +#define glMultiTexCoord3hvNV GLEW_GET_FUN(__glewMultiTexCoord3hvNV) +#define glMultiTexCoord4hNV GLEW_GET_FUN(__glewMultiTexCoord4hNV) +#define glMultiTexCoord4hvNV GLEW_GET_FUN(__glewMultiTexCoord4hvNV) +#define glNormal3hNV GLEW_GET_FUN(__glewNormal3hNV) +#define glNormal3hvNV GLEW_GET_FUN(__glewNormal3hvNV) +#define glSecondaryColor3hNV GLEW_GET_FUN(__glewSecondaryColor3hNV) +#define glSecondaryColor3hvNV GLEW_GET_FUN(__glewSecondaryColor3hvNV) +#define glTexCoord1hNV GLEW_GET_FUN(__glewTexCoord1hNV) +#define glTexCoord1hvNV GLEW_GET_FUN(__glewTexCoord1hvNV) +#define glTexCoord2hNV GLEW_GET_FUN(__glewTexCoord2hNV) +#define glTexCoord2hvNV GLEW_GET_FUN(__glewTexCoord2hvNV) +#define glTexCoord3hNV GLEW_GET_FUN(__glewTexCoord3hNV) +#define glTexCoord3hvNV GLEW_GET_FUN(__glewTexCoord3hvNV) +#define glTexCoord4hNV GLEW_GET_FUN(__glewTexCoord4hNV) +#define glTexCoord4hvNV GLEW_GET_FUN(__glewTexCoord4hvNV) +#define glVertex2hNV GLEW_GET_FUN(__glewVertex2hNV) +#define glVertex2hvNV GLEW_GET_FUN(__glewVertex2hvNV) +#define glVertex3hNV GLEW_GET_FUN(__glewVertex3hNV) +#define glVertex3hvNV GLEW_GET_FUN(__glewVertex3hvNV) +#define glVertex4hNV GLEW_GET_FUN(__glewVertex4hNV) +#define glVertex4hvNV GLEW_GET_FUN(__glewVertex4hvNV) +#define glVertexAttrib1hNV GLEW_GET_FUN(__glewVertexAttrib1hNV) +#define glVertexAttrib1hvNV GLEW_GET_FUN(__glewVertexAttrib1hvNV) +#define glVertexAttrib2hNV GLEW_GET_FUN(__glewVertexAttrib2hNV) +#define glVertexAttrib2hvNV GLEW_GET_FUN(__glewVertexAttrib2hvNV) +#define glVertexAttrib3hNV GLEW_GET_FUN(__glewVertexAttrib3hNV) +#define glVertexAttrib3hvNV GLEW_GET_FUN(__glewVertexAttrib3hvNV) +#define glVertexAttrib4hNV GLEW_GET_FUN(__glewVertexAttrib4hNV) +#define glVertexAttrib4hvNV GLEW_GET_FUN(__glewVertexAttrib4hvNV) +#define glVertexAttribs1hvNV GLEW_GET_FUN(__glewVertexAttribs1hvNV) +#define glVertexAttribs2hvNV GLEW_GET_FUN(__glewVertexAttribs2hvNV) +#define glVertexAttribs3hvNV GLEW_GET_FUN(__glewVertexAttribs3hvNV) +#define glVertexAttribs4hvNV GLEW_GET_FUN(__glewVertexAttribs4hvNV) +#define glVertexWeighthNV GLEW_GET_FUN(__glewVertexWeighthNV) +#define glVertexWeighthvNV GLEW_GET_FUN(__glewVertexWeighthvNV) + +#define GLEW_NV_half_float GLEW_GET_VAR(__GLEW_NV_half_float) + +#endif /* GL_NV_half_float */ + +/* ------------------------ GL_NV_light_max_exponent ----------------------- */ + +#ifndef GL_NV_light_max_exponent +#define GL_NV_light_max_exponent 1 + +#define GL_MAX_SHININESS_NV 0x8504 +#define GL_MAX_SPOT_EXPONENT_NV 0x8505 + +#define GLEW_NV_light_max_exponent GLEW_GET_VAR(__GLEW_NV_light_max_exponent) + +#endif /* GL_NV_light_max_exponent */ + +/* ----------------------- GL_NV_multisample_coverage ---------------------- */ + +#ifndef GL_NV_multisample_coverage +#define GL_NV_multisample_coverage 1 + +#define GL_COVERAGE_SAMPLES_NV 0x80A9 +#define GL_COLOR_SAMPLES_NV 0x8E20 + +#define GLEW_NV_multisample_coverage GLEW_GET_VAR(__GLEW_NV_multisample_coverage) + +#endif /* GL_NV_multisample_coverage */ + +/* --------------------- GL_NV_multisample_filter_hint --------------------- */ + +#ifndef GL_NV_multisample_filter_hint +#define GL_NV_multisample_filter_hint 1 + +#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 + +#define GLEW_NV_multisample_filter_hint GLEW_GET_VAR(__GLEW_NV_multisample_filter_hint) + +#endif /* GL_NV_multisample_filter_hint */ + +/* ------------------------- GL_NV_occlusion_query ------------------------- */ + +#ifndef GL_NV_occlusion_query +#define GL_NV_occlusion_query 1 + +#define GL_PIXEL_COUNTER_BITS_NV 0x8864 +#define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865 +#define GL_PIXEL_COUNT_NV 0x8866 +#define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867 + +typedef void (GLAPIENTRY * PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint* ids); +typedef void (GLAPIENTRY * PFNGLENDOCCLUSIONQUERYNVPROC) (void); +typedef void (GLAPIENTRY * PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint* ids); +typedef void (GLAPIENTRY * PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); + +#define glBeginOcclusionQueryNV GLEW_GET_FUN(__glewBeginOcclusionQueryNV) +#define glDeleteOcclusionQueriesNV GLEW_GET_FUN(__glewDeleteOcclusionQueriesNV) +#define glEndOcclusionQueryNV GLEW_GET_FUN(__glewEndOcclusionQueryNV) +#define glGenOcclusionQueriesNV GLEW_GET_FUN(__glewGenOcclusionQueriesNV) +#define glGetOcclusionQueryivNV GLEW_GET_FUN(__glewGetOcclusionQueryivNV) +#define glGetOcclusionQueryuivNV GLEW_GET_FUN(__glewGetOcclusionQueryuivNV) +#define glIsOcclusionQueryNV GLEW_GET_FUN(__glewIsOcclusionQueryNV) + +#define GLEW_NV_occlusion_query GLEW_GET_VAR(__GLEW_NV_occlusion_query) + +#endif /* GL_NV_occlusion_query */ + +/* ----------------------- GL_NV_packed_depth_stencil ---------------------- */ + +#ifndef GL_NV_packed_depth_stencil +#define GL_NV_packed_depth_stencil 1 + +#define GL_DEPTH_STENCIL_NV 0x84F9 +#define GL_UNSIGNED_INT_24_8_NV 0x84FA + +#define GLEW_NV_packed_depth_stencil GLEW_GET_VAR(__GLEW_NV_packed_depth_stencil) + +#endif /* GL_NV_packed_depth_stencil */ + +/* --------------------- GL_NV_parameter_buffer_object --------------------- */ + +#ifndef GL_NV_parameter_buffer_object +#define GL_NV_parameter_buffer_object 1 + +#define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0 +#define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1 +#define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2 +#define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3 +#define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4 + +typedef void (GLAPIENTRY * PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params); +typedef void (GLAPIENTRY * PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params); + +#define glProgramBufferParametersIivNV GLEW_GET_FUN(__glewProgramBufferParametersIivNV) +#define glProgramBufferParametersIuivNV GLEW_GET_FUN(__glewProgramBufferParametersIuivNV) +#define glProgramBufferParametersfvNV GLEW_GET_FUN(__glewProgramBufferParametersfvNV) + +#define GLEW_NV_parameter_buffer_object GLEW_GET_VAR(__GLEW_NV_parameter_buffer_object) + +#endif /* GL_NV_parameter_buffer_object */ + +/* --------------------- GL_NV_parameter_buffer_object2 -------------------- */ + +#ifndef GL_NV_parameter_buffer_object2 +#define GL_NV_parameter_buffer_object2 1 + +#define GLEW_NV_parameter_buffer_object2 GLEW_GET_VAR(__GLEW_NV_parameter_buffer_object2) + +#endif /* GL_NV_parameter_buffer_object2 */ + +/* ------------------------- GL_NV_pixel_data_range ------------------------ */ + +#ifndef GL_NV_pixel_data_range +#define GL_NV_pixel_data_range 1 + +#define GL_WRITE_PIXEL_DATA_RANGE_NV 0x8878 +#define GL_READ_PIXEL_DATA_RANGE_NV 0x8879 +#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A +#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B +#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C +#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D + +typedef void (GLAPIENTRY * PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, void* pointer); + +#define glFlushPixelDataRangeNV GLEW_GET_FUN(__glewFlushPixelDataRangeNV) +#define glPixelDataRangeNV GLEW_GET_FUN(__glewPixelDataRangeNV) + +#define GLEW_NV_pixel_data_range GLEW_GET_VAR(__GLEW_NV_pixel_data_range) + +#endif /* GL_NV_pixel_data_range */ + +/* --------------------------- GL_NV_point_sprite -------------------------- */ + +#ifndef GL_NV_point_sprite +#define GL_NV_point_sprite 1 + +#define GL_POINT_SPRITE_NV 0x8861 +#define GL_COORD_REPLACE_NV 0x8862 +#define GL_POINT_SPRITE_R_MODE_NV 0x8863 + +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint* params); + +#define glPointParameteriNV GLEW_GET_FUN(__glewPointParameteriNV) +#define glPointParameterivNV GLEW_GET_FUN(__glewPointParameterivNV) + +#define GLEW_NV_point_sprite GLEW_GET_VAR(__GLEW_NV_point_sprite) + +#endif /* GL_NV_point_sprite */ + +/* -------------------------- GL_NV_present_video -------------------------- */ + +#ifndef GL_NV_present_video +#define GL_NV_present_video 1 + +#define GL_FRAME_NV 0x8E26 +#define GL_FIELDS_NV 0x8E27 +#define GL_CURRENT_TIME_NV 0x8E28 +#define GL_NUM_FILL_STREAMS_NV 0x8E29 +#define GL_PRESENT_TIME_NV 0x8E2A +#define GL_PRESENT_DURATION_NV 0x8E2B + +typedef void (GLAPIENTRY * PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT* params); +typedef void (GLAPIENTRY * PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT* params); +typedef void (GLAPIENTRY * PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint* params); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); + +#define glGetVideoi64vNV GLEW_GET_FUN(__glewGetVideoi64vNV) +#define glGetVideoivNV GLEW_GET_FUN(__glewGetVideoivNV) +#define glGetVideoui64vNV GLEW_GET_FUN(__glewGetVideoui64vNV) +#define glGetVideouivNV GLEW_GET_FUN(__glewGetVideouivNV) +#define glPresentFrameDualFillNV GLEW_GET_FUN(__glewPresentFrameDualFillNV) +#define glPresentFrameKeyedNV GLEW_GET_FUN(__glewPresentFrameKeyedNV) + +#define GLEW_NV_present_video GLEW_GET_VAR(__GLEW_NV_present_video) + +#endif /* GL_NV_present_video */ + +/* ------------------------ GL_NV_primitive_restart ------------------------ */ + +#ifndef GL_NV_primitive_restart +#define GL_NV_primitive_restart 1 + +#define GL_PRIMITIVE_RESTART_NV 0x8558 +#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559 + +typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); +typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTNVPROC) (void); + +#define glPrimitiveRestartIndexNV GLEW_GET_FUN(__glewPrimitiveRestartIndexNV) +#define glPrimitiveRestartNV GLEW_GET_FUN(__glewPrimitiveRestartNV) + +#define GLEW_NV_primitive_restart GLEW_GET_VAR(__GLEW_NV_primitive_restart) + +#endif /* GL_NV_primitive_restart */ + +/* ------------------------ GL_NV_register_combiners ----------------------- */ + +#ifndef GL_NV_register_combiners +#define GL_NV_register_combiners 1 + +#define GL_REGISTER_COMBINERS_NV 0x8522 +#define GL_VARIABLE_A_NV 0x8523 +#define GL_VARIABLE_B_NV 0x8524 +#define GL_VARIABLE_C_NV 0x8525 +#define GL_VARIABLE_D_NV 0x8526 +#define GL_VARIABLE_E_NV 0x8527 +#define GL_VARIABLE_F_NV 0x8528 +#define GL_VARIABLE_G_NV 0x8529 +#define GL_CONSTANT_COLOR0_NV 0x852A +#define GL_CONSTANT_COLOR1_NV 0x852B +#define GL_PRIMARY_COLOR_NV 0x852C +#define GL_SECONDARY_COLOR_NV 0x852D +#define GL_SPARE0_NV 0x852E +#define GL_SPARE1_NV 0x852F +#define GL_DISCARD_NV 0x8530 +#define GL_E_TIMES_F_NV 0x8531 +#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532 +#define GL_UNSIGNED_IDENTITY_NV 0x8536 +#define GL_UNSIGNED_INVERT_NV 0x8537 +#define GL_EXPAND_NORMAL_NV 0x8538 +#define GL_EXPAND_NEGATE_NV 0x8539 +#define GL_HALF_BIAS_NORMAL_NV 0x853A +#define GL_HALF_BIAS_NEGATE_NV 0x853B +#define GL_SIGNED_IDENTITY_NV 0x853C +#define GL_SIGNED_NEGATE_NV 0x853D +#define GL_SCALE_BY_TWO_NV 0x853E +#define GL_SCALE_BY_FOUR_NV 0x853F +#define GL_SCALE_BY_ONE_HALF_NV 0x8540 +#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541 +#define GL_COMBINER_INPUT_NV 0x8542 +#define GL_COMBINER_MAPPING_NV 0x8543 +#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544 +#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545 +#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546 +#define GL_COMBINER_MUX_SUM_NV 0x8547 +#define GL_COMBINER_SCALE_NV 0x8548 +#define GL_COMBINER_BIAS_NV 0x8549 +#define GL_COMBINER_AB_OUTPUT_NV 0x854A +#define GL_COMBINER_CD_OUTPUT_NV 0x854B +#define GL_COMBINER_SUM_OUTPUT_NV 0x854C +#define GL_MAX_GENERAL_COMBINERS_NV 0x854D +#define GL_NUM_GENERAL_COMBINERS_NV 0x854E +#define GL_COLOR_SUM_CLAMP_NV 0x854F +#define GL_COMBINER0_NV 0x8550 +#define GL_COMBINER1_NV 0x8551 +#define GL_COMBINER2_NV 0x8552 +#define GL_COMBINER3_NV 0x8553 +#define GL_COMBINER4_NV 0x8554 +#define GL_COMBINER5_NV 0x8555 +#define GL_COMBINER6_NV 0x8556 +#define GL_COMBINER7_NV 0x8557 + +typedef void (GLAPIENTRY * PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); +typedef void (GLAPIENTRY * PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); +typedef void (GLAPIENTRY * PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); +typedef void (GLAPIENTRY * PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint* params); + +#define glCombinerInputNV GLEW_GET_FUN(__glewCombinerInputNV) +#define glCombinerOutputNV GLEW_GET_FUN(__glewCombinerOutputNV) +#define glCombinerParameterfNV GLEW_GET_FUN(__glewCombinerParameterfNV) +#define glCombinerParameterfvNV GLEW_GET_FUN(__glewCombinerParameterfvNV) +#define glCombinerParameteriNV GLEW_GET_FUN(__glewCombinerParameteriNV) +#define glCombinerParameterivNV GLEW_GET_FUN(__glewCombinerParameterivNV) +#define glFinalCombinerInputNV GLEW_GET_FUN(__glewFinalCombinerInputNV) +#define glGetCombinerInputParameterfvNV GLEW_GET_FUN(__glewGetCombinerInputParameterfvNV) +#define glGetCombinerInputParameterivNV GLEW_GET_FUN(__glewGetCombinerInputParameterivNV) +#define glGetCombinerOutputParameterfvNV GLEW_GET_FUN(__glewGetCombinerOutputParameterfvNV) +#define glGetCombinerOutputParameterivNV GLEW_GET_FUN(__glewGetCombinerOutputParameterivNV) +#define glGetFinalCombinerInputParameterfvNV GLEW_GET_FUN(__glewGetFinalCombinerInputParameterfvNV) +#define glGetFinalCombinerInputParameterivNV GLEW_GET_FUN(__glewGetFinalCombinerInputParameterivNV) + +#define GLEW_NV_register_combiners GLEW_GET_VAR(__GLEW_NV_register_combiners) + +#endif /* GL_NV_register_combiners */ + +/* ----------------------- GL_NV_register_combiners2 ----------------------- */ + +#ifndef GL_NV_register_combiners2 +#define GL_NV_register_combiners2 1 + +#define GL_PER_STAGE_CONSTANTS_NV 0x8535 + +typedef void (GLAPIENTRY * PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat* params); + +#define glCombinerStageParameterfvNV GLEW_GET_FUN(__glewCombinerStageParameterfvNV) +#define glGetCombinerStageParameterfvNV GLEW_GET_FUN(__glewGetCombinerStageParameterfvNV) + +#define GLEW_NV_register_combiners2 GLEW_GET_VAR(__GLEW_NV_register_combiners2) + +#endif /* GL_NV_register_combiners2 */ + +/* ------------------------ GL_NV_shader_buffer_load ----------------------- */ + +#ifndef GL_NV_shader_buffer_load +#define GL_NV_shader_buffer_load 1 + +#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D +#define GL_GPU_ADDRESS_NV 0x8F34 +#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35 + +typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT* params); +typedef void (GLAPIENTRY * PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT* result); +typedef void (GLAPIENTRY * PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT* params); +typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERRESIDENTNVPROC) (GLenum target); +typedef GLboolean (GLAPIENTRY * PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer); +typedef void (GLAPIENTRY * PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target); +typedef void (GLAPIENTRY * PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access); +typedef void (GLAPIENTRY * PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer); +typedef void (GLAPIENTRY * PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value); +typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +typedef void (GLAPIENTRY * PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value); +typedef void (GLAPIENTRY * PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); + +#define glGetBufferParameterui64vNV GLEW_GET_FUN(__glewGetBufferParameterui64vNV) +#define glGetIntegerui64vNV GLEW_GET_FUN(__glewGetIntegerui64vNV) +#define glGetNamedBufferParameterui64vNV GLEW_GET_FUN(__glewGetNamedBufferParameterui64vNV) +#define glIsBufferResidentNV GLEW_GET_FUN(__glewIsBufferResidentNV) +#define glIsNamedBufferResidentNV GLEW_GET_FUN(__glewIsNamedBufferResidentNV) +#define glMakeBufferNonResidentNV GLEW_GET_FUN(__glewMakeBufferNonResidentNV) +#define glMakeBufferResidentNV GLEW_GET_FUN(__glewMakeBufferResidentNV) +#define glMakeNamedBufferNonResidentNV GLEW_GET_FUN(__glewMakeNamedBufferNonResidentNV) +#define glMakeNamedBufferResidentNV GLEW_GET_FUN(__glewMakeNamedBufferResidentNV) +#define glProgramUniformui64NV GLEW_GET_FUN(__glewProgramUniformui64NV) +#define glProgramUniformui64vNV GLEW_GET_FUN(__glewProgramUniformui64vNV) +#define glUniformui64NV GLEW_GET_FUN(__glewUniformui64NV) +#define glUniformui64vNV GLEW_GET_FUN(__glewUniformui64vNV) + +#define GLEW_NV_shader_buffer_load GLEW_GET_VAR(__GLEW_NV_shader_buffer_load) + +#endif /* GL_NV_shader_buffer_load */ + +/* ---------------------- GL_NV_tessellation_program5 ---------------------- */ + +#ifndef GL_NV_tessellation_program5 +#define GL_NV_tessellation_program5 1 + +#define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV 0x86D8 +#define GL_TESS_CONTROL_PROGRAM_NV 0x891E +#define GL_TESS_EVALUATION_PROGRAM_NV 0x891F +#define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74 +#define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75 + +#define GLEW_NV_tessellation_program5 GLEW_GET_VAR(__GLEW_NV_tessellation_program5) + +#endif /* GL_NV_tessellation_program5 */ + +/* -------------------------- GL_NV_texgen_emboss -------------------------- */ + +#ifndef GL_NV_texgen_emboss +#define GL_NV_texgen_emboss 1 + +#define GL_EMBOSS_LIGHT_NV 0x855D +#define GL_EMBOSS_CONSTANT_NV 0x855E +#define GL_EMBOSS_MAP_NV 0x855F + +#define GLEW_NV_texgen_emboss GLEW_GET_VAR(__GLEW_NV_texgen_emboss) + +#endif /* GL_NV_texgen_emboss */ + +/* ------------------------ GL_NV_texgen_reflection ------------------------ */ + +#ifndef GL_NV_texgen_reflection +#define GL_NV_texgen_reflection 1 + +#define GL_NORMAL_MAP_NV 0x8511 +#define GL_REFLECTION_MAP_NV 0x8512 + +#define GLEW_NV_texgen_reflection GLEW_GET_VAR(__GLEW_NV_texgen_reflection) + +#endif /* GL_NV_texgen_reflection */ + +/* ------------------------- GL_NV_texture_barrier ------------------------- */ + +#ifndef GL_NV_texture_barrier +#define GL_NV_texture_barrier 1 + +typedef void (GLAPIENTRY * PFNGLTEXTUREBARRIERNVPROC) (void); + +#define glTextureBarrierNV GLEW_GET_FUN(__glewTextureBarrierNV) + +#define GLEW_NV_texture_barrier GLEW_GET_VAR(__GLEW_NV_texture_barrier) + +#endif /* GL_NV_texture_barrier */ + +/* --------------------- GL_NV_texture_compression_vtc --------------------- */ + +#ifndef GL_NV_texture_compression_vtc +#define GL_NV_texture_compression_vtc 1 + +#define GLEW_NV_texture_compression_vtc GLEW_GET_VAR(__GLEW_NV_texture_compression_vtc) + +#endif /* GL_NV_texture_compression_vtc */ + +/* ----------------------- GL_NV_texture_env_combine4 ---------------------- */ + +#ifndef GL_NV_texture_env_combine4 +#define GL_NV_texture_env_combine4 1 + +#define GL_COMBINE4_NV 0x8503 +#define GL_SOURCE3_RGB_NV 0x8583 +#define GL_SOURCE3_ALPHA_NV 0x858B +#define GL_OPERAND3_RGB_NV 0x8593 +#define GL_OPERAND3_ALPHA_NV 0x859B + +#define GLEW_NV_texture_env_combine4 GLEW_GET_VAR(__GLEW_NV_texture_env_combine4) + +#endif /* GL_NV_texture_env_combine4 */ + +/* ---------------------- GL_NV_texture_expand_normal ---------------------- */ + +#ifndef GL_NV_texture_expand_normal +#define GL_NV_texture_expand_normal 1 + +#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F + +#define GLEW_NV_texture_expand_normal GLEW_GET_VAR(__GLEW_NV_texture_expand_normal) + +#endif /* GL_NV_texture_expand_normal */ + +/* ------------------------ GL_NV_texture_rectangle ------------------------ */ + +#ifndef GL_NV_texture_rectangle +#define GL_NV_texture_rectangle 1 + +#define GL_TEXTURE_RECTANGLE_NV 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8 + +#define GLEW_NV_texture_rectangle GLEW_GET_VAR(__GLEW_NV_texture_rectangle) + +#endif /* GL_NV_texture_rectangle */ + +/* -------------------------- GL_NV_texture_shader ------------------------- */ + +#ifndef GL_NV_texture_shader +#define GL_NV_texture_shader 1 + +#define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C +#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D +#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E +#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9 +#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA +#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB +#define GL_DSDT_MAG_INTENSITY_NV 0x86DC +#define GL_SHADER_CONSISTENT_NV 0x86DD +#define GL_TEXTURE_SHADER_NV 0x86DE +#define GL_SHADER_OPERATION_NV 0x86DF +#define GL_CULL_MODES_NV 0x86E0 +#define GL_OFFSET_TEXTURE_2D_MATRIX_NV 0x86E1 +#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1 +#define GL_OFFSET_TEXTURE_2D_SCALE_NV 0x86E2 +#define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2 +#define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3 +#define GL_OFFSET_TEXTURE_2D_BIAS_NV 0x86E3 +#define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4 +#define GL_CONST_EYE_NV 0x86E5 +#define GL_PASS_THROUGH_NV 0x86E6 +#define GL_CULL_FRAGMENT_NV 0x86E7 +#define GL_OFFSET_TEXTURE_2D_NV 0x86E8 +#define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9 +#define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA +#define GL_DOT_PRODUCT_NV 0x86EC +#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED +#define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE +#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0 +#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1 +#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2 +#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3 +#define GL_HILO_NV 0x86F4 +#define GL_DSDT_NV 0x86F5 +#define GL_DSDT_MAG_NV 0x86F6 +#define GL_DSDT_MAG_VIB_NV 0x86F7 +#define GL_HILO16_NV 0x86F8 +#define GL_SIGNED_HILO_NV 0x86F9 +#define GL_SIGNED_HILO16_NV 0x86FA +#define GL_SIGNED_RGBA_NV 0x86FB +#define GL_SIGNED_RGBA8_NV 0x86FC +#define GL_SIGNED_RGB_NV 0x86FE +#define GL_SIGNED_RGB8_NV 0x86FF +#define GL_SIGNED_LUMINANCE_NV 0x8701 +#define GL_SIGNED_LUMINANCE8_NV 0x8702 +#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703 +#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704 +#define GL_SIGNED_ALPHA_NV 0x8705 +#define GL_SIGNED_ALPHA8_NV 0x8706 +#define GL_SIGNED_INTENSITY_NV 0x8707 +#define GL_SIGNED_INTENSITY8_NV 0x8708 +#define GL_DSDT8_NV 0x8709 +#define GL_DSDT8_MAG8_NV 0x870A +#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B +#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C +#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D +#define GL_HI_SCALE_NV 0x870E +#define GL_LO_SCALE_NV 0x870F +#define GL_DS_SCALE_NV 0x8710 +#define GL_DT_SCALE_NV 0x8711 +#define GL_MAGNITUDE_SCALE_NV 0x8712 +#define GL_VIBRANCE_SCALE_NV 0x8713 +#define GL_HI_BIAS_NV 0x8714 +#define GL_LO_BIAS_NV 0x8715 +#define GL_DS_BIAS_NV 0x8716 +#define GL_DT_BIAS_NV 0x8717 +#define GL_MAGNITUDE_BIAS_NV 0x8718 +#define GL_VIBRANCE_BIAS_NV 0x8719 +#define GL_TEXTURE_BORDER_VALUES_NV 0x871A +#define GL_TEXTURE_HI_SIZE_NV 0x871B +#define GL_TEXTURE_LO_SIZE_NV 0x871C +#define GL_TEXTURE_DS_SIZE_NV 0x871D +#define GL_TEXTURE_DT_SIZE_NV 0x871E +#define GL_TEXTURE_MAG_SIZE_NV 0x871F + +#define GLEW_NV_texture_shader GLEW_GET_VAR(__GLEW_NV_texture_shader) + +#endif /* GL_NV_texture_shader */ + +/* ------------------------- GL_NV_texture_shader2 ------------------------- */ + +#ifndef GL_NV_texture_shader2 +#define GL_NV_texture_shader2 1 + +#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA +#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB +#define GL_DSDT_MAG_INTENSITY_NV 0x86DC +#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF +#define GL_HILO_NV 0x86F4 +#define GL_DSDT_NV 0x86F5 +#define GL_DSDT_MAG_NV 0x86F6 +#define GL_DSDT_MAG_VIB_NV 0x86F7 +#define GL_HILO16_NV 0x86F8 +#define GL_SIGNED_HILO_NV 0x86F9 +#define GL_SIGNED_HILO16_NV 0x86FA +#define GL_SIGNED_RGBA_NV 0x86FB +#define GL_SIGNED_RGBA8_NV 0x86FC +#define GL_SIGNED_RGB_NV 0x86FE +#define GL_SIGNED_RGB8_NV 0x86FF +#define GL_SIGNED_LUMINANCE_NV 0x8701 +#define GL_SIGNED_LUMINANCE8_NV 0x8702 +#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703 +#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704 +#define GL_SIGNED_ALPHA_NV 0x8705 +#define GL_SIGNED_ALPHA8_NV 0x8706 +#define GL_SIGNED_INTENSITY_NV 0x8707 +#define GL_SIGNED_INTENSITY8_NV 0x8708 +#define GL_DSDT8_NV 0x8709 +#define GL_DSDT8_MAG8_NV 0x870A +#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B +#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C +#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D + +#define GLEW_NV_texture_shader2 GLEW_GET_VAR(__GLEW_NV_texture_shader2) + +#endif /* GL_NV_texture_shader2 */ + +/* ------------------------- GL_NV_texture_shader3 ------------------------- */ + +#ifndef GL_NV_texture_shader3 +#define GL_NV_texture_shader3 1 + +#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850 +#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851 +#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852 +#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853 +#define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854 +#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855 +#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856 +#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857 +#define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858 +#define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859 +#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A +#define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B +#define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C +#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D +#define GL_HILO8_NV 0x885E +#define GL_SIGNED_HILO8_NV 0x885F +#define GL_FORCE_BLUE_TO_ONE_NV 0x8860 + +#define GLEW_NV_texture_shader3 GLEW_GET_VAR(__GLEW_NV_texture_shader3) + +#endif /* GL_NV_texture_shader3 */ + +/* ------------------------ GL_NV_transform_feedback ----------------------- */ + +#ifndef GL_NV_transform_feedback +#define GL_NV_transform_feedback 1 + +#define GL_BACK_PRIMARY_COLOR_NV 0x8C77 +#define GL_BACK_SECONDARY_COLOR_NV 0x8C78 +#define GL_TEXTURE_COORD_NV 0x8C79 +#define GL_CLIP_DISTANCE_NV 0x8C7A +#define GL_VERTEX_ID_NV 0x8C7B +#define GL_PRIMITIVE_ID_NV 0x8C7C +#define GL_GENERIC_ATTRIB_NV 0x8C7D +#define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV 0x8C7E +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80 +#define GL_ACTIVE_VARYINGS_NV 0x8C81 +#define GL_ACTIVE_VARYING_MAX_LENGTH_NV 0x8C82 +#define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85 +#define GL_TRANSFORM_FEEDBACK_RECORD_NV 0x8C86 +#define GL_PRIMITIVES_GENERATED_NV 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88 +#define GL_RASTERIZER_DISCARD_NV 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B +#define GL_INTERLEAVED_ATTRIBS_NV 0x8C8C +#define GL_SEPARATE_ATTRIBS_NV 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER_NV 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F + +typedef void (GLAPIENTRY * PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name); +typedef void (GLAPIENTRY * PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode); +typedef void (GLAPIENTRY * PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer); +typedef void (GLAPIENTRY * PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); +typedef void (GLAPIENTRY * PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (GLAPIENTRY * PFNGLENDTRANSFORMFEEDBACKNVPROC) (void); +typedef void (GLAPIENTRY * PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); +typedef void (GLAPIENTRY * PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location); +typedef GLint (GLAPIENTRY * PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name); +typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode); +typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); + +#define glActiveVaryingNV GLEW_GET_FUN(__glewActiveVaryingNV) +#define glBeginTransformFeedbackNV GLEW_GET_FUN(__glewBeginTransformFeedbackNV) +#define glBindBufferBaseNV GLEW_GET_FUN(__glewBindBufferBaseNV) +#define glBindBufferOffsetNV GLEW_GET_FUN(__glewBindBufferOffsetNV) +#define glBindBufferRangeNV GLEW_GET_FUN(__glewBindBufferRangeNV) +#define glEndTransformFeedbackNV GLEW_GET_FUN(__glewEndTransformFeedbackNV) +#define glGetActiveVaryingNV GLEW_GET_FUN(__glewGetActiveVaryingNV) +#define glGetTransformFeedbackVaryingNV GLEW_GET_FUN(__glewGetTransformFeedbackVaryingNV) +#define glGetVaryingLocationNV GLEW_GET_FUN(__glewGetVaryingLocationNV) +#define glTransformFeedbackAttribsNV GLEW_GET_FUN(__glewTransformFeedbackAttribsNV) +#define glTransformFeedbackVaryingsNV GLEW_GET_FUN(__glewTransformFeedbackVaryingsNV) + +#define GLEW_NV_transform_feedback GLEW_GET_VAR(__GLEW_NV_transform_feedback) + +#endif /* GL_NV_transform_feedback */ + +/* ----------------------- GL_NV_transform_feedback2 ----------------------- */ + +#ifndef GL_NV_transform_feedback2 +#define GL_NV_transform_feedback2 1 + +#define GL_TRANSFORM_FEEDBACK_NV 0x8E22 +#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23 +#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24 +#define GL_TRANSFORM_FEEDBACK_BINDING_NV 0x8E25 + +typedef void (GLAPIENTRY * PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id); +typedef void (GLAPIENTRY * PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint* ids); +typedef void (GLAPIENTRY * PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id); +typedef void (GLAPIENTRY * PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint* ids); +typedef GLboolean (GLAPIENTRY * PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void); +typedef void (GLAPIENTRY * PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void); + +#define glBindTransformFeedbackNV GLEW_GET_FUN(__glewBindTransformFeedbackNV) +#define glDeleteTransformFeedbacksNV GLEW_GET_FUN(__glewDeleteTransformFeedbacksNV) +#define glDrawTransformFeedbackNV GLEW_GET_FUN(__glewDrawTransformFeedbackNV) +#define glGenTransformFeedbacksNV GLEW_GET_FUN(__glewGenTransformFeedbacksNV) +#define glIsTransformFeedbackNV GLEW_GET_FUN(__glewIsTransformFeedbackNV) +#define glPauseTransformFeedbackNV GLEW_GET_FUN(__glewPauseTransformFeedbackNV) +#define glResumeTransformFeedbackNV GLEW_GET_FUN(__glewResumeTransformFeedbackNV) + +#define GLEW_NV_transform_feedback2 GLEW_GET_VAR(__GLEW_NV_transform_feedback2) + +#endif /* GL_NV_transform_feedback2 */ + +/* -------------------------- GL_NV_vdpau_interop -------------------------- */ + +#ifndef GL_NV_vdpau_interop +#define GL_NV_vdpau_interop 1 + +#define GL_SURFACE_STATE_NV 0x86EB +#define GL_SURFACE_REGISTERED_NV 0x86FD +#define GL_SURFACE_MAPPED_NV 0x8700 +#define GL_WRITE_DISCARD_NV 0x88BE + +typedef GLintptr GLvdpauSurfaceNV; + +typedef void (GLAPIENTRY * PFNGLVDPAUFININVPROC) (void); +typedef void (GLAPIENTRY * PFNGLVDPAUGETSURFACEIVNVPROC) (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei* length, GLint *values); +typedef void (GLAPIENTRY * PFNGLVDPAUINITNVPROC) (const void* vdpDevice, const GLvoid*getProcAddress); +typedef void (GLAPIENTRY * PFNGLVDPAUISSURFACENVPROC) (GLvdpauSurfaceNV surface); +typedef void (GLAPIENTRY * PFNGLVDPAUMAPSURFACESNVPROC) (GLsizei numSurfaces, const GLvdpauSurfaceNV* surfaces); +typedef GLvdpauSurfaceNV (GLAPIENTRY * PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC) (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); +typedef GLvdpauSurfaceNV (GLAPIENTRY * PFNGLVDPAUREGISTERVIDEOSURFACENVPROC) (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); +typedef void (GLAPIENTRY * PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access); +typedef void (GLAPIENTRY * PFNGLVDPAUUNMAPSURFACESNVPROC) (GLsizei numSurface, const GLvdpauSurfaceNV* surfaces); +typedef void (GLAPIENTRY * PFNGLVDPAUUNREGISTERSURFACENVPROC) (GLvdpauSurfaceNV surface); + +#define glVDPAUFiniNV GLEW_GET_FUN(__glewVDPAUFiniNV) +#define glVDPAUGetSurfaceivNV GLEW_GET_FUN(__glewVDPAUGetSurfaceivNV) +#define glVDPAUInitNV GLEW_GET_FUN(__glewVDPAUInitNV) +#define glVDPAUIsSurfaceNV GLEW_GET_FUN(__glewVDPAUIsSurfaceNV) +#define glVDPAUMapSurfacesNV GLEW_GET_FUN(__glewVDPAUMapSurfacesNV) +#define glVDPAURegisterOutputSurfaceNV GLEW_GET_FUN(__glewVDPAURegisterOutputSurfaceNV) +#define glVDPAURegisterVideoSurfaceNV GLEW_GET_FUN(__glewVDPAURegisterVideoSurfaceNV) +#define glVDPAUSurfaceAccessNV GLEW_GET_FUN(__glewVDPAUSurfaceAccessNV) +#define glVDPAUUnmapSurfacesNV GLEW_GET_FUN(__glewVDPAUUnmapSurfacesNV) +#define glVDPAUUnregisterSurfaceNV GLEW_GET_FUN(__glewVDPAUUnregisterSurfaceNV) + +#define GLEW_NV_vdpau_interop GLEW_GET_VAR(__GLEW_NV_vdpau_interop) + +#endif /* GL_NV_vdpau_interop */ + +/* ------------------------ GL_NV_vertex_array_range ----------------------- */ + +#ifndef GL_NV_vertex_array_range +#define GL_NV_vertex_array_range 1 + +#define GL_VERTEX_ARRAY_RANGE_NV 0x851D +#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E +#define GL_VERTEX_ARRAY_RANGE_VALID_NV 0x851F +#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520 +#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521 + +typedef void (GLAPIENTRY * PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); +typedef void (GLAPIENTRY * PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, void* pointer); + +#define glFlushVertexArrayRangeNV GLEW_GET_FUN(__glewFlushVertexArrayRangeNV) +#define glVertexArrayRangeNV GLEW_GET_FUN(__glewVertexArrayRangeNV) + +#define GLEW_NV_vertex_array_range GLEW_GET_VAR(__GLEW_NV_vertex_array_range) + +#endif /* GL_NV_vertex_array_range */ + +/* ----------------------- GL_NV_vertex_array_range2 ----------------------- */ + +#ifndef GL_NV_vertex_array_range2 +#define GL_NV_vertex_array_range2 1 + +#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 + +#define GLEW_NV_vertex_array_range2 GLEW_GET_VAR(__GLEW_NV_vertex_array_range2) + +#endif /* GL_NV_vertex_array_range2 */ + +/* ------------------- GL_NV_vertex_attrib_integer_64bit ------------------- */ + +#ifndef GL_NV_vertex_attrib_integer_64bit +#define GL_NV_vertex_attrib_integer_64bit 1 + +#define GL_INT64_NV 0x140E +#define GL_UNSIGNED_INT64_NV 0x140F + +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT* params); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); + +#define glGetVertexAttribLi64vNV GLEW_GET_FUN(__glewGetVertexAttribLi64vNV) +#define glGetVertexAttribLui64vNV GLEW_GET_FUN(__glewGetVertexAttribLui64vNV) +#define glVertexAttribL1i64NV GLEW_GET_FUN(__glewVertexAttribL1i64NV) +#define glVertexAttribL1i64vNV GLEW_GET_FUN(__glewVertexAttribL1i64vNV) +#define glVertexAttribL1ui64NV GLEW_GET_FUN(__glewVertexAttribL1ui64NV) +#define glVertexAttribL1ui64vNV GLEW_GET_FUN(__glewVertexAttribL1ui64vNV) +#define glVertexAttribL2i64NV GLEW_GET_FUN(__glewVertexAttribL2i64NV) +#define glVertexAttribL2i64vNV GLEW_GET_FUN(__glewVertexAttribL2i64vNV) +#define glVertexAttribL2ui64NV GLEW_GET_FUN(__glewVertexAttribL2ui64NV) +#define glVertexAttribL2ui64vNV GLEW_GET_FUN(__glewVertexAttribL2ui64vNV) +#define glVertexAttribL3i64NV GLEW_GET_FUN(__glewVertexAttribL3i64NV) +#define glVertexAttribL3i64vNV GLEW_GET_FUN(__glewVertexAttribL3i64vNV) +#define glVertexAttribL3ui64NV GLEW_GET_FUN(__glewVertexAttribL3ui64NV) +#define glVertexAttribL3ui64vNV GLEW_GET_FUN(__glewVertexAttribL3ui64vNV) +#define glVertexAttribL4i64NV GLEW_GET_FUN(__glewVertexAttribL4i64NV) +#define glVertexAttribL4i64vNV GLEW_GET_FUN(__glewVertexAttribL4i64vNV) +#define glVertexAttribL4ui64NV GLEW_GET_FUN(__glewVertexAttribL4ui64NV) +#define glVertexAttribL4ui64vNV GLEW_GET_FUN(__glewVertexAttribL4ui64vNV) +#define glVertexAttribLFormatNV GLEW_GET_FUN(__glewVertexAttribLFormatNV) + +#define GLEW_NV_vertex_attrib_integer_64bit GLEW_GET_VAR(__GLEW_NV_vertex_attrib_integer_64bit) + +#endif /* GL_NV_vertex_attrib_integer_64bit */ + +/* ------------------- GL_NV_vertex_buffer_unified_memory ------------------ */ + +#ifndef GL_NV_vertex_buffer_unified_memory +#define GL_NV_vertex_buffer_unified_memory 1 + +#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E +#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F +#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20 +#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21 +#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22 +#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23 +#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24 +#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25 +#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26 +#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27 +#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28 +#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29 +#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A +#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B +#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C +#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D +#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E +#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F +#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30 +#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31 +#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32 +#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33 +#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40 +#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41 +#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42 + +typedef void (GLAPIENTRY * PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); +typedef void (GLAPIENTRY * PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (GLAPIENTRY * PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride); +typedef void (GLAPIENTRY * PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (GLAPIENTRY * PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT result[]); +typedef void (GLAPIENTRY * PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (GLAPIENTRY * PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (GLAPIENTRY * PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); +typedef void (GLAPIENTRY * PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); + +#define glBufferAddressRangeNV GLEW_GET_FUN(__glewBufferAddressRangeNV) +#define glColorFormatNV GLEW_GET_FUN(__glewColorFormatNV) +#define glEdgeFlagFormatNV GLEW_GET_FUN(__glewEdgeFlagFormatNV) +#define glFogCoordFormatNV GLEW_GET_FUN(__glewFogCoordFormatNV) +#define glGetIntegerui64i_vNV GLEW_GET_FUN(__glewGetIntegerui64i_vNV) +#define glIndexFormatNV GLEW_GET_FUN(__glewIndexFormatNV) +#define glNormalFormatNV GLEW_GET_FUN(__glewNormalFormatNV) +#define glSecondaryColorFormatNV GLEW_GET_FUN(__glewSecondaryColorFormatNV) +#define glTexCoordFormatNV GLEW_GET_FUN(__glewTexCoordFormatNV) +#define glVertexAttribFormatNV GLEW_GET_FUN(__glewVertexAttribFormatNV) +#define glVertexAttribIFormatNV GLEW_GET_FUN(__glewVertexAttribIFormatNV) +#define glVertexFormatNV GLEW_GET_FUN(__glewVertexFormatNV) + +#define GLEW_NV_vertex_buffer_unified_memory GLEW_GET_VAR(__GLEW_NV_vertex_buffer_unified_memory) + +#endif /* GL_NV_vertex_buffer_unified_memory */ + +/* -------------------------- GL_NV_vertex_program ------------------------- */ + +#ifndef GL_NV_vertex_program +#define GL_NV_vertex_program 1 + +#define GL_VERTEX_PROGRAM_NV 0x8620 +#define GL_VERTEX_STATE_PROGRAM_NV 0x8621 +#define GL_ATTRIB_ARRAY_SIZE_NV 0x8623 +#define GL_ATTRIB_ARRAY_STRIDE_NV 0x8624 +#define GL_ATTRIB_ARRAY_TYPE_NV 0x8625 +#define GL_CURRENT_ATTRIB_NV 0x8626 +#define GL_PROGRAM_LENGTH_NV 0x8627 +#define GL_PROGRAM_STRING_NV 0x8628 +#define GL_MODELVIEW_PROJECTION_NV 0x8629 +#define GL_IDENTITY_NV 0x862A +#define GL_INVERSE_NV 0x862B +#define GL_TRANSPOSE_NV 0x862C +#define GL_INVERSE_TRANSPOSE_NV 0x862D +#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E +#define GL_MAX_TRACK_MATRICES_NV 0x862F +#define GL_MATRIX0_NV 0x8630 +#define GL_MATRIX1_NV 0x8631 +#define GL_MATRIX2_NV 0x8632 +#define GL_MATRIX3_NV 0x8633 +#define GL_MATRIX4_NV 0x8634 +#define GL_MATRIX5_NV 0x8635 +#define GL_MATRIX6_NV 0x8636 +#define GL_MATRIX7_NV 0x8637 +#define GL_CURRENT_MATRIX_STACK_DEPTH_NV 0x8640 +#define GL_CURRENT_MATRIX_NV 0x8641 +#define GL_VERTEX_PROGRAM_POINT_SIZE_NV 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE_NV 0x8643 +#define GL_PROGRAM_PARAMETER_NV 0x8644 +#define GL_ATTRIB_ARRAY_POINTER_NV 0x8645 +#define GL_PROGRAM_TARGET_NV 0x8646 +#define GL_PROGRAM_RESIDENT_NV 0x8647 +#define GL_TRACK_MATRIX_NV 0x8648 +#define GL_TRACK_MATRIX_TRANSFORM_NV 0x8649 +#define GL_VERTEX_PROGRAM_BINDING_NV 0x864A +#define GL_PROGRAM_ERROR_POSITION_NV 0x864B +#define GL_VERTEX_ATTRIB_ARRAY0_NV 0x8650 +#define GL_VERTEX_ATTRIB_ARRAY1_NV 0x8651 +#define GL_VERTEX_ATTRIB_ARRAY2_NV 0x8652 +#define GL_VERTEX_ATTRIB_ARRAY3_NV 0x8653 +#define GL_VERTEX_ATTRIB_ARRAY4_NV 0x8654 +#define GL_VERTEX_ATTRIB_ARRAY5_NV 0x8655 +#define GL_VERTEX_ATTRIB_ARRAY6_NV 0x8656 +#define GL_VERTEX_ATTRIB_ARRAY7_NV 0x8657 +#define GL_VERTEX_ATTRIB_ARRAY8_NV 0x8658 +#define GL_VERTEX_ATTRIB_ARRAY9_NV 0x8659 +#define GL_VERTEX_ATTRIB_ARRAY10_NV 0x865A +#define GL_VERTEX_ATTRIB_ARRAY11_NV 0x865B +#define GL_VERTEX_ATTRIB_ARRAY12_NV 0x865C +#define GL_VERTEX_ATTRIB_ARRAY13_NV 0x865D +#define GL_VERTEX_ATTRIB_ARRAY14_NV 0x865E +#define GL_VERTEX_ATTRIB_ARRAY15_NV 0x865F +#define GL_MAP1_VERTEX_ATTRIB0_4_NV 0x8660 +#define GL_MAP1_VERTEX_ATTRIB1_4_NV 0x8661 +#define GL_MAP1_VERTEX_ATTRIB2_4_NV 0x8662 +#define GL_MAP1_VERTEX_ATTRIB3_4_NV 0x8663 +#define GL_MAP1_VERTEX_ATTRIB4_4_NV 0x8664 +#define GL_MAP1_VERTEX_ATTRIB5_4_NV 0x8665 +#define GL_MAP1_VERTEX_ATTRIB6_4_NV 0x8666 +#define GL_MAP1_VERTEX_ATTRIB7_4_NV 0x8667 +#define GL_MAP1_VERTEX_ATTRIB8_4_NV 0x8668 +#define GL_MAP1_VERTEX_ATTRIB9_4_NV 0x8669 +#define GL_MAP1_VERTEX_ATTRIB10_4_NV 0x866A +#define GL_MAP1_VERTEX_ATTRIB11_4_NV 0x866B +#define GL_MAP1_VERTEX_ATTRIB12_4_NV 0x866C +#define GL_MAP1_VERTEX_ATTRIB13_4_NV 0x866D +#define GL_MAP1_VERTEX_ATTRIB14_4_NV 0x866E +#define GL_MAP1_VERTEX_ATTRIB15_4_NV 0x866F +#define GL_MAP2_VERTEX_ATTRIB0_4_NV 0x8670 +#define GL_MAP2_VERTEX_ATTRIB1_4_NV 0x8671 +#define GL_MAP2_VERTEX_ATTRIB2_4_NV 0x8672 +#define GL_MAP2_VERTEX_ATTRIB3_4_NV 0x8673 +#define GL_MAP2_VERTEX_ATTRIB4_4_NV 0x8674 +#define GL_MAP2_VERTEX_ATTRIB5_4_NV 0x8675 +#define GL_MAP2_VERTEX_ATTRIB6_4_NV 0x8676 +#define GL_MAP2_VERTEX_ATTRIB7_4_NV 0x8677 +#define GL_MAP2_VERTEX_ATTRIB8_4_NV 0x8678 +#define GL_MAP2_VERTEX_ATTRIB9_4_NV 0x8679 +#define GL_MAP2_VERTEX_ATTRIB10_4_NV 0x867A +#define GL_MAP2_VERTEX_ATTRIB11_4_NV 0x867B +#define GL_MAP2_VERTEX_ATTRIB12_4_NV 0x867C +#define GL_MAP2_VERTEX_ATTRIB13_4_NV 0x867D +#define GL_MAP2_VERTEX_ATTRIB14_4_NV 0x867E +#define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F + +typedef GLboolean (GLAPIENTRY * PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint* ids, GLboolean *residences); +typedef void (GLAPIENTRY * PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); +typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint* ids); +typedef void (GLAPIENTRY * PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint* ids); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte* program); +typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid** pointer); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint* params); +typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMNVPROC) (GLuint id); +typedef void (GLAPIENTRY * PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte* program); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei num, const GLdouble* params); +typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei num, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, GLuint* ids); +typedef void (GLAPIENTRY * PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei n, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei n, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei n, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei n, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei n, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei n, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei n, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei n, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei n, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei n, const GLdouble* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei n, const GLfloat* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei n, const GLshort* v); +typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei n, const GLubyte* v); + +#define glAreProgramsResidentNV GLEW_GET_FUN(__glewAreProgramsResidentNV) +#define glBindProgramNV GLEW_GET_FUN(__glewBindProgramNV) +#define glDeleteProgramsNV GLEW_GET_FUN(__glewDeleteProgramsNV) +#define glExecuteProgramNV GLEW_GET_FUN(__glewExecuteProgramNV) +#define glGenProgramsNV GLEW_GET_FUN(__glewGenProgramsNV) +#define glGetProgramParameterdvNV GLEW_GET_FUN(__glewGetProgramParameterdvNV) +#define glGetProgramParameterfvNV GLEW_GET_FUN(__glewGetProgramParameterfvNV) +#define glGetProgramStringNV GLEW_GET_FUN(__glewGetProgramStringNV) +#define glGetProgramivNV GLEW_GET_FUN(__glewGetProgramivNV) +#define glGetTrackMatrixivNV GLEW_GET_FUN(__glewGetTrackMatrixivNV) +#define glGetVertexAttribPointervNV GLEW_GET_FUN(__glewGetVertexAttribPointervNV) +#define glGetVertexAttribdvNV GLEW_GET_FUN(__glewGetVertexAttribdvNV) +#define glGetVertexAttribfvNV GLEW_GET_FUN(__glewGetVertexAttribfvNV) +#define glGetVertexAttribivNV GLEW_GET_FUN(__glewGetVertexAttribivNV) +#define glIsProgramNV GLEW_GET_FUN(__glewIsProgramNV) +#define glLoadProgramNV GLEW_GET_FUN(__glewLoadProgramNV) +#define glProgramParameter4dNV GLEW_GET_FUN(__glewProgramParameter4dNV) +#define glProgramParameter4dvNV GLEW_GET_FUN(__glewProgramParameter4dvNV) +#define glProgramParameter4fNV GLEW_GET_FUN(__glewProgramParameter4fNV) +#define glProgramParameter4fvNV GLEW_GET_FUN(__glewProgramParameter4fvNV) +#define glProgramParameters4dvNV GLEW_GET_FUN(__glewProgramParameters4dvNV) +#define glProgramParameters4fvNV GLEW_GET_FUN(__glewProgramParameters4fvNV) +#define glRequestResidentProgramsNV GLEW_GET_FUN(__glewRequestResidentProgramsNV) +#define glTrackMatrixNV GLEW_GET_FUN(__glewTrackMatrixNV) +#define glVertexAttrib1dNV GLEW_GET_FUN(__glewVertexAttrib1dNV) +#define glVertexAttrib1dvNV GLEW_GET_FUN(__glewVertexAttrib1dvNV) +#define glVertexAttrib1fNV GLEW_GET_FUN(__glewVertexAttrib1fNV) +#define glVertexAttrib1fvNV GLEW_GET_FUN(__glewVertexAttrib1fvNV) +#define glVertexAttrib1sNV GLEW_GET_FUN(__glewVertexAttrib1sNV) +#define glVertexAttrib1svNV GLEW_GET_FUN(__glewVertexAttrib1svNV) +#define glVertexAttrib2dNV GLEW_GET_FUN(__glewVertexAttrib2dNV) +#define glVertexAttrib2dvNV GLEW_GET_FUN(__glewVertexAttrib2dvNV) +#define glVertexAttrib2fNV GLEW_GET_FUN(__glewVertexAttrib2fNV) +#define glVertexAttrib2fvNV GLEW_GET_FUN(__glewVertexAttrib2fvNV) +#define glVertexAttrib2sNV GLEW_GET_FUN(__glewVertexAttrib2sNV) +#define glVertexAttrib2svNV GLEW_GET_FUN(__glewVertexAttrib2svNV) +#define glVertexAttrib3dNV GLEW_GET_FUN(__glewVertexAttrib3dNV) +#define glVertexAttrib3dvNV GLEW_GET_FUN(__glewVertexAttrib3dvNV) +#define glVertexAttrib3fNV GLEW_GET_FUN(__glewVertexAttrib3fNV) +#define glVertexAttrib3fvNV GLEW_GET_FUN(__glewVertexAttrib3fvNV) +#define glVertexAttrib3sNV GLEW_GET_FUN(__glewVertexAttrib3sNV) +#define glVertexAttrib3svNV GLEW_GET_FUN(__glewVertexAttrib3svNV) +#define glVertexAttrib4dNV GLEW_GET_FUN(__glewVertexAttrib4dNV) +#define glVertexAttrib4dvNV GLEW_GET_FUN(__glewVertexAttrib4dvNV) +#define glVertexAttrib4fNV GLEW_GET_FUN(__glewVertexAttrib4fNV) +#define glVertexAttrib4fvNV GLEW_GET_FUN(__glewVertexAttrib4fvNV) +#define glVertexAttrib4sNV GLEW_GET_FUN(__glewVertexAttrib4sNV) +#define glVertexAttrib4svNV GLEW_GET_FUN(__glewVertexAttrib4svNV) +#define glVertexAttrib4ubNV GLEW_GET_FUN(__glewVertexAttrib4ubNV) +#define glVertexAttrib4ubvNV GLEW_GET_FUN(__glewVertexAttrib4ubvNV) +#define glVertexAttribPointerNV GLEW_GET_FUN(__glewVertexAttribPointerNV) +#define glVertexAttribs1dvNV GLEW_GET_FUN(__glewVertexAttribs1dvNV) +#define glVertexAttribs1fvNV GLEW_GET_FUN(__glewVertexAttribs1fvNV) +#define glVertexAttribs1svNV GLEW_GET_FUN(__glewVertexAttribs1svNV) +#define glVertexAttribs2dvNV GLEW_GET_FUN(__glewVertexAttribs2dvNV) +#define glVertexAttribs2fvNV GLEW_GET_FUN(__glewVertexAttribs2fvNV) +#define glVertexAttribs2svNV GLEW_GET_FUN(__glewVertexAttribs2svNV) +#define glVertexAttribs3dvNV GLEW_GET_FUN(__glewVertexAttribs3dvNV) +#define glVertexAttribs3fvNV GLEW_GET_FUN(__glewVertexAttribs3fvNV) +#define glVertexAttribs3svNV GLEW_GET_FUN(__glewVertexAttribs3svNV) +#define glVertexAttribs4dvNV GLEW_GET_FUN(__glewVertexAttribs4dvNV) +#define glVertexAttribs4fvNV GLEW_GET_FUN(__glewVertexAttribs4fvNV) +#define glVertexAttribs4svNV GLEW_GET_FUN(__glewVertexAttribs4svNV) +#define glVertexAttribs4ubvNV GLEW_GET_FUN(__glewVertexAttribs4ubvNV) + +#define GLEW_NV_vertex_program GLEW_GET_VAR(__GLEW_NV_vertex_program) + +#endif /* GL_NV_vertex_program */ + +/* ------------------------ GL_NV_vertex_program1_1 ------------------------ */ + +#ifndef GL_NV_vertex_program1_1 +#define GL_NV_vertex_program1_1 1 + +#define GLEW_NV_vertex_program1_1 GLEW_GET_VAR(__GLEW_NV_vertex_program1_1) + +#endif /* GL_NV_vertex_program1_1 */ + +/* ------------------------- GL_NV_vertex_program2 ------------------------- */ + +#ifndef GL_NV_vertex_program2 +#define GL_NV_vertex_program2 1 + +#define GLEW_NV_vertex_program2 GLEW_GET_VAR(__GLEW_NV_vertex_program2) + +#endif /* GL_NV_vertex_program2 */ + +/* ---------------------- GL_NV_vertex_program2_option --------------------- */ + +#ifndef GL_NV_vertex_program2_option +#define GL_NV_vertex_program2_option 1 + +#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 +#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 + +#define GLEW_NV_vertex_program2_option GLEW_GET_VAR(__GLEW_NV_vertex_program2_option) + +#endif /* GL_NV_vertex_program2_option */ + +/* ------------------------- GL_NV_vertex_program3 ------------------------- */ + +#ifndef GL_NV_vertex_program3 +#define GL_NV_vertex_program3 1 + +#define MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C + +#define GLEW_NV_vertex_program3 GLEW_GET_VAR(__GLEW_NV_vertex_program3) + +#endif /* GL_NV_vertex_program3 */ + +/* ------------------------- GL_NV_vertex_program4 ------------------------- */ + +#ifndef GL_NV_vertex_program4 +#define GL_NV_vertex_program4 1 + +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD + +#define GLEW_NV_vertex_program4 GLEW_GET_VAR(__GLEW_NV_vertex_program4) + +#endif /* GL_NV_vertex_program4 */ + +/* ------------------------ GL_OES_byte_coordinates ------------------------ */ + +#ifndef GL_OES_byte_coordinates +#define GL_OES_byte_coordinates 1 + +#define GL_BYTE 0x1400 + +#define GLEW_OES_byte_coordinates GLEW_GET_VAR(__GLEW_OES_byte_coordinates) + +#endif /* GL_OES_byte_coordinates */ + +/* ------------------- GL_OES_compressed_paletted_texture ------------------ */ + +#ifndef GL_OES_compressed_paletted_texture +#define GL_OES_compressed_paletted_texture 1 + +#define GL_PALETTE4_RGB8_OES 0x8B90 +#define GL_PALETTE4_RGBA8_OES 0x8B91 +#define GL_PALETTE4_R5_G6_B5_OES 0x8B92 +#define GL_PALETTE4_RGBA4_OES 0x8B93 +#define GL_PALETTE4_RGB5_A1_OES 0x8B94 +#define GL_PALETTE8_RGB8_OES 0x8B95 +#define GL_PALETTE8_RGBA8_OES 0x8B96 +#define GL_PALETTE8_R5_G6_B5_OES 0x8B97 +#define GL_PALETTE8_RGBA4_OES 0x8B98 +#define GL_PALETTE8_RGB5_A1_OES 0x8B99 + +#define GLEW_OES_compressed_paletted_texture GLEW_GET_VAR(__GLEW_OES_compressed_paletted_texture) + +#endif /* GL_OES_compressed_paletted_texture */ + +/* --------------------------- GL_OES_read_format -------------------------- */ + +#ifndef GL_OES_read_format +#define GL_OES_read_format 1 + +#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B + +#define GLEW_OES_read_format GLEW_GET_VAR(__GLEW_OES_read_format) + +#endif /* GL_OES_read_format */ + +/* ------------------------ GL_OES_single_precision ------------------------ */ + +#ifndef GL_OES_single_precision +#define GL_OES_single_precision 1 + +typedef void (GLAPIENTRY * PFNGLCLEARDEPTHFOESPROC) (GLclampd depth); +typedef void (GLAPIENTRY * PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat* equation); +typedef void (GLAPIENTRY * PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f); +typedef void (GLAPIENTRY * PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); +typedef void (GLAPIENTRY * PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat* equation); +typedef void (GLAPIENTRY * PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); + +#define glClearDepthfOES GLEW_GET_FUN(__glewClearDepthfOES) +#define glClipPlanefOES GLEW_GET_FUN(__glewClipPlanefOES) +#define glDepthRangefOES GLEW_GET_FUN(__glewDepthRangefOES) +#define glFrustumfOES GLEW_GET_FUN(__glewFrustumfOES) +#define glGetClipPlanefOES GLEW_GET_FUN(__glewGetClipPlanefOES) +#define glOrthofOES GLEW_GET_FUN(__glewOrthofOES) + +#define GLEW_OES_single_precision GLEW_GET_VAR(__GLEW_OES_single_precision) + +#endif /* GL_OES_single_precision */ + +/* ---------------------------- GL_OML_interlace --------------------------- */ + +#ifndef GL_OML_interlace +#define GL_OML_interlace 1 + +#define GL_INTERLACE_OML 0x8980 +#define GL_INTERLACE_READ_OML 0x8981 + +#define GLEW_OML_interlace GLEW_GET_VAR(__GLEW_OML_interlace) + +#endif /* GL_OML_interlace */ + +/* ---------------------------- GL_OML_resample ---------------------------- */ + +#ifndef GL_OML_resample +#define GL_OML_resample 1 + +#define GL_PACK_RESAMPLE_OML 0x8984 +#define GL_UNPACK_RESAMPLE_OML 0x8985 +#define GL_RESAMPLE_REPLICATE_OML 0x8986 +#define GL_RESAMPLE_ZERO_FILL_OML 0x8987 +#define GL_RESAMPLE_AVERAGE_OML 0x8988 +#define GL_RESAMPLE_DECIMATE_OML 0x8989 + +#define GLEW_OML_resample GLEW_GET_VAR(__GLEW_OML_resample) + +#endif /* GL_OML_resample */ + +/* ---------------------------- GL_OML_subsample --------------------------- */ + +#ifndef GL_OML_subsample +#define GL_OML_subsample 1 + +#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982 +#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983 + +#define GLEW_OML_subsample GLEW_GET_VAR(__GLEW_OML_subsample) + +#endif /* GL_OML_subsample */ + +/* --------------------------- GL_PGI_misc_hints --------------------------- */ + +#ifndef GL_PGI_misc_hints +#define GL_PGI_misc_hints 1 + +#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 107000 +#define GL_CONSERVE_MEMORY_HINT_PGI 107005 +#define GL_RECLAIM_MEMORY_HINT_PGI 107006 +#define GL_NATIVE_GRAPHICS_HANDLE_PGI 107010 +#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 107011 +#define GL_NATIVE_GRAPHICS_END_HINT_PGI 107012 +#define GL_ALWAYS_FAST_HINT_PGI 107020 +#define GL_ALWAYS_SOFT_HINT_PGI 107021 +#define GL_ALLOW_DRAW_OBJ_HINT_PGI 107022 +#define GL_ALLOW_DRAW_WIN_HINT_PGI 107023 +#define GL_ALLOW_DRAW_FRG_HINT_PGI 107024 +#define GL_ALLOW_DRAW_MEM_HINT_PGI 107025 +#define GL_STRICT_DEPTHFUNC_HINT_PGI 107030 +#define GL_STRICT_LIGHTING_HINT_PGI 107031 +#define GL_STRICT_SCISSOR_HINT_PGI 107032 +#define GL_FULL_STIPPLE_HINT_PGI 107033 +#define GL_CLIP_NEAR_HINT_PGI 107040 +#define GL_CLIP_FAR_HINT_PGI 107041 +#define GL_WIDE_LINE_HINT_PGI 107042 +#define GL_BACK_NORMALS_HINT_PGI 107043 + +#define GLEW_PGI_misc_hints GLEW_GET_VAR(__GLEW_PGI_misc_hints) + +#endif /* GL_PGI_misc_hints */ + +/* -------------------------- GL_PGI_vertex_hints -------------------------- */ + +#ifndef GL_PGI_vertex_hints +#define GL_PGI_vertex_hints 1 + +#define GL_VERTEX23_BIT_PGI 0x00000004 +#define GL_VERTEX4_BIT_PGI 0x00000008 +#define GL_COLOR3_BIT_PGI 0x00010000 +#define GL_COLOR4_BIT_PGI 0x00020000 +#define GL_EDGEFLAG_BIT_PGI 0x00040000 +#define GL_INDEX_BIT_PGI 0x00080000 +#define GL_MAT_AMBIENT_BIT_PGI 0x00100000 +#define GL_VERTEX_DATA_HINT_PGI 107050 +#define GL_VERTEX_CONSISTENT_HINT_PGI 107051 +#define GL_MATERIAL_SIDE_HINT_PGI 107052 +#define GL_MAX_VERTEX_HINT_PGI 107053 +#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000 +#define GL_MAT_DIFFUSE_BIT_PGI 0x00400000 +#define GL_MAT_EMISSION_BIT_PGI 0x00800000 +#define GL_MAT_COLOR_INDEXES_BIT_PGI 0x01000000 +#define GL_MAT_SHININESS_BIT_PGI 0x02000000 +#define GL_MAT_SPECULAR_BIT_PGI 0x04000000 +#define GL_NORMAL_BIT_PGI 0x08000000 +#define GL_TEXCOORD1_BIT_PGI 0x10000000 +#define GL_TEXCOORD2_BIT_PGI 0x20000000 +#define GL_TEXCOORD3_BIT_PGI 0x40000000 +#define GL_TEXCOORD4_BIT_PGI 0x80000000 + +#define GLEW_PGI_vertex_hints GLEW_GET_VAR(__GLEW_PGI_vertex_hints) + +#endif /* GL_PGI_vertex_hints */ + +/* ----------------------- GL_REND_screen_coordinates ---------------------- */ + +#ifndef GL_REND_screen_coordinates +#define GL_REND_screen_coordinates 1 + +#define GL_SCREEN_COORDINATES_REND 0x8490 +#define GL_INVERTED_SCREEN_W_REND 0x8491 + +#define GLEW_REND_screen_coordinates GLEW_GET_VAR(__GLEW_REND_screen_coordinates) + +#endif /* GL_REND_screen_coordinates */ + +/* ------------------------------- GL_S3_s3tc ------------------------------ */ + +#ifndef GL_S3_s3tc +#define GL_S3_s3tc 1 + +#define GL_RGB_S3TC 0x83A0 +#define GL_RGB4_S3TC 0x83A1 +#define GL_RGBA_S3TC 0x83A2 +#define GL_RGBA4_S3TC 0x83A3 +#define GL_RGBA_DXT5_S3TC 0x83A4 +#define GL_RGBA4_DXT5_S3TC 0x83A5 + +#define GLEW_S3_s3tc GLEW_GET_VAR(__GLEW_S3_s3tc) + +#endif /* GL_S3_s3tc */ + +/* -------------------------- GL_SGIS_color_range -------------------------- */ + +#ifndef GL_SGIS_color_range +#define GL_SGIS_color_range 1 + +#define GL_EXTENDED_RANGE_SGIS 0x85A5 +#define GL_MIN_RED_SGIS 0x85A6 +#define GL_MAX_RED_SGIS 0x85A7 +#define GL_MIN_GREEN_SGIS 0x85A8 +#define GL_MAX_GREEN_SGIS 0x85A9 +#define GL_MIN_BLUE_SGIS 0x85AA +#define GL_MAX_BLUE_SGIS 0x85AB +#define GL_MIN_ALPHA_SGIS 0x85AC +#define GL_MAX_ALPHA_SGIS 0x85AD + +#define GLEW_SGIS_color_range GLEW_GET_VAR(__GLEW_SGIS_color_range) + +#endif /* GL_SGIS_color_range */ + +/* ------------------------- GL_SGIS_detail_texture ------------------------ */ + +#ifndef GL_SGIS_detail_texture +#define GL_SGIS_detail_texture 1 + +typedef void (GLAPIENTRY * PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat* points); +typedef void (GLAPIENTRY * PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat* points); + +#define glDetailTexFuncSGIS GLEW_GET_FUN(__glewDetailTexFuncSGIS) +#define glGetDetailTexFuncSGIS GLEW_GET_FUN(__glewGetDetailTexFuncSGIS) + +#define GLEW_SGIS_detail_texture GLEW_GET_VAR(__GLEW_SGIS_detail_texture) + +#endif /* GL_SGIS_detail_texture */ + +/* -------------------------- GL_SGIS_fog_function ------------------------- */ + +#ifndef GL_SGIS_fog_function +#define GL_SGIS_fog_function 1 + +typedef void (GLAPIENTRY * PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat* points); +typedef void (GLAPIENTRY * PFNGLGETFOGFUNCSGISPROC) (GLfloat* points); + +#define glFogFuncSGIS GLEW_GET_FUN(__glewFogFuncSGIS) +#define glGetFogFuncSGIS GLEW_GET_FUN(__glewGetFogFuncSGIS) + +#define GLEW_SGIS_fog_function GLEW_GET_VAR(__GLEW_SGIS_fog_function) + +#endif /* GL_SGIS_fog_function */ + +/* ------------------------ GL_SGIS_generate_mipmap ------------------------ */ + +#ifndef GL_SGIS_generate_mipmap +#define GL_SGIS_generate_mipmap 1 + +#define GL_GENERATE_MIPMAP_SGIS 0x8191 +#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 + +#define GLEW_SGIS_generate_mipmap GLEW_GET_VAR(__GLEW_SGIS_generate_mipmap) + +#endif /* GL_SGIS_generate_mipmap */ + +/* -------------------------- GL_SGIS_multisample -------------------------- */ + +#ifndef GL_SGIS_multisample +#define GL_SGIS_multisample 1 + +#define GL_MULTISAMPLE_SGIS 0x809D +#define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F +#define GL_SAMPLE_MASK_SGIS 0x80A0 +#define GL_1PASS_SGIS 0x80A1 +#define GL_2PASS_0_SGIS 0x80A2 +#define GL_2PASS_1_SGIS 0x80A3 +#define GL_4PASS_0_SGIS 0x80A4 +#define GL_4PASS_1_SGIS 0x80A5 +#define GL_4PASS_2_SGIS 0x80A6 +#define GL_4PASS_3_SGIS 0x80A7 +#define GL_SAMPLE_BUFFERS_SGIS 0x80A8 +#define GL_SAMPLES_SGIS 0x80A9 +#define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA +#define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB +#define GL_SAMPLE_PATTERN_SGIS 0x80AC +#define GL_MULTISAMPLE_BIT_EXT 0x20000000 + +typedef void (GLAPIENTRY * PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); +typedef void (GLAPIENTRY * PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); + +#define glSampleMaskSGIS GLEW_GET_FUN(__glewSampleMaskSGIS) +#define glSamplePatternSGIS GLEW_GET_FUN(__glewSamplePatternSGIS) + +#define GLEW_SGIS_multisample GLEW_GET_VAR(__GLEW_SGIS_multisample) + +#endif /* GL_SGIS_multisample */ + +/* ------------------------- GL_SGIS_pixel_texture ------------------------- */ + +#ifndef GL_SGIS_pixel_texture +#define GL_SGIS_pixel_texture 1 + +#define GLEW_SGIS_pixel_texture GLEW_GET_VAR(__GLEW_SGIS_pixel_texture) + +#endif /* GL_SGIS_pixel_texture */ + +/* ----------------------- GL_SGIS_point_line_texgen ----------------------- */ + +#ifndef GL_SGIS_point_line_texgen +#define GL_SGIS_point_line_texgen 1 + +#define GL_EYE_DISTANCE_TO_POINT_SGIS 0x81F0 +#define GL_OBJECT_DISTANCE_TO_POINT_SGIS 0x81F1 +#define GL_EYE_DISTANCE_TO_LINE_SGIS 0x81F2 +#define GL_OBJECT_DISTANCE_TO_LINE_SGIS 0x81F3 +#define GL_EYE_POINT_SGIS 0x81F4 +#define GL_OBJECT_POINT_SGIS 0x81F5 +#define GL_EYE_LINE_SGIS 0x81F6 +#define GL_OBJECT_LINE_SGIS 0x81F7 + +#define GLEW_SGIS_point_line_texgen GLEW_GET_VAR(__GLEW_SGIS_point_line_texgen) + +#endif /* GL_SGIS_point_line_texgen */ + +/* ------------------------ GL_SGIS_sharpen_texture ------------------------ */ + +#ifndef GL_SGIS_sharpen_texture +#define GL_SGIS_sharpen_texture 1 + +typedef void (GLAPIENTRY * PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat* points); +typedef void (GLAPIENTRY * PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat* points); + +#define glGetSharpenTexFuncSGIS GLEW_GET_FUN(__glewGetSharpenTexFuncSGIS) +#define glSharpenTexFuncSGIS GLEW_GET_FUN(__glewSharpenTexFuncSGIS) + +#define GLEW_SGIS_sharpen_texture GLEW_GET_VAR(__GLEW_SGIS_sharpen_texture) + +#endif /* GL_SGIS_sharpen_texture */ + +/* --------------------------- GL_SGIS_texture4D --------------------------- */ + +#ifndef GL_SGIS_texture4D +#define GL_SGIS_texture4D 1 + +typedef void (GLAPIENTRY * PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLint border, GLenum format, GLenum type, const void* pixels); +typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLenum format, GLenum type, const void* pixels); + +#define glTexImage4DSGIS GLEW_GET_FUN(__glewTexImage4DSGIS) +#define glTexSubImage4DSGIS GLEW_GET_FUN(__glewTexSubImage4DSGIS) + +#define GLEW_SGIS_texture4D GLEW_GET_VAR(__GLEW_SGIS_texture4D) + +#endif /* GL_SGIS_texture4D */ + +/* ---------------------- GL_SGIS_texture_border_clamp --------------------- */ + +#ifndef GL_SGIS_texture_border_clamp +#define GL_SGIS_texture_border_clamp 1 + +#define GL_CLAMP_TO_BORDER_SGIS 0x812D + +#define GLEW_SGIS_texture_border_clamp GLEW_GET_VAR(__GLEW_SGIS_texture_border_clamp) + +#endif /* GL_SGIS_texture_border_clamp */ + +/* ----------------------- GL_SGIS_texture_edge_clamp ---------------------- */ + +#ifndef GL_SGIS_texture_edge_clamp +#define GL_SGIS_texture_edge_clamp 1 + +#define GL_CLAMP_TO_EDGE_SGIS 0x812F + +#define GLEW_SGIS_texture_edge_clamp GLEW_GET_VAR(__GLEW_SGIS_texture_edge_clamp) + +#endif /* GL_SGIS_texture_edge_clamp */ + +/* ------------------------ GL_SGIS_texture_filter4 ------------------------ */ + +#ifndef GL_SGIS_texture_filter4 +#define GL_SGIS_texture_filter4 1 + +typedef void (GLAPIENTRY * PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat* weights); +typedef void (GLAPIENTRY * PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat* weights); + +#define glGetTexFilterFuncSGIS GLEW_GET_FUN(__glewGetTexFilterFuncSGIS) +#define glTexFilterFuncSGIS GLEW_GET_FUN(__glewTexFilterFuncSGIS) + +#define GLEW_SGIS_texture_filter4 GLEW_GET_VAR(__GLEW_SGIS_texture_filter4) + +#endif /* GL_SGIS_texture_filter4 */ + +/* -------------------------- GL_SGIS_texture_lod -------------------------- */ + +#ifndef GL_SGIS_texture_lod +#define GL_SGIS_texture_lod 1 + +#define GL_TEXTURE_MIN_LOD_SGIS 0x813A +#define GL_TEXTURE_MAX_LOD_SGIS 0x813B +#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C +#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D + +#define GLEW_SGIS_texture_lod GLEW_GET_VAR(__GLEW_SGIS_texture_lod) + +#endif /* GL_SGIS_texture_lod */ + +/* ------------------------- GL_SGIS_texture_select ------------------------ */ + +#ifndef GL_SGIS_texture_select +#define GL_SGIS_texture_select 1 + +#define GLEW_SGIS_texture_select GLEW_GET_VAR(__GLEW_SGIS_texture_select) + +#endif /* GL_SGIS_texture_select */ + +/* ----------------------------- GL_SGIX_async ----------------------------- */ + +#ifndef GL_SGIX_async +#define GL_SGIX_async 1 + +#define GL_ASYNC_MARKER_SGIX 0x8329 + +typedef void (GLAPIENTRY * PFNGLASYNCMARKERSGIXPROC) (GLuint marker); +typedef void (GLAPIENTRY * PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); +typedef GLint (GLAPIENTRY * PFNGLFINISHASYNCSGIXPROC) (GLuint* markerp); +typedef GLuint (GLAPIENTRY * PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); +typedef GLboolean (GLAPIENTRY * PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); +typedef GLint (GLAPIENTRY * PFNGLPOLLASYNCSGIXPROC) (GLuint* markerp); + +#define glAsyncMarkerSGIX GLEW_GET_FUN(__glewAsyncMarkerSGIX) +#define glDeleteAsyncMarkersSGIX GLEW_GET_FUN(__glewDeleteAsyncMarkersSGIX) +#define glFinishAsyncSGIX GLEW_GET_FUN(__glewFinishAsyncSGIX) +#define glGenAsyncMarkersSGIX GLEW_GET_FUN(__glewGenAsyncMarkersSGIX) +#define glIsAsyncMarkerSGIX GLEW_GET_FUN(__glewIsAsyncMarkerSGIX) +#define glPollAsyncSGIX GLEW_GET_FUN(__glewPollAsyncSGIX) + +#define GLEW_SGIX_async GLEW_GET_VAR(__GLEW_SGIX_async) + +#endif /* GL_SGIX_async */ + +/* ------------------------ GL_SGIX_async_histogram ------------------------ */ + +#ifndef GL_SGIX_async_histogram +#define GL_SGIX_async_histogram 1 + +#define GL_ASYNC_HISTOGRAM_SGIX 0x832C +#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D + +#define GLEW_SGIX_async_histogram GLEW_GET_VAR(__GLEW_SGIX_async_histogram) + +#endif /* GL_SGIX_async_histogram */ + +/* -------------------------- GL_SGIX_async_pixel -------------------------- */ + +#ifndef GL_SGIX_async_pixel +#define GL_SGIX_async_pixel 1 + +#define GL_ASYNC_TEX_IMAGE_SGIX 0x835C +#define GL_ASYNC_DRAW_PIXELS_SGIX 0x835D +#define GL_ASYNC_READ_PIXELS_SGIX 0x835E +#define GL_MAX_ASYNC_TEX_IMAGE_SGIX 0x835F +#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX 0x8360 +#define GL_MAX_ASYNC_READ_PIXELS_SGIX 0x8361 + +#define GLEW_SGIX_async_pixel GLEW_GET_VAR(__GLEW_SGIX_async_pixel) + +#endif /* GL_SGIX_async_pixel */ + +/* ----------------------- GL_SGIX_blend_alpha_minmax ---------------------- */ + +#ifndef GL_SGIX_blend_alpha_minmax +#define GL_SGIX_blend_alpha_minmax 1 + +#define GL_ALPHA_MIN_SGIX 0x8320 +#define GL_ALPHA_MAX_SGIX 0x8321 + +#define GLEW_SGIX_blend_alpha_minmax GLEW_GET_VAR(__GLEW_SGIX_blend_alpha_minmax) + +#endif /* GL_SGIX_blend_alpha_minmax */ + +/* ---------------------------- GL_SGIX_clipmap ---------------------------- */ + +#ifndef GL_SGIX_clipmap +#define GL_SGIX_clipmap 1 + +#define GLEW_SGIX_clipmap GLEW_GET_VAR(__GLEW_SGIX_clipmap) + +#endif /* GL_SGIX_clipmap */ + +/* ---------------------- GL_SGIX_convolution_accuracy --------------------- */ + +#ifndef GL_SGIX_convolution_accuracy +#define GL_SGIX_convolution_accuracy 1 + +#define GL_CONVOLUTION_HINT_SGIX 0x8316 + +#define GLEW_SGIX_convolution_accuracy GLEW_GET_VAR(__GLEW_SGIX_convolution_accuracy) + +#endif /* GL_SGIX_convolution_accuracy */ + +/* ------------------------- GL_SGIX_depth_texture ------------------------- */ + +#ifndef GL_SGIX_depth_texture +#define GL_SGIX_depth_texture 1 + +#define GL_DEPTH_COMPONENT16_SGIX 0x81A5 +#define GL_DEPTH_COMPONENT24_SGIX 0x81A6 +#define GL_DEPTH_COMPONENT32_SGIX 0x81A7 + +#define GLEW_SGIX_depth_texture GLEW_GET_VAR(__GLEW_SGIX_depth_texture) + +#endif /* GL_SGIX_depth_texture */ + +/* -------------------------- GL_SGIX_flush_raster ------------------------- */ + +#ifndef GL_SGIX_flush_raster +#define GL_SGIX_flush_raster 1 + +typedef void (GLAPIENTRY * PFNGLFLUSHRASTERSGIXPROC) (void); + +#define glFlushRasterSGIX GLEW_GET_FUN(__glewFlushRasterSGIX) + +#define GLEW_SGIX_flush_raster GLEW_GET_VAR(__GLEW_SGIX_flush_raster) + +#endif /* GL_SGIX_flush_raster */ + +/* --------------------------- GL_SGIX_fog_offset -------------------------- */ + +#ifndef GL_SGIX_fog_offset +#define GL_SGIX_fog_offset 1 + +#define GL_FOG_OFFSET_SGIX 0x8198 +#define GL_FOG_OFFSET_VALUE_SGIX 0x8199 + +#define GLEW_SGIX_fog_offset GLEW_GET_VAR(__GLEW_SGIX_fog_offset) + +#endif /* GL_SGIX_fog_offset */ + +/* -------------------------- GL_SGIX_fog_texture -------------------------- */ + +#ifndef GL_SGIX_fog_texture +#define GL_SGIX_fog_texture 1 + +#define GL_TEXTURE_FOG_SGIX 0 +#define GL_FOG_PATCHY_FACTOR_SGIX 0 +#define GL_FRAGMENT_FOG_SGIX 0 + +typedef void (GLAPIENTRY * PFNGLTEXTUREFOGSGIXPROC) (GLenum pname); + +#define glTextureFogSGIX GLEW_GET_FUN(__glewTextureFogSGIX) + +#define GLEW_SGIX_fog_texture GLEW_GET_VAR(__GLEW_SGIX_fog_texture) + +#endif /* GL_SGIX_fog_texture */ + +/* ------------------- GL_SGIX_fragment_specular_lighting ------------------ */ + +#ifndef GL_SGIX_fragment_specular_lighting +#define GL_SGIX_fragment_specular_lighting 1 + +typedef void (GLAPIENTRY * PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, const GLfloat param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, const GLint param); +typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum value, GLfloat* data); +typedef void (GLAPIENTRY * PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum value, GLint* data); +typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat* data); +typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint* data); + +#define glFragmentColorMaterialSGIX GLEW_GET_FUN(__glewFragmentColorMaterialSGIX) +#define glFragmentLightModelfSGIX GLEW_GET_FUN(__glewFragmentLightModelfSGIX) +#define glFragmentLightModelfvSGIX GLEW_GET_FUN(__glewFragmentLightModelfvSGIX) +#define glFragmentLightModeliSGIX GLEW_GET_FUN(__glewFragmentLightModeliSGIX) +#define glFragmentLightModelivSGIX GLEW_GET_FUN(__glewFragmentLightModelivSGIX) +#define glFragmentLightfSGIX GLEW_GET_FUN(__glewFragmentLightfSGIX) +#define glFragmentLightfvSGIX GLEW_GET_FUN(__glewFragmentLightfvSGIX) +#define glFragmentLightiSGIX GLEW_GET_FUN(__glewFragmentLightiSGIX) +#define glFragmentLightivSGIX GLEW_GET_FUN(__glewFragmentLightivSGIX) +#define glFragmentMaterialfSGIX GLEW_GET_FUN(__glewFragmentMaterialfSGIX) +#define glFragmentMaterialfvSGIX GLEW_GET_FUN(__glewFragmentMaterialfvSGIX) +#define glFragmentMaterialiSGIX GLEW_GET_FUN(__glewFragmentMaterialiSGIX) +#define glFragmentMaterialivSGIX GLEW_GET_FUN(__glewFragmentMaterialivSGIX) +#define glGetFragmentLightfvSGIX GLEW_GET_FUN(__glewGetFragmentLightfvSGIX) +#define glGetFragmentLightivSGIX GLEW_GET_FUN(__glewGetFragmentLightivSGIX) +#define glGetFragmentMaterialfvSGIX GLEW_GET_FUN(__glewGetFragmentMaterialfvSGIX) +#define glGetFragmentMaterialivSGIX GLEW_GET_FUN(__glewGetFragmentMaterialivSGIX) + +#define GLEW_SGIX_fragment_specular_lighting GLEW_GET_VAR(__GLEW_SGIX_fragment_specular_lighting) + +#endif /* GL_SGIX_fragment_specular_lighting */ + +/* --------------------------- GL_SGIX_framezoom --------------------------- */ + +#ifndef GL_SGIX_framezoom +#define GL_SGIX_framezoom 1 + +typedef void (GLAPIENTRY * PFNGLFRAMEZOOMSGIXPROC) (GLint factor); + +#define glFrameZoomSGIX GLEW_GET_FUN(__glewFrameZoomSGIX) + +#define GLEW_SGIX_framezoom GLEW_GET_VAR(__GLEW_SGIX_framezoom) + +#endif /* GL_SGIX_framezoom */ + +/* --------------------------- GL_SGIX_interlace --------------------------- */ + +#ifndef GL_SGIX_interlace +#define GL_SGIX_interlace 1 + +#define GL_INTERLACE_SGIX 0x8094 + +#define GLEW_SGIX_interlace GLEW_GET_VAR(__GLEW_SGIX_interlace) + +#endif /* GL_SGIX_interlace */ + +/* ------------------------- GL_SGIX_ir_instrument1 ------------------------ */ + +#ifndef GL_SGIX_ir_instrument1 +#define GL_SGIX_ir_instrument1 1 + +#define GLEW_SGIX_ir_instrument1 GLEW_GET_VAR(__GLEW_SGIX_ir_instrument1) + +#endif /* GL_SGIX_ir_instrument1 */ + +/* ------------------------- GL_SGIX_list_priority ------------------------- */ + +#ifndef GL_SGIX_list_priority +#define GL_SGIX_list_priority 1 + +#define GLEW_SGIX_list_priority GLEW_GET_VAR(__GLEW_SGIX_list_priority) + +#endif /* GL_SGIX_list_priority */ + +/* ------------------------- GL_SGIX_pixel_texture ------------------------- */ + +#ifndef GL_SGIX_pixel_texture +#define GL_SGIX_pixel_texture 1 + +typedef void (GLAPIENTRY * PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); + +#define glPixelTexGenSGIX GLEW_GET_FUN(__glewPixelTexGenSGIX) + +#define GLEW_SGIX_pixel_texture GLEW_GET_VAR(__GLEW_SGIX_pixel_texture) + +#endif /* GL_SGIX_pixel_texture */ + +/* ----------------------- GL_SGIX_pixel_texture_bits ---------------------- */ + +#ifndef GL_SGIX_pixel_texture_bits +#define GL_SGIX_pixel_texture_bits 1 + +#define GLEW_SGIX_pixel_texture_bits GLEW_GET_VAR(__GLEW_SGIX_pixel_texture_bits) + +#endif /* GL_SGIX_pixel_texture_bits */ + +/* ------------------------ GL_SGIX_reference_plane ------------------------ */ + +#ifndef GL_SGIX_reference_plane +#define GL_SGIX_reference_plane 1 + +typedef void (GLAPIENTRY * PFNGLREFERENCEPLANESGIXPROC) (const GLdouble* equation); + +#define glReferencePlaneSGIX GLEW_GET_FUN(__glewReferencePlaneSGIX) + +#define GLEW_SGIX_reference_plane GLEW_GET_VAR(__GLEW_SGIX_reference_plane) + +#endif /* GL_SGIX_reference_plane */ + +/* ---------------------------- GL_SGIX_resample --------------------------- */ + +#ifndef GL_SGIX_resample +#define GL_SGIX_resample 1 + +#define GL_PACK_RESAMPLE_SGIX 0x842E +#define GL_UNPACK_RESAMPLE_SGIX 0x842F +#define GL_RESAMPLE_DECIMATE_SGIX 0x8430 +#define GL_RESAMPLE_REPLICATE_SGIX 0x8433 +#define GL_RESAMPLE_ZERO_FILL_SGIX 0x8434 + +#define GLEW_SGIX_resample GLEW_GET_VAR(__GLEW_SGIX_resample) + +#endif /* GL_SGIX_resample */ + +/* ----------------------------- GL_SGIX_shadow ---------------------------- */ + +#ifndef GL_SGIX_shadow +#define GL_SGIX_shadow 1 + +#define GL_TEXTURE_COMPARE_SGIX 0x819A +#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B +#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C +#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D + +#define GLEW_SGIX_shadow GLEW_GET_VAR(__GLEW_SGIX_shadow) + +#endif /* GL_SGIX_shadow */ + +/* ------------------------- GL_SGIX_shadow_ambient ------------------------ */ + +#ifndef GL_SGIX_shadow_ambient +#define GL_SGIX_shadow_ambient 1 + +#define GL_SHADOW_AMBIENT_SGIX 0x80BF + +#define GLEW_SGIX_shadow_ambient GLEW_GET_VAR(__GLEW_SGIX_shadow_ambient) + +#endif /* GL_SGIX_shadow_ambient */ + +/* ----------------------------- GL_SGIX_sprite ---------------------------- */ + +#ifndef GL_SGIX_sprite +#define GL_SGIX_sprite 1 + +typedef void (GLAPIENTRY * PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, GLint* params); + +#define glSpriteParameterfSGIX GLEW_GET_FUN(__glewSpriteParameterfSGIX) +#define glSpriteParameterfvSGIX GLEW_GET_FUN(__glewSpriteParameterfvSGIX) +#define glSpriteParameteriSGIX GLEW_GET_FUN(__glewSpriteParameteriSGIX) +#define glSpriteParameterivSGIX GLEW_GET_FUN(__glewSpriteParameterivSGIX) + +#define GLEW_SGIX_sprite GLEW_GET_VAR(__GLEW_SGIX_sprite) + +#endif /* GL_SGIX_sprite */ + +/* ----------------------- GL_SGIX_tag_sample_buffer ----------------------- */ + +#ifndef GL_SGIX_tag_sample_buffer +#define GL_SGIX_tag_sample_buffer 1 + +typedef void (GLAPIENTRY * PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); + +#define glTagSampleBufferSGIX GLEW_GET_FUN(__glewTagSampleBufferSGIX) + +#define GLEW_SGIX_tag_sample_buffer GLEW_GET_VAR(__GLEW_SGIX_tag_sample_buffer) + +#endif /* GL_SGIX_tag_sample_buffer */ + +/* ------------------------ GL_SGIX_texture_add_env ------------------------ */ + +#ifndef GL_SGIX_texture_add_env +#define GL_SGIX_texture_add_env 1 + +#define GLEW_SGIX_texture_add_env GLEW_GET_VAR(__GLEW_SGIX_texture_add_env) + +#endif /* GL_SGIX_texture_add_env */ + +/* -------------------- GL_SGIX_texture_coordinate_clamp ------------------- */ + +#ifndef GL_SGIX_texture_coordinate_clamp +#define GL_SGIX_texture_coordinate_clamp 1 + +#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369 +#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A +#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B + +#define GLEW_SGIX_texture_coordinate_clamp GLEW_GET_VAR(__GLEW_SGIX_texture_coordinate_clamp) + +#endif /* GL_SGIX_texture_coordinate_clamp */ + +/* ------------------------ GL_SGIX_texture_lod_bias ----------------------- */ + +#ifndef GL_SGIX_texture_lod_bias +#define GL_SGIX_texture_lod_bias 1 + +#define GLEW_SGIX_texture_lod_bias GLEW_GET_VAR(__GLEW_SGIX_texture_lod_bias) + +#endif /* GL_SGIX_texture_lod_bias */ + +/* ---------------------- GL_SGIX_texture_multi_buffer --------------------- */ + +#ifndef GL_SGIX_texture_multi_buffer +#define GL_SGIX_texture_multi_buffer 1 + +#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E + +#define GLEW_SGIX_texture_multi_buffer GLEW_GET_VAR(__GLEW_SGIX_texture_multi_buffer) + +#endif /* GL_SGIX_texture_multi_buffer */ + +/* ------------------------- GL_SGIX_texture_range ------------------------- */ + +#ifndef GL_SGIX_texture_range +#define GL_SGIX_texture_range 1 + +#define GL_RGB_SIGNED_SGIX 0x85E0 +#define GL_RGBA_SIGNED_SGIX 0x85E1 +#define GL_ALPHA_SIGNED_SGIX 0x85E2 +#define GL_LUMINANCE_SIGNED_SGIX 0x85E3 +#define GL_INTENSITY_SIGNED_SGIX 0x85E4 +#define GL_LUMINANCE_ALPHA_SIGNED_SGIX 0x85E5 +#define GL_RGB16_SIGNED_SGIX 0x85E6 +#define GL_RGBA16_SIGNED_SGIX 0x85E7 +#define GL_ALPHA16_SIGNED_SGIX 0x85E8 +#define GL_LUMINANCE16_SIGNED_SGIX 0x85E9 +#define GL_INTENSITY16_SIGNED_SGIX 0x85EA +#define GL_LUMINANCE16_ALPHA16_SIGNED_SGIX 0x85EB +#define GL_RGB_EXTENDED_RANGE_SGIX 0x85EC +#define GL_RGBA_EXTENDED_RANGE_SGIX 0x85ED +#define GL_ALPHA_EXTENDED_RANGE_SGIX 0x85EE +#define GL_LUMINANCE_EXTENDED_RANGE_SGIX 0x85EF +#define GL_INTENSITY_EXTENDED_RANGE_SGIX 0x85F0 +#define GL_LUMINANCE_ALPHA_EXTENDED_RANGE_SGIX 0x85F1 +#define GL_RGB16_EXTENDED_RANGE_SGIX 0x85F2 +#define GL_RGBA16_EXTENDED_RANGE_SGIX 0x85F3 +#define GL_ALPHA16_EXTENDED_RANGE_SGIX 0x85F4 +#define GL_LUMINANCE16_EXTENDED_RANGE_SGIX 0x85F5 +#define GL_INTENSITY16_EXTENDED_RANGE_SGIX 0x85F6 +#define GL_LUMINANCE16_ALPHA16_EXTENDED_RANGE_SGIX 0x85F7 +#define GL_MIN_LUMINANCE_SGIS 0x85F8 +#define GL_MAX_LUMINANCE_SGIS 0x85F9 +#define GL_MIN_INTENSITY_SGIS 0x85FA +#define GL_MAX_INTENSITY_SGIS 0x85FB + +#define GLEW_SGIX_texture_range GLEW_GET_VAR(__GLEW_SGIX_texture_range) + +#endif /* GL_SGIX_texture_range */ + +/* ----------------------- GL_SGIX_texture_scale_bias ---------------------- */ + +#ifndef GL_SGIX_texture_scale_bias +#define GL_SGIX_texture_scale_bias 1 + +#define GL_POST_TEXTURE_FILTER_BIAS_SGIX 0x8179 +#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A +#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B +#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C + +#define GLEW_SGIX_texture_scale_bias GLEW_GET_VAR(__GLEW_SGIX_texture_scale_bias) + +#endif /* GL_SGIX_texture_scale_bias */ + +/* ------------------------- GL_SGIX_vertex_preclip ------------------------ */ + +#ifndef GL_SGIX_vertex_preclip +#define GL_SGIX_vertex_preclip 1 + +#define GL_VERTEX_PRECLIP_SGIX 0x83EE +#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF + +#define GLEW_SGIX_vertex_preclip GLEW_GET_VAR(__GLEW_SGIX_vertex_preclip) + +#endif /* GL_SGIX_vertex_preclip */ + +/* ---------------------- GL_SGIX_vertex_preclip_hint ---------------------- */ + +#ifndef GL_SGIX_vertex_preclip_hint +#define GL_SGIX_vertex_preclip_hint 1 + +#define GL_VERTEX_PRECLIP_SGIX 0x83EE +#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF + +#define GLEW_SGIX_vertex_preclip_hint GLEW_GET_VAR(__GLEW_SGIX_vertex_preclip_hint) + +#endif /* GL_SGIX_vertex_preclip_hint */ + +/* ----------------------------- GL_SGIX_ycrcb ----------------------------- */ + +#ifndef GL_SGIX_ycrcb +#define GL_SGIX_ycrcb 1 + +#define GLEW_SGIX_ycrcb GLEW_GET_VAR(__GLEW_SGIX_ycrcb) + +#endif /* GL_SGIX_ycrcb */ + +/* -------------------------- GL_SGI_color_matrix -------------------------- */ + +#ifndef GL_SGI_color_matrix +#define GL_SGI_color_matrix 1 + +#define GL_COLOR_MATRIX_SGI 0x80B1 +#define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2 +#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3 +#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4 +#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5 +#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6 +#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7 +#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8 +#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9 +#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB + +#define GLEW_SGI_color_matrix GLEW_GET_VAR(__GLEW_SGI_color_matrix) + +#endif /* GL_SGI_color_matrix */ + +/* --------------------------- GL_SGI_color_table -------------------------- */ + +#ifndef GL_SGI_color_table +#define GL_SGI_color_table 1 + +#define GL_COLOR_TABLE_SGI 0x80D0 +#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1 +#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2 +#define GL_PROXY_COLOR_TABLE_SGI 0x80D3 +#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4 +#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5 +#define GL_COLOR_TABLE_SCALE_SGI 0x80D6 +#define GL_COLOR_TABLE_BIAS_SGI 0x80D7 +#define GL_COLOR_TABLE_FORMAT_SGI 0x80D8 +#define GL_COLOR_TABLE_WIDTH_SGI 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF + +typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat* params); +typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint* params); +typedef void (GLAPIENTRY * PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* table); +typedef void (GLAPIENTRY * PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat* params); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint* params); +typedef void (GLAPIENTRY * PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, void* table); + +#define glColorTableParameterfvSGI GLEW_GET_FUN(__glewColorTableParameterfvSGI) +#define glColorTableParameterivSGI GLEW_GET_FUN(__glewColorTableParameterivSGI) +#define glColorTableSGI GLEW_GET_FUN(__glewColorTableSGI) +#define glCopyColorTableSGI GLEW_GET_FUN(__glewCopyColorTableSGI) +#define glGetColorTableParameterfvSGI GLEW_GET_FUN(__glewGetColorTableParameterfvSGI) +#define glGetColorTableParameterivSGI GLEW_GET_FUN(__glewGetColorTableParameterivSGI) +#define glGetColorTableSGI GLEW_GET_FUN(__glewGetColorTableSGI) + +#define GLEW_SGI_color_table GLEW_GET_VAR(__GLEW_SGI_color_table) + +#endif /* GL_SGI_color_table */ + +/* ----------------------- GL_SGI_texture_color_table ---------------------- */ + +#ifndef GL_SGI_texture_color_table +#define GL_SGI_texture_color_table 1 + +#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC +#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD + +#define GLEW_SGI_texture_color_table GLEW_GET_VAR(__GLEW_SGI_texture_color_table) + +#endif /* GL_SGI_texture_color_table */ + +/* ------------------------- GL_SUNX_constant_data ------------------------- */ + +#ifndef GL_SUNX_constant_data +#define GL_SUNX_constant_data 1 + +#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5 +#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6 + +typedef void (GLAPIENTRY * PFNGLFINISHTEXTURESUNXPROC) (void); + +#define glFinishTextureSUNX GLEW_GET_FUN(__glewFinishTextureSUNX) + +#define GLEW_SUNX_constant_data GLEW_GET_VAR(__GLEW_SUNX_constant_data) + +#endif /* GL_SUNX_constant_data */ + +/* -------------------- GL_SUN_convolution_border_modes -------------------- */ + +#ifndef GL_SUN_convolution_border_modes +#define GL_SUN_convolution_border_modes 1 + +#define GL_WRAP_BORDER_SUN 0x81D4 + +#define GLEW_SUN_convolution_border_modes GLEW_GET_VAR(__GLEW_SUN_convolution_border_modes) + +#endif /* GL_SUN_convolution_border_modes */ + +/* -------------------------- GL_SUN_global_alpha -------------------------- */ + +#ifndef GL_SUN_global_alpha +#define GL_SUN_global_alpha 1 + +#define GL_GLOBAL_ALPHA_SUN 0x81D9 +#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA + +typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); +typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); +typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); +typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); +typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); +typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); +typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); +typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); + +#define glGlobalAlphaFactorbSUN GLEW_GET_FUN(__glewGlobalAlphaFactorbSUN) +#define glGlobalAlphaFactordSUN GLEW_GET_FUN(__glewGlobalAlphaFactordSUN) +#define glGlobalAlphaFactorfSUN GLEW_GET_FUN(__glewGlobalAlphaFactorfSUN) +#define glGlobalAlphaFactoriSUN GLEW_GET_FUN(__glewGlobalAlphaFactoriSUN) +#define glGlobalAlphaFactorsSUN GLEW_GET_FUN(__glewGlobalAlphaFactorsSUN) +#define glGlobalAlphaFactorubSUN GLEW_GET_FUN(__glewGlobalAlphaFactorubSUN) +#define glGlobalAlphaFactoruiSUN GLEW_GET_FUN(__glewGlobalAlphaFactoruiSUN) +#define glGlobalAlphaFactorusSUN GLEW_GET_FUN(__glewGlobalAlphaFactorusSUN) + +#define GLEW_SUN_global_alpha GLEW_GET_VAR(__GLEW_SUN_global_alpha) + +#endif /* GL_SUN_global_alpha */ + +/* --------------------------- GL_SUN_mesh_array --------------------------- */ + +#ifndef GL_SUN_mesh_array +#define GL_SUN_mesh_array 1 + +#define GL_QUAD_MESH_SUN 0x8614 +#define GL_TRIANGLE_MESH_SUN 0x8615 + +#define GLEW_SUN_mesh_array GLEW_GET_VAR(__GLEW_SUN_mesh_array) + +#endif /* GL_SUN_mesh_array */ + +/* ------------------------ GL_SUN_read_video_pixels ----------------------- */ + +#ifndef GL_SUN_read_video_pixels +#define GL_SUN_read_video_pixels 1 + +typedef void (GLAPIENTRY * PFNGLREADVIDEOPIXELSSUNPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels); + +#define glReadVideoPixelsSUN GLEW_GET_FUN(__glewReadVideoPixelsSUN) + +#define GLEW_SUN_read_video_pixels GLEW_GET_VAR(__GLEW_SUN_read_video_pixels) + +#endif /* GL_SUN_read_video_pixels */ + +/* --------------------------- GL_SUN_slice_accum -------------------------- */ + +#ifndef GL_SUN_slice_accum +#define GL_SUN_slice_accum 1 + +#define GL_SLICE_ACCUM_SUN 0x85CC + +#define GLEW_SUN_slice_accum GLEW_GET_VAR(__GLEW_SUN_slice_accum) + +#endif /* GL_SUN_slice_accum */ + +/* -------------------------- GL_SUN_triangle_list ------------------------- */ + +#ifndef GL_SUN_triangle_list +#define GL_SUN_triangle_list 1 + +#define GL_RESTART_SUN 0x01 +#define GL_REPLACE_MIDDLE_SUN 0x02 +#define GL_REPLACE_OLDEST_SUN 0x03 +#define GL_TRIANGLE_LIST_SUN 0x81D7 +#define GL_REPLACEMENT_CODE_SUN 0x81D8 +#define GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0 +#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1 +#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2 +#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3 +#define GL_R1UI_V3F_SUN 0x85C4 +#define GL_R1UI_C4UB_V3F_SUN 0x85C5 +#define GL_R1UI_C3F_V3F_SUN 0x85C6 +#define GL_R1UI_N3F_V3F_SUN 0x85C7 +#define GL_R1UI_C4F_N3F_V3F_SUN 0x85C8 +#define GL_R1UI_T2F_V3F_SUN 0x85C9 +#define GL_R1UI_T2F_N3F_V3F_SUN 0x85CA +#define GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB + +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const void* pointer); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte* code); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint* code); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort* code); + +#define glReplacementCodePointerSUN GLEW_GET_FUN(__glewReplacementCodePointerSUN) +#define glReplacementCodeubSUN GLEW_GET_FUN(__glewReplacementCodeubSUN) +#define glReplacementCodeubvSUN GLEW_GET_FUN(__glewReplacementCodeubvSUN) +#define glReplacementCodeuiSUN GLEW_GET_FUN(__glewReplacementCodeuiSUN) +#define glReplacementCodeuivSUN GLEW_GET_FUN(__glewReplacementCodeuivSUN) +#define glReplacementCodeusSUN GLEW_GET_FUN(__glewReplacementCodeusSUN) +#define glReplacementCodeusvSUN GLEW_GET_FUN(__glewReplacementCodeusvSUN) + +#define GLEW_SUN_triangle_list GLEW_GET_VAR(__GLEW_SUN_triangle_list) + +#endif /* GL_SUN_triangle_list */ + +/* ----------------------------- GL_SUN_vertex ----------------------------- */ + +#ifndef GL_SUN_vertex +#define GL_SUN_vertex 1 + +typedef void (GLAPIENTRY * PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat* c, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* c, const GLfloat *n, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte* c, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte* c, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* n, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *c, const GLfloat *v); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint* rc, const GLubyte *c, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *n, const GLfloat *v); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *tc, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat *c, const GLfloat *v); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat* tc, const GLubyte *c, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat *n, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat *v); +typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat* tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat* tc, const GLfloat *v); + +#define glColor3fVertex3fSUN GLEW_GET_FUN(__glewColor3fVertex3fSUN) +#define glColor3fVertex3fvSUN GLEW_GET_FUN(__glewColor3fVertex3fvSUN) +#define glColor4fNormal3fVertex3fSUN GLEW_GET_FUN(__glewColor4fNormal3fVertex3fSUN) +#define glColor4fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewColor4fNormal3fVertex3fvSUN) +#define glColor4ubVertex2fSUN GLEW_GET_FUN(__glewColor4ubVertex2fSUN) +#define glColor4ubVertex2fvSUN GLEW_GET_FUN(__glewColor4ubVertex2fvSUN) +#define glColor4ubVertex3fSUN GLEW_GET_FUN(__glewColor4ubVertex3fSUN) +#define glColor4ubVertex3fvSUN GLEW_GET_FUN(__glewColor4ubVertex3fvSUN) +#define glNormal3fVertex3fSUN GLEW_GET_FUN(__glewNormal3fVertex3fSUN) +#define glNormal3fVertex3fvSUN GLEW_GET_FUN(__glewNormal3fVertex3fvSUN) +#define glReplacementCodeuiColor3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiColor3fVertex3fSUN) +#define glReplacementCodeuiColor3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiColor3fVertex3fvSUN) +#define glReplacementCodeuiColor4fNormal3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiColor4fNormal3fVertex3fSUN) +#define glReplacementCodeuiColor4fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiColor4fNormal3fVertex3fvSUN) +#define glReplacementCodeuiColor4ubVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiColor4ubVertex3fSUN) +#define glReplacementCodeuiColor4ubVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiColor4ubVertex3fvSUN) +#define glReplacementCodeuiNormal3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiNormal3fVertex3fSUN) +#define glReplacementCodeuiNormal3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiNormal3fVertex3fvSUN) +#define glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN) +#define glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN) +#define glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fNormal3fVertex3fSUN) +#define glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN) +#define glReplacementCodeuiTexCoord2fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fVertex3fSUN) +#define glReplacementCodeuiTexCoord2fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fVertex3fvSUN) +#define glReplacementCodeuiVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiVertex3fSUN) +#define glReplacementCodeuiVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiVertex3fvSUN) +#define glTexCoord2fColor3fVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fColor3fVertex3fSUN) +#define glTexCoord2fColor3fVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fColor3fVertex3fvSUN) +#define glTexCoord2fColor4fNormal3fVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fColor4fNormal3fVertex3fSUN) +#define glTexCoord2fColor4fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fColor4fNormal3fVertex3fvSUN) +#define glTexCoord2fColor4ubVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fColor4ubVertex3fSUN) +#define glTexCoord2fColor4ubVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fColor4ubVertex3fvSUN) +#define glTexCoord2fNormal3fVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fNormal3fVertex3fSUN) +#define glTexCoord2fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fNormal3fVertex3fvSUN) +#define glTexCoord2fVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fVertex3fSUN) +#define glTexCoord2fVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fVertex3fvSUN) +#define glTexCoord4fColor4fNormal3fVertex4fSUN GLEW_GET_FUN(__glewTexCoord4fColor4fNormal3fVertex4fSUN) +#define glTexCoord4fColor4fNormal3fVertex4fvSUN GLEW_GET_FUN(__glewTexCoord4fColor4fNormal3fVertex4fvSUN) +#define glTexCoord4fVertex4fSUN GLEW_GET_FUN(__glewTexCoord4fVertex4fSUN) +#define glTexCoord4fVertex4fvSUN GLEW_GET_FUN(__glewTexCoord4fVertex4fvSUN) + +#define GLEW_SUN_vertex GLEW_GET_VAR(__GLEW_SUN_vertex) + +#endif /* GL_SUN_vertex */ + +/* -------------------------- GL_WIN_phong_shading ------------------------- */ + +#ifndef GL_WIN_phong_shading +#define GL_WIN_phong_shading 1 + +#define GL_PHONG_WIN 0x80EA +#define GL_PHONG_HINT_WIN 0x80EB + +#define GLEW_WIN_phong_shading GLEW_GET_VAR(__GLEW_WIN_phong_shading) + +#endif /* GL_WIN_phong_shading */ + +/* -------------------------- GL_WIN_specular_fog -------------------------- */ + +#ifndef GL_WIN_specular_fog +#define GL_WIN_specular_fog 1 + +#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC + +#define GLEW_WIN_specular_fog GLEW_GET_VAR(__GLEW_WIN_specular_fog) + +#endif /* GL_WIN_specular_fog */ + +/* ---------------------------- GL_WIN_swap_hint --------------------------- */ + +#ifndef GL_WIN_swap_hint +#define GL_WIN_swap_hint 1 + +typedef void (GLAPIENTRY * PFNGLADDSWAPHINTRECTWINPROC) (GLint x, GLint y, GLsizei width, GLsizei height); + +#define glAddSwapHintRectWIN GLEW_GET_FUN(__glewAddSwapHintRectWIN) + +#define GLEW_WIN_swap_hint GLEW_GET_VAR(__GLEW_WIN_swap_hint) + +#endif /* GL_WIN_swap_hint */ + +/* ------------------------------------------------------------------------- */ + +#if defined(GLEW_MX) && defined(_WIN32) +#define GLEW_FUN_EXPORT +#else +#define GLEW_FUN_EXPORT GLEWAPI +#endif /* GLEW_MX */ + +#if defined(GLEW_MX) +#define GLEW_VAR_EXPORT +#else +#define GLEW_VAR_EXPORT GLEWAPI +#endif /* GLEW_MX */ + +#if defined(GLEW_MX) && defined(_WIN32) +struct GLEWContextStruct +{ +#endif /* GLEW_MX */ + +GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE3DPROC __glewCopyTexSubImage3D; +GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTSPROC __glewDrawRangeElements; +GLEW_FUN_EXPORT PFNGLTEXIMAGE3DPROC __glewTexImage3D; +GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE3DPROC __glewTexSubImage3D; + +GLEW_FUN_EXPORT PFNGLACTIVETEXTUREPROC __glewActiveTexture; +GLEW_FUN_EXPORT PFNGLCLIENTACTIVETEXTUREPROC __glewClientActiveTexture; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE1DPROC __glewCompressedTexImage1D; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE2DPROC __glewCompressedTexImage2D; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DPROC __glewCompressedTexImage3D; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC __glewCompressedTexSubImage1D; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC __glewCompressedTexSubImage2D; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC __glewCompressedTexSubImage3D; +GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDTEXIMAGEPROC __glewGetCompressedTexImage; +GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXDPROC __glewLoadTransposeMatrixd; +GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXFPROC __glewLoadTransposeMatrixf; +GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXDPROC __glewMultTransposeMatrixd; +GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXFPROC __glewMultTransposeMatrixf; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DPROC __glewMultiTexCoord1d; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DVPROC __glewMultiTexCoord1dv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FPROC __glewMultiTexCoord1f; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FVPROC __glewMultiTexCoord1fv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IPROC __glewMultiTexCoord1i; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IVPROC __glewMultiTexCoord1iv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SPROC __glewMultiTexCoord1s; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SVPROC __glewMultiTexCoord1sv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DPROC __glewMultiTexCoord2d; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DVPROC __glewMultiTexCoord2dv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FPROC __glewMultiTexCoord2f; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FVPROC __glewMultiTexCoord2fv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IPROC __glewMultiTexCoord2i; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IVPROC __glewMultiTexCoord2iv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SPROC __glewMultiTexCoord2s; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SVPROC __glewMultiTexCoord2sv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DPROC __glewMultiTexCoord3d; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DVPROC __glewMultiTexCoord3dv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FPROC __glewMultiTexCoord3f; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FVPROC __glewMultiTexCoord3fv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IPROC __glewMultiTexCoord3i; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IVPROC __glewMultiTexCoord3iv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SPROC __glewMultiTexCoord3s; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SVPROC __glewMultiTexCoord3sv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DPROC __glewMultiTexCoord4d; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DVPROC __glewMultiTexCoord4dv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FPROC __glewMultiTexCoord4f; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FVPROC __glewMultiTexCoord4fv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IPROC __glewMultiTexCoord4i; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IVPROC __glewMultiTexCoord4iv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SPROC __glewMultiTexCoord4s; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SVPROC __glewMultiTexCoord4sv; +GLEW_FUN_EXPORT PFNGLSAMPLECOVERAGEPROC __glewSampleCoverage; + +GLEW_FUN_EXPORT PFNGLBLENDCOLORPROC __glewBlendColor; +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONPROC __glewBlendEquation; +GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEPROC __glewBlendFuncSeparate; +GLEW_FUN_EXPORT PFNGLFOGCOORDPOINTERPROC __glewFogCoordPointer; +GLEW_FUN_EXPORT PFNGLFOGCOORDDPROC __glewFogCoordd; +GLEW_FUN_EXPORT PFNGLFOGCOORDDVPROC __glewFogCoorddv; +GLEW_FUN_EXPORT PFNGLFOGCOORDFPROC __glewFogCoordf; +GLEW_FUN_EXPORT PFNGLFOGCOORDFVPROC __glewFogCoordfv; +GLEW_FUN_EXPORT PFNGLMULTIDRAWARRAYSPROC __glewMultiDrawArrays; +GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSPROC __glewMultiDrawElements; +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFPROC __glewPointParameterf; +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFVPROC __glewPointParameterfv; +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERIPROC __glewPointParameteri; +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERIVPROC __glewPointParameteriv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BPROC __glewSecondaryColor3b; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BVPROC __glewSecondaryColor3bv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DPROC __glewSecondaryColor3d; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DVPROC __glewSecondaryColor3dv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FPROC __glewSecondaryColor3f; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FVPROC __glewSecondaryColor3fv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IPROC __glewSecondaryColor3i; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IVPROC __glewSecondaryColor3iv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SPROC __glewSecondaryColor3s; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SVPROC __glewSecondaryColor3sv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBPROC __glewSecondaryColor3ub; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBVPROC __glewSecondaryColor3ubv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIPROC __glewSecondaryColor3ui; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIVPROC __glewSecondaryColor3uiv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USPROC __glewSecondaryColor3us; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USVPROC __glewSecondaryColor3usv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLORPOINTERPROC __glewSecondaryColorPointer; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2DPROC __glewWindowPos2d; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2DVPROC __glewWindowPos2dv; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2FPROC __glewWindowPos2f; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2FVPROC __glewWindowPos2fv; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2IPROC __glewWindowPos2i; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2IVPROC __glewWindowPos2iv; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2SPROC __glewWindowPos2s; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2SVPROC __glewWindowPos2sv; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3DPROC __glewWindowPos3d; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3DVPROC __glewWindowPos3dv; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3FPROC __glewWindowPos3f; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3FVPROC __glewWindowPos3fv; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3IPROC __glewWindowPos3i; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3IVPROC __glewWindowPos3iv; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3SPROC __glewWindowPos3s; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3SVPROC __glewWindowPos3sv; + +GLEW_FUN_EXPORT PFNGLBEGINQUERYPROC __glewBeginQuery; +GLEW_FUN_EXPORT PFNGLBINDBUFFERPROC __glewBindBuffer; +GLEW_FUN_EXPORT PFNGLBUFFERDATAPROC __glewBufferData; +GLEW_FUN_EXPORT PFNGLBUFFERSUBDATAPROC __glewBufferSubData; +GLEW_FUN_EXPORT PFNGLDELETEBUFFERSPROC __glewDeleteBuffers; +GLEW_FUN_EXPORT PFNGLDELETEQUERIESPROC __glewDeleteQueries; +GLEW_FUN_EXPORT PFNGLENDQUERYPROC __glewEndQuery; +GLEW_FUN_EXPORT PFNGLGENBUFFERSPROC __glewGenBuffers; +GLEW_FUN_EXPORT PFNGLGENQUERIESPROC __glewGenQueries; +GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERIVPROC __glewGetBufferParameteriv; +GLEW_FUN_EXPORT PFNGLGETBUFFERPOINTERVPROC __glewGetBufferPointerv; +GLEW_FUN_EXPORT PFNGLGETBUFFERSUBDATAPROC __glewGetBufferSubData; +GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTIVPROC __glewGetQueryObjectiv; +GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUIVPROC __glewGetQueryObjectuiv; +GLEW_FUN_EXPORT PFNGLGETQUERYIVPROC __glewGetQueryiv; +GLEW_FUN_EXPORT PFNGLISBUFFERPROC __glewIsBuffer; +GLEW_FUN_EXPORT PFNGLISQUERYPROC __glewIsQuery; +GLEW_FUN_EXPORT PFNGLMAPBUFFERPROC __glewMapBuffer; +GLEW_FUN_EXPORT PFNGLUNMAPBUFFERPROC __glewUnmapBuffer; + +GLEW_FUN_EXPORT PFNGLATTACHSHADERPROC __glewAttachShader; +GLEW_FUN_EXPORT PFNGLBINDATTRIBLOCATIONPROC __glewBindAttribLocation; +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEPROC __glewBlendEquationSeparate; +GLEW_FUN_EXPORT PFNGLCOMPILESHADERPROC __glewCompileShader; +GLEW_FUN_EXPORT PFNGLCREATEPROGRAMPROC __glewCreateProgram; +GLEW_FUN_EXPORT PFNGLCREATESHADERPROC __glewCreateShader; +GLEW_FUN_EXPORT PFNGLDELETEPROGRAMPROC __glewDeleteProgram; +GLEW_FUN_EXPORT PFNGLDELETESHADERPROC __glewDeleteShader; +GLEW_FUN_EXPORT PFNGLDETACHSHADERPROC __glewDetachShader; +GLEW_FUN_EXPORT PFNGLDISABLEVERTEXATTRIBARRAYPROC __glewDisableVertexAttribArray; +GLEW_FUN_EXPORT PFNGLDRAWBUFFERSPROC __glewDrawBuffers; +GLEW_FUN_EXPORT PFNGLENABLEVERTEXATTRIBARRAYPROC __glewEnableVertexAttribArray; +GLEW_FUN_EXPORT PFNGLGETACTIVEATTRIBPROC __glewGetActiveAttrib; +GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMPROC __glewGetActiveUniform; +GLEW_FUN_EXPORT PFNGLGETATTACHEDSHADERSPROC __glewGetAttachedShaders; +GLEW_FUN_EXPORT PFNGLGETATTRIBLOCATIONPROC __glewGetAttribLocation; +GLEW_FUN_EXPORT PFNGLGETPROGRAMINFOLOGPROC __glewGetProgramInfoLog; +GLEW_FUN_EXPORT PFNGLGETPROGRAMIVPROC __glewGetProgramiv; +GLEW_FUN_EXPORT PFNGLGETSHADERINFOLOGPROC __glewGetShaderInfoLog; +GLEW_FUN_EXPORT PFNGLGETSHADERSOURCEPROC __glewGetShaderSource; +GLEW_FUN_EXPORT PFNGLGETSHADERIVPROC __glewGetShaderiv; +GLEW_FUN_EXPORT PFNGLGETUNIFORMLOCATIONPROC __glewGetUniformLocation; +GLEW_FUN_EXPORT PFNGLGETUNIFORMFVPROC __glewGetUniformfv; +GLEW_FUN_EXPORT PFNGLGETUNIFORMIVPROC __glewGetUniformiv; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBPOINTERVPROC __glewGetVertexAttribPointerv; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBDVPROC __glewGetVertexAttribdv; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBFVPROC __glewGetVertexAttribfv; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIVPROC __glewGetVertexAttribiv; +GLEW_FUN_EXPORT PFNGLISPROGRAMPROC __glewIsProgram; +GLEW_FUN_EXPORT PFNGLISSHADERPROC __glewIsShader; +GLEW_FUN_EXPORT PFNGLLINKPROGRAMPROC __glewLinkProgram; +GLEW_FUN_EXPORT PFNGLSHADERSOURCEPROC __glewShaderSource; +GLEW_FUN_EXPORT PFNGLSTENCILFUNCSEPARATEPROC __glewStencilFuncSeparate; +GLEW_FUN_EXPORT PFNGLSTENCILMASKSEPARATEPROC __glewStencilMaskSeparate; +GLEW_FUN_EXPORT PFNGLSTENCILOPSEPARATEPROC __glewStencilOpSeparate; +GLEW_FUN_EXPORT PFNGLUNIFORM1FPROC __glewUniform1f; +GLEW_FUN_EXPORT PFNGLUNIFORM1FVPROC __glewUniform1fv; +GLEW_FUN_EXPORT PFNGLUNIFORM1IPROC __glewUniform1i; +GLEW_FUN_EXPORT PFNGLUNIFORM1IVPROC __glewUniform1iv; +GLEW_FUN_EXPORT PFNGLUNIFORM2FPROC __glewUniform2f; +GLEW_FUN_EXPORT PFNGLUNIFORM2FVPROC __glewUniform2fv; +GLEW_FUN_EXPORT PFNGLUNIFORM2IPROC __glewUniform2i; +GLEW_FUN_EXPORT PFNGLUNIFORM2IVPROC __glewUniform2iv; +GLEW_FUN_EXPORT PFNGLUNIFORM3FPROC __glewUniform3f; +GLEW_FUN_EXPORT PFNGLUNIFORM3FVPROC __glewUniform3fv; +GLEW_FUN_EXPORT PFNGLUNIFORM3IPROC __glewUniform3i; +GLEW_FUN_EXPORT PFNGLUNIFORM3IVPROC __glewUniform3iv; +GLEW_FUN_EXPORT PFNGLUNIFORM4FPROC __glewUniform4f; +GLEW_FUN_EXPORT PFNGLUNIFORM4FVPROC __glewUniform4fv; +GLEW_FUN_EXPORT PFNGLUNIFORM4IPROC __glewUniform4i; +GLEW_FUN_EXPORT PFNGLUNIFORM4IVPROC __glewUniform4iv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2FVPROC __glewUniformMatrix2fv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3FVPROC __glewUniformMatrix3fv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4FVPROC __glewUniformMatrix4fv; +GLEW_FUN_EXPORT PFNGLUSEPROGRAMPROC __glewUseProgram; +GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMPROC __glewValidateProgram; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DPROC __glewVertexAttrib1d; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DVPROC __glewVertexAttrib1dv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FPROC __glewVertexAttrib1f; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FVPROC __glewVertexAttrib1fv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SPROC __glewVertexAttrib1s; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SVPROC __glewVertexAttrib1sv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DPROC __glewVertexAttrib2d; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DVPROC __glewVertexAttrib2dv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FPROC __glewVertexAttrib2f; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FVPROC __glewVertexAttrib2fv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SPROC __glewVertexAttrib2s; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SVPROC __glewVertexAttrib2sv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DPROC __glewVertexAttrib3d; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DVPROC __glewVertexAttrib3dv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FPROC __glewVertexAttrib3f; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FVPROC __glewVertexAttrib3fv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SPROC __glewVertexAttrib3s; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SVPROC __glewVertexAttrib3sv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NBVPROC __glewVertexAttrib4Nbv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NIVPROC __glewVertexAttrib4Niv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NSVPROC __glewVertexAttrib4Nsv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBPROC __glewVertexAttrib4Nub; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBVPROC __glewVertexAttrib4Nubv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUIVPROC __glewVertexAttrib4Nuiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUSVPROC __glewVertexAttrib4Nusv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4BVPROC __glewVertexAttrib4bv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DPROC __glewVertexAttrib4d; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DVPROC __glewVertexAttrib4dv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FPROC __glewVertexAttrib4f; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FVPROC __glewVertexAttrib4fv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4IVPROC __glewVertexAttrib4iv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SPROC __glewVertexAttrib4s; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SVPROC __glewVertexAttrib4sv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBVPROC __glewVertexAttrib4ubv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UIVPROC __glewVertexAttrib4uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4USVPROC __glewVertexAttrib4usv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBPOINTERPROC __glewVertexAttribPointer; + +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X3FVPROC __glewUniformMatrix2x3fv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X4FVPROC __glewUniformMatrix2x4fv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X2FVPROC __glewUniformMatrix3x2fv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X4FVPROC __glewUniformMatrix3x4fv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X2FVPROC __glewUniformMatrix4x2fv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X3FVPROC __glewUniformMatrix4x3fv; + +GLEW_FUN_EXPORT PFNGLBEGINCONDITIONALRENDERPROC __glewBeginConditionalRender; +GLEW_FUN_EXPORT PFNGLBEGINTRANSFORMFEEDBACKPROC __glewBeginTransformFeedback; +GLEW_FUN_EXPORT PFNGLBINDFRAGDATALOCATIONPROC __glewBindFragDataLocation; +GLEW_FUN_EXPORT PFNGLCLAMPCOLORPROC __glewClampColor; +GLEW_FUN_EXPORT PFNGLCLEARBUFFERFIPROC __glewClearBufferfi; +GLEW_FUN_EXPORT PFNGLCLEARBUFFERFVPROC __glewClearBufferfv; +GLEW_FUN_EXPORT PFNGLCLEARBUFFERIVPROC __glewClearBufferiv; +GLEW_FUN_EXPORT PFNGLCLEARBUFFERUIVPROC __glewClearBufferuiv; +GLEW_FUN_EXPORT PFNGLCOLORMASKIPROC __glewColorMaski; +GLEW_FUN_EXPORT PFNGLDISABLEIPROC __glewDisablei; +GLEW_FUN_EXPORT PFNGLENABLEIPROC __glewEnablei; +GLEW_FUN_EXPORT PFNGLENDCONDITIONALRENDERPROC __glewEndConditionalRender; +GLEW_FUN_EXPORT PFNGLENDTRANSFORMFEEDBACKPROC __glewEndTransformFeedback; +GLEW_FUN_EXPORT PFNGLGETBOOLEANI_VPROC __glewGetBooleani_v; +GLEW_FUN_EXPORT PFNGLGETFRAGDATALOCATIONPROC __glewGetFragDataLocation; +GLEW_FUN_EXPORT PFNGLGETSTRINGIPROC __glewGetStringi; +GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIIVPROC __glewGetTexParameterIiv; +GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIUIVPROC __glewGetTexParameterIuiv; +GLEW_FUN_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGPROC __glewGetTransformFeedbackVarying; +GLEW_FUN_EXPORT PFNGLGETUNIFORMUIVPROC __glewGetUniformuiv; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIIVPROC __glewGetVertexAttribIiv; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIUIVPROC __glewGetVertexAttribIuiv; +GLEW_FUN_EXPORT PFNGLISENABLEDIPROC __glewIsEnabledi; +GLEW_FUN_EXPORT PFNGLTEXPARAMETERIIVPROC __glewTexParameterIiv; +GLEW_FUN_EXPORT PFNGLTEXPARAMETERIUIVPROC __glewTexParameterIuiv; +GLEW_FUN_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSPROC __glewTransformFeedbackVaryings; +GLEW_FUN_EXPORT PFNGLUNIFORM1UIPROC __glewUniform1ui; +GLEW_FUN_EXPORT PFNGLUNIFORM1UIVPROC __glewUniform1uiv; +GLEW_FUN_EXPORT PFNGLUNIFORM2UIPROC __glewUniform2ui; +GLEW_FUN_EXPORT PFNGLUNIFORM2UIVPROC __glewUniform2uiv; +GLEW_FUN_EXPORT PFNGLUNIFORM3UIPROC __glewUniform3ui; +GLEW_FUN_EXPORT PFNGLUNIFORM3UIVPROC __glewUniform3uiv; +GLEW_FUN_EXPORT PFNGLUNIFORM4UIPROC __glewUniform4ui; +GLEW_FUN_EXPORT PFNGLUNIFORM4UIVPROC __glewUniform4uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1IPROC __glewVertexAttribI1i; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1IVPROC __glewVertexAttribI1iv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1UIPROC __glewVertexAttribI1ui; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1UIVPROC __glewVertexAttribI1uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2IPROC __glewVertexAttribI2i; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2IVPROC __glewVertexAttribI2iv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2UIPROC __glewVertexAttribI2ui; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2UIVPROC __glewVertexAttribI2uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3IPROC __glewVertexAttribI3i; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3IVPROC __glewVertexAttribI3iv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3UIPROC __glewVertexAttribI3ui; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3UIVPROC __glewVertexAttribI3uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4BVPROC __glewVertexAttribI4bv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4IPROC __glewVertexAttribI4i; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4IVPROC __glewVertexAttribI4iv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4SVPROC __glewVertexAttribI4sv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UBVPROC __glewVertexAttribI4ubv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UIPROC __glewVertexAttribI4ui; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UIVPROC __glewVertexAttribI4uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4USVPROC __glewVertexAttribI4usv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBIPOINTERPROC __glewVertexAttribIPointer; + +GLEW_FUN_EXPORT PFNGLDRAWARRAYSINSTANCEDPROC __glewDrawArraysInstanced; +GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDPROC __glewDrawElementsInstanced; +GLEW_FUN_EXPORT PFNGLPRIMITIVERESTARTINDEXPROC __glewPrimitiveRestartIndex; +GLEW_FUN_EXPORT PFNGLTEXBUFFERPROC __glewTexBuffer; + +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREPROC __glewFramebufferTexture; +GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERI64VPROC __glewGetBufferParameteri64v; +GLEW_FUN_EXPORT PFNGLGETINTEGER64I_VPROC __glewGetInteger64i_v; + +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBDIVISORPROC __glewVertexAttribDivisor; + +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEIPROC __glewBlendEquationSeparatei; +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONIPROC __glewBlendEquationi; +GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEIPROC __glewBlendFuncSeparatei; +GLEW_FUN_EXPORT PFNGLBLENDFUNCIPROC __glewBlendFunci; +GLEW_FUN_EXPORT PFNGLMINSAMPLESHADINGPROC __glewMinSampleShading; + +GLEW_FUN_EXPORT PFNGLTBUFFERMASK3DFXPROC __glewTbufferMask3DFX; + +GLEW_FUN_EXPORT PFNGLDEBUGMESSAGECALLBACKAMDPROC __glewDebugMessageCallbackAMD; +GLEW_FUN_EXPORT PFNGLDEBUGMESSAGEENABLEAMDPROC __glewDebugMessageEnableAMD; +GLEW_FUN_EXPORT PFNGLDEBUGMESSAGEINSERTAMDPROC __glewDebugMessageInsertAMD; +GLEW_FUN_EXPORT PFNGLGETDEBUGMESSAGELOGAMDPROC __glewGetDebugMessageLogAMD; + +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONINDEXEDAMDPROC __glewBlendEquationIndexedAMD; +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC __glewBlendEquationSeparateIndexedAMD; +GLEW_FUN_EXPORT PFNGLBLENDFUNCINDEXEDAMDPROC __glewBlendFuncIndexedAMD; +GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC __glewBlendFuncSeparateIndexedAMD; + +GLEW_FUN_EXPORT PFNGLDELETENAMESAMDPROC __glewDeleteNamesAMD; +GLEW_FUN_EXPORT PFNGLGENNAMESAMDPROC __glewGenNamesAMD; +GLEW_FUN_EXPORT PFNGLISNAMEAMDPROC __glewIsNameAMD; + +GLEW_FUN_EXPORT PFNGLBEGINPERFMONITORAMDPROC __glewBeginPerfMonitorAMD; +GLEW_FUN_EXPORT PFNGLDELETEPERFMONITORSAMDPROC __glewDeletePerfMonitorsAMD; +GLEW_FUN_EXPORT PFNGLENDPERFMONITORAMDPROC __glewEndPerfMonitorAMD; +GLEW_FUN_EXPORT PFNGLGENPERFMONITORSAMDPROC __glewGenPerfMonitorsAMD; +GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERDATAAMDPROC __glewGetPerfMonitorCounterDataAMD; +GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERINFOAMDPROC __glewGetPerfMonitorCounterInfoAMD; +GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC __glewGetPerfMonitorCounterStringAMD; +GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERSAMDPROC __glewGetPerfMonitorCountersAMD; +GLEW_FUN_EXPORT PFNGLGETPERFMONITORGROUPSTRINGAMDPROC __glewGetPerfMonitorGroupStringAMD; +GLEW_FUN_EXPORT PFNGLGETPERFMONITORGROUPSAMDPROC __glewGetPerfMonitorGroupsAMD; +GLEW_FUN_EXPORT PFNGLSELECTPERFMONITORCOUNTERSAMDPROC __glewSelectPerfMonitorCountersAMD; + +GLEW_FUN_EXPORT PFNGLTESSELLATIONFACTORAMDPROC __glewTessellationFactorAMD; +GLEW_FUN_EXPORT PFNGLTESSELLATIONMODEAMDPROC __glewTessellationModeAMD; + +GLEW_FUN_EXPORT PFNGLDRAWELEMENTARRAYAPPLEPROC __glewDrawElementArrayAPPLE; +GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC __glewDrawRangeElementArrayAPPLE; +GLEW_FUN_EXPORT PFNGLELEMENTPOINTERAPPLEPROC __glewElementPointerAPPLE; +GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC __glewMultiDrawElementArrayAPPLE; +GLEW_FUN_EXPORT PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC __glewMultiDrawRangeElementArrayAPPLE; + +GLEW_FUN_EXPORT PFNGLDELETEFENCESAPPLEPROC __glewDeleteFencesAPPLE; +GLEW_FUN_EXPORT PFNGLFINISHFENCEAPPLEPROC __glewFinishFenceAPPLE; +GLEW_FUN_EXPORT PFNGLFINISHOBJECTAPPLEPROC __glewFinishObjectAPPLE; +GLEW_FUN_EXPORT PFNGLGENFENCESAPPLEPROC __glewGenFencesAPPLE; +GLEW_FUN_EXPORT PFNGLISFENCEAPPLEPROC __glewIsFenceAPPLE; +GLEW_FUN_EXPORT PFNGLSETFENCEAPPLEPROC __glewSetFenceAPPLE; +GLEW_FUN_EXPORT PFNGLTESTFENCEAPPLEPROC __glewTestFenceAPPLE; +GLEW_FUN_EXPORT PFNGLTESTOBJECTAPPLEPROC __glewTestObjectAPPLE; + +GLEW_FUN_EXPORT PFNGLBUFFERPARAMETERIAPPLEPROC __glewBufferParameteriAPPLE; +GLEW_FUN_EXPORT PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC __glewFlushMappedBufferRangeAPPLE; + +GLEW_FUN_EXPORT PFNGLGETOBJECTPARAMETERIVAPPLEPROC __glewGetObjectParameterivAPPLE; +GLEW_FUN_EXPORT PFNGLOBJECTPURGEABLEAPPLEPROC __glewObjectPurgeableAPPLE; +GLEW_FUN_EXPORT PFNGLOBJECTUNPURGEABLEAPPLEPROC __glewObjectUnpurgeableAPPLE; + +GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC __glewGetTexParameterPointervAPPLE; +GLEW_FUN_EXPORT PFNGLTEXTURERANGEAPPLEPROC __glewTextureRangeAPPLE; + +GLEW_FUN_EXPORT PFNGLBINDVERTEXARRAYAPPLEPROC __glewBindVertexArrayAPPLE; +GLEW_FUN_EXPORT PFNGLDELETEVERTEXARRAYSAPPLEPROC __glewDeleteVertexArraysAPPLE; +GLEW_FUN_EXPORT PFNGLGENVERTEXARRAYSAPPLEPROC __glewGenVertexArraysAPPLE; +GLEW_FUN_EXPORT PFNGLISVERTEXARRAYAPPLEPROC __glewIsVertexArrayAPPLE; + +GLEW_FUN_EXPORT PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC __glewFlushVertexArrayRangeAPPLE; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYPARAMETERIAPPLEPROC __glewVertexArrayParameteriAPPLE; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYRANGEAPPLEPROC __glewVertexArrayRangeAPPLE; + +GLEW_FUN_EXPORT PFNGLDISABLEVERTEXATTRIBAPPLEPROC __glewDisableVertexAttribAPPLE; +GLEW_FUN_EXPORT PFNGLENABLEVERTEXATTRIBAPPLEPROC __glewEnableVertexAttribAPPLE; +GLEW_FUN_EXPORT PFNGLISVERTEXATTRIBENABLEDAPPLEPROC __glewIsVertexAttribEnabledAPPLE; +GLEW_FUN_EXPORT PFNGLMAPVERTEXATTRIB1DAPPLEPROC __glewMapVertexAttrib1dAPPLE; +GLEW_FUN_EXPORT PFNGLMAPVERTEXATTRIB1FAPPLEPROC __glewMapVertexAttrib1fAPPLE; +GLEW_FUN_EXPORT PFNGLMAPVERTEXATTRIB2DAPPLEPROC __glewMapVertexAttrib2dAPPLE; +GLEW_FUN_EXPORT PFNGLMAPVERTEXATTRIB2FAPPLEPROC __glewMapVertexAttrib2fAPPLE; + +GLEW_FUN_EXPORT PFNGLCLEARDEPTHFPROC __glewClearDepthf; +GLEW_FUN_EXPORT PFNGLDEPTHRANGEFPROC __glewDepthRangef; +GLEW_FUN_EXPORT PFNGLGETSHADERPRECISIONFORMATPROC __glewGetShaderPrecisionFormat; +GLEW_FUN_EXPORT PFNGLRELEASESHADERCOMPILERPROC __glewReleaseShaderCompiler; +GLEW_FUN_EXPORT PFNGLSHADERBINARYPROC __glewShaderBinary; + +GLEW_FUN_EXPORT PFNGLBINDFRAGDATALOCATIONINDEXEDPROC __glewBindFragDataLocationIndexed; +GLEW_FUN_EXPORT PFNGLGETFRAGDATAINDEXPROC __glewGetFragDataIndex; + +GLEW_FUN_EXPORT PFNGLCREATESYNCFROMCLEVENTARBPROC __glewCreateSyncFromCLeventARB; + +GLEW_FUN_EXPORT PFNGLCLAMPCOLORARBPROC __glewClampColorARB; + +GLEW_FUN_EXPORT PFNGLCOPYBUFFERSUBDATAPROC __glewCopyBufferSubData; + +GLEW_FUN_EXPORT PFNGLDEBUGMESSAGECALLBACKARBPROC __glewDebugMessageCallbackARB; +GLEW_FUN_EXPORT PFNGLDEBUGMESSAGECONTROLARBPROC __glewDebugMessageControlARB; +GLEW_FUN_EXPORT PFNGLDEBUGMESSAGEINSERTARBPROC __glewDebugMessageInsertARB; +GLEW_FUN_EXPORT PFNGLGETDEBUGMESSAGELOGARBPROC __glewGetDebugMessageLogARB; + +GLEW_FUN_EXPORT PFNGLDRAWBUFFERSARBPROC __glewDrawBuffersARB; + +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEIARBPROC __glewBlendEquationSeparateiARB; +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONIARBPROC __glewBlendEquationiARB; +GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEIARBPROC __glewBlendFuncSeparateiARB; +GLEW_FUN_EXPORT PFNGLBLENDFUNCIARBPROC __glewBlendFunciARB; + +GLEW_FUN_EXPORT PFNGLDRAWELEMENTSBASEVERTEXPROC __glewDrawElementsBaseVertex; +GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC __glewDrawElementsInstancedBaseVertex; +GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC __glewDrawRangeElementsBaseVertex; +GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC __glewMultiDrawElementsBaseVertex; + +GLEW_FUN_EXPORT PFNGLDRAWARRAYSINDIRECTPROC __glewDrawArraysIndirect; +GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINDIRECTPROC __glewDrawElementsIndirect; + +GLEW_FUN_EXPORT PFNGLDRAWARRAYSINSTANCEDARBPROC __glewDrawArraysInstancedARB; +GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDARBPROC __glewDrawElementsInstancedARB; + +GLEW_FUN_EXPORT PFNGLBINDFRAMEBUFFERPROC __glewBindFramebuffer; +GLEW_FUN_EXPORT PFNGLBINDRENDERBUFFERPROC __glewBindRenderbuffer; +GLEW_FUN_EXPORT PFNGLBLITFRAMEBUFFERPROC __glewBlitFramebuffer; +GLEW_FUN_EXPORT PFNGLCHECKFRAMEBUFFERSTATUSPROC __glewCheckFramebufferStatus; +GLEW_FUN_EXPORT PFNGLDELETEFRAMEBUFFERSPROC __glewDeleteFramebuffers; +GLEW_FUN_EXPORT PFNGLDELETERENDERBUFFERSPROC __glewDeleteRenderbuffers; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERRENDERBUFFERPROC __glewFramebufferRenderbuffer; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE1DPROC __glewFramebufferTexture1D; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE2DPROC __glewFramebufferTexture2D; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE3DPROC __glewFramebufferTexture3D; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURELAYERPROC __glewFramebufferTextureLayer; +GLEW_FUN_EXPORT PFNGLGENFRAMEBUFFERSPROC __glewGenFramebuffers; +GLEW_FUN_EXPORT PFNGLGENRENDERBUFFERSPROC __glewGenRenderbuffers; +GLEW_FUN_EXPORT PFNGLGENERATEMIPMAPPROC __glewGenerateMipmap; +GLEW_FUN_EXPORT PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC __glewGetFramebufferAttachmentParameteriv; +GLEW_FUN_EXPORT PFNGLGETRENDERBUFFERPARAMETERIVPROC __glewGetRenderbufferParameteriv; +GLEW_FUN_EXPORT PFNGLISFRAMEBUFFERPROC __glewIsFramebuffer; +GLEW_FUN_EXPORT PFNGLISRENDERBUFFERPROC __glewIsRenderbuffer; +GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEPROC __glewRenderbufferStorage; +GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC __glewRenderbufferStorageMultisample; + +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREARBPROC __glewFramebufferTextureARB; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREFACEARBPROC __glewFramebufferTextureFaceARB; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURELAYERARBPROC __glewFramebufferTextureLayerARB; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERIARBPROC __glewProgramParameteriARB; + +GLEW_FUN_EXPORT PFNGLGETPROGRAMBINARYPROC __glewGetProgramBinary; +GLEW_FUN_EXPORT PFNGLPROGRAMBINARYPROC __glewProgramBinary; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERIPROC __glewProgramParameteri; + +GLEW_FUN_EXPORT PFNGLGETUNIFORMDVPROC __glewGetUniformdv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1DEXTPROC __glewProgramUniform1dEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1DVEXTPROC __glewProgramUniform1dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2DEXTPROC __glewProgramUniform2dEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2DVEXTPROC __glewProgramUniform2dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3DEXTPROC __glewProgramUniform3dEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3DVEXTPROC __glewProgramUniform3dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4DEXTPROC __glewProgramUniform4dEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4DVEXTPROC __glewProgramUniform4dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC __glewProgramUniformMatrix2dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC __glewProgramUniformMatrix2x3dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC __glewProgramUniformMatrix2x4dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC __glewProgramUniformMatrix3dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC __glewProgramUniformMatrix3x2dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC __glewProgramUniformMatrix3x4dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC __glewProgramUniformMatrix4dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC __glewProgramUniformMatrix4x2dvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC __glewProgramUniformMatrix4x3dvEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM1DPROC __glewUniform1d; +GLEW_FUN_EXPORT PFNGLUNIFORM1DVPROC __glewUniform1dv; +GLEW_FUN_EXPORT PFNGLUNIFORM2DPROC __glewUniform2d; +GLEW_FUN_EXPORT PFNGLUNIFORM2DVPROC __glewUniform2dv; +GLEW_FUN_EXPORT PFNGLUNIFORM3DPROC __glewUniform3d; +GLEW_FUN_EXPORT PFNGLUNIFORM3DVPROC __glewUniform3dv; +GLEW_FUN_EXPORT PFNGLUNIFORM4DPROC __glewUniform4d; +GLEW_FUN_EXPORT PFNGLUNIFORM4DVPROC __glewUniform4dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2DVPROC __glewUniformMatrix2dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X3DVPROC __glewUniformMatrix2x3dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X4DVPROC __glewUniformMatrix2x4dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3DVPROC __glewUniformMatrix3dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X2DVPROC __glewUniformMatrix3x2dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X4DVPROC __glewUniformMatrix3x4dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4DVPROC __glewUniformMatrix4dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X2DVPROC __glewUniformMatrix4x2dv; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X3DVPROC __glewUniformMatrix4x3dv; + +GLEW_FUN_EXPORT PFNGLCOLORSUBTABLEPROC __glewColorSubTable; +GLEW_FUN_EXPORT PFNGLCOLORTABLEPROC __glewColorTable; +GLEW_FUN_EXPORT PFNGLCOLORTABLEPARAMETERFVPROC __glewColorTableParameterfv; +GLEW_FUN_EXPORT PFNGLCOLORTABLEPARAMETERIVPROC __glewColorTableParameteriv; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONFILTER1DPROC __glewConvolutionFilter1D; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONFILTER2DPROC __glewConvolutionFilter2D; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERFPROC __glewConvolutionParameterf; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERFVPROC __glewConvolutionParameterfv; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERIPROC __glewConvolutionParameteri; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERIVPROC __glewConvolutionParameteriv; +GLEW_FUN_EXPORT PFNGLCOPYCOLORSUBTABLEPROC __glewCopyColorSubTable; +GLEW_FUN_EXPORT PFNGLCOPYCOLORTABLEPROC __glewCopyColorTable; +GLEW_FUN_EXPORT PFNGLCOPYCONVOLUTIONFILTER1DPROC __glewCopyConvolutionFilter1D; +GLEW_FUN_EXPORT PFNGLCOPYCONVOLUTIONFILTER2DPROC __glewCopyConvolutionFilter2D; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPROC __glewGetColorTable; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERFVPROC __glewGetColorTableParameterfv; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERIVPROC __glewGetColorTableParameteriv; +GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONFILTERPROC __glewGetConvolutionFilter; +GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONPARAMETERFVPROC __glewGetConvolutionParameterfv; +GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONPARAMETERIVPROC __glewGetConvolutionParameteriv; +GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPROC __glewGetHistogram; +GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPARAMETERFVPROC __glewGetHistogramParameterfv; +GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPARAMETERIVPROC __glewGetHistogramParameteriv; +GLEW_FUN_EXPORT PFNGLGETMINMAXPROC __glewGetMinmax; +GLEW_FUN_EXPORT PFNGLGETMINMAXPARAMETERFVPROC __glewGetMinmaxParameterfv; +GLEW_FUN_EXPORT PFNGLGETMINMAXPARAMETERIVPROC __glewGetMinmaxParameteriv; +GLEW_FUN_EXPORT PFNGLGETSEPARABLEFILTERPROC __glewGetSeparableFilter; +GLEW_FUN_EXPORT PFNGLHISTOGRAMPROC __glewHistogram; +GLEW_FUN_EXPORT PFNGLMINMAXPROC __glewMinmax; +GLEW_FUN_EXPORT PFNGLRESETHISTOGRAMPROC __glewResetHistogram; +GLEW_FUN_EXPORT PFNGLRESETMINMAXPROC __glewResetMinmax; +GLEW_FUN_EXPORT PFNGLSEPARABLEFILTER2DPROC __glewSeparableFilter2D; + +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBDIVISORARBPROC __glewVertexAttribDivisorARB; + +GLEW_FUN_EXPORT PFNGLFLUSHMAPPEDBUFFERRANGEPROC __glewFlushMappedBufferRange; +GLEW_FUN_EXPORT PFNGLMAPBUFFERRANGEPROC __glewMapBufferRange; + +GLEW_FUN_EXPORT PFNGLCURRENTPALETTEMATRIXARBPROC __glewCurrentPaletteMatrixARB; +GLEW_FUN_EXPORT PFNGLMATRIXINDEXPOINTERARBPROC __glewMatrixIndexPointerARB; +GLEW_FUN_EXPORT PFNGLMATRIXINDEXUBVARBPROC __glewMatrixIndexubvARB; +GLEW_FUN_EXPORT PFNGLMATRIXINDEXUIVARBPROC __glewMatrixIndexuivARB; +GLEW_FUN_EXPORT PFNGLMATRIXINDEXUSVARBPROC __glewMatrixIndexusvARB; + +GLEW_FUN_EXPORT PFNGLSAMPLECOVERAGEARBPROC __glewSampleCoverageARB; + +GLEW_FUN_EXPORT PFNGLACTIVETEXTUREARBPROC __glewActiveTextureARB; +GLEW_FUN_EXPORT PFNGLCLIENTACTIVETEXTUREARBPROC __glewClientActiveTextureARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DARBPROC __glewMultiTexCoord1dARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DVARBPROC __glewMultiTexCoord1dvARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FARBPROC __glewMultiTexCoord1fARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FVARBPROC __glewMultiTexCoord1fvARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IARBPROC __glewMultiTexCoord1iARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IVARBPROC __glewMultiTexCoord1ivARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SARBPROC __glewMultiTexCoord1sARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SVARBPROC __glewMultiTexCoord1svARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DARBPROC __glewMultiTexCoord2dARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DVARBPROC __glewMultiTexCoord2dvARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FARBPROC __glewMultiTexCoord2fARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FVARBPROC __glewMultiTexCoord2fvARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IARBPROC __glewMultiTexCoord2iARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IVARBPROC __glewMultiTexCoord2ivARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SARBPROC __glewMultiTexCoord2sARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SVARBPROC __glewMultiTexCoord2svARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DARBPROC __glewMultiTexCoord3dARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DVARBPROC __glewMultiTexCoord3dvARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FARBPROC __glewMultiTexCoord3fARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FVARBPROC __glewMultiTexCoord3fvARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IARBPROC __glewMultiTexCoord3iARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IVARBPROC __glewMultiTexCoord3ivARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SARBPROC __glewMultiTexCoord3sARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SVARBPROC __glewMultiTexCoord3svARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DARBPROC __glewMultiTexCoord4dARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DVARBPROC __glewMultiTexCoord4dvARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FARBPROC __glewMultiTexCoord4fARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FVARBPROC __glewMultiTexCoord4fvARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IARBPROC __glewMultiTexCoord4iARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IVARBPROC __glewMultiTexCoord4ivARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SARBPROC __glewMultiTexCoord4sARB; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SVARBPROC __glewMultiTexCoord4svARB; + +GLEW_FUN_EXPORT PFNGLBEGINQUERYARBPROC __glewBeginQueryARB; +GLEW_FUN_EXPORT PFNGLDELETEQUERIESARBPROC __glewDeleteQueriesARB; +GLEW_FUN_EXPORT PFNGLENDQUERYARBPROC __glewEndQueryARB; +GLEW_FUN_EXPORT PFNGLGENQUERIESARBPROC __glewGenQueriesARB; +GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTIVARBPROC __glewGetQueryObjectivARB; +GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUIVARBPROC __glewGetQueryObjectuivARB; +GLEW_FUN_EXPORT PFNGLGETQUERYIVARBPROC __glewGetQueryivARB; +GLEW_FUN_EXPORT PFNGLISQUERYARBPROC __glewIsQueryARB; + +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFARBPROC __glewPointParameterfARB; +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFVARBPROC __glewPointParameterfvARB; + +GLEW_FUN_EXPORT PFNGLPROVOKINGVERTEXPROC __glewProvokingVertex; + +GLEW_FUN_EXPORT PFNGLGETNCOLORTABLEARBPROC __glewGetnColorTableARB; +GLEW_FUN_EXPORT PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC __glewGetnCompressedTexImageARB; +GLEW_FUN_EXPORT PFNGLGETNCONVOLUTIONFILTERARBPROC __glewGetnConvolutionFilterARB; +GLEW_FUN_EXPORT PFNGLGETNHISTOGRAMARBPROC __glewGetnHistogramARB; +GLEW_FUN_EXPORT PFNGLGETNMAPDVARBPROC __glewGetnMapdvARB; +GLEW_FUN_EXPORT PFNGLGETNMAPFVARBPROC __glewGetnMapfvARB; +GLEW_FUN_EXPORT PFNGLGETNMAPIVARBPROC __glewGetnMapivARB; +GLEW_FUN_EXPORT PFNGLGETNMINMAXARBPROC __glewGetnMinmaxARB; +GLEW_FUN_EXPORT PFNGLGETNPIXELMAPFVARBPROC __glewGetnPixelMapfvARB; +GLEW_FUN_EXPORT PFNGLGETNPIXELMAPUIVARBPROC __glewGetnPixelMapuivARB; +GLEW_FUN_EXPORT PFNGLGETNPIXELMAPUSVARBPROC __glewGetnPixelMapusvARB; +GLEW_FUN_EXPORT PFNGLGETNPOLYGONSTIPPLEARBPROC __glewGetnPolygonStippleARB; +GLEW_FUN_EXPORT PFNGLGETNSEPARABLEFILTERARBPROC __glewGetnSeparableFilterARB; +GLEW_FUN_EXPORT PFNGLGETNTEXIMAGEARBPROC __glewGetnTexImageARB; +GLEW_FUN_EXPORT PFNGLGETNUNIFORMDVARBPROC __glewGetnUniformdvARB; +GLEW_FUN_EXPORT PFNGLGETNUNIFORMFVARBPROC __glewGetnUniformfvARB; +GLEW_FUN_EXPORT PFNGLGETNUNIFORMIVARBPROC __glewGetnUniformivARB; +GLEW_FUN_EXPORT PFNGLGETNUNIFORMUIVARBPROC __glewGetnUniformuivARB; +GLEW_FUN_EXPORT PFNGLREADNPIXELSARBPROC __glewReadnPixelsARB; + +GLEW_FUN_EXPORT PFNGLMINSAMPLESHADINGARBPROC __glewMinSampleShadingARB; + +GLEW_FUN_EXPORT PFNGLBINDSAMPLERPROC __glewBindSampler; +GLEW_FUN_EXPORT PFNGLDELETESAMPLERSPROC __glewDeleteSamplers; +GLEW_FUN_EXPORT PFNGLGENSAMPLERSPROC __glewGenSamplers; +GLEW_FUN_EXPORT PFNGLGETSAMPLERPARAMETERIIVPROC __glewGetSamplerParameterIiv; +GLEW_FUN_EXPORT PFNGLGETSAMPLERPARAMETERIUIVPROC __glewGetSamplerParameterIuiv; +GLEW_FUN_EXPORT PFNGLGETSAMPLERPARAMETERFVPROC __glewGetSamplerParameterfv; +GLEW_FUN_EXPORT PFNGLGETSAMPLERPARAMETERIVPROC __glewGetSamplerParameteriv; +GLEW_FUN_EXPORT PFNGLISSAMPLERPROC __glewIsSampler; +GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERIIVPROC __glewSamplerParameterIiv; +GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERIUIVPROC __glewSamplerParameterIuiv; +GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERFPROC __glewSamplerParameterf; +GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERFVPROC __glewSamplerParameterfv; +GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERIPROC __glewSamplerParameteri; +GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERIVPROC __glewSamplerParameteriv; + +GLEW_FUN_EXPORT PFNGLACTIVESHADERPROGRAMPROC __glewActiveShaderProgram; +GLEW_FUN_EXPORT PFNGLBINDPROGRAMPIPELINEPROC __glewBindProgramPipeline; +GLEW_FUN_EXPORT PFNGLCREATESHADERPROGRAMVPROC __glewCreateShaderProgramv; +GLEW_FUN_EXPORT PFNGLDELETEPROGRAMPIPELINESPROC __glewDeleteProgramPipelines; +GLEW_FUN_EXPORT PFNGLGENPROGRAMPIPELINESPROC __glewGenProgramPipelines; +GLEW_FUN_EXPORT PFNGLGETPROGRAMPIPELINEINFOLOGPROC __glewGetProgramPipelineInfoLog; +GLEW_FUN_EXPORT PFNGLGETPROGRAMPIPELINEIVPROC __glewGetProgramPipelineiv; +GLEW_FUN_EXPORT PFNGLISPROGRAMPIPELINEPROC __glewIsProgramPipeline; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1DPROC __glewProgramUniform1d; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1DVPROC __glewProgramUniform1dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FPROC __glewProgramUniform1f; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FVPROC __glewProgramUniform1fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IPROC __glewProgramUniform1i; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IVPROC __glewProgramUniform1iv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UIPROC __glewProgramUniform1ui; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UIVPROC __glewProgramUniform1uiv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2DPROC __glewProgramUniform2d; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2DVPROC __glewProgramUniform2dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FPROC __glewProgramUniform2f; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FVPROC __glewProgramUniform2fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IPROC __glewProgramUniform2i; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IVPROC __glewProgramUniform2iv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UIPROC __glewProgramUniform2ui; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UIVPROC __glewProgramUniform2uiv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3DPROC __glewProgramUniform3d; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3DVPROC __glewProgramUniform3dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FPROC __glewProgramUniform3f; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FVPROC __glewProgramUniform3fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IPROC __glewProgramUniform3i; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IVPROC __glewProgramUniform3iv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UIPROC __glewProgramUniform3ui; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UIVPROC __glewProgramUniform3uiv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4DPROC __glewProgramUniform4d; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4DVPROC __glewProgramUniform4dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FPROC __glewProgramUniform4f; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FVPROC __glewProgramUniform4fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IPROC __glewProgramUniform4i; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IVPROC __glewProgramUniform4iv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UIPROC __glewProgramUniform4ui; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UIVPROC __glewProgramUniform4uiv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2DVPROC __glewProgramUniformMatrix2dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2FVPROC __glewProgramUniformMatrix2fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC __glewProgramUniformMatrix2x3dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC __glewProgramUniformMatrix2x3fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC __glewProgramUniformMatrix2x4dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC __glewProgramUniformMatrix2x4fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3DVPROC __glewProgramUniformMatrix3dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3FVPROC __glewProgramUniformMatrix3fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC __glewProgramUniformMatrix3x2dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC __glewProgramUniformMatrix3x2fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC __glewProgramUniformMatrix3x4dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC __glewProgramUniformMatrix3x4fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4DVPROC __glewProgramUniformMatrix4dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4FVPROC __glewProgramUniformMatrix4fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC __glewProgramUniformMatrix4x2dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC __glewProgramUniformMatrix4x2fv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC __glewProgramUniformMatrix4x3dv; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC __glewProgramUniformMatrix4x3fv; +GLEW_FUN_EXPORT PFNGLUSEPROGRAMSTAGESPROC __glewUseProgramStages; +GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMPIPELINEPROC __glewValidateProgramPipeline; + +GLEW_FUN_EXPORT PFNGLATTACHOBJECTARBPROC __glewAttachObjectARB; +GLEW_FUN_EXPORT PFNGLCOMPILESHADERARBPROC __glewCompileShaderARB; +GLEW_FUN_EXPORT PFNGLCREATEPROGRAMOBJECTARBPROC __glewCreateProgramObjectARB; +GLEW_FUN_EXPORT PFNGLCREATESHADEROBJECTARBPROC __glewCreateShaderObjectARB; +GLEW_FUN_EXPORT PFNGLDELETEOBJECTARBPROC __glewDeleteObjectARB; +GLEW_FUN_EXPORT PFNGLDETACHOBJECTARBPROC __glewDetachObjectARB; +GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMARBPROC __glewGetActiveUniformARB; +GLEW_FUN_EXPORT PFNGLGETATTACHEDOBJECTSARBPROC __glewGetAttachedObjectsARB; +GLEW_FUN_EXPORT PFNGLGETHANDLEARBPROC __glewGetHandleARB; +GLEW_FUN_EXPORT PFNGLGETINFOLOGARBPROC __glewGetInfoLogARB; +GLEW_FUN_EXPORT PFNGLGETOBJECTPARAMETERFVARBPROC __glewGetObjectParameterfvARB; +GLEW_FUN_EXPORT PFNGLGETOBJECTPARAMETERIVARBPROC __glewGetObjectParameterivARB; +GLEW_FUN_EXPORT PFNGLGETSHADERSOURCEARBPROC __glewGetShaderSourceARB; +GLEW_FUN_EXPORT PFNGLGETUNIFORMLOCATIONARBPROC __glewGetUniformLocationARB; +GLEW_FUN_EXPORT PFNGLGETUNIFORMFVARBPROC __glewGetUniformfvARB; +GLEW_FUN_EXPORT PFNGLGETUNIFORMIVARBPROC __glewGetUniformivARB; +GLEW_FUN_EXPORT PFNGLLINKPROGRAMARBPROC __glewLinkProgramARB; +GLEW_FUN_EXPORT PFNGLSHADERSOURCEARBPROC __glewShaderSourceARB; +GLEW_FUN_EXPORT PFNGLUNIFORM1FARBPROC __glewUniform1fARB; +GLEW_FUN_EXPORT PFNGLUNIFORM1FVARBPROC __glewUniform1fvARB; +GLEW_FUN_EXPORT PFNGLUNIFORM1IARBPROC __glewUniform1iARB; +GLEW_FUN_EXPORT PFNGLUNIFORM1IVARBPROC __glewUniform1ivARB; +GLEW_FUN_EXPORT PFNGLUNIFORM2FARBPROC __glewUniform2fARB; +GLEW_FUN_EXPORT PFNGLUNIFORM2FVARBPROC __glewUniform2fvARB; +GLEW_FUN_EXPORT PFNGLUNIFORM2IARBPROC __glewUniform2iARB; +GLEW_FUN_EXPORT PFNGLUNIFORM2IVARBPROC __glewUniform2ivARB; +GLEW_FUN_EXPORT PFNGLUNIFORM3FARBPROC __glewUniform3fARB; +GLEW_FUN_EXPORT PFNGLUNIFORM3FVARBPROC __glewUniform3fvARB; +GLEW_FUN_EXPORT PFNGLUNIFORM3IARBPROC __glewUniform3iARB; +GLEW_FUN_EXPORT PFNGLUNIFORM3IVARBPROC __glewUniform3ivARB; +GLEW_FUN_EXPORT PFNGLUNIFORM4FARBPROC __glewUniform4fARB; +GLEW_FUN_EXPORT PFNGLUNIFORM4FVARBPROC __glewUniform4fvARB; +GLEW_FUN_EXPORT PFNGLUNIFORM4IARBPROC __glewUniform4iARB; +GLEW_FUN_EXPORT PFNGLUNIFORM4IVARBPROC __glewUniform4ivARB; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2FVARBPROC __glewUniformMatrix2fvARB; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3FVARBPROC __glewUniformMatrix3fvARB; +GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4FVARBPROC __glewUniformMatrix4fvARB; +GLEW_FUN_EXPORT PFNGLUSEPROGRAMOBJECTARBPROC __glewUseProgramObjectARB; +GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMARBPROC __glewValidateProgramARB; + +GLEW_FUN_EXPORT PFNGLGETACTIVESUBROUTINENAMEPROC __glewGetActiveSubroutineName; +GLEW_FUN_EXPORT PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC __glewGetActiveSubroutineUniformName; +GLEW_FUN_EXPORT PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC __glewGetActiveSubroutineUniformiv; +GLEW_FUN_EXPORT PFNGLGETPROGRAMSTAGEIVPROC __glewGetProgramStageiv; +GLEW_FUN_EXPORT PFNGLGETSUBROUTINEINDEXPROC __glewGetSubroutineIndex; +GLEW_FUN_EXPORT PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC __glewGetSubroutineUniformLocation; +GLEW_FUN_EXPORT PFNGLGETUNIFORMSUBROUTINEUIVPROC __glewGetUniformSubroutineuiv; +GLEW_FUN_EXPORT PFNGLUNIFORMSUBROUTINESUIVPROC __glewUniformSubroutinesuiv; + +GLEW_FUN_EXPORT PFNGLCOMPILESHADERINCLUDEARBPROC __glewCompileShaderIncludeARB; +GLEW_FUN_EXPORT PFNGLDELETENAMEDSTRINGARBPROC __glewDeleteNamedStringARB; +GLEW_FUN_EXPORT PFNGLGETNAMEDSTRINGARBPROC __glewGetNamedStringARB; +GLEW_FUN_EXPORT PFNGLGETNAMEDSTRINGIVARBPROC __glewGetNamedStringivARB; +GLEW_FUN_EXPORT PFNGLISNAMEDSTRINGARBPROC __glewIsNamedStringARB; +GLEW_FUN_EXPORT PFNGLNAMEDSTRINGARBPROC __glewNamedStringARB; + +GLEW_FUN_EXPORT PFNGLCLIENTWAITSYNCPROC __glewClientWaitSync; +GLEW_FUN_EXPORT PFNGLDELETESYNCPROC __glewDeleteSync; +GLEW_FUN_EXPORT PFNGLFENCESYNCPROC __glewFenceSync; +GLEW_FUN_EXPORT PFNGLGETINTEGER64VPROC __glewGetInteger64v; +GLEW_FUN_EXPORT PFNGLGETSYNCIVPROC __glewGetSynciv; +GLEW_FUN_EXPORT PFNGLISSYNCPROC __glewIsSync; +GLEW_FUN_EXPORT PFNGLWAITSYNCPROC __glewWaitSync; + +GLEW_FUN_EXPORT PFNGLPATCHPARAMETERFVPROC __glewPatchParameterfv; +GLEW_FUN_EXPORT PFNGLPATCHPARAMETERIPROC __glewPatchParameteri; + +GLEW_FUN_EXPORT PFNGLTEXBUFFERARBPROC __glewTexBufferARB; + +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE1DARBPROC __glewCompressedTexImage1DARB; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE2DARBPROC __glewCompressedTexImage2DARB; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DARBPROC __glewCompressedTexImage3DARB; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC __glewCompressedTexSubImage1DARB; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC __glewCompressedTexSubImage2DARB; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC __glewCompressedTexSubImage3DARB; +GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDTEXIMAGEARBPROC __glewGetCompressedTexImageARB; + +GLEW_FUN_EXPORT PFNGLGETMULTISAMPLEFVPROC __glewGetMultisamplefv; +GLEW_FUN_EXPORT PFNGLSAMPLEMASKIPROC __glewSampleMaski; +GLEW_FUN_EXPORT PFNGLTEXIMAGE2DMULTISAMPLEPROC __glewTexImage2DMultisample; +GLEW_FUN_EXPORT PFNGLTEXIMAGE3DMULTISAMPLEPROC __glewTexImage3DMultisample; + +GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTI64VPROC __glewGetQueryObjecti64v; +GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUI64VPROC __glewGetQueryObjectui64v; +GLEW_FUN_EXPORT PFNGLQUERYCOUNTERPROC __glewQueryCounter; + +GLEW_FUN_EXPORT PFNGLBINDTRANSFORMFEEDBACKPROC __glewBindTransformFeedback; +GLEW_FUN_EXPORT PFNGLDELETETRANSFORMFEEDBACKSPROC __glewDeleteTransformFeedbacks; +GLEW_FUN_EXPORT PFNGLDRAWTRANSFORMFEEDBACKPROC __glewDrawTransformFeedback; +GLEW_FUN_EXPORT PFNGLGENTRANSFORMFEEDBACKSPROC __glewGenTransformFeedbacks; +GLEW_FUN_EXPORT PFNGLISTRANSFORMFEEDBACKPROC __glewIsTransformFeedback; +GLEW_FUN_EXPORT PFNGLPAUSETRANSFORMFEEDBACKPROC __glewPauseTransformFeedback; +GLEW_FUN_EXPORT PFNGLRESUMETRANSFORMFEEDBACKPROC __glewResumeTransformFeedback; + +GLEW_FUN_EXPORT PFNGLBEGINQUERYINDEXEDPROC __glewBeginQueryIndexed; +GLEW_FUN_EXPORT PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC __glewDrawTransformFeedbackStream; +GLEW_FUN_EXPORT PFNGLENDQUERYINDEXEDPROC __glewEndQueryIndexed; +GLEW_FUN_EXPORT PFNGLGETQUERYINDEXEDIVPROC __glewGetQueryIndexediv; + +GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXDARBPROC __glewLoadTransposeMatrixdARB; +GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXFARBPROC __glewLoadTransposeMatrixfARB; +GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXDARBPROC __glewMultTransposeMatrixdARB; +GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXFARBPROC __glewMultTransposeMatrixfARB; + +GLEW_FUN_EXPORT PFNGLBINDBUFFERBASEPROC __glewBindBufferBase; +GLEW_FUN_EXPORT PFNGLBINDBUFFERRANGEPROC __glewBindBufferRange; +GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC __glewGetActiveUniformBlockName; +GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMBLOCKIVPROC __glewGetActiveUniformBlockiv; +GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMNAMEPROC __glewGetActiveUniformName; +GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMSIVPROC __glewGetActiveUniformsiv; +GLEW_FUN_EXPORT PFNGLGETINTEGERI_VPROC __glewGetIntegeri_v; +GLEW_FUN_EXPORT PFNGLGETUNIFORMBLOCKINDEXPROC __glewGetUniformBlockIndex; +GLEW_FUN_EXPORT PFNGLGETUNIFORMINDICESPROC __glewGetUniformIndices; +GLEW_FUN_EXPORT PFNGLUNIFORMBLOCKBINDINGPROC __glewUniformBlockBinding; + +GLEW_FUN_EXPORT PFNGLBINDVERTEXARRAYPROC __glewBindVertexArray; +GLEW_FUN_EXPORT PFNGLDELETEVERTEXARRAYSPROC __glewDeleteVertexArrays; +GLEW_FUN_EXPORT PFNGLGENVERTEXARRAYSPROC __glewGenVertexArrays; +GLEW_FUN_EXPORT PFNGLISVERTEXARRAYPROC __glewIsVertexArray; + +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBLDVPROC __glewGetVertexAttribLdv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1DPROC __glewVertexAttribL1d; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1DVPROC __glewVertexAttribL1dv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2DPROC __glewVertexAttribL2d; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2DVPROC __glewVertexAttribL2dv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3DPROC __glewVertexAttribL3d; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3DVPROC __glewVertexAttribL3dv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4DPROC __glewVertexAttribL4d; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4DVPROC __glewVertexAttribL4dv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBLPOINTERPROC __glewVertexAttribLPointer; + +GLEW_FUN_EXPORT PFNGLVERTEXBLENDARBPROC __glewVertexBlendARB; +GLEW_FUN_EXPORT PFNGLWEIGHTPOINTERARBPROC __glewWeightPointerARB; +GLEW_FUN_EXPORT PFNGLWEIGHTBVARBPROC __glewWeightbvARB; +GLEW_FUN_EXPORT PFNGLWEIGHTDVARBPROC __glewWeightdvARB; +GLEW_FUN_EXPORT PFNGLWEIGHTFVARBPROC __glewWeightfvARB; +GLEW_FUN_EXPORT PFNGLWEIGHTIVARBPROC __glewWeightivARB; +GLEW_FUN_EXPORT PFNGLWEIGHTSVARBPROC __glewWeightsvARB; +GLEW_FUN_EXPORT PFNGLWEIGHTUBVARBPROC __glewWeightubvARB; +GLEW_FUN_EXPORT PFNGLWEIGHTUIVARBPROC __glewWeightuivARB; +GLEW_FUN_EXPORT PFNGLWEIGHTUSVARBPROC __glewWeightusvARB; + +GLEW_FUN_EXPORT PFNGLBINDBUFFERARBPROC __glewBindBufferARB; +GLEW_FUN_EXPORT PFNGLBUFFERDATAARBPROC __glewBufferDataARB; +GLEW_FUN_EXPORT PFNGLBUFFERSUBDATAARBPROC __glewBufferSubDataARB; +GLEW_FUN_EXPORT PFNGLDELETEBUFFERSARBPROC __glewDeleteBuffersARB; +GLEW_FUN_EXPORT PFNGLGENBUFFERSARBPROC __glewGenBuffersARB; +GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERIVARBPROC __glewGetBufferParameterivARB; +GLEW_FUN_EXPORT PFNGLGETBUFFERPOINTERVARBPROC __glewGetBufferPointervARB; +GLEW_FUN_EXPORT PFNGLGETBUFFERSUBDATAARBPROC __glewGetBufferSubDataARB; +GLEW_FUN_EXPORT PFNGLISBUFFERARBPROC __glewIsBufferARB; +GLEW_FUN_EXPORT PFNGLMAPBUFFERARBPROC __glewMapBufferARB; +GLEW_FUN_EXPORT PFNGLUNMAPBUFFERARBPROC __glewUnmapBufferARB; + +GLEW_FUN_EXPORT PFNGLBINDPROGRAMARBPROC __glewBindProgramARB; +GLEW_FUN_EXPORT PFNGLDELETEPROGRAMSARBPROC __glewDeleteProgramsARB; +GLEW_FUN_EXPORT PFNGLDISABLEVERTEXATTRIBARRAYARBPROC __glewDisableVertexAttribArrayARB; +GLEW_FUN_EXPORT PFNGLENABLEVERTEXATTRIBARRAYARBPROC __glewEnableVertexAttribArrayARB; +GLEW_FUN_EXPORT PFNGLGENPROGRAMSARBPROC __glewGenProgramsARB; +GLEW_FUN_EXPORT PFNGLGETPROGRAMENVPARAMETERDVARBPROC __glewGetProgramEnvParameterdvARB; +GLEW_FUN_EXPORT PFNGLGETPROGRAMENVPARAMETERFVARBPROC __glewGetProgramEnvParameterfvARB; +GLEW_FUN_EXPORT PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC __glewGetProgramLocalParameterdvARB; +GLEW_FUN_EXPORT PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC __glewGetProgramLocalParameterfvARB; +GLEW_FUN_EXPORT PFNGLGETPROGRAMSTRINGARBPROC __glewGetProgramStringARB; +GLEW_FUN_EXPORT PFNGLGETPROGRAMIVARBPROC __glewGetProgramivARB; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBPOINTERVARBPROC __glewGetVertexAttribPointervARB; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBDVARBPROC __glewGetVertexAttribdvARB; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBFVARBPROC __glewGetVertexAttribfvARB; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIVARBPROC __glewGetVertexAttribivARB; +GLEW_FUN_EXPORT PFNGLISPROGRAMARBPROC __glewIsProgramARB; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETER4DARBPROC __glewProgramEnvParameter4dARB; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETER4DVARBPROC __glewProgramEnvParameter4dvARB; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETER4FARBPROC __glewProgramEnvParameter4fARB; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETER4FVARBPROC __glewProgramEnvParameter4fvARB; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETER4DARBPROC __glewProgramLocalParameter4dARB; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETER4DVARBPROC __glewProgramLocalParameter4dvARB; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETER4FARBPROC __glewProgramLocalParameter4fARB; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETER4FVARBPROC __glewProgramLocalParameter4fvARB; +GLEW_FUN_EXPORT PFNGLPROGRAMSTRINGARBPROC __glewProgramStringARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DARBPROC __glewVertexAttrib1dARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DVARBPROC __glewVertexAttrib1dvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FARBPROC __glewVertexAttrib1fARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FVARBPROC __glewVertexAttrib1fvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SARBPROC __glewVertexAttrib1sARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SVARBPROC __glewVertexAttrib1svARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DARBPROC __glewVertexAttrib2dARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DVARBPROC __glewVertexAttrib2dvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FARBPROC __glewVertexAttrib2fARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FVARBPROC __glewVertexAttrib2fvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SARBPROC __glewVertexAttrib2sARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SVARBPROC __glewVertexAttrib2svARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DARBPROC __glewVertexAttrib3dARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DVARBPROC __glewVertexAttrib3dvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FARBPROC __glewVertexAttrib3fARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FVARBPROC __glewVertexAttrib3fvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SARBPROC __glewVertexAttrib3sARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SVARBPROC __glewVertexAttrib3svARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NBVARBPROC __glewVertexAttrib4NbvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NIVARBPROC __glewVertexAttrib4NivARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NSVARBPROC __glewVertexAttrib4NsvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBARBPROC __glewVertexAttrib4NubARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBVARBPROC __glewVertexAttrib4NubvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUIVARBPROC __glewVertexAttrib4NuivARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUSVARBPROC __glewVertexAttrib4NusvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4BVARBPROC __glewVertexAttrib4bvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DARBPROC __glewVertexAttrib4dARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DVARBPROC __glewVertexAttrib4dvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FARBPROC __glewVertexAttrib4fARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FVARBPROC __glewVertexAttrib4fvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4IVARBPROC __glewVertexAttrib4ivARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SARBPROC __glewVertexAttrib4sARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SVARBPROC __glewVertexAttrib4svARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBVARBPROC __glewVertexAttrib4ubvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UIVARBPROC __glewVertexAttrib4uivARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4USVARBPROC __glewVertexAttrib4usvARB; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBPOINTERARBPROC __glewVertexAttribPointerARB; + +GLEW_FUN_EXPORT PFNGLBINDATTRIBLOCATIONARBPROC __glewBindAttribLocationARB; +GLEW_FUN_EXPORT PFNGLGETACTIVEATTRIBARBPROC __glewGetActiveAttribARB; +GLEW_FUN_EXPORT PFNGLGETATTRIBLOCATIONARBPROC __glewGetAttribLocationARB; + +GLEW_FUN_EXPORT PFNGLCOLORP3UIPROC __glewColorP3ui; +GLEW_FUN_EXPORT PFNGLCOLORP3UIVPROC __glewColorP3uiv; +GLEW_FUN_EXPORT PFNGLCOLORP4UIPROC __glewColorP4ui; +GLEW_FUN_EXPORT PFNGLCOLORP4UIVPROC __glewColorP4uiv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP1UIPROC __glewMultiTexCoordP1ui; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP1UIVPROC __glewMultiTexCoordP1uiv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP2UIPROC __glewMultiTexCoordP2ui; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP2UIVPROC __glewMultiTexCoordP2uiv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP3UIPROC __glewMultiTexCoordP3ui; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP3UIVPROC __glewMultiTexCoordP3uiv; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP4UIPROC __glewMultiTexCoordP4ui; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP4UIVPROC __glewMultiTexCoordP4uiv; +GLEW_FUN_EXPORT PFNGLNORMALP3UIPROC __glewNormalP3ui; +GLEW_FUN_EXPORT PFNGLNORMALP3UIVPROC __glewNormalP3uiv; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLORP3UIPROC __glewSecondaryColorP3ui; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLORP3UIVPROC __glewSecondaryColorP3uiv; +GLEW_FUN_EXPORT PFNGLTEXCOORDP1UIPROC __glewTexCoordP1ui; +GLEW_FUN_EXPORT PFNGLTEXCOORDP1UIVPROC __glewTexCoordP1uiv; +GLEW_FUN_EXPORT PFNGLTEXCOORDP2UIPROC __glewTexCoordP2ui; +GLEW_FUN_EXPORT PFNGLTEXCOORDP2UIVPROC __glewTexCoordP2uiv; +GLEW_FUN_EXPORT PFNGLTEXCOORDP3UIPROC __glewTexCoordP3ui; +GLEW_FUN_EXPORT PFNGLTEXCOORDP3UIVPROC __glewTexCoordP3uiv; +GLEW_FUN_EXPORT PFNGLTEXCOORDP4UIPROC __glewTexCoordP4ui; +GLEW_FUN_EXPORT PFNGLTEXCOORDP4UIVPROC __glewTexCoordP4uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP1UIPROC __glewVertexAttribP1ui; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP1UIVPROC __glewVertexAttribP1uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP2UIPROC __glewVertexAttribP2ui; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP2UIVPROC __glewVertexAttribP2uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP3UIPROC __glewVertexAttribP3ui; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP3UIVPROC __glewVertexAttribP3uiv; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP4UIPROC __glewVertexAttribP4ui; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP4UIVPROC __glewVertexAttribP4uiv; +GLEW_FUN_EXPORT PFNGLVERTEXP2UIPROC __glewVertexP2ui; +GLEW_FUN_EXPORT PFNGLVERTEXP2UIVPROC __glewVertexP2uiv; +GLEW_FUN_EXPORT PFNGLVERTEXP3UIPROC __glewVertexP3ui; +GLEW_FUN_EXPORT PFNGLVERTEXP3UIVPROC __glewVertexP3uiv; +GLEW_FUN_EXPORT PFNGLVERTEXP4UIPROC __glewVertexP4ui; +GLEW_FUN_EXPORT PFNGLVERTEXP4UIVPROC __glewVertexP4uiv; + +GLEW_FUN_EXPORT PFNGLDEPTHRANGEARRAYVPROC __glewDepthRangeArrayv; +GLEW_FUN_EXPORT PFNGLDEPTHRANGEINDEXEDPROC __glewDepthRangeIndexed; +GLEW_FUN_EXPORT PFNGLGETDOUBLEI_VPROC __glewGetDoublei_v; +GLEW_FUN_EXPORT PFNGLGETFLOATI_VPROC __glewGetFloati_v; +GLEW_FUN_EXPORT PFNGLSCISSORARRAYVPROC __glewScissorArrayv; +GLEW_FUN_EXPORT PFNGLSCISSORINDEXEDPROC __glewScissorIndexed; +GLEW_FUN_EXPORT PFNGLSCISSORINDEXEDVPROC __glewScissorIndexedv; +GLEW_FUN_EXPORT PFNGLVIEWPORTARRAYVPROC __glewViewportArrayv; +GLEW_FUN_EXPORT PFNGLVIEWPORTINDEXEDFPROC __glewViewportIndexedf; +GLEW_FUN_EXPORT PFNGLVIEWPORTINDEXEDFVPROC __glewViewportIndexedfv; + +GLEW_FUN_EXPORT PFNGLWINDOWPOS2DARBPROC __glewWindowPos2dARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2DVARBPROC __glewWindowPos2dvARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2FARBPROC __glewWindowPos2fARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2FVARBPROC __glewWindowPos2fvARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2IARBPROC __glewWindowPos2iARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2IVARBPROC __glewWindowPos2ivARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2SARBPROC __glewWindowPos2sARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2SVARBPROC __glewWindowPos2svARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3DARBPROC __glewWindowPos3dARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3DVARBPROC __glewWindowPos3dvARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3FARBPROC __glewWindowPos3fARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3FVARBPROC __glewWindowPos3fvARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3IARBPROC __glewWindowPos3iARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3IVARBPROC __glewWindowPos3ivARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3SARBPROC __glewWindowPos3sARB; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3SVARBPROC __glewWindowPos3svARB; + +GLEW_FUN_EXPORT PFNGLDRAWBUFFERSATIPROC __glewDrawBuffersATI; + +GLEW_FUN_EXPORT PFNGLDRAWELEMENTARRAYATIPROC __glewDrawElementArrayATI; +GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTARRAYATIPROC __glewDrawRangeElementArrayATI; +GLEW_FUN_EXPORT PFNGLELEMENTPOINTERATIPROC __glewElementPointerATI; + +GLEW_FUN_EXPORT PFNGLGETTEXBUMPPARAMETERFVATIPROC __glewGetTexBumpParameterfvATI; +GLEW_FUN_EXPORT PFNGLGETTEXBUMPPARAMETERIVATIPROC __glewGetTexBumpParameterivATI; +GLEW_FUN_EXPORT PFNGLTEXBUMPPARAMETERFVATIPROC __glewTexBumpParameterfvATI; +GLEW_FUN_EXPORT PFNGLTEXBUMPPARAMETERIVATIPROC __glewTexBumpParameterivATI; + +GLEW_FUN_EXPORT PFNGLALPHAFRAGMENTOP1ATIPROC __glewAlphaFragmentOp1ATI; +GLEW_FUN_EXPORT PFNGLALPHAFRAGMENTOP2ATIPROC __glewAlphaFragmentOp2ATI; +GLEW_FUN_EXPORT PFNGLALPHAFRAGMENTOP3ATIPROC __glewAlphaFragmentOp3ATI; +GLEW_FUN_EXPORT PFNGLBEGINFRAGMENTSHADERATIPROC __glewBeginFragmentShaderATI; +GLEW_FUN_EXPORT PFNGLBINDFRAGMENTSHADERATIPROC __glewBindFragmentShaderATI; +GLEW_FUN_EXPORT PFNGLCOLORFRAGMENTOP1ATIPROC __glewColorFragmentOp1ATI; +GLEW_FUN_EXPORT PFNGLCOLORFRAGMENTOP2ATIPROC __glewColorFragmentOp2ATI; +GLEW_FUN_EXPORT PFNGLCOLORFRAGMENTOP3ATIPROC __glewColorFragmentOp3ATI; +GLEW_FUN_EXPORT PFNGLDELETEFRAGMENTSHADERATIPROC __glewDeleteFragmentShaderATI; +GLEW_FUN_EXPORT PFNGLENDFRAGMENTSHADERATIPROC __glewEndFragmentShaderATI; +GLEW_FUN_EXPORT PFNGLGENFRAGMENTSHADERSATIPROC __glewGenFragmentShadersATI; +GLEW_FUN_EXPORT PFNGLPASSTEXCOORDATIPROC __glewPassTexCoordATI; +GLEW_FUN_EXPORT PFNGLSAMPLEMAPATIPROC __glewSampleMapATI; +GLEW_FUN_EXPORT PFNGLSETFRAGMENTSHADERCONSTANTATIPROC __glewSetFragmentShaderConstantATI; + +GLEW_FUN_EXPORT PFNGLMAPOBJECTBUFFERATIPROC __glewMapObjectBufferATI; +GLEW_FUN_EXPORT PFNGLUNMAPOBJECTBUFFERATIPROC __glewUnmapObjectBufferATI; + +GLEW_FUN_EXPORT PFNGLPNTRIANGLESFATIPROC __glPNTrianglewesfATI; +GLEW_FUN_EXPORT PFNGLPNTRIANGLESIATIPROC __glPNTrianglewesiATI; + +GLEW_FUN_EXPORT PFNGLSTENCILFUNCSEPARATEATIPROC __glewStencilFuncSeparateATI; +GLEW_FUN_EXPORT PFNGLSTENCILOPSEPARATEATIPROC __glewStencilOpSeparateATI; + +GLEW_FUN_EXPORT PFNGLARRAYOBJECTATIPROC __glewArrayObjectATI; +GLEW_FUN_EXPORT PFNGLFREEOBJECTBUFFERATIPROC __glewFreeObjectBufferATI; +GLEW_FUN_EXPORT PFNGLGETARRAYOBJECTFVATIPROC __glewGetArrayObjectfvATI; +GLEW_FUN_EXPORT PFNGLGETARRAYOBJECTIVATIPROC __glewGetArrayObjectivATI; +GLEW_FUN_EXPORT PFNGLGETOBJECTBUFFERFVATIPROC __glewGetObjectBufferfvATI; +GLEW_FUN_EXPORT PFNGLGETOBJECTBUFFERIVATIPROC __glewGetObjectBufferivATI; +GLEW_FUN_EXPORT PFNGLGETVARIANTARRAYOBJECTFVATIPROC __glewGetVariantArrayObjectfvATI; +GLEW_FUN_EXPORT PFNGLGETVARIANTARRAYOBJECTIVATIPROC __glewGetVariantArrayObjectivATI; +GLEW_FUN_EXPORT PFNGLISOBJECTBUFFERATIPROC __glewIsObjectBufferATI; +GLEW_FUN_EXPORT PFNGLNEWOBJECTBUFFERATIPROC __glewNewObjectBufferATI; +GLEW_FUN_EXPORT PFNGLUPDATEOBJECTBUFFERATIPROC __glewUpdateObjectBufferATI; +GLEW_FUN_EXPORT PFNGLVARIANTARRAYOBJECTATIPROC __glewVariantArrayObjectATI; + +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC __glewGetVertexAttribArrayObjectfvATI; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC __glewGetVertexAttribArrayObjectivATI; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBARRAYOBJECTATIPROC __glewVertexAttribArrayObjectATI; + +GLEW_FUN_EXPORT PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC __glewClientActiveVertexStreamATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3BATIPROC __glewNormalStream3bATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3BVATIPROC __glewNormalStream3bvATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3DATIPROC __glewNormalStream3dATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3DVATIPROC __glewNormalStream3dvATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3FATIPROC __glewNormalStream3fATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3FVATIPROC __glewNormalStream3fvATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3IATIPROC __glewNormalStream3iATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3IVATIPROC __glewNormalStream3ivATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3SATIPROC __glewNormalStream3sATI; +GLEW_FUN_EXPORT PFNGLNORMALSTREAM3SVATIPROC __glewNormalStream3svATI; +GLEW_FUN_EXPORT PFNGLVERTEXBLENDENVFATIPROC __glewVertexBlendEnvfATI; +GLEW_FUN_EXPORT PFNGLVERTEXBLENDENVIATIPROC __glewVertexBlendEnviATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2DATIPROC __glewVertexStream2dATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2DVATIPROC __glewVertexStream2dvATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2FATIPROC __glewVertexStream2fATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2FVATIPROC __glewVertexStream2fvATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2IATIPROC __glewVertexStream2iATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2IVATIPROC __glewVertexStream2ivATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2SATIPROC __glewVertexStream2sATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2SVATIPROC __glewVertexStream2svATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3DATIPROC __glewVertexStream3dATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3DVATIPROC __glewVertexStream3dvATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3FATIPROC __glewVertexStream3fATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3FVATIPROC __glewVertexStream3fvATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3IATIPROC __glewVertexStream3iATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3IVATIPROC __glewVertexStream3ivATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3SATIPROC __glewVertexStream3sATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3SVATIPROC __glewVertexStream3svATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4DATIPROC __glewVertexStream4dATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4DVATIPROC __glewVertexStream4dvATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4FATIPROC __glewVertexStream4fATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4FVATIPROC __glewVertexStream4fvATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4IATIPROC __glewVertexStream4iATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4IVATIPROC __glewVertexStream4ivATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4SATIPROC __glewVertexStream4sATI; +GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4SVATIPROC __glewVertexStream4svATI; + +GLEW_FUN_EXPORT PFNGLGETUNIFORMBUFFERSIZEEXTPROC __glewGetUniformBufferSizeEXT; +GLEW_FUN_EXPORT PFNGLGETUNIFORMOFFSETEXTPROC __glewGetUniformOffsetEXT; +GLEW_FUN_EXPORT PFNGLUNIFORMBUFFEREXTPROC __glewUniformBufferEXT; + +GLEW_FUN_EXPORT PFNGLBLENDCOLOREXTPROC __glewBlendColorEXT; + +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEEXTPROC __glewBlendEquationSeparateEXT; + +GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEEXTPROC __glewBlendFuncSeparateEXT; + +GLEW_FUN_EXPORT PFNGLBLENDEQUATIONEXTPROC __glewBlendEquationEXT; + +GLEW_FUN_EXPORT PFNGLCOLORSUBTABLEEXTPROC __glewColorSubTableEXT; +GLEW_FUN_EXPORT PFNGLCOPYCOLORSUBTABLEEXTPROC __glewCopyColorSubTableEXT; + +GLEW_FUN_EXPORT PFNGLLOCKARRAYSEXTPROC __glewLockArraysEXT; +GLEW_FUN_EXPORT PFNGLUNLOCKARRAYSEXTPROC __glewUnlockArraysEXT; + +GLEW_FUN_EXPORT PFNGLCONVOLUTIONFILTER1DEXTPROC __glewConvolutionFilter1DEXT; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONFILTER2DEXTPROC __glewConvolutionFilter2DEXT; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERFEXTPROC __glewConvolutionParameterfEXT; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERFVEXTPROC __glewConvolutionParameterfvEXT; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERIEXTPROC __glewConvolutionParameteriEXT; +GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERIVEXTPROC __glewConvolutionParameterivEXT; +GLEW_FUN_EXPORT PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC __glewCopyConvolutionFilter1DEXT; +GLEW_FUN_EXPORT PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC __glewCopyConvolutionFilter2DEXT; +GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONFILTEREXTPROC __glewGetConvolutionFilterEXT; +GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC __glewGetConvolutionParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC __glewGetConvolutionParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETSEPARABLEFILTEREXTPROC __glewGetSeparableFilterEXT; +GLEW_FUN_EXPORT PFNGLSEPARABLEFILTER2DEXTPROC __glewSeparableFilter2DEXT; + +GLEW_FUN_EXPORT PFNGLBINORMALPOINTEREXTPROC __glewBinormalPointerEXT; +GLEW_FUN_EXPORT PFNGLTANGENTPOINTEREXTPROC __glewTangentPointerEXT; + +GLEW_FUN_EXPORT PFNGLCOPYTEXIMAGE1DEXTPROC __glewCopyTexImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXIMAGE2DEXTPROC __glewCopyTexImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE1DEXTPROC __glewCopyTexSubImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE2DEXTPROC __glewCopyTexSubImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE3DEXTPROC __glewCopyTexSubImage3DEXT; + +GLEW_FUN_EXPORT PFNGLCULLPARAMETERDVEXTPROC __glewCullParameterdvEXT; +GLEW_FUN_EXPORT PFNGLCULLPARAMETERFVEXTPROC __glewCullParameterfvEXT; + +GLEW_FUN_EXPORT PFNGLDEPTHBOUNDSEXTPROC __glewDepthBoundsEXT; + +GLEW_FUN_EXPORT PFNGLBINDMULTITEXTUREEXTPROC __glewBindMultiTextureEXT; +GLEW_FUN_EXPORT PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC __glewCheckNamedFramebufferStatusEXT; +GLEW_FUN_EXPORT PFNGLCLIENTATTRIBDEFAULTEXTPROC __glewClientAttribDefaultEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC __glewCompressedMultiTexImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC __glewCompressedMultiTexImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC __glewCompressedMultiTexImage3DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC __glewCompressedMultiTexSubImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC __glewCompressedMultiTexSubImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC __glewCompressedMultiTexSubImage3DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC __glewCompressedTextureImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC __glewCompressedTextureImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC __glewCompressedTextureImage3DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC __glewCompressedTextureSubImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC __glewCompressedTextureSubImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC __glewCompressedTextureSubImage3DEXT; +GLEW_FUN_EXPORT PFNGLCOPYMULTITEXIMAGE1DEXTPROC __glewCopyMultiTexImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOPYMULTITEXIMAGE2DEXTPROC __glewCopyMultiTexImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC __glewCopyMultiTexSubImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC __glewCopyMultiTexSubImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC __glewCopyMultiTexSubImage3DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXTUREIMAGE1DEXTPROC __glewCopyTextureImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXTUREIMAGE2DEXTPROC __glewCopyTextureImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC __glewCopyTextureSubImage1DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC __glewCopyTextureSubImage2DEXT; +GLEW_FUN_EXPORT PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC __glewCopyTextureSubImage3DEXT; +GLEW_FUN_EXPORT PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC __glewDisableClientStateIndexedEXT; +GLEW_FUN_EXPORT PFNGLDISABLECLIENTSTATEIEXTPROC __glewDisableClientStateiEXT; +GLEW_FUN_EXPORT PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC __glewDisableVertexArrayAttribEXT; +GLEW_FUN_EXPORT PFNGLDISABLEVERTEXARRAYEXTPROC __glewDisableVertexArrayEXT; +GLEW_FUN_EXPORT PFNGLENABLECLIENTSTATEINDEXEDEXTPROC __glewEnableClientStateIndexedEXT; +GLEW_FUN_EXPORT PFNGLENABLECLIENTSTATEIEXTPROC __glewEnableClientStateiEXT; +GLEW_FUN_EXPORT PFNGLENABLEVERTEXARRAYATTRIBEXTPROC __glewEnableVertexArrayAttribEXT; +GLEW_FUN_EXPORT PFNGLENABLEVERTEXARRAYEXTPROC __glewEnableVertexArrayEXT; +GLEW_FUN_EXPORT PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC __glewFlushMappedNamedBufferRangeEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC __glewFramebufferDrawBufferEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC __glewFramebufferDrawBuffersEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERREADBUFFEREXTPROC __glewFramebufferReadBufferEXT; +GLEW_FUN_EXPORT PFNGLGENERATEMULTITEXMIPMAPEXTPROC __glewGenerateMultiTexMipmapEXT; +GLEW_FUN_EXPORT PFNGLGENERATETEXTUREMIPMAPEXTPROC __glewGenerateTextureMipmapEXT; +GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC __glewGetCompressedMultiTexImageEXT; +GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC __glewGetCompressedTextureImageEXT; +GLEW_FUN_EXPORT PFNGLGETDOUBLEINDEXEDVEXTPROC __glewGetDoubleIndexedvEXT; +GLEW_FUN_EXPORT PFNGLGETDOUBLEI_VEXTPROC __glewGetDoublei_vEXT; +GLEW_FUN_EXPORT PFNGLGETFLOATINDEXEDVEXTPROC __glewGetFloatIndexedvEXT; +GLEW_FUN_EXPORT PFNGLGETFLOATI_VEXTPROC __glewGetFloati_vEXT; +GLEW_FUN_EXPORT PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC __glewGetFramebufferParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXENVFVEXTPROC __glewGetMultiTexEnvfvEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXENVIVEXTPROC __glewGetMultiTexEnvivEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXGENDVEXTPROC __glewGetMultiTexGendvEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXGENFVEXTPROC __glewGetMultiTexGenfvEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXGENIVEXTPROC __glewGetMultiTexGenivEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXIMAGEEXTPROC __glewGetMultiTexImageEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC __glewGetMultiTexLevelParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC __glewGetMultiTexLevelParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXPARAMETERIIVEXTPROC __glewGetMultiTexParameterIivEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXPARAMETERIUIVEXTPROC __glewGetMultiTexParameterIuivEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXPARAMETERFVEXTPROC __glewGetMultiTexParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETMULTITEXPARAMETERIVEXTPROC __glewGetMultiTexParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC __glewGetNamedBufferParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDBUFFERPOINTERVEXTPROC __glewGetNamedBufferPointervEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDBUFFERSUBDATAEXTPROC __glewGetNamedBufferSubDataEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC __glewGetNamedFramebufferAttachmentParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC __glewGetNamedProgramLocalParameterIivEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC __glewGetNamedProgramLocalParameterIuivEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC __glewGetNamedProgramLocalParameterdvEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC __glewGetNamedProgramLocalParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMSTRINGEXTPROC __glewGetNamedProgramStringEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMIVEXTPROC __glewGetNamedProgramivEXT; +GLEW_FUN_EXPORT PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC __glewGetNamedRenderbufferParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETPOINTERINDEXEDVEXTPROC __glewGetPointerIndexedvEXT; +GLEW_FUN_EXPORT PFNGLGETPOINTERI_VEXTPROC __glewGetPointeri_vEXT; +GLEW_FUN_EXPORT PFNGLGETTEXTUREIMAGEEXTPROC __glewGetTextureImageEXT; +GLEW_FUN_EXPORT PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC __glewGetTextureLevelParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC __glewGetTextureLevelParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETTEXTUREPARAMETERIIVEXTPROC __glewGetTextureParameterIivEXT; +GLEW_FUN_EXPORT PFNGLGETTEXTUREPARAMETERIUIVEXTPROC __glewGetTextureParameterIuivEXT; +GLEW_FUN_EXPORT PFNGLGETTEXTUREPARAMETERFVEXTPROC __glewGetTextureParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETTEXTUREPARAMETERIVEXTPROC __glewGetTextureParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC __glewGetVertexArrayIntegeri_vEXT; +GLEW_FUN_EXPORT PFNGLGETVERTEXARRAYINTEGERVEXTPROC __glewGetVertexArrayIntegervEXT; +GLEW_FUN_EXPORT PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC __glewGetVertexArrayPointeri_vEXT; +GLEW_FUN_EXPORT PFNGLGETVERTEXARRAYPOINTERVEXTPROC __glewGetVertexArrayPointervEXT; +GLEW_FUN_EXPORT PFNGLMAPNAMEDBUFFEREXTPROC __glewMapNamedBufferEXT; +GLEW_FUN_EXPORT PFNGLMAPNAMEDBUFFERRANGEEXTPROC __glewMapNamedBufferRangeEXT; +GLEW_FUN_EXPORT PFNGLMATRIXFRUSTUMEXTPROC __glewMatrixFrustumEXT; +GLEW_FUN_EXPORT PFNGLMATRIXLOADIDENTITYEXTPROC __glewMatrixLoadIdentityEXT; +GLEW_FUN_EXPORT PFNGLMATRIXLOADTRANSPOSEDEXTPROC __glewMatrixLoadTransposedEXT; +GLEW_FUN_EXPORT PFNGLMATRIXLOADTRANSPOSEFEXTPROC __glewMatrixLoadTransposefEXT; +GLEW_FUN_EXPORT PFNGLMATRIXLOADDEXTPROC __glewMatrixLoaddEXT; +GLEW_FUN_EXPORT PFNGLMATRIXLOADFEXTPROC __glewMatrixLoadfEXT; +GLEW_FUN_EXPORT PFNGLMATRIXMULTTRANSPOSEDEXTPROC __glewMatrixMultTransposedEXT; +GLEW_FUN_EXPORT PFNGLMATRIXMULTTRANSPOSEFEXTPROC __glewMatrixMultTransposefEXT; +GLEW_FUN_EXPORT PFNGLMATRIXMULTDEXTPROC __glewMatrixMultdEXT; +GLEW_FUN_EXPORT PFNGLMATRIXMULTFEXTPROC __glewMatrixMultfEXT; +GLEW_FUN_EXPORT PFNGLMATRIXORTHOEXTPROC __glewMatrixOrthoEXT; +GLEW_FUN_EXPORT PFNGLMATRIXPOPEXTPROC __glewMatrixPopEXT; +GLEW_FUN_EXPORT PFNGLMATRIXPUSHEXTPROC __glewMatrixPushEXT; +GLEW_FUN_EXPORT PFNGLMATRIXROTATEDEXTPROC __glewMatrixRotatedEXT; +GLEW_FUN_EXPORT PFNGLMATRIXROTATEFEXTPROC __glewMatrixRotatefEXT; +GLEW_FUN_EXPORT PFNGLMATRIXSCALEDEXTPROC __glewMatrixScaledEXT; +GLEW_FUN_EXPORT PFNGLMATRIXSCALEFEXTPROC __glewMatrixScalefEXT; +GLEW_FUN_EXPORT PFNGLMATRIXTRANSLATEDEXTPROC __glewMatrixTranslatedEXT; +GLEW_FUN_EXPORT PFNGLMATRIXTRANSLATEFEXTPROC __glewMatrixTranslatefEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXBUFFEREXTPROC __glewMultiTexBufferEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORDPOINTEREXTPROC __glewMultiTexCoordPointerEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXENVFEXTPROC __glewMultiTexEnvfEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXENVFVEXTPROC __glewMultiTexEnvfvEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXENVIEXTPROC __glewMultiTexEnviEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXENVIVEXTPROC __glewMultiTexEnvivEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXGENDEXTPROC __glewMultiTexGendEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXGENDVEXTPROC __glewMultiTexGendvEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXGENFEXTPROC __glewMultiTexGenfEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXGENFVEXTPROC __glewMultiTexGenfvEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXGENIEXTPROC __glewMultiTexGeniEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXGENIVEXTPROC __glewMultiTexGenivEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXIMAGE1DEXTPROC __glewMultiTexImage1DEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXIMAGE2DEXTPROC __glewMultiTexImage2DEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXIMAGE3DEXTPROC __glewMultiTexImage3DEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERIIVEXTPROC __glewMultiTexParameterIivEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERIUIVEXTPROC __glewMultiTexParameterIuivEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERFEXTPROC __glewMultiTexParameterfEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERFVEXTPROC __glewMultiTexParameterfvEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERIEXTPROC __glewMultiTexParameteriEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERIVEXTPROC __glewMultiTexParameterivEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXRENDERBUFFEREXTPROC __glewMultiTexRenderbufferEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXSUBIMAGE1DEXTPROC __glewMultiTexSubImage1DEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXSUBIMAGE2DEXTPROC __glewMultiTexSubImage2DEXT; +GLEW_FUN_EXPORT PFNGLMULTITEXSUBIMAGE3DEXTPROC __glewMultiTexSubImage3DEXT; +GLEW_FUN_EXPORT PFNGLNAMEDBUFFERDATAEXTPROC __glewNamedBufferDataEXT; +GLEW_FUN_EXPORT PFNGLNAMEDBUFFERSUBDATAEXTPROC __glewNamedBufferSubDataEXT; +GLEW_FUN_EXPORT PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC __glewNamedCopyBufferSubDataEXT; +GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC __glewNamedFramebufferRenderbufferEXT; +GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC __glewNamedFramebufferTexture1DEXT; +GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC __glewNamedFramebufferTexture2DEXT; +GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC __glewNamedFramebufferTexture3DEXT; +GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC __glewNamedFramebufferTextureEXT; +GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC __glewNamedFramebufferTextureFaceEXT; +GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC __glewNamedFramebufferTextureLayerEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC __glewNamedProgramLocalParameter4dEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC __glewNamedProgramLocalParameter4dvEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC __glewNamedProgramLocalParameter4fEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC __glewNamedProgramLocalParameter4fvEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC __glewNamedProgramLocalParameterI4iEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC __glewNamedProgramLocalParameterI4ivEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC __glewNamedProgramLocalParameterI4uiEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC __glewNamedProgramLocalParameterI4uivEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC __glewNamedProgramLocalParameters4fvEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC __glewNamedProgramLocalParametersI4ivEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC __glewNamedProgramLocalParametersI4uivEXT; +GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMSTRINGEXTPROC __glewNamedProgramStringEXT; +GLEW_FUN_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC __glewNamedRenderbufferStorageEXT; +GLEW_FUN_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC __glewNamedRenderbufferStorageMultisampleCoverageEXT; +GLEW_FUN_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC __glewNamedRenderbufferStorageMultisampleEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FEXTPROC __glewProgramUniform1fEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FVEXTPROC __glewProgramUniform1fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IEXTPROC __glewProgramUniform1iEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IVEXTPROC __glewProgramUniform1ivEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UIEXTPROC __glewProgramUniform1uiEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UIVEXTPROC __glewProgramUniform1uivEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FEXTPROC __glewProgramUniform2fEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FVEXTPROC __glewProgramUniform2fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IEXTPROC __glewProgramUniform2iEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IVEXTPROC __glewProgramUniform2ivEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UIEXTPROC __glewProgramUniform2uiEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UIVEXTPROC __glewProgramUniform2uivEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FEXTPROC __glewProgramUniform3fEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FVEXTPROC __glewProgramUniform3fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IEXTPROC __glewProgramUniform3iEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IVEXTPROC __glewProgramUniform3ivEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UIEXTPROC __glewProgramUniform3uiEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UIVEXTPROC __glewProgramUniform3uivEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FEXTPROC __glewProgramUniform4fEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FVEXTPROC __glewProgramUniform4fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IEXTPROC __glewProgramUniform4iEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IVEXTPROC __glewProgramUniform4ivEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UIEXTPROC __glewProgramUniform4uiEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UIVEXTPROC __glewProgramUniform4uivEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC __glewProgramUniformMatrix2fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC __glewProgramUniformMatrix2x3fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC __glewProgramUniformMatrix2x4fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC __glewProgramUniformMatrix3fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC __glewProgramUniformMatrix3x2fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC __glewProgramUniformMatrix3x4fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC __glewProgramUniformMatrix4fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC __glewProgramUniformMatrix4x2fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC __glewProgramUniformMatrix4x3fvEXT; +GLEW_FUN_EXPORT PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC __glewPushClientAttribDefaultEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREBUFFEREXTPROC __glewTextureBufferEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE1DEXTPROC __glewTextureImage1DEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE2DEXTPROC __glewTextureImage2DEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE3DEXTPROC __glewTextureImage3DEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERIIVEXTPROC __glewTextureParameterIivEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERIUIVEXTPROC __glewTextureParameterIuivEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERFEXTPROC __glewTextureParameterfEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERFVEXTPROC __glewTextureParameterfvEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERIEXTPROC __glewTextureParameteriEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERIVEXTPROC __glewTextureParameterivEXT; +GLEW_FUN_EXPORT PFNGLTEXTURERENDERBUFFEREXTPROC __glewTextureRenderbufferEXT; +GLEW_FUN_EXPORT PFNGLTEXTURESUBIMAGE1DEXTPROC __glewTextureSubImage1DEXT; +GLEW_FUN_EXPORT PFNGLTEXTURESUBIMAGE2DEXTPROC __glewTextureSubImage2DEXT; +GLEW_FUN_EXPORT PFNGLTEXTURESUBIMAGE3DEXTPROC __glewTextureSubImage3DEXT; +GLEW_FUN_EXPORT PFNGLUNMAPNAMEDBUFFEREXTPROC __glewUnmapNamedBufferEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYCOLOROFFSETEXTPROC __glewVertexArrayColorOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC __glewVertexArrayEdgeFlagOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC __glewVertexArrayFogCoordOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYINDEXOFFSETEXTPROC __glewVertexArrayIndexOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC __glewVertexArrayMultiTexCoordOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYNORMALOFFSETEXTPROC __glewVertexArrayNormalOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC __glewVertexArraySecondaryColorOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC __glewVertexArrayTexCoordOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC __glewVertexArrayVertexAttribIOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC __glewVertexArrayVertexAttribOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC __glewVertexArrayVertexOffsetEXT; + +GLEW_FUN_EXPORT PFNGLCOLORMASKINDEXEDEXTPROC __glewColorMaskIndexedEXT; +GLEW_FUN_EXPORT PFNGLDISABLEINDEXEDEXTPROC __glewDisableIndexedEXT; +GLEW_FUN_EXPORT PFNGLENABLEINDEXEDEXTPROC __glewEnableIndexedEXT; +GLEW_FUN_EXPORT PFNGLGETBOOLEANINDEXEDVEXTPROC __glewGetBooleanIndexedvEXT; +GLEW_FUN_EXPORT PFNGLGETINTEGERINDEXEDVEXTPROC __glewGetIntegerIndexedvEXT; +GLEW_FUN_EXPORT PFNGLISENABLEDINDEXEDEXTPROC __glewIsEnabledIndexedEXT; + +GLEW_FUN_EXPORT PFNGLDRAWARRAYSINSTANCEDEXTPROC __glewDrawArraysInstancedEXT; +GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDEXTPROC __glewDrawElementsInstancedEXT; + +GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTSEXTPROC __glewDrawRangeElementsEXT; + +GLEW_FUN_EXPORT PFNGLFOGCOORDPOINTEREXTPROC __glewFogCoordPointerEXT; +GLEW_FUN_EXPORT PFNGLFOGCOORDDEXTPROC __glewFogCoorddEXT; +GLEW_FUN_EXPORT PFNGLFOGCOORDDVEXTPROC __glewFogCoorddvEXT; +GLEW_FUN_EXPORT PFNGLFOGCOORDFEXTPROC __glewFogCoordfEXT; +GLEW_FUN_EXPORT PFNGLFOGCOORDFVEXTPROC __glewFogCoordfvEXT; + +GLEW_FUN_EXPORT PFNGLFRAGMENTCOLORMATERIALEXTPROC __glewFragmentColorMaterialEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFEXTPROC __glewFragmentLightModelfEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFVEXTPROC __glewFragmentLightModelfvEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELIEXTPROC __glewFragmentLightModeliEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELIVEXTPROC __glewFragmentLightModelivEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFEXTPROC __glewFragmentLightfEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFVEXTPROC __glewFragmentLightfvEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTIEXTPROC __glewFragmentLightiEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTIVEXTPROC __glewFragmentLightivEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFEXTPROC __glewFragmentMaterialfEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFVEXTPROC __glewFragmentMaterialfvEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALIEXTPROC __glewFragmentMaterialiEXT; +GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALIVEXTPROC __glewFragmentMaterialivEXT; +GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTFVEXTPROC __glewGetFragmentLightfvEXT; +GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTIVEXTPROC __glewGetFragmentLightivEXT; +GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVEXTPROC __glewGetFragmentMaterialfvEXT; +GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALIVEXTPROC __glewGetFragmentMaterialivEXT; +GLEW_FUN_EXPORT PFNGLLIGHTENVIEXTPROC __glewLightEnviEXT; + +GLEW_FUN_EXPORT PFNGLBLITFRAMEBUFFEREXTPROC __glewBlitFramebufferEXT; + +GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC __glewRenderbufferStorageMultisampleEXT; + +GLEW_FUN_EXPORT PFNGLBINDFRAMEBUFFEREXTPROC __glewBindFramebufferEXT; +GLEW_FUN_EXPORT PFNGLBINDRENDERBUFFEREXTPROC __glewBindRenderbufferEXT; +GLEW_FUN_EXPORT PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC __glewCheckFramebufferStatusEXT; +GLEW_FUN_EXPORT PFNGLDELETEFRAMEBUFFERSEXTPROC __glewDeleteFramebuffersEXT; +GLEW_FUN_EXPORT PFNGLDELETERENDERBUFFERSEXTPROC __glewDeleteRenderbuffersEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC __glewFramebufferRenderbufferEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE1DEXTPROC __glewFramebufferTexture1DEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE2DEXTPROC __glewFramebufferTexture2DEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE3DEXTPROC __glewFramebufferTexture3DEXT; +GLEW_FUN_EXPORT PFNGLGENFRAMEBUFFERSEXTPROC __glewGenFramebuffersEXT; +GLEW_FUN_EXPORT PFNGLGENRENDERBUFFERSEXTPROC __glewGenRenderbuffersEXT; +GLEW_FUN_EXPORT PFNGLGENERATEMIPMAPEXTPROC __glewGenerateMipmapEXT; +GLEW_FUN_EXPORT PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC __glewGetFramebufferAttachmentParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC __glewGetRenderbufferParameterivEXT; +GLEW_FUN_EXPORT PFNGLISFRAMEBUFFEREXTPROC __glewIsFramebufferEXT; +GLEW_FUN_EXPORT PFNGLISRENDERBUFFEREXTPROC __glewIsRenderbufferEXT; +GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEEXTPROC __glewRenderbufferStorageEXT; + +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREEXTPROC __glewFramebufferTextureEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC __glewFramebufferTextureFaceEXT; +GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC __glewFramebufferTextureLayerEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERIEXTPROC __glewProgramParameteriEXT; + +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERS4FVEXTPROC __glewProgramEnvParameters4fvEXT; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC __glewProgramLocalParameters4fvEXT; + +GLEW_FUN_EXPORT PFNGLBINDFRAGDATALOCATIONEXTPROC __glewBindFragDataLocationEXT; +GLEW_FUN_EXPORT PFNGLGETFRAGDATALOCATIONEXTPROC __glewGetFragDataLocationEXT; +GLEW_FUN_EXPORT PFNGLGETUNIFORMUIVEXTPROC __glewGetUniformuivEXT; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIIVEXTPROC __glewGetVertexAttribIivEXT; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIUIVEXTPROC __glewGetVertexAttribIuivEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM1UIEXTPROC __glewUniform1uiEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM1UIVEXTPROC __glewUniform1uivEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM2UIEXTPROC __glewUniform2uiEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM2UIVEXTPROC __glewUniform2uivEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM3UIEXTPROC __glewUniform3uiEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM3UIVEXTPROC __glewUniform3uivEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM4UIEXTPROC __glewUniform4uiEXT; +GLEW_FUN_EXPORT PFNGLUNIFORM4UIVEXTPROC __glewUniform4uivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1IEXTPROC __glewVertexAttribI1iEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1IVEXTPROC __glewVertexAttribI1ivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1UIEXTPROC __glewVertexAttribI1uiEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1UIVEXTPROC __glewVertexAttribI1uivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2IEXTPROC __glewVertexAttribI2iEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2IVEXTPROC __glewVertexAttribI2ivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2UIEXTPROC __glewVertexAttribI2uiEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2UIVEXTPROC __glewVertexAttribI2uivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3IEXTPROC __glewVertexAttribI3iEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3IVEXTPROC __glewVertexAttribI3ivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3UIEXTPROC __glewVertexAttribI3uiEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3UIVEXTPROC __glewVertexAttribI3uivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4BVEXTPROC __glewVertexAttribI4bvEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4IEXTPROC __glewVertexAttribI4iEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4IVEXTPROC __glewVertexAttribI4ivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4SVEXTPROC __glewVertexAttribI4svEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UBVEXTPROC __glewVertexAttribI4ubvEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UIEXTPROC __glewVertexAttribI4uiEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UIVEXTPROC __glewVertexAttribI4uivEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4USVEXTPROC __glewVertexAttribI4usvEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBIPOINTEREXTPROC __glewVertexAttribIPointerEXT; + +GLEW_FUN_EXPORT PFNGLGETHISTOGRAMEXTPROC __glewGetHistogramEXT; +GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPARAMETERFVEXTPROC __glewGetHistogramParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPARAMETERIVEXTPROC __glewGetHistogramParameterivEXT; +GLEW_FUN_EXPORT PFNGLGETMINMAXEXTPROC __glewGetMinmaxEXT; +GLEW_FUN_EXPORT PFNGLGETMINMAXPARAMETERFVEXTPROC __glewGetMinmaxParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETMINMAXPARAMETERIVEXTPROC __glewGetMinmaxParameterivEXT; +GLEW_FUN_EXPORT PFNGLHISTOGRAMEXTPROC __glewHistogramEXT; +GLEW_FUN_EXPORT PFNGLMINMAXEXTPROC __glewMinmaxEXT; +GLEW_FUN_EXPORT PFNGLRESETHISTOGRAMEXTPROC __glewResetHistogramEXT; +GLEW_FUN_EXPORT PFNGLRESETMINMAXEXTPROC __glewResetMinmaxEXT; + +GLEW_FUN_EXPORT PFNGLINDEXFUNCEXTPROC __glewIndexFuncEXT; + +GLEW_FUN_EXPORT PFNGLINDEXMATERIALEXTPROC __glewIndexMaterialEXT; + +GLEW_FUN_EXPORT PFNGLAPPLYTEXTUREEXTPROC __glewApplyTextureEXT; +GLEW_FUN_EXPORT PFNGLTEXTURELIGHTEXTPROC __glewTextureLightEXT; +GLEW_FUN_EXPORT PFNGLTEXTUREMATERIALEXTPROC __glewTextureMaterialEXT; + +GLEW_FUN_EXPORT PFNGLMULTIDRAWARRAYSEXTPROC __glewMultiDrawArraysEXT; +GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSEXTPROC __glewMultiDrawElementsEXT; + +GLEW_FUN_EXPORT PFNGLSAMPLEMASKEXTPROC __glewSampleMaskEXT; +GLEW_FUN_EXPORT PFNGLSAMPLEPATTERNEXTPROC __glewSamplePatternEXT; + +GLEW_FUN_EXPORT PFNGLCOLORTABLEEXTPROC __glewColorTableEXT; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLEEXTPROC __glewGetColorTableEXT; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERFVEXTPROC __glewGetColorTableParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERIVEXTPROC __glewGetColorTableParameterivEXT; + +GLEW_FUN_EXPORT PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC __glewGetPixelTransformParameterfvEXT; +GLEW_FUN_EXPORT PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC __glewGetPixelTransformParameterivEXT; +GLEW_FUN_EXPORT PFNGLPIXELTRANSFORMPARAMETERFEXTPROC __glewPixelTransformParameterfEXT; +GLEW_FUN_EXPORT PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC __glewPixelTransformParameterfvEXT; +GLEW_FUN_EXPORT PFNGLPIXELTRANSFORMPARAMETERIEXTPROC __glewPixelTransformParameteriEXT; +GLEW_FUN_EXPORT PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC __glewPixelTransformParameterivEXT; + +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFEXTPROC __glewPointParameterfEXT; +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFVEXTPROC __glewPointParameterfvEXT; + +GLEW_FUN_EXPORT PFNGLPOLYGONOFFSETEXTPROC __glewPolygonOffsetEXT; + +GLEW_FUN_EXPORT PFNGLPROVOKINGVERTEXEXTPROC __glewProvokingVertexEXT; + +GLEW_FUN_EXPORT PFNGLBEGINSCENEEXTPROC __glewBeginSceneEXT; +GLEW_FUN_EXPORT PFNGLENDSCENEEXTPROC __glewEndSceneEXT; + +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BEXTPROC __glewSecondaryColor3bEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BVEXTPROC __glewSecondaryColor3bvEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DEXTPROC __glewSecondaryColor3dEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DVEXTPROC __glewSecondaryColor3dvEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FEXTPROC __glewSecondaryColor3fEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FVEXTPROC __glewSecondaryColor3fvEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IEXTPROC __glewSecondaryColor3iEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IVEXTPROC __glewSecondaryColor3ivEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SEXTPROC __glewSecondaryColor3sEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SVEXTPROC __glewSecondaryColor3svEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBEXTPROC __glewSecondaryColor3ubEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBVEXTPROC __glewSecondaryColor3ubvEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIEXTPROC __glewSecondaryColor3uiEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIVEXTPROC __glewSecondaryColor3uivEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USEXTPROC __glewSecondaryColor3usEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USVEXTPROC __glewSecondaryColor3usvEXT; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLORPOINTEREXTPROC __glewSecondaryColorPointerEXT; + +GLEW_FUN_EXPORT PFNGLACTIVEPROGRAMEXTPROC __glewActiveProgramEXT; +GLEW_FUN_EXPORT PFNGLCREATESHADERPROGRAMEXTPROC __glewCreateShaderProgramEXT; +GLEW_FUN_EXPORT PFNGLUSESHADERPROGRAMEXTPROC __glewUseShaderProgramEXT; + +GLEW_FUN_EXPORT PFNGLBINDIMAGETEXTUREEXTPROC __glewBindImageTextureEXT; +GLEW_FUN_EXPORT PFNGLMEMORYBARRIEREXTPROC __glewMemoryBarrierEXT; + +GLEW_FUN_EXPORT PFNGLACTIVESTENCILFACEEXTPROC __glewActiveStencilFaceEXT; + +GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE1DEXTPROC __glewTexSubImage1DEXT; +GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE2DEXTPROC __glewTexSubImage2DEXT; +GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE3DEXTPROC __glewTexSubImage3DEXT; + +GLEW_FUN_EXPORT PFNGLTEXIMAGE3DEXTPROC __glewTexImage3DEXT; + +GLEW_FUN_EXPORT PFNGLTEXBUFFEREXTPROC __glewTexBufferEXT; + +GLEW_FUN_EXPORT PFNGLCLEARCOLORIIEXTPROC __glewClearColorIiEXT; +GLEW_FUN_EXPORT PFNGLCLEARCOLORIUIEXTPROC __glewClearColorIuiEXT; +GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIIVEXTPROC __glewGetTexParameterIivEXT; +GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIUIVEXTPROC __glewGetTexParameterIuivEXT; +GLEW_FUN_EXPORT PFNGLTEXPARAMETERIIVEXTPROC __glewTexParameterIivEXT; +GLEW_FUN_EXPORT PFNGLTEXPARAMETERIUIVEXTPROC __glewTexParameterIuivEXT; + +GLEW_FUN_EXPORT PFNGLARETEXTURESRESIDENTEXTPROC __glewAreTexturesResidentEXT; +GLEW_FUN_EXPORT PFNGLBINDTEXTUREEXTPROC __glewBindTextureEXT; +GLEW_FUN_EXPORT PFNGLDELETETEXTURESEXTPROC __glewDeleteTexturesEXT; +GLEW_FUN_EXPORT PFNGLGENTEXTURESEXTPROC __glewGenTexturesEXT; +GLEW_FUN_EXPORT PFNGLISTEXTUREEXTPROC __glewIsTextureEXT; +GLEW_FUN_EXPORT PFNGLPRIORITIZETEXTURESEXTPROC __glewPrioritizeTexturesEXT; + +GLEW_FUN_EXPORT PFNGLTEXTURENORMALEXTPROC __glewTextureNormalEXT; + +GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTI64VEXTPROC __glewGetQueryObjecti64vEXT; +GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUI64VEXTPROC __glewGetQueryObjectui64vEXT; + +GLEW_FUN_EXPORT PFNGLBEGINTRANSFORMFEEDBACKEXTPROC __glewBeginTransformFeedbackEXT; +GLEW_FUN_EXPORT PFNGLBINDBUFFERBASEEXTPROC __glewBindBufferBaseEXT; +GLEW_FUN_EXPORT PFNGLBINDBUFFEROFFSETEXTPROC __glewBindBufferOffsetEXT; +GLEW_FUN_EXPORT PFNGLBINDBUFFERRANGEEXTPROC __glewBindBufferRangeEXT; +GLEW_FUN_EXPORT PFNGLENDTRANSFORMFEEDBACKEXTPROC __glewEndTransformFeedbackEXT; +GLEW_FUN_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC __glewGetTransformFeedbackVaryingEXT; +GLEW_FUN_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC __glewTransformFeedbackVaryingsEXT; + +GLEW_FUN_EXPORT PFNGLARRAYELEMENTEXTPROC __glewArrayElementEXT; +GLEW_FUN_EXPORT PFNGLCOLORPOINTEREXTPROC __glewColorPointerEXT; +GLEW_FUN_EXPORT PFNGLDRAWARRAYSEXTPROC __glewDrawArraysEXT; +GLEW_FUN_EXPORT PFNGLEDGEFLAGPOINTEREXTPROC __glewEdgeFlagPointerEXT; +GLEW_FUN_EXPORT PFNGLINDEXPOINTEREXTPROC __glewIndexPointerEXT; +GLEW_FUN_EXPORT PFNGLNORMALPOINTEREXTPROC __glewNormalPointerEXT; +GLEW_FUN_EXPORT PFNGLTEXCOORDPOINTEREXTPROC __glewTexCoordPointerEXT; +GLEW_FUN_EXPORT PFNGLVERTEXPOINTEREXTPROC __glewVertexPointerEXT; + +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBLDVEXTPROC __glewGetVertexAttribLdvEXT; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC __glewVertexArrayVertexAttribLOffsetEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1DEXTPROC __glewVertexAttribL1dEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1DVEXTPROC __glewVertexAttribL1dvEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2DEXTPROC __glewVertexAttribL2dEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2DVEXTPROC __glewVertexAttribL2dvEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3DEXTPROC __glewVertexAttribL3dEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3DVEXTPROC __glewVertexAttribL3dvEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4DEXTPROC __glewVertexAttribL4dEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4DVEXTPROC __glewVertexAttribL4dvEXT; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBLPOINTEREXTPROC __glewVertexAttribLPointerEXT; + +GLEW_FUN_EXPORT PFNGLBEGINVERTEXSHADEREXTPROC __glewBeginVertexShaderEXT; +GLEW_FUN_EXPORT PFNGLBINDLIGHTPARAMETEREXTPROC __glewBindLightParameterEXT; +GLEW_FUN_EXPORT PFNGLBINDMATERIALPARAMETEREXTPROC __glewBindMaterialParameterEXT; +GLEW_FUN_EXPORT PFNGLBINDPARAMETEREXTPROC __glewBindParameterEXT; +GLEW_FUN_EXPORT PFNGLBINDTEXGENPARAMETEREXTPROC __glewBindTexGenParameterEXT; +GLEW_FUN_EXPORT PFNGLBINDTEXTUREUNITPARAMETEREXTPROC __glewBindTextureUnitParameterEXT; +GLEW_FUN_EXPORT PFNGLBINDVERTEXSHADEREXTPROC __glewBindVertexShaderEXT; +GLEW_FUN_EXPORT PFNGLDELETEVERTEXSHADEREXTPROC __glewDeleteVertexShaderEXT; +GLEW_FUN_EXPORT PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC __glewDisableVariantClientStateEXT; +GLEW_FUN_EXPORT PFNGLENABLEVARIANTCLIENTSTATEEXTPROC __glewEnableVariantClientStateEXT; +GLEW_FUN_EXPORT PFNGLENDVERTEXSHADEREXTPROC __glewEndVertexShaderEXT; +GLEW_FUN_EXPORT PFNGLEXTRACTCOMPONENTEXTPROC __glewExtractComponentEXT; +GLEW_FUN_EXPORT PFNGLGENSYMBOLSEXTPROC __glewGenSymbolsEXT; +GLEW_FUN_EXPORT PFNGLGENVERTEXSHADERSEXTPROC __glewGenVertexShadersEXT; +GLEW_FUN_EXPORT PFNGLGETINVARIANTBOOLEANVEXTPROC __glewGetInvariantBooleanvEXT; +GLEW_FUN_EXPORT PFNGLGETINVARIANTFLOATVEXTPROC __glewGetInvariantFloatvEXT; +GLEW_FUN_EXPORT PFNGLGETINVARIANTINTEGERVEXTPROC __glewGetInvariantIntegervEXT; +GLEW_FUN_EXPORT PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC __glewGetLocalConstantBooleanvEXT; +GLEW_FUN_EXPORT PFNGLGETLOCALCONSTANTFLOATVEXTPROC __glewGetLocalConstantFloatvEXT; +GLEW_FUN_EXPORT PFNGLGETLOCALCONSTANTINTEGERVEXTPROC __glewGetLocalConstantIntegervEXT; +GLEW_FUN_EXPORT PFNGLGETVARIANTBOOLEANVEXTPROC __glewGetVariantBooleanvEXT; +GLEW_FUN_EXPORT PFNGLGETVARIANTFLOATVEXTPROC __glewGetVariantFloatvEXT; +GLEW_FUN_EXPORT PFNGLGETVARIANTINTEGERVEXTPROC __glewGetVariantIntegervEXT; +GLEW_FUN_EXPORT PFNGLGETVARIANTPOINTERVEXTPROC __glewGetVariantPointervEXT; +GLEW_FUN_EXPORT PFNGLINSERTCOMPONENTEXTPROC __glewInsertComponentEXT; +GLEW_FUN_EXPORT PFNGLISVARIANTENABLEDEXTPROC __glewIsVariantEnabledEXT; +GLEW_FUN_EXPORT PFNGLSETINVARIANTEXTPROC __glewSetInvariantEXT; +GLEW_FUN_EXPORT PFNGLSETLOCALCONSTANTEXTPROC __glewSetLocalConstantEXT; +GLEW_FUN_EXPORT PFNGLSHADEROP1EXTPROC __glewShaderOp1EXT; +GLEW_FUN_EXPORT PFNGLSHADEROP2EXTPROC __glewShaderOp2EXT; +GLEW_FUN_EXPORT PFNGLSHADEROP3EXTPROC __glewShaderOp3EXT; +GLEW_FUN_EXPORT PFNGLSWIZZLEEXTPROC __glewSwizzleEXT; +GLEW_FUN_EXPORT PFNGLVARIANTPOINTEREXTPROC __glewVariantPointerEXT; +GLEW_FUN_EXPORT PFNGLVARIANTBVEXTPROC __glewVariantbvEXT; +GLEW_FUN_EXPORT PFNGLVARIANTDVEXTPROC __glewVariantdvEXT; +GLEW_FUN_EXPORT PFNGLVARIANTFVEXTPROC __glewVariantfvEXT; +GLEW_FUN_EXPORT PFNGLVARIANTIVEXTPROC __glewVariantivEXT; +GLEW_FUN_EXPORT PFNGLVARIANTSVEXTPROC __glewVariantsvEXT; +GLEW_FUN_EXPORT PFNGLVARIANTUBVEXTPROC __glewVariantubvEXT; +GLEW_FUN_EXPORT PFNGLVARIANTUIVEXTPROC __glewVariantuivEXT; +GLEW_FUN_EXPORT PFNGLVARIANTUSVEXTPROC __glewVariantusvEXT; +GLEW_FUN_EXPORT PFNGLWRITEMASKEXTPROC __glewWriteMaskEXT; + +GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTPOINTEREXTPROC __glewVertexWeightPointerEXT; +GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTFEXTPROC __glewVertexWeightfEXT; +GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTFVEXTPROC __glewVertexWeightfvEXT; + +GLEW_FUN_EXPORT PFNGLFRAMETERMINATORGREMEDYPROC __glewFrameTerminatorGREMEDY; + +GLEW_FUN_EXPORT PFNGLSTRINGMARKERGREMEDYPROC __glewStringMarkerGREMEDY; + +GLEW_FUN_EXPORT PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC __glewGetImageTransformParameterfvHP; +GLEW_FUN_EXPORT PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC __glewGetImageTransformParameterivHP; +GLEW_FUN_EXPORT PFNGLIMAGETRANSFORMPARAMETERFHPPROC __glewImageTransformParameterfHP; +GLEW_FUN_EXPORT PFNGLIMAGETRANSFORMPARAMETERFVHPPROC __glewImageTransformParameterfvHP; +GLEW_FUN_EXPORT PFNGLIMAGETRANSFORMPARAMETERIHPPROC __glewImageTransformParameteriHP; +GLEW_FUN_EXPORT PFNGLIMAGETRANSFORMPARAMETERIVHPPROC __glewImageTransformParameterivHP; + +GLEW_FUN_EXPORT PFNGLMULTIMODEDRAWARRAYSIBMPROC __glewMultiModeDrawArraysIBM; +GLEW_FUN_EXPORT PFNGLMULTIMODEDRAWELEMENTSIBMPROC __glewMultiModeDrawElementsIBM; + +GLEW_FUN_EXPORT PFNGLCOLORPOINTERLISTIBMPROC __glewColorPointerListIBM; +GLEW_FUN_EXPORT PFNGLEDGEFLAGPOINTERLISTIBMPROC __glewEdgeFlagPointerListIBM; +GLEW_FUN_EXPORT PFNGLFOGCOORDPOINTERLISTIBMPROC __glewFogCoordPointerListIBM; +GLEW_FUN_EXPORT PFNGLINDEXPOINTERLISTIBMPROC __glewIndexPointerListIBM; +GLEW_FUN_EXPORT PFNGLNORMALPOINTERLISTIBMPROC __glewNormalPointerListIBM; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLORPOINTERLISTIBMPROC __glewSecondaryColorPointerListIBM; +GLEW_FUN_EXPORT PFNGLTEXCOORDPOINTERLISTIBMPROC __glewTexCoordPointerListIBM; +GLEW_FUN_EXPORT PFNGLVERTEXPOINTERLISTIBMPROC __glewVertexPointerListIBM; + +GLEW_FUN_EXPORT PFNGLCOLORPOINTERVINTELPROC __glewColorPointervINTEL; +GLEW_FUN_EXPORT PFNGLNORMALPOINTERVINTELPROC __glewNormalPointervINTEL; +GLEW_FUN_EXPORT PFNGLTEXCOORDPOINTERVINTELPROC __glewTexCoordPointervINTEL; +GLEW_FUN_EXPORT PFNGLVERTEXPOINTERVINTELPROC __glewVertexPointervINTEL; + +GLEW_FUN_EXPORT PFNGLTEXSCISSORFUNCINTELPROC __glewTexScissorFuncINTEL; +GLEW_FUN_EXPORT PFNGLTEXSCISSORINTELPROC __glewTexScissorINTEL; + +GLEW_FUN_EXPORT PFNGLBUFFERREGIONENABLEDEXTPROC __glewBufferRegionEnabledEXT; +GLEW_FUN_EXPORT PFNGLDELETEBUFFERREGIONEXTPROC __glewDeleteBufferRegionEXT; +GLEW_FUN_EXPORT PFNGLDRAWBUFFERREGIONEXTPROC __glewDrawBufferRegionEXT; +GLEW_FUN_EXPORT PFNGLNEWBUFFERREGIONEXTPROC __glewNewBufferRegionEXT; +GLEW_FUN_EXPORT PFNGLREADBUFFERREGIONEXTPROC __glewReadBufferRegionEXT; + +GLEW_FUN_EXPORT PFNGLRESIZEBUFFERSMESAPROC __glewResizeBuffersMESA; + +GLEW_FUN_EXPORT PFNGLWINDOWPOS2DMESAPROC __glewWindowPos2dMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2DVMESAPROC __glewWindowPos2dvMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2FMESAPROC __glewWindowPos2fMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2FVMESAPROC __glewWindowPos2fvMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2IMESAPROC __glewWindowPos2iMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2IVMESAPROC __glewWindowPos2ivMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2SMESAPROC __glewWindowPos2sMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS2SVMESAPROC __glewWindowPos2svMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3DMESAPROC __glewWindowPos3dMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3DVMESAPROC __glewWindowPos3dvMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3FMESAPROC __glewWindowPos3fMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3FVMESAPROC __glewWindowPos3fvMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3IMESAPROC __glewWindowPos3iMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3IVMESAPROC __glewWindowPos3ivMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3SMESAPROC __glewWindowPos3sMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS3SVMESAPROC __glewWindowPos3svMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS4DMESAPROC __glewWindowPos4dMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS4DVMESAPROC __glewWindowPos4dvMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS4FMESAPROC __glewWindowPos4fMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS4FVMESAPROC __glewWindowPos4fvMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS4IMESAPROC __glewWindowPos4iMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS4IVMESAPROC __glewWindowPos4ivMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS4SMESAPROC __glewWindowPos4sMESA; +GLEW_FUN_EXPORT PFNGLWINDOWPOS4SVMESAPROC __glewWindowPos4svMESA; + +GLEW_FUN_EXPORT PFNGLBEGINCONDITIONALRENDERNVPROC __glewBeginConditionalRenderNV; +GLEW_FUN_EXPORT PFNGLENDCONDITIONALRENDERNVPROC __glewEndConditionalRenderNV; + +GLEW_FUN_EXPORT PFNGLCOPYIMAGESUBDATANVPROC __glewCopyImageSubDataNV; + +GLEW_FUN_EXPORT PFNGLCLEARDEPTHDNVPROC __glewClearDepthdNV; +GLEW_FUN_EXPORT PFNGLDEPTHBOUNDSDNVPROC __glewDepthBoundsdNV; +GLEW_FUN_EXPORT PFNGLDEPTHRANGEDNVPROC __glewDepthRangedNV; + +GLEW_FUN_EXPORT PFNGLEVALMAPSNVPROC __glewEvalMapsNV; +GLEW_FUN_EXPORT PFNGLGETMAPATTRIBPARAMETERFVNVPROC __glewGetMapAttribParameterfvNV; +GLEW_FUN_EXPORT PFNGLGETMAPATTRIBPARAMETERIVNVPROC __glewGetMapAttribParameterivNV; +GLEW_FUN_EXPORT PFNGLGETMAPCONTROLPOINTSNVPROC __glewGetMapControlPointsNV; +GLEW_FUN_EXPORT PFNGLGETMAPPARAMETERFVNVPROC __glewGetMapParameterfvNV; +GLEW_FUN_EXPORT PFNGLGETMAPPARAMETERIVNVPROC __glewGetMapParameterivNV; +GLEW_FUN_EXPORT PFNGLMAPCONTROLPOINTSNVPROC __glewMapControlPointsNV; +GLEW_FUN_EXPORT PFNGLMAPPARAMETERFVNVPROC __glewMapParameterfvNV; +GLEW_FUN_EXPORT PFNGLMAPPARAMETERIVNVPROC __glewMapParameterivNV; + +GLEW_FUN_EXPORT PFNGLGETMULTISAMPLEFVNVPROC __glewGetMultisamplefvNV; +GLEW_FUN_EXPORT PFNGLSAMPLEMASKINDEXEDNVPROC __glewSampleMaskIndexedNV; +GLEW_FUN_EXPORT PFNGLTEXRENDERBUFFERNVPROC __glewTexRenderbufferNV; + +GLEW_FUN_EXPORT PFNGLDELETEFENCESNVPROC __glewDeleteFencesNV; +GLEW_FUN_EXPORT PFNGLFINISHFENCENVPROC __glewFinishFenceNV; +GLEW_FUN_EXPORT PFNGLGENFENCESNVPROC __glewGenFencesNV; +GLEW_FUN_EXPORT PFNGLGETFENCEIVNVPROC __glewGetFenceivNV; +GLEW_FUN_EXPORT PFNGLISFENCENVPROC __glewIsFenceNV; +GLEW_FUN_EXPORT PFNGLSETFENCENVPROC __glewSetFenceNV; +GLEW_FUN_EXPORT PFNGLTESTFENCENVPROC __glewTestFenceNV; + +GLEW_FUN_EXPORT PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC __glewGetProgramNamedParameterdvNV; +GLEW_FUN_EXPORT PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC __glewGetProgramNamedParameterfvNV; +GLEW_FUN_EXPORT PFNGLPROGRAMNAMEDPARAMETER4DNVPROC __glewProgramNamedParameter4dNV; +GLEW_FUN_EXPORT PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC __glewProgramNamedParameter4dvNV; +GLEW_FUN_EXPORT PFNGLPROGRAMNAMEDPARAMETER4FNVPROC __glewProgramNamedParameter4fNV; +GLEW_FUN_EXPORT PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC __glewProgramNamedParameter4fvNV; + +GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC __glewRenderbufferStorageMultisampleCoverageNV; + +GLEW_FUN_EXPORT PFNGLPROGRAMVERTEXLIMITNVPROC __glewProgramVertexLimitNV; + +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERI4INVPROC __glewProgramEnvParameterI4iNV; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERI4IVNVPROC __glewProgramEnvParameterI4ivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERI4UINVPROC __glewProgramEnvParameterI4uiNV; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERI4UIVNVPROC __glewProgramEnvParameterI4uivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERSI4IVNVPROC __glewProgramEnvParametersI4ivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC __glewProgramEnvParametersI4uivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERI4INVPROC __glewProgramLocalParameterI4iNV; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC __glewProgramLocalParameterI4ivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERI4UINVPROC __glewProgramLocalParameterI4uiNV; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC __glewProgramLocalParameterI4uivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC __glewProgramLocalParametersI4ivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC __glewProgramLocalParametersI4uivNV; + +GLEW_FUN_EXPORT PFNGLGETUNIFORMI64VNVPROC __glewGetUniformi64vNV; +GLEW_FUN_EXPORT PFNGLGETUNIFORMUI64VNVPROC __glewGetUniformui64vNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1I64NVPROC __glewProgramUniform1i64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1I64VNVPROC __glewProgramUniform1i64vNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UI64NVPROC __glewProgramUniform1ui64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UI64VNVPROC __glewProgramUniform1ui64vNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2I64NVPROC __glewProgramUniform2i64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2I64VNVPROC __glewProgramUniform2i64vNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UI64NVPROC __glewProgramUniform2ui64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UI64VNVPROC __glewProgramUniform2ui64vNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3I64NVPROC __glewProgramUniform3i64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3I64VNVPROC __glewProgramUniform3i64vNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UI64NVPROC __glewProgramUniform3ui64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UI64VNVPROC __glewProgramUniform3ui64vNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4I64NVPROC __glewProgramUniform4i64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4I64VNVPROC __glewProgramUniform4i64vNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UI64NVPROC __glewProgramUniform4ui64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UI64VNVPROC __glewProgramUniform4ui64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORM1I64NVPROC __glewUniform1i64NV; +GLEW_FUN_EXPORT PFNGLUNIFORM1I64VNVPROC __glewUniform1i64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORM1UI64NVPROC __glewUniform1ui64NV; +GLEW_FUN_EXPORT PFNGLUNIFORM1UI64VNVPROC __glewUniform1ui64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORM2I64NVPROC __glewUniform2i64NV; +GLEW_FUN_EXPORT PFNGLUNIFORM2I64VNVPROC __glewUniform2i64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORM2UI64NVPROC __glewUniform2ui64NV; +GLEW_FUN_EXPORT PFNGLUNIFORM2UI64VNVPROC __glewUniform2ui64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORM3I64NVPROC __glewUniform3i64NV; +GLEW_FUN_EXPORT PFNGLUNIFORM3I64VNVPROC __glewUniform3i64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORM3UI64NVPROC __glewUniform3ui64NV; +GLEW_FUN_EXPORT PFNGLUNIFORM3UI64VNVPROC __glewUniform3ui64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORM4I64NVPROC __glewUniform4i64NV; +GLEW_FUN_EXPORT PFNGLUNIFORM4I64VNVPROC __glewUniform4i64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORM4UI64NVPROC __glewUniform4ui64NV; +GLEW_FUN_EXPORT PFNGLUNIFORM4UI64VNVPROC __glewUniform4ui64vNV; + +GLEW_FUN_EXPORT PFNGLCOLOR3HNVPROC __glewColor3hNV; +GLEW_FUN_EXPORT PFNGLCOLOR3HVNVPROC __glewColor3hvNV; +GLEW_FUN_EXPORT PFNGLCOLOR4HNVPROC __glewColor4hNV; +GLEW_FUN_EXPORT PFNGLCOLOR4HVNVPROC __glewColor4hvNV; +GLEW_FUN_EXPORT PFNGLFOGCOORDHNVPROC __glewFogCoordhNV; +GLEW_FUN_EXPORT PFNGLFOGCOORDHVNVPROC __glewFogCoordhvNV; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1HNVPROC __glewMultiTexCoord1hNV; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1HVNVPROC __glewMultiTexCoord1hvNV; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2HNVPROC __glewMultiTexCoord2hNV; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2HVNVPROC __glewMultiTexCoord2hvNV; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3HNVPROC __glewMultiTexCoord3hNV; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3HVNVPROC __glewMultiTexCoord3hvNV; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4HNVPROC __glewMultiTexCoord4hNV; +GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4HVNVPROC __glewMultiTexCoord4hvNV; +GLEW_FUN_EXPORT PFNGLNORMAL3HNVPROC __glewNormal3hNV; +GLEW_FUN_EXPORT PFNGLNORMAL3HVNVPROC __glewNormal3hvNV; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3HNVPROC __glewSecondaryColor3hNV; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3HVNVPROC __glewSecondaryColor3hvNV; +GLEW_FUN_EXPORT PFNGLTEXCOORD1HNVPROC __glewTexCoord1hNV; +GLEW_FUN_EXPORT PFNGLTEXCOORD1HVNVPROC __glewTexCoord1hvNV; +GLEW_FUN_EXPORT PFNGLTEXCOORD2HNVPROC __glewTexCoord2hNV; +GLEW_FUN_EXPORT PFNGLTEXCOORD2HVNVPROC __glewTexCoord2hvNV; +GLEW_FUN_EXPORT PFNGLTEXCOORD3HNVPROC __glewTexCoord3hNV; +GLEW_FUN_EXPORT PFNGLTEXCOORD3HVNVPROC __glewTexCoord3hvNV; +GLEW_FUN_EXPORT PFNGLTEXCOORD4HNVPROC __glewTexCoord4hNV; +GLEW_FUN_EXPORT PFNGLTEXCOORD4HVNVPROC __glewTexCoord4hvNV; +GLEW_FUN_EXPORT PFNGLVERTEX2HNVPROC __glewVertex2hNV; +GLEW_FUN_EXPORT PFNGLVERTEX2HVNVPROC __glewVertex2hvNV; +GLEW_FUN_EXPORT PFNGLVERTEX3HNVPROC __glewVertex3hNV; +GLEW_FUN_EXPORT PFNGLVERTEX3HVNVPROC __glewVertex3hvNV; +GLEW_FUN_EXPORT PFNGLVERTEX4HNVPROC __glewVertex4hNV; +GLEW_FUN_EXPORT PFNGLVERTEX4HVNVPROC __glewVertex4hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1HNVPROC __glewVertexAttrib1hNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1HVNVPROC __glewVertexAttrib1hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2HNVPROC __glewVertexAttrib2hNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2HVNVPROC __glewVertexAttrib2hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3HNVPROC __glewVertexAttrib3hNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3HVNVPROC __glewVertexAttrib3hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4HNVPROC __glewVertexAttrib4hNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4HVNVPROC __glewVertexAttrib4hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS1HVNVPROC __glewVertexAttribs1hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS2HVNVPROC __glewVertexAttribs2hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS3HVNVPROC __glewVertexAttribs3hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4HVNVPROC __glewVertexAttribs4hvNV; +GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTHNVPROC __glewVertexWeighthNV; +GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTHVNVPROC __glewVertexWeighthvNV; + +GLEW_FUN_EXPORT PFNGLBEGINOCCLUSIONQUERYNVPROC __glewBeginOcclusionQueryNV; +GLEW_FUN_EXPORT PFNGLDELETEOCCLUSIONQUERIESNVPROC __glewDeleteOcclusionQueriesNV; +GLEW_FUN_EXPORT PFNGLENDOCCLUSIONQUERYNVPROC __glewEndOcclusionQueryNV; +GLEW_FUN_EXPORT PFNGLGENOCCLUSIONQUERIESNVPROC __glewGenOcclusionQueriesNV; +GLEW_FUN_EXPORT PFNGLGETOCCLUSIONQUERYIVNVPROC __glewGetOcclusionQueryivNV; +GLEW_FUN_EXPORT PFNGLGETOCCLUSIONQUERYUIVNVPROC __glewGetOcclusionQueryuivNV; +GLEW_FUN_EXPORT PFNGLISOCCLUSIONQUERYNVPROC __glewIsOcclusionQueryNV; + +GLEW_FUN_EXPORT PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC __glewProgramBufferParametersIivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC __glewProgramBufferParametersIuivNV; +GLEW_FUN_EXPORT PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC __glewProgramBufferParametersfvNV; + +GLEW_FUN_EXPORT PFNGLFLUSHPIXELDATARANGENVPROC __glewFlushPixelDataRangeNV; +GLEW_FUN_EXPORT PFNGLPIXELDATARANGENVPROC __glewPixelDataRangeNV; + +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERINVPROC __glewPointParameteriNV; +GLEW_FUN_EXPORT PFNGLPOINTPARAMETERIVNVPROC __glewPointParameterivNV; + +GLEW_FUN_EXPORT PFNGLGETVIDEOI64VNVPROC __glewGetVideoi64vNV; +GLEW_FUN_EXPORT PFNGLGETVIDEOIVNVPROC __glewGetVideoivNV; +GLEW_FUN_EXPORT PFNGLGETVIDEOUI64VNVPROC __glewGetVideoui64vNV; +GLEW_FUN_EXPORT PFNGLGETVIDEOUIVNVPROC __glewGetVideouivNV; +GLEW_FUN_EXPORT PFNGLPRESENTFRAMEDUALFILLNVPROC __glewPresentFrameDualFillNV; +GLEW_FUN_EXPORT PFNGLPRESENTFRAMEKEYEDNVPROC __glewPresentFrameKeyedNV; + +GLEW_FUN_EXPORT PFNGLPRIMITIVERESTARTINDEXNVPROC __glewPrimitiveRestartIndexNV; +GLEW_FUN_EXPORT PFNGLPRIMITIVERESTARTNVPROC __glewPrimitiveRestartNV; + +GLEW_FUN_EXPORT PFNGLCOMBINERINPUTNVPROC __glewCombinerInputNV; +GLEW_FUN_EXPORT PFNGLCOMBINEROUTPUTNVPROC __glewCombinerOutputNV; +GLEW_FUN_EXPORT PFNGLCOMBINERPARAMETERFNVPROC __glewCombinerParameterfNV; +GLEW_FUN_EXPORT PFNGLCOMBINERPARAMETERFVNVPROC __glewCombinerParameterfvNV; +GLEW_FUN_EXPORT PFNGLCOMBINERPARAMETERINVPROC __glewCombinerParameteriNV; +GLEW_FUN_EXPORT PFNGLCOMBINERPARAMETERIVNVPROC __glewCombinerParameterivNV; +GLEW_FUN_EXPORT PFNGLFINALCOMBINERINPUTNVPROC __glewFinalCombinerInputNV; +GLEW_FUN_EXPORT PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC __glewGetCombinerInputParameterfvNV; +GLEW_FUN_EXPORT PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC __glewGetCombinerInputParameterivNV; +GLEW_FUN_EXPORT PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC __glewGetCombinerOutputParameterfvNV; +GLEW_FUN_EXPORT PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC __glewGetCombinerOutputParameterivNV; +GLEW_FUN_EXPORT PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC __glewGetFinalCombinerInputParameterfvNV; +GLEW_FUN_EXPORT PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC __glewGetFinalCombinerInputParameterivNV; + +GLEW_FUN_EXPORT PFNGLCOMBINERSTAGEPARAMETERFVNVPROC __glewCombinerStageParameterfvNV; +GLEW_FUN_EXPORT PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC __glewGetCombinerStageParameterfvNV; + +GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERUI64VNVPROC __glewGetBufferParameterui64vNV; +GLEW_FUN_EXPORT PFNGLGETINTEGERUI64VNVPROC __glewGetIntegerui64vNV; +GLEW_FUN_EXPORT PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC __glewGetNamedBufferParameterui64vNV; +GLEW_FUN_EXPORT PFNGLISBUFFERRESIDENTNVPROC __glewIsBufferResidentNV; +GLEW_FUN_EXPORT PFNGLISNAMEDBUFFERRESIDENTNVPROC __glewIsNamedBufferResidentNV; +GLEW_FUN_EXPORT PFNGLMAKEBUFFERNONRESIDENTNVPROC __glewMakeBufferNonResidentNV; +GLEW_FUN_EXPORT PFNGLMAKEBUFFERRESIDENTNVPROC __glewMakeBufferResidentNV; +GLEW_FUN_EXPORT PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC __glewMakeNamedBufferNonResidentNV; +GLEW_FUN_EXPORT PFNGLMAKENAMEDBUFFERRESIDENTNVPROC __glewMakeNamedBufferResidentNV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMUI64NVPROC __glewProgramUniformui64NV; +GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMUI64VNVPROC __glewProgramUniformui64vNV; +GLEW_FUN_EXPORT PFNGLUNIFORMUI64NVPROC __glewUniformui64NV; +GLEW_FUN_EXPORT PFNGLUNIFORMUI64VNVPROC __glewUniformui64vNV; + +GLEW_FUN_EXPORT PFNGLTEXTUREBARRIERNVPROC __glewTextureBarrierNV; + +GLEW_FUN_EXPORT PFNGLACTIVEVARYINGNVPROC __glewActiveVaryingNV; +GLEW_FUN_EXPORT PFNGLBEGINTRANSFORMFEEDBACKNVPROC __glewBeginTransformFeedbackNV; +GLEW_FUN_EXPORT PFNGLBINDBUFFERBASENVPROC __glewBindBufferBaseNV; +GLEW_FUN_EXPORT PFNGLBINDBUFFEROFFSETNVPROC __glewBindBufferOffsetNV; +GLEW_FUN_EXPORT PFNGLBINDBUFFERRANGENVPROC __glewBindBufferRangeNV; +GLEW_FUN_EXPORT PFNGLENDTRANSFORMFEEDBACKNVPROC __glewEndTransformFeedbackNV; +GLEW_FUN_EXPORT PFNGLGETACTIVEVARYINGNVPROC __glewGetActiveVaryingNV; +GLEW_FUN_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC __glewGetTransformFeedbackVaryingNV; +GLEW_FUN_EXPORT PFNGLGETVARYINGLOCATIONNVPROC __glewGetVaryingLocationNV; +GLEW_FUN_EXPORT PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC __glewTransformFeedbackAttribsNV; +GLEW_FUN_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC __glewTransformFeedbackVaryingsNV; + +GLEW_FUN_EXPORT PFNGLBINDTRANSFORMFEEDBACKNVPROC __glewBindTransformFeedbackNV; +GLEW_FUN_EXPORT PFNGLDELETETRANSFORMFEEDBACKSNVPROC __glewDeleteTransformFeedbacksNV; +GLEW_FUN_EXPORT PFNGLDRAWTRANSFORMFEEDBACKNVPROC __glewDrawTransformFeedbackNV; +GLEW_FUN_EXPORT PFNGLGENTRANSFORMFEEDBACKSNVPROC __glewGenTransformFeedbacksNV; +GLEW_FUN_EXPORT PFNGLISTRANSFORMFEEDBACKNVPROC __glewIsTransformFeedbackNV; +GLEW_FUN_EXPORT PFNGLPAUSETRANSFORMFEEDBACKNVPROC __glewPauseTransformFeedbackNV; +GLEW_FUN_EXPORT PFNGLRESUMETRANSFORMFEEDBACKNVPROC __glewResumeTransformFeedbackNV; + +GLEW_FUN_EXPORT PFNGLVDPAUFININVPROC __glewVDPAUFiniNV; +GLEW_FUN_EXPORT PFNGLVDPAUGETSURFACEIVNVPROC __glewVDPAUGetSurfaceivNV; +GLEW_FUN_EXPORT PFNGLVDPAUINITNVPROC __glewVDPAUInitNV; +GLEW_FUN_EXPORT PFNGLVDPAUISSURFACENVPROC __glewVDPAUIsSurfaceNV; +GLEW_FUN_EXPORT PFNGLVDPAUMAPSURFACESNVPROC __glewVDPAUMapSurfacesNV; +GLEW_FUN_EXPORT PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC __glewVDPAURegisterOutputSurfaceNV; +GLEW_FUN_EXPORT PFNGLVDPAUREGISTERVIDEOSURFACENVPROC __glewVDPAURegisterVideoSurfaceNV; +GLEW_FUN_EXPORT PFNGLVDPAUSURFACEACCESSNVPROC __glewVDPAUSurfaceAccessNV; +GLEW_FUN_EXPORT PFNGLVDPAUUNMAPSURFACESNVPROC __glewVDPAUUnmapSurfacesNV; +GLEW_FUN_EXPORT PFNGLVDPAUUNREGISTERSURFACENVPROC __glewVDPAUUnregisterSurfaceNV; + +GLEW_FUN_EXPORT PFNGLFLUSHVERTEXARRAYRANGENVPROC __glewFlushVertexArrayRangeNV; +GLEW_FUN_EXPORT PFNGLVERTEXARRAYRANGENVPROC __glewVertexArrayRangeNV; + +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBLI64VNVPROC __glewGetVertexAttribLi64vNV; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBLUI64VNVPROC __glewGetVertexAttribLui64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1I64NVPROC __glewVertexAttribL1i64NV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1I64VNVPROC __glewVertexAttribL1i64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1UI64NVPROC __glewVertexAttribL1ui64NV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1UI64VNVPROC __glewVertexAttribL1ui64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2I64NVPROC __glewVertexAttribL2i64NV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2I64VNVPROC __glewVertexAttribL2i64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2UI64NVPROC __glewVertexAttribL2ui64NV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2UI64VNVPROC __glewVertexAttribL2ui64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3I64NVPROC __glewVertexAttribL3i64NV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3I64VNVPROC __glewVertexAttribL3i64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3UI64NVPROC __glewVertexAttribL3ui64NV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3UI64VNVPROC __glewVertexAttribL3ui64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4I64NVPROC __glewVertexAttribL4i64NV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4I64VNVPROC __glewVertexAttribL4i64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4UI64NVPROC __glewVertexAttribL4ui64NV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4UI64VNVPROC __glewVertexAttribL4ui64vNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBLFORMATNVPROC __glewVertexAttribLFormatNV; + +GLEW_FUN_EXPORT PFNGLBUFFERADDRESSRANGENVPROC __glewBufferAddressRangeNV; +GLEW_FUN_EXPORT PFNGLCOLORFORMATNVPROC __glewColorFormatNV; +GLEW_FUN_EXPORT PFNGLEDGEFLAGFORMATNVPROC __glewEdgeFlagFormatNV; +GLEW_FUN_EXPORT PFNGLFOGCOORDFORMATNVPROC __glewFogCoordFormatNV; +GLEW_FUN_EXPORT PFNGLGETINTEGERUI64I_VNVPROC __glewGetIntegerui64i_vNV; +GLEW_FUN_EXPORT PFNGLINDEXFORMATNVPROC __glewIndexFormatNV; +GLEW_FUN_EXPORT PFNGLNORMALFORMATNVPROC __glewNormalFormatNV; +GLEW_FUN_EXPORT PFNGLSECONDARYCOLORFORMATNVPROC __glewSecondaryColorFormatNV; +GLEW_FUN_EXPORT PFNGLTEXCOORDFORMATNVPROC __glewTexCoordFormatNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBFORMATNVPROC __glewVertexAttribFormatNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBIFORMATNVPROC __glewVertexAttribIFormatNV; +GLEW_FUN_EXPORT PFNGLVERTEXFORMATNVPROC __glewVertexFormatNV; + +GLEW_FUN_EXPORT PFNGLAREPROGRAMSRESIDENTNVPROC __glewAreProgramsResidentNV; +GLEW_FUN_EXPORT PFNGLBINDPROGRAMNVPROC __glewBindProgramNV; +GLEW_FUN_EXPORT PFNGLDELETEPROGRAMSNVPROC __glewDeleteProgramsNV; +GLEW_FUN_EXPORT PFNGLEXECUTEPROGRAMNVPROC __glewExecuteProgramNV; +GLEW_FUN_EXPORT PFNGLGENPROGRAMSNVPROC __glewGenProgramsNV; +GLEW_FUN_EXPORT PFNGLGETPROGRAMPARAMETERDVNVPROC __glewGetProgramParameterdvNV; +GLEW_FUN_EXPORT PFNGLGETPROGRAMPARAMETERFVNVPROC __glewGetProgramParameterfvNV; +GLEW_FUN_EXPORT PFNGLGETPROGRAMSTRINGNVPROC __glewGetProgramStringNV; +GLEW_FUN_EXPORT PFNGLGETPROGRAMIVNVPROC __glewGetProgramivNV; +GLEW_FUN_EXPORT PFNGLGETTRACKMATRIXIVNVPROC __glewGetTrackMatrixivNV; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBPOINTERVNVPROC __glewGetVertexAttribPointervNV; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBDVNVPROC __glewGetVertexAttribdvNV; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBFVNVPROC __glewGetVertexAttribfvNV; +GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIVNVPROC __glewGetVertexAttribivNV; +GLEW_FUN_EXPORT PFNGLISPROGRAMNVPROC __glewIsProgramNV; +GLEW_FUN_EXPORT PFNGLLOADPROGRAMNVPROC __glewLoadProgramNV; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETER4DNVPROC __glewProgramParameter4dNV; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETER4DVNVPROC __glewProgramParameter4dvNV; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETER4FNVPROC __glewProgramParameter4fNV; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETER4FVNVPROC __glewProgramParameter4fvNV; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERS4DVNVPROC __glewProgramParameters4dvNV; +GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERS4FVNVPROC __glewProgramParameters4fvNV; +GLEW_FUN_EXPORT PFNGLREQUESTRESIDENTPROGRAMSNVPROC __glewRequestResidentProgramsNV; +GLEW_FUN_EXPORT PFNGLTRACKMATRIXNVPROC __glewTrackMatrixNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DNVPROC __glewVertexAttrib1dNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DVNVPROC __glewVertexAttrib1dvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FNVPROC __glewVertexAttrib1fNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FVNVPROC __glewVertexAttrib1fvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SNVPROC __glewVertexAttrib1sNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SVNVPROC __glewVertexAttrib1svNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DNVPROC __glewVertexAttrib2dNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DVNVPROC __glewVertexAttrib2dvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FNVPROC __glewVertexAttrib2fNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FVNVPROC __glewVertexAttrib2fvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SNVPROC __glewVertexAttrib2sNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SVNVPROC __glewVertexAttrib2svNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DNVPROC __glewVertexAttrib3dNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DVNVPROC __glewVertexAttrib3dvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FNVPROC __glewVertexAttrib3fNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FVNVPROC __glewVertexAttrib3fvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SNVPROC __glewVertexAttrib3sNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SVNVPROC __glewVertexAttrib3svNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DNVPROC __glewVertexAttrib4dNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DVNVPROC __glewVertexAttrib4dvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FNVPROC __glewVertexAttrib4fNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FVNVPROC __glewVertexAttrib4fvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SNVPROC __glewVertexAttrib4sNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SVNVPROC __glewVertexAttrib4svNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBNVPROC __glewVertexAttrib4ubNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBVNVPROC __glewVertexAttrib4ubvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBPOINTERNVPROC __glewVertexAttribPointerNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS1DVNVPROC __glewVertexAttribs1dvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS1FVNVPROC __glewVertexAttribs1fvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS1SVNVPROC __glewVertexAttribs1svNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS2DVNVPROC __glewVertexAttribs2dvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS2FVNVPROC __glewVertexAttribs2fvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS2SVNVPROC __glewVertexAttribs2svNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS3DVNVPROC __glewVertexAttribs3dvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS3FVNVPROC __glewVertexAttribs3fvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS3SVNVPROC __glewVertexAttribs3svNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4DVNVPROC __glewVertexAttribs4dvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4FVNVPROC __glewVertexAttribs4fvNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4SVNVPROC __glewVertexAttribs4svNV; +GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4UBVNVPROC __glewVertexAttribs4ubvNV; + +GLEW_FUN_EXPORT PFNGLCLEARDEPTHFOESPROC __glewClearDepthfOES; +GLEW_FUN_EXPORT PFNGLCLIPPLANEFOESPROC __glewClipPlanefOES; +GLEW_FUN_EXPORT PFNGLDEPTHRANGEFOESPROC __glewDepthRangefOES; +GLEW_FUN_EXPORT PFNGLFRUSTUMFOESPROC __glewFrustumfOES; +GLEW_FUN_EXPORT PFNGLGETCLIPPLANEFOESPROC __glewGetClipPlanefOES; +GLEW_FUN_EXPORT PFNGLORTHOFOESPROC __glewOrthofOES; + +GLEW_FUN_EXPORT PFNGLDETAILTEXFUNCSGISPROC __glewDetailTexFuncSGIS; +GLEW_FUN_EXPORT PFNGLGETDETAILTEXFUNCSGISPROC __glewGetDetailTexFuncSGIS; + +GLEW_FUN_EXPORT PFNGLFOGFUNCSGISPROC __glewFogFuncSGIS; +GLEW_FUN_EXPORT PFNGLGETFOGFUNCSGISPROC __glewGetFogFuncSGIS; + +GLEW_FUN_EXPORT PFNGLSAMPLEMASKSGISPROC __glewSampleMaskSGIS; +GLEW_FUN_EXPORT PFNGLSAMPLEPATTERNSGISPROC __glewSamplePatternSGIS; + +GLEW_FUN_EXPORT PFNGLGETSHARPENTEXFUNCSGISPROC __glewGetSharpenTexFuncSGIS; +GLEW_FUN_EXPORT PFNGLSHARPENTEXFUNCSGISPROC __glewSharpenTexFuncSGIS; + +GLEW_FUN_EXPORT PFNGLTEXIMAGE4DSGISPROC __glewTexImage4DSGIS; +GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE4DSGISPROC __glewTexSubImage4DSGIS; + +GLEW_FUN_EXPORT PFNGLGETTEXFILTERFUNCSGISPROC __glewGetTexFilterFuncSGIS; +GLEW_FUN_EXPORT PFNGLTEXFILTERFUNCSGISPROC __glewTexFilterFuncSGIS; + +GLEW_FUN_EXPORT PFNGLASYNCMARKERSGIXPROC __glewAsyncMarkerSGIX; +GLEW_FUN_EXPORT PFNGLDELETEASYNCMARKERSSGIXPROC __glewDeleteAsyncMarkersSGIX; +GLEW_FUN_EXPORT PFNGLFINISHASYNCSGIXPROC __glewFinishAsyncSGIX; +GLEW_FUN_EXPORT PFNGLGENASYNCMARKERSSGIXPROC __glewGenAsyncMarkersSGIX; +GLEW_FUN_EXPORT PFNGLISASYNCMARKERSGIXPROC __glewIsAsyncMarkerSGIX; +GLEW_FUN_EXPORT PFNGLPOLLASYNCSGIXPROC __glewPollAsyncSGIX; + +GLEW_FUN_EXPORT PFNGLFLUSHRASTERSGIXPROC __glewFlushRasterSGIX; + +GLEW_FUN_EXPORT PFNGLTEXTUREFOGSGIXPROC __glewTextureFogSGIX; + +GLEW_FUN_EXPORT PFNGLFRAGMENTCOLORMATERIALSGIXPROC __glewFragmentColorMaterialSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFSGIXPROC __glewFragmentLightModelfSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFVSGIXPROC __glewFragmentLightModelfvSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELISGIXPROC __glewFragmentLightModeliSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELIVSGIXPROC __glewFragmentLightModelivSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFSGIXPROC __glewFragmentLightfSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFVSGIXPROC __glewFragmentLightfvSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTISGIXPROC __glewFragmentLightiSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTIVSGIXPROC __glewFragmentLightivSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFSGIXPROC __glewFragmentMaterialfSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFVSGIXPROC __glewFragmentMaterialfvSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALISGIXPROC __glewFragmentMaterialiSGIX; +GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALIVSGIXPROC __glewFragmentMaterialivSGIX; +GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTFVSGIXPROC __glewGetFragmentLightfvSGIX; +GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTIVSGIXPROC __glewGetFragmentLightivSGIX; +GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVSGIXPROC __glewGetFragmentMaterialfvSGIX; +GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALIVSGIXPROC __glewGetFragmentMaterialivSGIX; + +GLEW_FUN_EXPORT PFNGLFRAMEZOOMSGIXPROC __glewFrameZoomSGIX; + +GLEW_FUN_EXPORT PFNGLPIXELTEXGENSGIXPROC __glewPixelTexGenSGIX; + +GLEW_FUN_EXPORT PFNGLREFERENCEPLANESGIXPROC __glewReferencePlaneSGIX; + +GLEW_FUN_EXPORT PFNGLSPRITEPARAMETERFSGIXPROC __glewSpriteParameterfSGIX; +GLEW_FUN_EXPORT PFNGLSPRITEPARAMETERFVSGIXPROC __glewSpriteParameterfvSGIX; +GLEW_FUN_EXPORT PFNGLSPRITEPARAMETERISGIXPROC __glewSpriteParameteriSGIX; +GLEW_FUN_EXPORT PFNGLSPRITEPARAMETERIVSGIXPROC __glewSpriteParameterivSGIX; + +GLEW_FUN_EXPORT PFNGLTAGSAMPLEBUFFERSGIXPROC __glewTagSampleBufferSGIX; + +GLEW_FUN_EXPORT PFNGLCOLORTABLEPARAMETERFVSGIPROC __glewColorTableParameterfvSGI; +GLEW_FUN_EXPORT PFNGLCOLORTABLEPARAMETERIVSGIPROC __glewColorTableParameterivSGI; +GLEW_FUN_EXPORT PFNGLCOLORTABLESGIPROC __glewColorTableSGI; +GLEW_FUN_EXPORT PFNGLCOPYCOLORTABLESGIPROC __glewCopyColorTableSGI; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERFVSGIPROC __glewGetColorTableParameterfvSGI; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERIVSGIPROC __glewGetColorTableParameterivSGI; +GLEW_FUN_EXPORT PFNGLGETCOLORTABLESGIPROC __glewGetColorTableSGI; + +GLEW_FUN_EXPORT PFNGLFINISHTEXTURESUNXPROC __glewFinishTextureSUNX; + +GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORBSUNPROC __glewGlobalAlphaFactorbSUN; +GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORDSUNPROC __glewGlobalAlphaFactordSUN; +GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORFSUNPROC __glewGlobalAlphaFactorfSUN; +GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORISUNPROC __glewGlobalAlphaFactoriSUN; +GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORSSUNPROC __glewGlobalAlphaFactorsSUN; +GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORUBSUNPROC __glewGlobalAlphaFactorubSUN; +GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORUISUNPROC __glewGlobalAlphaFactoruiSUN; +GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORUSSUNPROC __glewGlobalAlphaFactorusSUN; + +GLEW_FUN_EXPORT PFNGLREADVIDEOPIXELSSUNPROC __glewReadVideoPixelsSUN; + +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEPOINTERSUNPROC __glewReplacementCodePointerSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUBSUNPROC __glewReplacementCodeubSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUBVSUNPROC __glewReplacementCodeubvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUISUNPROC __glewReplacementCodeuiSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUIVSUNPROC __glewReplacementCodeuivSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUSSUNPROC __glewReplacementCodeusSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUSVSUNPROC __glewReplacementCodeusvSUN; + +GLEW_FUN_EXPORT PFNGLCOLOR3FVERTEX3FSUNPROC __glewColor3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLCOLOR3FVERTEX3FVSUNPROC __glewColor3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewColor4fNormal3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewColor4fNormal3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLCOLOR4UBVERTEX2FSUNPROC __glewColor4ubVertex2fSUN; +GLEW_FUN_EXPORT PFNGLCOLOR4UBVERTEX2FVSUNPROC __glewColor4ubVertex2fvSUN; +GLEW_FUN_EXPORT PFNGLCOLOR4UBVERTEX3FSUNPROC __glewColor4ubVertex3fSUN; +GLEW_FUN_EXPORT PFNGLCOLOR4UBVERTEX3FVSUNPROC __glewColor4ubVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLNORMAL3FVERTEX3FSUNPROC __glewNormal3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLNORMAL3FVERTEX3FVSUNPROC __glewNormal3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC __glewReplacementCodeuiColor3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC __glewReplacementCodeuiColor3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiColor4fNormal3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiColor4fNormal3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC __glewReplacementCodeuiColor4ubVertex3fSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC __glewReplacementCodeuiColor4ubVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiNormal3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiNormal3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fNormal3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC __glewReplacementCodeuiVertex3fSUN; +GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC __glewReplacementCodeuiVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC __glewTexCoord2fColor3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC __glewTexCoord2fColor3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewTexCoord2fColor4fNormal3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewTexCoord2fColor4fNormal3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC __glewTexCoord2fColor4ubVertex3fSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC __glewTexCoord2fColor4ubVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC __glewTexCoord2fNormal3fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC __glewTexCoord2fNormal3fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FVERTEX3FSUNPROC __glewTexCoord2fVertex3fSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FVERTEX3FVSUNPROC __glewTexCoord2fVertex3fvSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC __glewTexCoord4fColor4fNormal3fVertex4fSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC __glewTexCoord4fColor4fNormal3fVertex4fvSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD4FVERTEX4FSUNPROC __glewTexCoord4fVertex4fSUN; +GLEW_FUN_EXPORT PFNGLTEXCOORD4FVERTEX4FVSUNPROC __glewTexCoord4fVertex4fvSUN; + +GLEW_FUN_EXPORT PFNGLADDSWAPHINTRECTWINPROC __glewAddSwapHintRectWIN; + +#if defined(GLEW_MX) && !defined(_WIN32) +struct GLEWContextStruct +{ +#endif /* GLEW_MX */ + +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_1; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2_1; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_3; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_4; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_5; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_2_0; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_2_1; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_3_0; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_3_1; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_3_2; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_3_3; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_4_0; +GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_4_1; +GLEW_VAR_EXPORT GLboolean __GLEW_3DFX_multisample; +GLEW_VAR_EXPORT GLboolean __GLEW_3DFX_tbuffer; +GLEW_VAR_EXPORT GLboolean __GLEW_3DFX_texture_compression_FXT1; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_conservative_depth; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_debug_output; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_depth_clamp_separate; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_draw_buffers_blend; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_name_gen_delete; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_performance_monitor; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_seamless_cubemap_per_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_shader_stencil_export; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_texture_texture4; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_transform_feedback3_lines_triangles; +GLEW_VAR_EXPORT GLboolean __GLEW_AMD_vertex_shader_tessellator; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_aux_depth_stencil; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_client_storage; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_element_array; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_fence; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_float_pixels; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_flush_buffer_range; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_object_purgeable; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_pixel_buffer; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_rgb_422; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_row_bytes; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_specular_vector; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_texture_range; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_transform_hint; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_vertex_array_object; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_vertex_array_range; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_vertex_program_evaluators; +GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_ycbcr_422; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_ES2_compatibility; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_blend_func_extended; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_cl_event; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_color_buffer_float; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_compatibility; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_copy_buffer; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_debug_output; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_depth_buffer_float; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_depth_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_depth_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_buffers; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_buffers_blend; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_elements_base_vertex; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_indirect; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_instanced; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_explicit_attrib_location; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_fragment_coord_conventions; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_fragment_program; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_fragment_program_shadow; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_fragment_shader; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_framebuffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_framebuffer_sRGB; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_geometry_shader4; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_get_program_binary; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_gpu_shader5; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_gpu_shader_fp64; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_half_float_pixel; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_half_float_vertex; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_imaging; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_instanced_arrays; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_map_buffer_range; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_matrix_palette; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_multisample; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_multitexture; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_occlusion_query; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_occlusion_query2; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_pixel_buffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_point_parameters; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_point_sprite; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_provoking_vertex; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_robustness; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_sample_shading; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_sampler_objects; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_seamless_cube_map; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_separate_shader_objects; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_bit_encoding; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_objects; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_precision; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_stencil_export; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_subroutine; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_texture_lod; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shading_language_100; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shading_language_include; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shadow; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shadow_ambient; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_sync; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_tessellation_shader; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_border_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_buffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_buffer_object_rgb32; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_compression; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_compression_bptc; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_compression_rgtc; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_cube_map; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_cube_map_array; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_env_add; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_env_combine; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_env_crossbar; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_env_dot3; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_float; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_gather; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_mirrored_repeat; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_multisample; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_non_power_of_two; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_query_lod; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_rectangle; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_rg; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_rgb10_a2ui; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_swizzle; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_timer_query; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_transform_feedback2; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_transform_feedback3; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_transpose_matrix; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_uniform_buffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_array_bgra; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_array_object; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_attrib_64bit; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_blend; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_buffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_program; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_shader; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_type_2_10_10_10_rev; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_viewport_array; +GLEW_VAR_EXPORT GLboolean __GLEW_ARB_window_pos; +GLEW_VAR_EXPORT GLboolean __GLEW_ATIX_point_sprites; +GLEW_VAR_EXPORT GLboolean __GLEW_ATIX_texture_env_combine3; +GLEW_VAR_EXPORT GLboolean __GLEW_ATIX_texture_env_route; +GLEW_VAR_EXPORT GLboolean __GLEW_ATIX_vertex_shader_output_point_size; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_draw_buffers; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_element_array; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_envmap_bumpmap; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_fragment_shader; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_map_object_buffer; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_meminfo; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_pn_triangles; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_separate_stencil; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_shader_texture_lod; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_text_fragment_shader; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_texture_compression_3dc; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_texture_env_combine3; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_texture_float; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_texture_mirror_once; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_vertex_array_object; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_vertex_attrib_array_object; +GLEW_VAR_EXPORT GLboolean __GLEW_ATI_vertex_streams; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_422_pixels; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_Cg_shader; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_abgr; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_bgra; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_bindable_uniform; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_color; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_equation_separate; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_func_separate; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_logic_op; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_minmax; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_subtract; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_clip_volume_hint; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_cmyka; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_color_subtable; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_compiled_vertex_array; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_convolution; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_coordinate_frame; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_copy_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_cull_vertex; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_depth_bounds_test; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_direct_state_access; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_draw_buffers2; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_draw_instanced; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_draw_range_elements; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_fog_coord; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_fragment_lighting; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_framebuffer_blit; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_framebuffer_multisample; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_framebuffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_framebuffer_sRGB; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_geometry_shader4; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_gpu_program_parameters; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_gpu_shader4; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_histogram; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_index_array_formats; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_index_func; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_index_material; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_index_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_light_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_misc_attribute; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_multi_draw_arrays; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_multisample; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_packed_depth_stencil; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_packed_float; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_packed_pixels; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_paletted_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_pixel_buffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_pixel_transform; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_pixel_transform_color_table; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_point_parameters; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_polygon_offset; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_provoking_vertex; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_rescale_normal; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_scene_marker; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_secondary_color; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_separate_shader_objects; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_separate_specular_color; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shader_image_load_store; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shadow_funcs; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shared_texture_palette; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_stencil_clear_tag; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_stencil_two_side; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_stencil_wrap; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_subtexture; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture3D; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_array; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_buffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_dxt1; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_latc; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_rgtc; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_s3tc; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_cube_map; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_edge_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_env; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_env_add; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_env_combine; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_env_dot3; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_filter_anisotropic; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_integer; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_lod_bias; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_mirror_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_object; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_perturb_normal; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_rectangle; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_sRGB; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_sRGB_decode; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_shared_exponent; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_snorm; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_swizzle; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_timer_query; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_transform_feedback; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_array; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_array_bgra; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_attrib_64bit; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_shader; +GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_weighting; +GLEW_VAR_EXPORT GLboolean __GLEW_GREMEDY_frame_terminator; +GLEW_VAR_EXPORT GLboolean __GLEW_GREMEDY_string_marker; +GLEW_VAR_EXPORT GLboolean __GLEW_HP_convolution_border_modes; +GLEW_VAR_EXPORT GLboolean __GLEW_HP_image_transform; +GLEW_VAR_EXPORT GLboolean __GLEW_HP_occlusion_test; +GLEW_VAR_EXPORT GLboolean __GLEW_HP_texture_lighting; +GLEW_VAR_EXPORT GLboolean __GLEW_IBM_cull_vertex; +GLEW_VAR_EXPORT GLboolean __GLEW_IBM_multimode_draw_arrays; +GLEW_VAR_EXPORT GLboolean __GLEW_IBM_rasterpos_clip; +GLEW_VAR_EXPORT GLboolean __GLEW_IBM_static_data; +GLEW_VAR_EXPORT GLboolean __GLEW_IBM_texture_mirrored_repeat; +GLEW_VAR_EXPORT GLboolean __GLEW_IBM_vertex_array_lists; +GLEW_VAR_EXPORT GLboolean __GLEW_INGR_color_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_INGR_interlace_read; +GLEW_VAR_EXPORT GLboolean __GLEW_INTEL_parallel_arrays; +GLEW_VAR_EXPORT GLboolean __GLEW_INTEL_texture_scissor; +GLEW_VAR_EXPORT GLboolean __GLEW_KTX_buffer_region; +GLEW_VAR_EXPORT GLboolean __GLEW_MESAX_texture_stack; +GLEW_VAR_EXPORT GLboolean __GLEW_MESA_pack_invert; +GLEW_VAR_EXPORT GLboolean __GLEW_MESA_resize_buffers; +GLEW_VAR_EXPORT GLboolean __GLEW_MESA_window_pos; +GLEW_VAR_EXPORT GLboolean __GLEW_MESA_ycbcr_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_NVX_gpu_memory_info; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_blend_square; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_conditional_render; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_copy_depth_to_color; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_copy_image; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_depth_buffer_float; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_depth_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_depth_range_unclamped; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_evaluators; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_explicit_multisample; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_fence; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_float_buffer; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_fog_distance; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_fragment_program; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_fragment_program2; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_fragment_program4; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_fragment_program_option; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_framebuffer_multisample_coverage; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_geometry_program4; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_geometry_shader4; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_gpu_program4; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_gpu_program5; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_gpu_program_fp64; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_gpu_shader5; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_half_float; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_light_max_exponent; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_multisample_coverage; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_multisample_filter_hint; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_occlusion_query; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_packed_depth_stencil; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_parameter_buffer_object; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_parameter_buffer_object2; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_pixel_data_range; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_point_sprite; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_present_video; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_primitive_restart; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_register_combiners; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_register_combiners2; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_shader_buffer_load; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_tessellation_program5; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texgen_emboss; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texgen_reflection; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_barrier; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_compression_vtc; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_env_combine4; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_expand_normal; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_rectangle; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_shader; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_shader2; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_shader3; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_transform_feedback; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_transform_feedback2; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vdpau_interop; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_array_range; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_array_range2; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_attrib_integer_64bit; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_buffer_unified_memory; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program1_1; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program2; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program2_option; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program3; +GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program4; +GLEW_VAR_EXPORT GLboolean __GLEW_OES_byte_coordinates; +GLEW_VAR_EXPORT GLboolean __GLEW_OES_compressed_paletted_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_OES_read_format; +GLEW_VAR_EXPORT GLboolean __GLEW_OES_single_precision; +GLEW_VAR_EXPORT GLboolean __GLEW_OML_interlace; +GLEW_VAR_EXPORT GLboolean __GLEW_OML_resample; +GLEW_VAR_EXPORT GLboolean __GLEW_OML_subsample; +GLEW_VAR_EXPORT GLboolean __GLEW_PGI_misc_hints; +GLEW_VAR_EXPORT GLboolean __GLEW_PGI_vertex_hints; +GLEW_VAR_EXPORT GLboolean __GLEW_REND_screen_coordinates; +GLEW_VAR_EXPORT GLboolean __GLEW_S3_s3tc; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_color_range; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_detail_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_fog_function; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_generate_mipmap; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_multisample; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_pixel_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_point_line_texgen; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_sharpen_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture4D; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_border_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_edge_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_filter4; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_lod; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_select; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_async; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_async_histogram; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_async_pixel; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_blend_alpha_minmax; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_clipmap; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_convolution_accuracy; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_depth_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_flush_raster; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_fog_offset; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_fog_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_fragment_specular_lighting; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_framezoom; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_interlace; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_ir_instrument1; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_list_priority; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_pixel_texture; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_pixel_texture_bits; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_reference_plane; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_resample; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_shadow; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_shadow_ambient; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_sprite; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_tag_sample_buffer; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_add_env; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_coordinate_clamp; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_lod_bias; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_multi_buffer; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_range; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_scale_bias; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_vertex_preclip; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_vertex_preclip_hint; +GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_ycrcb; +GLEW_VAR_EXPORT GLboolean __GLEW_SGI_color_matrix; +GLEW_VAR_EXPORT GLboolean __GLEW_SGI_color_table; +GLEW_VAR_EXPORT GLboolean __GLEW_SGI_texture_color_table; +GLEW_VAR_EXPORT GLboolean __GLEW_SUNX_constant_data; +GLEW_VAR_EXPORT GLboolean __GLEW_SUN_convolution_border_modes; +GLEW_VAR_EXPORT GLboolean __GLEW_SUN_global_alpha; +GLEW_VAR_EXPORT GLboolean __GLEW_SUN_mesh_array; +GLEW_VAR_EXPORT GLboolean __GLEW_SUN_read_video_pixels; +GLEW_VAR_EXPORT GLboolean __GLEW_SUN_slice_accum; +GLEW_VAR_EXPORT GLboolean __GLEW_SUN_triangle_list; +GLEW_VAR_EXPORT GLboolean __GLEW_SUN_vertex; +GLEW_VAR_EXPORT GLboolean __GLEW_WIN_phong_shading; +GLEW_VAR_EXPORT GLboolean __GLEW_WIN_specular_fog; +GLEW_VAR_EXPORT GLboolean __GLEW_WIN_swap_hint; + +#ifdef GLEW_MX +}; /* GLEWContextStruct */ +#endif /* GLEW_MX */ + +/* ------------------------------------------------------------------------- */ + +/* error codes */ +#define GLEW_OK 0 +#define GLEW_NO_ERROR 0 +#define GLEW_ERROR_NO_GL_VERSION 1 /* missing GL version */ +#define GLEW_ERROR_GL_VERSION_10_ONLY 2 /* Need at least OpenGL 1.1 */ +#define GLEW_ERROR_GLX_VERSION_11_ONLY 3 /* Need at least GLX 1.2 */ + +/* string codes */ +#define GLEW_VERSION 1 +#define GLEW_VERSION_MAJOR 2 +#define GLEW_VERSION_MINOR 3 +#define GLEW_VERSION_MICRO 4 + +/* API */ +#ifdef GLEW_MX + +typedef struct GLEWContextStruct GLEWContext; +GLEWAPI GLenum glewContextInit (GLEWContext* ctx); +GLEWAPI GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name); + +#define glewInit() glewContextInit(glewGetContext()) +#define glewIsSupported(x) glewContextIsSupported(glewGetContext(), x) +#define glewIsExtensionSupported(x) glewIsSupported(x) + +#define GLEW_GET_VAR(x) (*(const GLboolean*)&(glewGetContext()->x)) +#ifdef _WIN32 +# define GLEW_GET_FUN(x) glewGetContext()->x +#else +# define GLEW_GET_FUN(x) x +#endif + +#else /* GLEW_MX */ + +GLEWAPI GLenum glewInit (); +GLEWAPI GLboolean glewIsSupported (const char* name); +#define glewIsExtensionSupported(x) glewIsSupported(x) + +#define GLEW_GET_VAR(x) (*(const GLboolean*)&x) +#define GLEW_GET_FUN(x) x + +#endif /* GLEW_MX */ + +GLEWAPI GLboolean glewExperimental; +GLEWAPI GLboolean glewGetExtension (const char* name); +GLEWAPI const GLubyte* glewGetErrorString (GLenum error); +GLEWAPI const GLubyte* glewGetString (GLenum name); + +#ifdef __cplusplus +} +#endif + +#ifdef GLEW_APIENTRY_DEFINED +#undef GLEW_APIENTRY_DEFINED +#undef APIENTRY +#undef GLAPIENTRY +#define GLAPIENTRY +#endif + +#ifdef GLEW_CALLBACK_DEFINED +#undef GLEW_CALLBACK_DEFINED +#undef CALLBACK +#endif + +#ifdef GLEW_WINGDIAPI_DEFINED +#undef GLEW_WINGDIAPI_DEFINED +#undef WINGDIAPI +#endif + +#undef GLAPI +/* #undef GLEWAPI */ + +#endif /* __glew_h__ */ diff --git a/WCudaMSE/API_GL/INC_WIN/GL/glxew.h b/WCudaMSE/API_GL/INC_WIN/GL/glxew.h new file mode 100755 index 0000000..aaaa45f --- /dev/null +++ b/WCudaMSE/API_GL/INC_WIN/GL/glxew.h @@ -0,0 +1,1537 @@ +/* +** The OpenGL Extension Wrangler Library +** Copyright (C) 2002-2008, Milan Ikits +** Copyright (C) 2002-2008, Marcelo E. Magallon +** Copyright (C) 2002, Lev Povalahev +** 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. +** * The name of the author 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. +*/ + +/* + * Mesa 3-D graphics library + * Version: 7.0 + * + * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. + * + * 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 + * BRIAN PAUL 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. + */ + +/* +** Copyright (c) 2007 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are 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 Materials. +** +** THE MATERIALS ARE 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 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +#ifndef __glxew_h__ +#define __glxew_h__ +#define __GLXEW_H__ + +#ifdef __glxext_h_ +#error glxext.h included before glxew.h +#endif + +#if defined(GLX_H) || defined(__GLX_glx_h__) || defined(__glx_h__) +#error glx.h included before glxew.h +#endif + +#define __glxext_h_ + +#define GLX_H +#define __GLX_glx_h__ +#define __glx_h__ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* ---------------------------- GLX_VERSION_1_0 --------------------------- */ + +#ifndef GLX_VERSION_1_0 +#define GLX_VERSION_1_0 1 + +#define GLX_USE_GL 1 +#define GLX_BUFFER_SIZE 2 +#define GLX_LEVEL 3 +#define GLX_RGBA 4 +#define GLX_DOUBLEBUFFER 5 +#define GLX_STEREO 6 +#define GLX_AUX_BUFFERS 7 +#define GLX_RED_SIZE 8 +#define GLX_GREEN_SIZE 9 +#define GLX_BLUE_SIZE 10 +#define GLX_ALPHA_SIZE 11 +#define GLX_DEPTH_SIZE 12 +#define GLX_STENCIL_SIZE 13 +#define GLX_ACCUM_RED_SIZE 14 +#define GLX_ACCUM_GREEN_SIZE 15 +#define GLX_ACCUM_BLUE_SIZE 16 +#define GLX_ACCUM_ALPHA_SIZE 17 +#define GLX_BAD_SCREEN 1 +#define GLX_BAD_ATTRIBUTE 2 +#define GLX_NO_EXTENSION 3 +#define GLX_BAD_VISUAL 4 +#define GLX_BAD_CONTEXT 5 +#define GLX_BAD_VALUE 6 +#define GLX_BAD_ENUM 7 + +typedef XID GLXDrawable; +typedef XID GLXPixmap; +#ifdef __sun +typedef struct __glXContextRec *GLXContext; +#else +typedef struct __GLXcontextRec *GLXContext; +#endif + +typedef unsigned int GLXVideoDeviceNV; + +extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase); +extern Bool glXQueryVersion (Display *dpy, int *major, int *minor); +extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value); +extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList); +extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap); +extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix); +extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); +extern void glXDestroyContext (Display *dpy, GLXContext ctx); +extern Bool glXIsDirect (Display *dpy, GLXContext ctx); +extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask); +extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx); +extern GLXContext glXGetCurrentContext (void); +extern GLXDrawable glXGetCurrentDrawable (void); +extern void glXWaitGL (void); +extern void glXWaitX (void); +extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable); +extern void glXUseXFont (Font font, int first, int count, int listBase); + +#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0) + +#endif /* GLX_VERSION_1_0 */ + +/* ---------------------------- GLX_VERSION_1_1 --------------------------- */ + +#ifndef GLX_VERSION_1_1 +#define GLX_VERSION_1_1 + +#define GLX_VENDOR 0x1 +#define GLX_VERSION 0x2 +#define GLX_EXTENSIONS 0x3 + +extern const char* glXQueryExtensionsString (Display *dpy, int screen); +extern const char* glXGetClientString (Display *dpy, int name); +extern const char* glXQueryServerString (Display *dpy, int screen, int name); + +#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1) + +#endif /* GLX_VERSION_1_1 */ + +/* ---------------------------- GLX_VERSION_1_2 ---------------------------- */ + +#ifndef GLX_VERSION_1_2 +#define GLX_VERSION_1_2 1 + +typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void); + +#define glXGetCurrentDisplay GLXEW_GET_FUN(__glewXGetCurrentDisplay) + +#define GLXEW_VERSION_1_2 GLXEW_GET_VAR(__GLXEW_VERSION_1_2) + +#endif /* GLX_VERSION_1_2 */ + +/* ---------------------------- GLX_VERSION_1_3 ---------------------------- */ + +#ifndef GLX_VERSION_1_3 +#define GLX_VERSION_1_3 1 + +#define GLX_RGBA_BIT 0x00000001 +#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 +#define GLX_WINDOW_BIT 0x00000001 +#define GLX_COLOR_INDEX_BIT 0x00000002 +#define GLX_PIXMAP_BIT 0x00000002 +#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 +#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 +#define GLX_PBUFFER_BIT 0x00000004 +#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 +#define GLX_AUX_BUFFERS_BIT 0x00000010 +#define GLX_CONFIG_CAVEAT 0x20 +#define GLX_DEPTH_BUFFER_BIT 0x00000020 +#define GLX_X_VISUAL_TYPE 0x22 +#define GLX_TRANSPARENT_TYPE 0x23 +#define GLX_TRANSPARENT_INDEX_VALUE 0x24 +#define GLX_TRANSPARENT_RED_VALUE 0x25 +#define GLX_TRANSPARENT_GREEN_VALUE 0x26 +#define GLX_TRANSPARENT_BLUE_VALUE 0x27 +#define GLX_TRANSPARENT_ALPHA_VALUE 0x28 +#define GLX_STENCIL_BUFFER_BIT 0x00000040 +#define GLX_ACCUM_BUFFER_BIT 0x00000080 +#define GLX_NONE 0x8000 +#define GLX_SLOW_CONFIG 0x8001 +#define GLX_TRUE_COLOR 0x8002 +#define GLX_DIRECT_COLOR 0x8003 +#define GLX_PSEUDO_COLOR 0x8004 +#define GLX_STATIC_COLOR 0x8005 +#define GLX_GRAY_SCALE 0x8006 +#define GLX_STATIC_GRAY 0x8007 +#define GLX_TRANSPARENT_RGB 0x8008 +#define GLX_TRANSPARENT_INDEX 0x8009 +#define GLX_VISUAL_ID 0x800B +#define GLX_SCREEN 0x800C +#define GLX_NON_CONFORMANT_CONFIG 0x800D +#define GLX_DRAWABLE_TYPE 0x8010 +#define GLX_RENDER_TYPE 0x8011 +#define GLX_X_RENDERABLE 0x8012 +#define GLX_FBCONFIG_ID 0x8013 +#define GLX_RGBA_TYPE 0x8014 +#define GLX_COLOR_INDEX_TYPE 0x8015 +#define GLX_MAX_PBUFFER_WIDTH 0x8016 +#define GLX_MAX_PBUFFER_HEIGHT 0x8017 +#define GLX_MAX_PBUFFER_PIXELS 0x8018 +#define GLX_PRESERVED_CONTENTS 0x801B +#define GLX_LARGEST_PBUFFER 0x801C +#define GLX_WIDTH 0x801D +#define GLX_HEIGHT 0x801E +#define GLX_EVENT_MASK 0x801F +#define GLX_DAMAGED 0x8020 +#define GLX_SAVED 0x8021 +#define GLX_WINDOW 0x8022 +#define GLX_PBUFFER 0x8023 +#define GLX_PBUFFER_HEIGHT 0x8040 +#define GLX_PBUFFER_WIDTH 0x8041 +#define GLX_PBUFFER_CLOBBER_MASK 0x08000000 +#define GLX_DONT_CARE 0xFFFFFFFF + +typedef XID GLXFBConfigID; +typedef XID GLXPbuffer; +typedef XID GLXWindow; +typedef struct __GLXFBConfigRec *GLXFBConfig; + +typedef struct { + int event_type; + int draw_type; + unsigned long serial; + Bool send_event; + Display *display; + GLXDrawable drawable; + unsigned int buffer_mask; + unsigned int aux_buffer; + int x, y; + int width, height; + int count; +} GLXPbufferClobberEvent; +typedef union __GLXEvent { + GLXPbufferClobberEvent glxpbufferclobber; + long pad[24]; +} GLXEvent; + +typedef GLXFBConfig* ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); +typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); +typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); +typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); +typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); +typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); +typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); +typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); +typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void); +typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); +typedef GLXFBConfig* ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); +typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); +typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); +typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx); +typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); +typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); +typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); + +#define glXChooseFBConfig GLXEW_GET_FUN(__glewXChooseFBConfig) +#define glXCreateNewContext GLXEW_GET_FUN(__glewXCreateNewContext) +#define glXCreatePbuffer GLXEW_GET_FUN(__glewXCreatePbuffer) +#define glXCreatePixmap GLXEW_GET_FUN(__glewXCreatePixmap) +#define glXCreateWindow GLXEW_GET_FUN(__glewXCreateWindow) +#define glXDestroyPbuffer GLXEW_GET_FUN(__glewXDestroyPbuffer) +#define glXDestroyPixmap GLXEW_GET_FUN(__glewXDestroyPixmap) +#define glXDestroyWindow GLXEW_GET_FUN(__glewXDestroyWindow) +#define glXGetCurrentReadDrawable GLXEW_GET_FUN(__glewXGetCurrentReadDrawable) +#define glXGetFBConfigAttrib GLXEW_GET_FUN(__glewXGetFBConfigAttrib) +#define glXGetFBConfigs GLXEW_GET_FUN(__glewXGetFBConfigs) +#define glXGetSelectedEvent GLXEW_GET_FUN(__glewXGetSelectedEvent) +#define glXGetVisualFromFBConfig GLXEW_GET_FUN(__glewXGetVisualFromFBConfig) +#define glXMakeContextCurrent GLXEW_GET_FUN(__glewXMakeContextCurrent) +#define glXQueryContext GLXEW_GET_FUN(__glewXQueryContext) +#define glXQueryDrawable GLXEW_GET_FUN(__glewXQueryDrawable) +#define glXSelectEvent GLXEW_GET_FUN(__glewXSelectEvent) + +#define GLXEW_VERSION_1_3 GLXEW_GET_VAR(__GLXEW_VERSION_1_3) + +#endif /* GLX_VERSION_1_3 */ + +/* ---------------------------- GLX_VERSION_1_4 ---------------------------- */ + +#ifndef GLX_VERSION_1_4 +#define GLX_VERSION_1_4 1 + +#define GLX_SAMPLE_BUFFERS 100000 +#define GLX_SAMPLES 100001 + +extern void ( * glXGetProcAddress (const GLubyte *procName)) (void); + +#define GLXEW_VERSION_1_4 GLXEW_GET_VAR(__GLXEW_VERSION_1_4) + +#endif /* GLX_VERSION_1_4 */ + +/* -------------------------- GLX_3DFX_multisample ------------------------- */ + +#ifndef GLX_3DFX_multisample +#define GLX_3DFX_multisample 1 + +#define GLX_SAMPLE_BUFFERS_3DFX 0x8050 +#define GLX_SAMPLES_3DFX 0x8051 + +#define GLXEW_3DFX_multisample GLXEW_GET_VAR(__GLXEW_3DFX_multisample) + +#endif /* GLX_3DFX_multisample */ + +/* ------------------------ GLX_AMD_gpu_association ------------------------ */ + +#ifndef GLX_AMD_gpu_association +#define GLX_AMD_gpu_association 1 + +#define GLX_GPU_VENDOR_AMD 0x1F00 +#define GLX_GPU_RENDERER_STRING_AMD 0x1F01 +#define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 +#define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 +#define GLX_GPU_RAM_AMD 0x21A3 +#define GLX_GPU_CLOCK_AMD 0x21A4 +#define GLX_GPU_NUM_PIPES_AMD 0x21A5 +#define GLX_GPU_NUM_SIMD_AMD 0x21A6 +#define GLX_GPU_NUM_RB_AMD 0x21A7 +#define GLX_GPU_NUM_SPI_AMD 0x21A8 + +#define GLXEW_AMD_gpu_association GLXEW_GET_VAR(__GLXEW_AMD_gpu_association) + +#endif /* GLX_AMD_gpu_association */ + +/* ------------------------- GLX_ARB_create_context ------------------------ */ + +#ifndef GLX_ARB_create_context +#define GLX_ARB_create_context 1 + +#define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 +#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 +#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 +#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 +#define GLX_CONTEXT_FLAGS_ARB 0x2094 + +typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); + +#define glXCreateContextAttribsARB GLXEW_GET_FUN(__glewXCreateContextAttribsARB) + +#define GLXEW_ARB_create_context GLXEW_GET_VAR(__GLXEW_ARB_create_context) + +#endif /* GLX_ARB_create_context */ + +/* --------------------- GLX_ARB_create_context_profile -------------------- */ + +#ifndef GLX_ARB_create_context_profile +#define GLX_ARB_create_context_profile 1 + +#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 +#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 +#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 + +#define GLXEW_ARB_create_context_profile GLXEW_GET_VAR(__GLXEW_ARB_create_context_profile) + +#endif /* GLX_ARB_create_context_profile */ + +/* ------------------- GLX_ARB_create_context_robustness ------------------- */ + +#ifndef GLX_ARB_create_context_robustness +#define GLX_ARB_create_context_robustness 1 + +#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 + +#define GLXEW_ARB_create_context_robustness GLXEW_GET_VAR(__GLXEW_ARB_create_context_robustness) + +#endif /* GLX_ARB_create_context_robustness */ + +/* ------------------------- GLX_ARB_fbconfig_float ------------------------ */ + +#ifndef GLX_ARB_fbconfig_float +#define GLX_ARB_fbconfig_float 1 + +#define GLX_RGBA_FLOAT_BIT 0x00000004 +#define GLX_RGBA_FLOAT_TYPE 0x20B9 + +#define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float) + +#endif /* GLX_ARB_fbconfig_float */ + +/* ------------------------ GLX_ARB_framebuffer_sRGB ----------------------- */ + +#ifndef GLX_ARB_framebuffer_sRGB +#define GLX_ARB_framebuffer_sRGB 1 + +#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2 + +#define GLXEW_ARB_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_ARB_framebuffer_sRGB) + +#endif /* GLX_ARB_framebuffer_sRGB */ + +/* ------------------------ GLX_ARB_get_proc_address ----------------------- */ + +#ifndef GLX_ARB_get_proc_address +#define GLX_ARB_get_proc_address 1 + +extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void); + +#define GLXEW_ARB_get_proc_address GLXEW_GET_VAR(__GLXEW_ARB_get_proc_address) + +#endif /* GLX_ARB_get_proc_address */ + +/* -------------------------- GLX_ARB_multisample -------------------------- */ + +#ifndef GLX_ARB_multisample +#define GLX_ARB_multisample 1 + +#define GLX_SAMPLE_BUFFERS_ARB 100000 +#define GLX_SAMPLES_ARB 100001 + +#define GLXEW_ARB_multisample GLXEW_GET_VAR(__GLXEW_ARB_multisample) + +#endif /* GLX_ARB_multisample */ + +/* ---------------------- GLX_ARB_vertex_buffer_object --------------------- */ + +#ifndef GLX_ARB_vertex_buffer_object +#define GLX_ARB_vertex_buffer_object 1 + +#define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095 + +#define GLXEW_ARB_vertex_buffer_object GLXEW_GET_VAR(__GLXEW_ARB_vertex_buffer_object) + +#endif /* GLX_ARB_vertex_buffer_object */ + +/* ----------------------- GLX_ATI_pixel_format_float ---------------------- */ + +#ifndef GLX_ATI_pixel_format_float +#define GLX_ATI_pixel_format_float 1 + +#define GLX_RGBA_FLOAT_ATI_BIT 0x00000100 + +#define GLXEW_ATI_pixel_format_float GLXEW_GET_VAR(__GLXEW_ATI_pixel_format_float) + +#endif /* GLX_ATI_pixel_format_float */ + +/* ------------------------- GLX_ATI_render_texture ------------------------ */ + +#ifndef GLX_ATI_render_texture +#define GLX_ATI_render_texture 1 + +#define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800 +#define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801 +#define GLX_TEXTURE_FORMAT_ATI 0x9802 +#define GLX_TEXTURE_TARGET_ATI 0x9803 +#define GLX_MIPMAP_TEXTURE_ATI 0x9804 +#define GLX_TEXTURE_RGB_ATI 0x9805 +#define GLX_TEXTURE_RGBA_ATI 0x9806 +#define GLX_NO_TEXTURE_ATI 0x9807 +#define GLX_TEXTURE_CUBE_MAP_ATI 0x9808 +#define GLX_TEXTURE_1D_ATI 0x9809 +#define GLX_TEXTURE_2D_ATI 0x980A +#define GLX_MIPMAP_LEVEL_ATI 0x980B +#define GLX_CUBE_MAP_FACE_ATI 0x980C +#define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D +#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E +#define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F +#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810 +#define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811 +#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812 +#define GLX_FRONT_LEFT_ATI 0x9813 +#define GLX_FRONT_RIGHT_ATI 0x9814 +#define GLX_BACK_LEFT_ATI 0x9815 +#define GLX_BACK_RIGHT_ATI 0x9816 +#define GLX_AUX0_ATI 0x9817 +#define GLX_AUX1_ATI 0x9818 +#define GLX_AUX2_ATI 0x9819 +#define GLX_AUX3_ATI 0x981A +#define GLX_AUX4_ATI 0x981B +#define GLX_AUX5_ATI 0x981C +#define GLX_AUX6_ATI 0x981D +#define GLX_AUX7_ATI 0x981E +#define GLX_AUX8_ATI 0x981F +#define GLX_AUX9_ATI 0x9820 +#define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821 +#define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822 + +typedef void ( * PFNGLXBINDTEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer); +typedef void ( * PFNGLXDRAWABLEATTRIBATIPROC) (Display *dpy, GLXDrawable draw, const int *attrib_list); +typedef void ( * PFNGLXRELEASETEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer); + +#define glXBindTexImageATI GLXEW_GET_FUN(__glewXBindTexImageATI) +#define glXDrawableAttribATI GLXEW_GET_FUN(__glewXDrawableAttribATI) +#define glXReleaseTexImageATI GLXEW_GET_FUN(__glewXReleaseTexImageATI) + +#define GLXEW_ATI_render_texture GLXEW_GET_VAR(__GLXEW_ATI_render_texture) + +#endif /* GLX_ATI_render_texture */ + +/* ------------------- GLX_EXT_create_context_es2_profile ------------------ */ + +#ifndef GLX_EXT_create_context_es2_profile +#define GLX_EXT_create_context_es2_profile 1 + +#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 + +#define GLXEW_EXT_create_context_es2_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es2_profile) + +#endif /* GLX_EXT_create_context_es2_profile */ + +/* --------------------- GLX_EXT_fbconfig_packed_float --------------------- */ + +#ifndef GLX_EXT_fbconfig_packed_float +#define GLX_EXT_fbconfig_packed_float 1 + +#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008 +#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1 + +#define GLXEW_EXT_fbconfig_packed_float GLXEW_GET_VAR(__GLXEW_EXT_fbconfig_packed_float) + +#endif /* GLX_EXT_fbconfig_packed_float */ + +/* ------------------------ GLX_EXT_framebuffer_sRGB ----------------------- */ + +#ifndef GLX_EXT_framebuffer_sRGB +#define GLX_EXT_framebuffer_sRGB 1 + +#define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2 + +#define GLXEW_EXT_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_EXT_framebuffer_sRGB) + +#endif /* GLX_EXT_framebuffer_sRGB */ + +/* ------------------------- GLX_EXT_import_context ------------------------ */ + +#ifndef GLX_EXT_import_context +#define GLX_EXT_import_context 1 + +#define GLX_SHARE_CONTEXT_EXT 0x800A +#define GLX_VISUAL_ID_EXT 0x800B +#define GLX_SCREEN_EXT 0x800C + +typedef XID GLXContextID; + +typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display* dpy, GLXContext context); +typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context); +typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display* dpy, GLXContextID contextID); +typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display* dpy, GLXContext context, int attribute,int *value); + +#define glXFreeContextEXT GLXEW_GET_FUN(__glewXFreeContextEXT) +#define glXGetContextIDEXT GLXEW_GET_FUN(__glewXGetContextIDEXT) +#define glXImportContextEXT GLXEW_GET_FUN(__glewXImportContextEXT) +#define glXQueryContextInfoEXT GLXEW_GET_FUN(__glewXQueryContextInfoEXT) + +#define GLXEW_EXT_import_context GLXEW_GET_VAR(__GLXEW_EXT_import_context) + +#endif /* GLX_EXT_import_context */ + +/* -------------------------- GLX_EXT_scene_marker ------------------------- */ + +#ifndef GLX_EXT_scene_marker +#define GLX_EXT_scene_marker 1 + +#define GLXEW_EXT_scene_marker GLXEW_GET_VAR(__GLXEW_EXT_scene_marker) + +#endif /* GLX_EXT_scene_marker */ + +/* -------------------------- GLX_EXT_swap_control ------------------------- */ + +#ifndef GLX_EXT_swap_control +#define GLX_EXT_swap_control 1 + +#define GLX_SWAP_INTERVAL_EXT 0x20F1 +#define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2 + +typedef void ( * PFNGLXSWAPINTERVALEXTPROC) (Display* dpy, GLXDrawable drawable, int interval); + +#define glXSwapIntervalEXT GLXEW_GET_FUN(__glewXSwapIntervalEXT) + +#define GLXEW_EXT_swap_control GLXEW_GET_VAR(__GLXEW_EXT_swap_control) + +#endif /* GLX_EXT_swap_control */ + +/* ---------------------- GLX_EXT_texture_from_pixmap ---------------------- */ + +#ifndef GLX_EXT_texture_from_pixmap +#define GLX_EXT_texture_from_pixmap 1 + +#define GLX_TEXTURE_1D_BIT_EXT 0x00000001 +#define GLX_TEXTURE_2D_BIT_EXT 0x00000002 +#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 +#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 +#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 +#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 +#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 +#define GLX_Y_INVERTED_EXT 0x20D4 +#define GLX_TEXTURE_FORMAT_EXT 0x20D5 +#define GLX_TEXTURE_TARGET_EXT 0x20D6 +#define GLX_MIPMAP_TEXTURE_EXT 0x20D7 +#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 +#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 +#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA +#define GLX_TEXTURE_1D_EXT 0x20DB +#define GLX_TEXTURE_2D_EXT 0x20DC +#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD +#define GLX_FRONT_LEFT_EXT 0x20DE +#define GLX_FRONT_RIGHT_EXT 0x20DF +#define GLX_BACK_LEFT_EXT 0x20E0 +#define GLX_BACK_RIGHT_EXT 0x20E1 +#define GLX_AUX0_EXT 0x20E2 +#define GLX_AUX1_EXT 0x20E3 +#define GLX_AUX2_EXT 0x20E4 +#define GLX_AUX3_EXT 0x20E5 +#define GLX_AUX4_EXT 0x20E6 +#define GLX_AUX5_EXT 0x20E7 +#define GLX_AUX6_EXT 0x20E8 +#define GLX_AUX7_EXT 0x20E9 +#define GLX_AUX8_EXT 0x20EA +#define GLX_AUX9_EXT 0x20EB + +typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer, const int *attrib_list); +typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer); + +#define glXBindTexImageEXT GLXEW_GET_FUN(__glewXBindTexImageEXT) +#define glXReleaseTexImageEXT GLXEW_GET_FUN(__glewXReleaseTexImageEXT) + +#define GLXEW_EXT_texture_from_pixmap GLXEW_GET_VAR(__GLXEW_EXT_texture_from_pixmap) + +#endif /* GLX_EXT_texture_from_pixmap */ + +/* -------------------------- GLX_EXT_visual_info -------------------------- */ + +#ifndef GLX_EXT_visual_info +#define GLX_EXT_visual_info 1 + +#define GLX_X_VISUAL_TYPE_EXT 0x22 +#define GLX_TRANSPARENT_TYPE_EXT 0x23 +#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 +#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 +#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 +#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 +#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 +#define GLX_NONE_EXT 0x8000 +#define GLX_TRUE_COLOR_EXT 0x8002 +#define GLX_DIRECT_COLOR_EXT 0x8003 +#define GLX_PSEUDO_COLOR_EXT 0x8004 +#define GLX_STATIC_COLOR_EXT 0x8005 +#define GLX_GRAY_SCALE_EXT 0x8006 +#define GLX_STATIC_GRAY_EXT 0x8007 +#define GLX_TRANSPARENT_RGB_EXT 0x8008 +#define GLX_TRANSPARENT_INDEX_EXT 0x8009 + +#define GLXEW_EXT_visual_info GLXEW_GET_VAR(__GLXEW_EXT_visual_info) + +#endif /* GLX_EXT_visual_info */ + +/* ------------------------- GLX_EXT_visual_rating ------------------------- */ + +#ifndef GLX_EXT_visual_rating +#define GLX_EXT_visual_rating 1 + +#define GLX_VISUAL_CAVEAT_EXT 0x20 +#define GLX_SLOW_VISUAL_EXT 0x8001 +#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D + +#define GLXEW_EXT_visual_rating GLXEW_GET_VAR(__GLXEW_EXT_visual_rating) + +#endif /* GLX_EXT_visual_rating */ + +/* -------------------------- GLX_INTEL_swap_event ------------------------- */ + +#ifndef GLX_INTEL_swap_event +#define GLX_INTEL_swap_event 1 + +#define GLX_EXCHANGE_COMPLETE_INTEL 0x8180 +#define GLX_COPY_COMPLETE_INTEL 0x8181 +#define GLX_FLIP_COMPLETE_INTEL 0x8182 +#define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000 + +#define GLXEW_INTEL_swap_event GLXEW_GET_VAR(__GLXEW_INTEL_swap_event) + +#endif /* GLX_INTEL_swap_event */ + +/* -------------------------- GLX_MESA_agp_offset -------------------------- */ + +#ifndef GLX_MESA_agp_offset +#define GLX_MESA_agp_offset 1 + +typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void* pointer); + +#define glXGetAGPOffsetMESA GLXEW_GET_FUN(__glewXGetAGPOffsetMESA) + +#define GLXEW_MESA_agp_offset GLXEW_GET_VAR(__GLXEW_MESA_agp_offset) + +#endif /* GLX_MESA_agp_offset */ + +/* ------------------------ GLX_MESA_copy_sub_buffer ----------------------- */ + +#ifndef GLX_MESA_copy_sub_buffer +#define GLX_MESA_copy_sub_buffer 1 + +typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display* dpy, GLXDrawable drawable, int x, int y, int width, int height); + +#define glXCopySubBufferMESA GLXEW_GET_FUN(__glewXCopySubBufferMESA) + +#define GLXEW_MESA_copy_sub_buffer GLXEW_GET_VAR(__GLXEW_MESA_copy_sub_buffer) + +#endif /* GLX_MESA_copy_sub_buffer */ + +/* ------------------------ GLX_MESA_pixmap_colormap ----------------------- */ + +#ifndef GLX_MESA_pixmap_colormap +#define GLX_MESA_pixmap_colormap 1 + +typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display* dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); + +#define glXCreateGLXPixmapMESA GLXEW_GET_FUN(__glewXCreateGLXPixmapMESA) + +#define GLXEW_MESA_pixmap_colormap GLXEW_GET_VAR(__GLXEW_MESA_pixmap_colormap) + +#endif /* GLX_MESA_pixmap_colormap */ + +/* ------------------------ GLX_MESA_release_buffers ----------------------- */ + +#ifndef GLX_MESA_release_buffers +#define GLX_MESA_release_buffers 1 + +typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display* dpy, GLXDrawable d); + +#define glXReleaseBuffersMESA GLXEW_GET_FUN(__glewXReleaseBuffersMESA) + +#define GLXEW_MESA_release_buffers GLXEW_GET_VAR(__GLXEW_MESA_release_buffers) + +#endif /* GLX_MESA_release_buffers */ + +/* ------------------------- GLX_MESA_set_3dfx_mode ------------------------ */ + +#ifndef GLX_MESA_set_3dfx_mode +#define GLX_MESA_set_3dfx_mode 1 + +#define GLX_3DFX_WINDOW_MODE_MESA 0x1 +#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 + +typedef GLboolean ( * PFNGLXSET3DFXMODEMESAPROC) (GLint mode); + +#define glXSet3DfxModeMESA GLXEW_GET_FUN(__glewXSet3DfxModeMESA) + +#define GLXEW_MESA_set_3dfx_mode GLXEW_GET_VAR(__GLXEW_MESA_set_3dfx_mode) + +#endif /* GLX_MESA_set_3dfx_mode */ + +/* --------------------------- GLX_NV_copy_image --------------------------- */ + +#ifndef GLX_NV_copy_image +#define GLX_NV_copy_image 1 + +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); + +#define glXCopyImageSubDataNV GLXEW_GET_FUN(__glewXCopyImageSubDataNV) + +#define GLXEW_NV_copy_image GLXEW_GET_VAR(__GLXEW_NV_copy_image) + +#endif /* GLX_NV_copy_image */ + +/* -------------------------- GLX_NV_float_buffer -------------------------- */ + +#ifndef GLX_NV_float_buffer +#define GLX_NV_float_buffer 1 + +#define GLX_FLOAT_COMPONENTS_NV 0x20B0 + +#define GLXEW_NV_float_buffer GLXEW_GET_VAR(__GLXEW_NV_float_buffer) + +#endif /* GLX_NV_float_buffer */ + +/* ---------------------- GLX_NV_multisample_coverage ---------------------- */ + +#ifndef GLX_NV_multisample_coverage +#define GLX_NV_multisample_coverage 1 + +#define GLX_COLOR_SAMPLES_NV 0x20B3 +#define GLX_COVERAGE_SAMPLES_NV 100001 + +#define GLXEW_NV_multisample_coverage GLXEW_GET_VAR(__GLXEW_NV_multisample_coverage) + +#endif /* GLX_NV_multisample_coverage */ + +/* -------------------------- GLX_NV_present_video ------------------------- */ + +#ifndef GLX_NV_present_video +#define GLX_NV_present_video 1 + +#define GLX_NUM_VIDEO_SLOTS_NV 0x20F0 + +typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display* dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); +typedef unsigned int* ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements); + +#define glXBindVideoDeviceNV GLXEW_GET_FUN(__glewXBindVideoDeviceNV) +#define glXEnumerateVideoDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoDevicesNV) + +#define GLXEW_NV_present_video GLXEW_GET_VAR(__GLXEW_NV_present_video) + +#endif /* GLX_NV_present_video */ + +/* --------------------------- GLX_NV_swap_group --------------------------- */ + +#ifndef GLX_NV_swap_group +#define GLX_NV_swap_group 1 + +typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display* dpy, GLuint group, GLuint barrier); +typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint group); +typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display* dpy, int screen, GLuint *count); +typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display* dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); +typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); +typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display* dpy, int screen); + +#define glXBindSwapBarrierNV GLXEW_GET_FUN(__glewXBindSwapBarrierNV) +#define glXJoinSwapGroupNV GLXEW_GET_FUN(__glewXJoinSwapGroupNV) +#define glXQueryFrameCountNV GLXEW_GET_FUN(__glewXQueryFrameCountNV) +#define glXQueryMaxSwapGroupsNV GLXEW_GET_FUN(__glewXQueryMaxSwapGroupsNV) +#define glXQuerySwapGroupNV GLXEW_GET_FUN(__glewXQuerySwapGroupNV) +#define glXResetFrameCountNV GLXEW_GET_FUN(__glewXResetFrameCountNV) + +#define GLXEW_NV_swap_group GLXEW_GET_VAR(__GLXEW_NV_swap_group) + +#endif /* GLX_NV_swap_group */ + +/* ----------------------- GLX_NV_vertex_array_range ----------------------- */ + +#ifndef GLX_NV_vertex_array_range +#define GLX_NV_vertex_array_range 1 + +typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority); +typedef void ( * PFNGLXFREEMEMORYNVPROC) (void *pointer); + +#define glXAllocateMemoryNV GLXEW_GET_FUN(__glewXAllocateMemoryNV) +#define glXFreeMemoryNV GLXEW_GET_FUN(__glewXFreeMemoryNV) + +#define GLXEW_NV_vertex_array_range GLXEW_GET_VAR(__GLXEW_NV_vertex_array_range) + +#endif /* GLX_NV_vertex_array_range */ + +/* -------------------------- GLX_NV_video_output -------------------------- */ + +#ifndef GLX_NV_video_output +#define GLX_NV_video_output 1 + +#define GLX_VIDEO_OUT_COLOR_NV 0x20C3 +#define GLX_VIDEO_OUT_ALPHA_NV 0x20C4 +#define GLX_VIDEO_OUT_DEPTH_NV 0x20C5 +#define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 +#define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 +#define GLX_VIDEO_OUT_FRAME_NV 0x20C8 +#define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9 +#define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA +#define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB +#define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC + +typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display* dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); +typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display* dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); +typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); +typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice); +typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display* dpy, GLXPbuffer pbuf); +typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display* dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); + +#define glXBindVideoImageNV GLXEW_GET_FUN(__glewXBindVideoImageNV) +#define glXGetVideoDeviceNV GLXEW_GET_FUN(__glewXGetVideoDeviceNV) +#define glXGetVideoInfoNV GLXEW_GET_FUN(__glewXGetVideoInfoNV) +#define glXReleaseVideoDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoDeviceNV) +#define glXReleaseVideoImageNV GLXEW_GET_FUN(__glewXReleaseVideoImageNV) +#define glXSendPbufferToVideoNV GLXEW_GET_FUN(__glewXSendPbufferToVideoNV) + +#define GLXEW_NV_video_output GLXEW_GET_VAR(__GLXEW_NV_video_output) + +#endif /* GLX_NV_video_output */ + +/* -------------------------- GLX_OML_swap_method -------------------------- */ + +#ifndef GLX_OML_swap_method +#define GLX_OML_swap_method 1 + +#define GLX_SWAP_METHOD_OML 0x8060 +#define GLX_SWAP_EXCHANGE_OML 0x8061 +#define GLX_SWAP_COPY_OML 0x8062 +#define GLX_SWAP_UNDEFINED_OML 0x8063 + +#define GLXEW_OML_swap_method GLXEW_GET_VAR(__GLXEW_OML_swap_method) + +#endif /* GLX_OML_swap_method */ + +/* -------------------------- GLX_OML_sync_control ------------------------- */ + +#if !defined(GLX_OML_sync_control) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) +#include +#define GLX_OML_sync_control 1 + +typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator); +typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc); +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); + +#define glXGetMscRateOML GLXEW_GET_FUN(__glewXGetMscRateOML) +#define glXGetSyncValuesOML GLXEW_GET_FUN(__glewXGetSyncValuesOML) +#define glXSwapBuffersMscOML GLXEW_GET_FUN(__glewXSwapBuffersMscOML) +#define glXWaitForMscOML GLXEW_GET_FUN(__glewXWaitForMscOML) +#define glXWaitForSbcOML GLXEW_GET_FUN(__glewXWaitForSbcOML) + +#define GLXEW_OML_sync_control GLXEW_GET_VAR(__GLXEW_OML_sync_control) + +#endif /* GLX_OML_sync_control */ + +/* ------------------------ GLX_SGIS_blended_overlay ----------------------- */ + +#ifndef GLX_SGIS_blended_overlay +#define GLX_SGIS_blended_overlay 1 + +#define GLX_BLENDED_RGBA_SGIS 0x8025 + +#define GLXEW_SGIS_blended_overlay GLXEW_GET_VAR(__GLXEW_SGIS_blended_overlay) + +#endif /* GLX_SGIS_blended_overlay */ + +/* -------------------------- GLX_SGIS_color_range ------------------------- */ + +#ifndef GLX_SGIS_color_range +#define GLX_SGIS_color_range 1 + +#define GLX_MIN_RED_SGIS 0 +#define GLX_MAX_GREEN_SGIS 0 +#define GLX_MIN_BLUE_SGIS 0 +#define GLX_MAX_ALPHA_SGIS 0 +#define GLX_MIN_GREEN_SGIS 0 +#define GLX_MIN_ALPHA_SGIS 0 +#define GLX_MAX_RED_SGIS 0 +#define GLX_EXTENDED_RANGE_SGIS 0 +#define GLX_MAX_BLUE_SGIS 0 + +#define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range) + +#endif /* GLX_SGIS_color_range */ + +/* -------------------------- GLX_SGIS_multisample ------------------------- */ + +#ifndef GLX_SGIS_multisample +#define GLX_SGIS_multisample 1 + +#define GLX_SAMPLE_BUFFERS_SGIS 100000 +#define GLX_SAMPLES_SGIS 100001 + +#define GLXEW_SGIS_multisample GLXEW_GET_VAR(__GLXEW_SGIS_multisample) + +#endif /* GLX_SGIS_multisample */ + +/* ---------------------- GLX_SGIS_shared_multisample ---------------------- */ + +#ifndef GLX_SGIS_shared_multisample +#define GLX_SGIS_shared_multisample 1 + +#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 +#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 + +#define GLXEW_SGIS_shared_multisample GLXEW_GET_VAR(__GLXEW_SGIS_shared_multisample) + +#endif /* GLX_SGIS_shared_multisample */ + +/* --------------------------- GLX_SGIX_fbconfig --------------------------- */ + +#ifndef GLX_SGIX_fbconfig +#define GLX_SGIX_fbconfig 1 + +#define GLX_WINDOW_BIT_SGIX 0x00000001 +#define GLX_RGBA_BIT_SGIX 0x00000001 +#define GLX_PIXMAP_BIT_SGIX 0x00000002 +#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 +#define GLX_SCREEN_EXT 0x800C +#define GLX_DRAWABLE_TYPE_SGIX 0x8010 +#define GLX_RENDER_TYPE_SGIX 0x8011 +#define GLX_X_RENDERABLE_SGIX 0x8012 +#define GLX_FBCONFIG_ID_SGIX 0x8013 +#define GLX_RGBA_TYPE_SGIX 0x8014 +#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 + +typedef XID GLXFBConfigIDSGIX; +typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; + +typedef GLXFBConfigSGIX* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); +typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); +typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, Pixmap pixmap); +typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display* dpy, GLXFBConfigSGIX config, int attribute, int *value); +typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display* dpy, XVisualInfo *vis); +typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfig config); + +#define glXChooseFBConfigSGIX GLXEW_GET_FUN(__glewXChooseFBConfigSGIX) +#define glXCreateContextWithConfigSGIX GLXEW_GET_FUN(__glewXCreateContextWithConfigSGIX) +#define glXCreateGLXPixmapWithConfigSGIX GLXEW_GET_FUN(__glewXCreateGLXPixmapWithConfigSGIX) +#define glXGetFBConfigAttribSGIX GLXEW_GET_FUN(__glewXGetFBConfigAttribSGIX) +#define glXGetFBConfigFromVisualSGIX GLXEW_GET_FUN(__glewXGetFBConfigFromVisualSGIX) +#define glXGetVisualFromFBConfigSGIX GLXEW_GET_FUN(__glewXGetVisualFromFBConfigSGIX) + +#define GLXEW_SGIX_fbconfig GLXEW_GET_VAR(__GLXEW_SGIX_fbconfig) + +#endif /* GLX_SGIX_fbconfig */ + +/* --------------------------- GLX_SGIX_hyperpipe -------------------------- */ + +#ifndef GLX_SGIX_hyperpipe +#define GLX_SGIX_hyperpipe 1 + +#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001 +#define GLX_PIPE_RECT_SGIX 0x00000001 +#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002 +#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002 +#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003 +#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004 +#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80 +#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91 +#define GLX_BAD_HYPERPIPE_SGIX 92 +#define GLX_HYPERPIPE_ID_SGIX 0x8030 + +typedef struct { + char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; + int networkId; +} GLXHyperpipeNetworkSGIX; +typedef struct { + char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; + int XOrigin; + int YOrigin; + int maxHeight; + int maxWidth; +} GLXPipeRectLimits; +typedef struct { + char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; + int channel; + unsigned int participationType; + int timeSlice; +} GLXHyperpipeConfigSGIX; +typedef struct { + char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; + int srcXOrigin; + int srcYOrigin; + int srcWidth; + int srcHeight; + int destXOrigin; + int destYOrigin; + int destWidth; + int destHeight; +} GLXPipeRect; + +typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId); +typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId); +typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList); +typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); +typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); +typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); +typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes); +typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes); + +#define glXBindHyperpipeSGIX GLXEW_GET_FUN(__glewXBindHyperpipeSGIX) +#define glXDestroyHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXDestroyHyperpipeConfigSGIX) +#define glXHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXHyperpipeAttribSGIX) +#define glXHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXHyperpipeConfigSGIX) +#define glXQueryHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeAttribSGIX) +#define glXQueryHyperpipeBestAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeBestAttribSGIX) +#define glXQueryHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeConfigSGIX) +#define glXQueryHyperpipeNetworkSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeNetworkSGIX) + +#define GLXEW_SGIX_hyperpipe GLXEW_GET_VAR(__GLXEW_SGIX_hyperpipe) + +#endif /* GLX_SGIX_hyperpipe */ + +/* ---------------------------- GLX_SGIX_pbuffer --------------------------- */ + +#ifndef GLX_SGIX_pbuffer +#define GLX_SGIX_pbuffer 1 + +#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 +#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 +#define GLX_PBUFFER_BIT_SGIX 0x00000004 +#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 +#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 +#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 +#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 +#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 +#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 +#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 +#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 +#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 +#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 +#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 +#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A +#define GLX_PRESERVED_CONTENTS_SGIX 0x801B +#define GLX_LARGEST_PBUFFER_SGIX 0x801C +#define GLX_WIDTH_SGIX 0x801D +#define GLX_HEIGHT_SGIX 0x801E +#define GLX_EVENT_MASK_SGIX 0x801F +#define GLX_DAMAGED_SGIX 0x8020 +#define GLX_SAVED_SGIX 0x8021 +#define GLX_WINDOW_SGIX 0x8022 +#define GLX_PBUFFER_SGIX 0x8023 +#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 + +typedef XID GLXPbufferSGIX; +typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX; + +typedef GLXPbuffer ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display* dpy, GLXFBConfig config, unsigned int width, unsigned int height, int *attrib_list); +typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf); +typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long *mask); +typedef void ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf, int attribute, unsigned int *value); +typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long mask); + +#define glXCreateGLXPbufferSGIX GLXEW_GET_FUN(__glewXCreateGLXPbufferSGIX) +#define glXDestroyGLXPbufferSGIX GLXEW_GET_FUN(__glewXDestroyGLXPbufferSGIX) +#define glXGetSelectedEventSGIX GLXEW_GET_FUN(__glewXGetSelectedEventSGIX) +#define glXQueryGLXPbufferSGIX GLXEW_GET_FUN(__glewXQueryGLXPbufferSGIX) +#define glXSelectEventSGIX GLXEW_GET_FUN(__glewXSelectEventSGIX) + +#define GLXEW_SGIX_pbuffer GLXEW_GET_VAR(__GLXEW_SGIX_pbuffer) + +#endif /* GLX_SGIX_pbuffer */ + +/* ------------------------- GLX_SGIX_swap_barrier ------------------------- */ + +#ifndef GLX_SGIX_swap_barrier +#define GLX_SGIX_swap_barrier 1 + +typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); +typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); + +#define glXBindSwapBarrierSGIX GLXEW_GET_FUN(__glewXBindSwapBarrierSGIX) +#define glXQueryMaxSwapBarriersSGIX GLXEW_GET_FUN(__glewXQueryMaxSwapBarriersSGIX) + +#define GLXEW_SGIX_swap_barrier GLXEW_GET_VAR(__GLXEW_SGIX_swap_barrier) + +#endif /* GLX_SGIX_swap_barrier */ + +/* -------------------------- GLX_SGIX_swap_group -------------------------- */ + +#ifndef GLX_SGIX_swap_group +#define GLX_SGIX_swap_group 1 + +typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); + +#define glXJoinSwapGroupSGIX GLXEW_GET_FUN(__glewXJoinSwapGroupSGIX) + +#define GLXEW_SGIX_swap_group GLXEW_GET_VAR(__GLXEW_SGIX_swap_group) + +#endif /* GLX_SGIX_swap_group */ + +/* ------------------------- GLX_SGIX_video_resize ------------------------- */ + +#ifndef GLX_SGIX_video_resize +#define GLX_SGIX_video_resize 1 + +#define GLX_SYNC_FRAME_SGIX 0x00000000 +#define GLX_SYNC_SWAP_SGIX 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 ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display* display, int screen, int channel, GLenum synctype); +typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (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); + +#define glXBindChannelToWindowSGIX GLXEW_GET_FUN(__glewXBindChannelToWindowSGIX) +#define glXChannelRectSGIX GLXEW_GET_FUN(__glewXChannelRectSGIX) +#define glXChannelRectSyncSGIX GLXEW_GET_FUN(__glewXChannelRectSyncSGIX) +#define glXQueryChannelDeltasSGIX GLXEW_GET_FUN(__glewXQueryChannelDeltasSGIX) +#define glXQueryChannelRectSGIX GLXEW_GET_FUN(__glewXQueryChannelRectSGIX) + +#define GLXEW_SGIX_video_resize GLXEW_GET_VAR(__GLXEW_SGIX_video_resize) + +#endif /* GLX_SGIX_video_resize */ + +/* ---------------------- GLX_SGIX_visual_select_group --------------------- */ + +#ifndef GLX_SGIX_visual_select_group +#define GLX_SGIX_visual_select_group 1 + +#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 + +#define GLXEW_SGIX_visual_select_group GLXEW_GET_VAR(__GLXEW_SGIX_visual_select_group) + +#endif /* GLX_SGIX_visual_select_group */ + +/* ---------------------------- GLX_SGI_cushion ---------------------------- */ + +#ifndef GLX_SGI_cushion +#define GLX_SGI_cushion 1 + +typedef void ( * PFNGLXCUSHIONSGIPROC) (Display* dpy, Window window, float cushion); + +#define glXCushionSGI GLXEW_GET_FUN(__glewXCushionSGI) + +#define GLXEW_SGI_cushion GLXEW_GET_VAR(__GLXEW_SGI_cushion) + +#endif /* GLX_SGI_cushion */ + +/* ----------------------- GLX_SGI_make_current_read ----------------------- */ + +#ifndef GLX_SGI_make_current_read +#define GLX_SGI_make_current_read 1 + +typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); +typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); + +#define glXGetCurrentReadDrawableSGI GLXEW_GET_FUN(__glewXGetCurrentReadDrawableSGI) +#define glXMakeCurrentReadSGI GLXEW_GET_FUN(__glewXMakeCurrentReadSGI) + +#define GLXEW_SGI_make_current_read GLXEW_GET_VAR(__GLXEW_SGI_make_current_read) + +#endif /* GLX_SGI_make_current_read */ + +/* -------------------------- GLX_SGI_swap_control ------------------------- */ + +#ifndef GLX_SGI_swap_control +#define GLX_SGI_swap_control 1 + +typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval); + +#define glXSwapIntervalSGI GLXEW_GET_FUN(__glewXSwapIntervalSGI) + +#define GLXEW_SGI_swap_control GLXEW_GET_VAR(__GLXEW_SGI_swap_control) + +#endif /* GLX_SGI_swap_control */ + +/* --------------------------- GLX_SGI_video_sync -------------------------- */ + +#ifndef GLX_SGI_video_sync +#define GLX_SGI_video_sync 1 + +typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int* count); +typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int* count); + +#define glXGetVideoSyncSGI GLXEW_GET_FUN(__glewXGetVideoSyncSGI) +#define glXWaitVideoSyncSGI GLXEW_GET_FUN(__glewXWaitVideoSyncSGI) + +#define GLXEW_SGI_video_sync GLXEW_GET_VAR(__GLXEW_SGI_video_sync) + +#endif /* GLX_SGI_video_sync */ + +/* --------------------- GLX_SUN_get_transparent_index --------------------- */ + +#ifndef GLX_SUN_get_transparent_index +#define GLX_SUN_get_transparent_index 1 + +typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display* dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex); + +#define glXGetTransparentIndexSUN GLXEW_GET_FUN(__glewXGetTransparentIndexSUN) + +#define GLXEW_SUN_get_transparent_index GLXEW_GET_VAR(__GLXEW_SUN_get_transparent_index) + +#endif /* GLX_SUN_get_transparent_index */ + +/* -------------------------- GLX_SUN_video_resize ------------------------- */ + +#ifndef GLX_SUN_video_resize +#define GLX_SUN_video_resize 1 + +#define GLX_VIDEO_RESIZE_SUN 0x8171 +#define GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD + +typedef int ( * PFNGLXGETVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float* factor); +typedef int ( * PFNGLXVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float factor); + +#define glXGetVideoResizeSUN GLXEW_GET_FUN(__glewXGetVideoResizeSUN) +#define glXVideoResizeSUN GLXEW_GET_FUN(__glewXVideoResizeSUN) + +#define GLXEW_SUN_video_resize GLXEW_GET_VAR(__GLXEW_SUN_video_resize) + +#endif /* GLX_SUN_video_resize */ + +/* ------------------------------------------------------------------------- */ + +#ifdef GLEW_MX +#define GLXEW_EXPORT +#else +#define GLXEW_EXPORT extern +#endif /* GLEW_MX */ + +extern PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay; + +extern PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig; +extern PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext; +extern PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer; +extern PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap; +extern PFNGLXCREATEWINDOWPROC __glewXCreateWindow; +extern PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer; +extern PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap; +extern PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow; +extern PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable; +extern PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib; +extern PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs; +extern PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent; +extern PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig; +extern PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent; +extern PFNGLXQUERYCONTEXTPROC __glewXQueryContext; +extern PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable; +extern PFNGLXSELECTEVENTPROC __glewXSelectEvent; + +extern PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB; + +extern PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI; +extern PFNGLXDRAWABLEATTRIBATIPROC __glewXDrawableAttribATI; +extern PFNGLXRELEASETEXIMAGEATIPROC __glewXReleaseTexImageATI; + +extern PFNGLXFREECONTEXTEXTPROC __glewXFreeContextEXT; +extern PFNGLXGETCONTEXTIDEXTPROC __glewXGetContextIDEXT; +extern PFNGLXIMPORTCONTEXTEXTPROC __glewXImportContextEXT; +extern PFNGLXQUERYCONTEXTINFOEXTPROC __glewXQueryContextInfoEXT; + +extern PFNGLXSWAPINTERVALEXTPROC __glewXSwapIntervalEXT; + +extern PFNGLXBINDTEXIMAGEEXTPROC __glewXBindTexImageEXT; +extern PFNGLXRELEASETEXIMAGEEXTPROC __glewXReleaseTexImageEXT; + +extern PFNGLXGETAGPOFFSETMESAPROC __glewXGetAGPOffsetMESA; + +extern PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA; + +extern PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA; + +extern PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA; + +extern PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA; + +extern PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV; + +extern PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV; +extern PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV; + +extern PFNGLXBINDSWAPBARRIERNVPROC __glewXBindSwapBarrierNV; +extern PFNGLXJOINSWAPGROUPNVPROC __glewXJoinSwapGroupNV; +extern PFNGLXQUERYFRAMECOUNTNVPROC __glewXQueryFrameCountNV; +extern PFNGLXQUERYMAXSWAPGROUPSNVPROC __glewXQueryMaxSwapGroupsNV; +extern PFNGLXQUERYSWAPGROUPNVPROC __glewXQuerySwapGroupNV; +extern PFNGLXRESETFRAMECOUNTNVPROC __glewXResetFrameCountNV; + +extern PFNGLXALLOCATEMEMORYNVPROC __glewXAllocateMemoryNV; +extern PFNGLXFREEMEMORYNVPROC __glewXFreeMemoryNV; + +extern PFNGLXBINDVIDEOIMAGENVPROC __glewXBindVideoImageNV; +extern PFNGLXGETVIDEODEVICENVPROC __glewXGetVideoDeviceNV; +extern PFNGLXGETVIDEOINFONVPROC __glewXGetVideoInfoNV; +extern PFNGLXRELEASEVIDEODEVICENVPROC __glewXReleaseVideoDeviceNV; +extern PFNGLXRELEASEVIDEOIMAGENVPROC __glewXReleaseVideoImageNV; +extern PFNGLXSENDPBUFFERTOVIDEONVPROC __glewXSendPbufferToVideoNV; + +#ifdef GLX_OML_sync_control +extern PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML; +extern PFNGLXGETSYNCVALUESOMLPROC __glewXGetSyncValuesOML; +extern PFNGLXSWAPBUFFERSMSCOMLPROC __glewXSwapBuffersMscOML; +extern PFNGLXWAITFORMSCOMLPROC __glewXWaitForMscOML; +extern PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML; +#endif + +extern PFNGLXCHOOSEFBCONFIGSGIXPROC __glewXChooseFBConfigSGIX; +extern PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC __glewXCreateContextWithConfigSGIX; +extern PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC __glewXCreateGLXPixmapWithConfigSGIX; +extern PFNGLXGETFBCONFIGATTRIBSGIXPROC __glewXGetFBConfigAttribSGIX; +extern PFNGLXGETFBCONFIGFROMVISUALSGIXPROC __glewXGetFBConfigFromVisualSGIX; +extern PFNGLXGETVISUALFROMFBCONFIGSGIXPROC __glewXGetVisualFromFBConfigSGIX; + +extern PFNGLXBINDHYPERPIPESGIXPROC __glewXBindHyperpipeSGIX; +extern PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC __glewXDestroyHyperpipeConfigSGIX; +extern PFNGLXHYPERPIPEATTRIBSGIXPROC __glewXHyperpipeAttribSGIX; +extern PFNGLXHYPERPIPECONFIGSGIXPROC __glewXHyperpipeConfigSGIX; +extern PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC __glewXQueryHyperpipeAttribSGIX; +extern PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC __glewXQueryHyperpipeBestAttribSGIX; +extern PFNGLXQUERYHYPERPIPECONFIGSGIXPROC __glewXQueryHyperpipeConfigSGIX; +extern PFNGLXQUERYHYPERPIPENETWORKSGIXPROC __glewXQueryHyperpipeNetworkSGIX; + +extern PFNGLXCREATEGLXPBUFFERSGIXPROC __glewXCreateGLXPbufferSGIX; +extern PFNGLXDESTROYGLXPBUFFERSGIXPROC __glewXDestroyGLXPbufferSGIX; +extern PFNGLXGETSELECTEDEVENTSGIXPROC __glewXGetSelectedEventSGIX; +extern PFNGLXQUERYGLXPBUFFERSGIXPROC __glewXQueryGLXPbufferSGIX; +extern PFNGLXSELECTEVENTSGIXPROC __glewXSelectEventSGIX; + +extern PFNGLXBINDSWAPBARRIERSGIXPROC __glewXBindSwapBarrierSGIX; +extern PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC __glewXQueryMaxSwapBarriersSGIX; + +extern PFNGLXJOINSWAPGROUPSGIXPROC __glewXJoinSwapGroupSGIX; + +extern PFNGLXBINDCHANNELTOWINDOWSGIXPROC __glewXBindChannelToWindowSGIX; +extern PFNGLXCHANNELRECTSGIXPROC __glewXChannelRectSGIX; +extern PFNGLXCHANNELRECTSYNCSGIXPROC __glewXChannelRectSyncSGIX; +extern PFNGLXQUERYCHANNELDELTASSGIXPROC __glewXQueryChannelDeltasSGIX; +extern PFNGLXQUERYCHANNELRECTSGIXPROC __glewXQueryChannelRectSGIX; + +extern PFNGLXCUSHIONSGIPROC __glewXCushionSGI; + +extern PFNGLXGETCURRENTREADDRAWABLESGIPROC __glewXGetCurrentReadDrawableSGI; +extern PFNGLXMAKECURRENTREADSGIPROC __glewXMakeCurrentReadSGI; + +extern PFNGLXSWAPINTERVALSGIPROC __glewXSwapIntervalSGI; + +extern PFNGLXGETVIDEOSYNCSGIPROC __glewXGetVideoSyncSGI; +extern PFNGLXWAITVIDEOSYNCSGIPROC __glewXWaitVideoSyncSGI; + +extern PFNGLXGETTRANSPARENTINDEXSUNPROC __glewXGetTransparentIndexSUN; + +extern PFNGLXGETVIDEORESIZESUNPROC __glewXGetVideoResizeSUN; +extern PFNGLXVIDEORESIZESUNPROC __glewXVideoResizeSUN; + +#if defined(GLEW_MX) +struct GLXEWContextStruct +{ +#endif /* GLEW_MX */ + +GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_0; +GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_1; +GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_2; +GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_3; +GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_4; +GLXEW_EXPORT GLboolean __GLXEW_3DFX_multisample; +GLXEW_EXPORT GLboolean __GLXEW_AMD_gpu_association; +GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context; +GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context_profile; +GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context_robustness; +GLXEW_EXPORT GLboolean __GLXEW_ARB_fbconfig_float; +GLXEW_EXPORT GLboolean __GLXEW_ARB_framebuffer_sRGB; +GLXEW_EXPORT GLboolean __GLXEW_ARB_get_proc_address; +GLXEW_EXPORT GLboolean __GLXEW_ARB_multisample; +GLXEW_EXPORT GLboolean __GLXEW_ARB_vertex_buffer_object; +GLXEW_EXPORT GLboolean __GLXEW_ATI_pixel_format_float; +GLXEW_EXPORT GLboolean __GLXEW_ATI_render_texture; +GLXEW_EXPORT GLboolean __GLXEW_EXT_create_context_es2_profile; +GLXEW_EXPORT GLboolean __GLXEW_EXT_fbconfig_packed_float; +GLXEW_EXPORT GLboolean __GLXEW_EXT_framebuffer_sRGB; +GLXEW_EXPORT GLboolean __GLXEW_EXT_import_context; +GLXEW_EXPORT GLboolean __GLXEW_EXT_scene_marker; +GLXEW_EXPORT GLboolean __GLXEW_EXT_swap_control; +GLXEW_EXPORT GLboolean __GLXEW_EXT_texture_from_pixmap; +GLXEW_EXPORT GLboolean __GLXEW_EXT_visual_info; +GLXEW_EXPORT GLboolean __GLXEW_EXT_visual_rating; +GLXEW_EXPORT GLboolean __GLXEW_INTEL_swap_event; +GLXEW_EXPORT GLboolean __GLXEW_MESA_agp_offset; +GLXEW_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer; +GLXEW_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap; +GLXEW_EXPORT GLboolean __GLXEW_MESA_release_buffers; +GLXEW_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode; +GLXEW_EXPORT GLboolean __GLXEW_NV_copy_image; +GLXEW_EXPORT GLboolean __GLXEW_NV_float_buffer; +GLXEW_EXPORT GLboolean __GLXEW_NV_multisample_coverage; +GLXEW_EXPORT GLboolean __GLXEW_NV_present_video; +GLXEW_EXPORT GLboolean __GLXEW_NV_swap_group; +GLXEW_EXPORT GLboolean __GLXEW_NV_vertex_array_range; +GLXEW_EXPORT GLboolean __GLXEW_NV_video_output; +GLXEW_EXPORT GLboolean __GLXEW_OML_swap_method; +GLXEW_EXPORT GLboolean __GLXEW_OML_sync_control; +GLXEW_EXPORT GLboolean __GLXEW_SGIS_blended_overlay; +GLXEW_EXPORT GLboolean __GLXEW_SGIS_color_range; +GLXEW_EXPORT GLboolean __GLXEW_SGIS_multisample; +GLXEW_EXPORT GLboolean __GLXEW_SGIS_shared_multisample; +GLXEW_EXPORT GLboolean __GLXEW_SGIX_fbconfig; +GLXEW_EXPORT GLboolean __GLXEW_SGIX_hyperpipe; +GLXEW_EXPORT GLboolean __GLXEW_SGIX_pbuffer; +GLXEW_EXPORT GLboolean __GLXEW_SGIX_swap_barrier; +GLXEW_EXPORT GLboolean __GLXEW_SGIX_swap_group; +GLXEW_EXPORT GLboolean __GLXEW_SGIX_video_resize; +GLXEW_EXPORT GLboolean __GLXEW_SGIX_visual_select_group; +GLXEW_EXPORT GLboolean __GLXEW_SGI_cushion; +GLXEW_EXPORT GLboolean __GLXEW_SGI_make_current_read; +GLXEW_EXPORT GLboolean __GLXEW_SGI_swap_control; +GLXEW_EXPORT GLboolean __GLXEW_SGI_video_sync; +GLXEW_EXPORT GLboolean __GLXEW_SUN_get_transparent_index; +GLXEW_EXPORT GLboolean __GLXEW_SUN_video_resize; + +#ifdef GLEW_MX +}; /* GLXEWContextStruct */ +#endif /* GLEW_MX */ + +/* ------------------------------------------------------------------------ */ + +#ifdef GLEW_MX + +typedef struct GLXEWContextStruct GLXEWContext; +extern GLenum glxewContextInit (GLXEWContext* ctx); +extern GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name); + +#define glxewInit() glxewContextInit(glxewGetContext()) +#define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x) + +#define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x)) +#define GLXEW_GET_FUN(x) x + +#else /* GLEW_MX */ + +#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) +#define GLXEW_GET_FUN(x) x + +extern GLboolean glxewIsSupported (const char* name); + +#endif /* GLEW_MX */ + +extern GLboolean glxewGetExtension (const char* name); + +#ifdef __cplusplus +} +#endif + +#endif /* __glxew_h__ */ diff --git a/WCudaMSE/API_GL/INC_WIN/GL/wglew.h b/WCudaMSE/API_GL/INC_WIN/GL/wglew.h new file mode 100755 index 0000000..c3ac01a --- /dev/null +++ b/WCudaMSE/API_GL/INC_WIN/GL/wglew.h @@ -0,0 +1,1287 @@ +/* +** The OpenGL Extension Wrangler Library +** Copyright (C) 2002-2008, Milan Ikits +** Copyright (C) 2002-2008, Marcelo E. Magallon +** Copyright (C) 2002, Lev Povalahev +** 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. +** * The name of the author 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. +*/ + +/* +** Copyright (c) 2007 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are 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 Materials. +** +** THE MATERIALS ARE 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 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +#ifndef __wglew_h__ +#define __wglew_h__ +#define __WGLEW_H__ + +#ifdef __wglext_h_ +#error wglext.h included before wglew.h +#endif + +#define __wglext_h_ + +#if !defined(WINAPI) +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN 1 +# endif +#include +# undef WIN32_LEAN_AND_MEAN +#endif + +/* + * GLEW_STATIC needs to be set when using the static version. + * GLEW_BUILD is set when building the DLL version. + */ +#ifdef GLEW_STATIC +# define GLEWAPI extern +#else +# ifdef GLEW_BUILD +# define GLEWAPI extern __declspec(dllexport) +# else +# define GLEWAPI extern __declspec(dllimport) +# endif +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* -------------------------- WGL_3DFX_multisample ------------------------- */ + +#ifndef WGL_3DFX_multisample +#define WGL_3DFX_multisample 1 + +#define WGL_SAMPLE_BUFFERS_3DFX 0x2060 +#define WGL_SAMPLES_3DFX 0x2061 + +#define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample) + +#endif /* WGL_3DFX_multisample */ + +/* ------------------------- WGL_3DL_stereo_control ------------------------ */ + +#ifndef WGL_3DL_stereo_control +#define WGL_3DL_stereo_control 1 + +#define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055 +#define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056 +#define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057 +#define WGL_STEREO_POLARITY_INVERT_3DL 0x2058 + +typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState); + +#define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL) + +#define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control) + +#endif /* WGL_3DL_stereo_control */ + +/* ------------------------ WGL_AMD_gpu_association ------------------------ */ + +#ifndef WGL_AMD_gpu_association +#define WGL_AMD_gpu_association 1 + +#define WGL_GPU_VENDOR_AMD 0x1F00 +#define WGL_GPU_RENDERER_STRING_AMD 0x1F01 +#define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 +#define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 +#define WGL_GPU_RAM_AMD 0x21A3 +#define WGL_GPU_CLOCK_AMD 0x21A4 +#define WGL_GPU_NUM_PIPES_AMD 0x21A5 +#define WGL_GPU_NUM_SIMD_AMD 0x21A6 +#define WGL_GPU_NUM_RB_AMD 0x21A7 +#define WGL_GPU_NUM_SPI_AMD 0x21A8 + +typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id); +typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int* attribList); +typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc); +typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc); +typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void); +typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT* ids); +typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void* data); +typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc); + +#define wglBlitContextFramebufferAMD WGLEW_GET_FUN(__wglewBlitContextFramebufferAMD) +#define wglCreateAssociatedContextAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAMD) +#define wglCreateAssociatedContextAttribsAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAttribsAMD) +#define wglDeleteAssociatedContextAMD WGLEW_GET_FUN(__wglewDeleteAssociatedContextAMD) +#define wglGetContextGPUIDAMD WGLEW_GET_FUN(__wglewGetContextGPUIDAMD) +#define wglGetCurrentAssociatedContextAMD WGLEW_GET_FUN(__wglewGetCurrentAssociatedContextAMD) +#define wglGetGPUIDsAMD WGLEW_GET_FUN(__wglewGetGPUIDsAMD) +#define wglGetGPUInfoAMD WGLEW_GET_FUN(__wglewGetGPUInfoAMD) +#define wglMakeAssociatedContextCurrentAMD WGLEW_GET_FUN(__wglewMakeAssociatedContextCurrentAMD) + +#define WGLEW_AMD_gpu_association WGLEW_GET_VAR(__WGLEW_AMD_gpu_association) + +#endif /* WGL_AMD_gpu_association */ + +/* ------------------------- WGL_ARB_buffer_region ------------------------- */ + +#ifndef WGL_ARB_buffer_region +#define WGL_ARB_buffer_region 1 + +#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 +#define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 +#define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 +#define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 + +typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType); +typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion); +typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); +typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height); + +#define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB) +#define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB) +#define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB) +#define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB) + +#define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region) + +#endif /* WGL_ARB_buffer_region */ + +/* ------------------------- WGL_ARB_create_context ------------------------ */ + +#ifndef WGL_ARB_create_context +#define WGL_ARB_create_context 1 + +#define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001 +#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 +#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 +#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 +#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 +#define WGL_CONTEXT_FLAGS_ARB 0x2094 + +typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int* attribList); + +#define wglCreateContextAttribsARB WGLEW_GET_FUN(__wglewCreateContextAttribsARB) + +#define WGLEW_ARB_create_context WGLEW_GET_VAR(__WGLEW_ARB_create_context) + +#endif /* WGL_ARB_create_context */ + +/* --------------------- WGL_ARB_create_context_profile -------------------- */ + +#ifndef WGL_ARB_create_context_profile +#define WGL_ARB_create_context_profile 1 + +#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 +#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 +#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 + +#define WGLEW_ARB_create_context_profile WGLEW_GET_VAR(__WGLEW_ARB_create_context_profile) + +#endif /* WGL_ARB_create_context_profile */ + +/* ------------------- WGL_ARB_create_context_robustness ------------------- */ + +#ifndef WGL_ARB_create_context_robustness +#define WGL_ARB_create_context_robustness 1 + +#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 + +#define WGLEW_ARB_create_context_robustness WGLEW_GET_VAR(__WGLEW_ARB_create_context_robustness) + +#endif /* WGL_ARB_create_context_robustness */ + +/* ----------------------- WGL_ARB_extensions_string ----------------------- */ + +#ifndef WGL_ARB_extensions_string +#define WGL_ARB_extensions_string 1 + +typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); + +#define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB) + +#define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string) + +#endif /* WGL_ARB_extensions_string */ + +/* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */ + +#ifndef WGL_ARB_framebuffer_sRGB +#define WGL_ARB_framebuffer_sRGB 1 + +#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9 + +#define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB) + +#endif /* WGL_ARB_framebuffer_sRGB */ + +/* ----------------------- WGL_ARB_make_current_read ----------------------- */ + +#ifndef WGL_ARB_make_current_read +#define WGL_ARB_make_current_read 1 + +#define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 +#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 + +typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID); +typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); + +#define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB) +#define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB) + +#define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read) + +#endif /* WGL_ARB_make_current_read */ + +/* -------------------------- WGL_ARB_multisample -------------------------- */ + +#ifndef WGL_ARB_multisample +#define WGL_ARB_multisample 1 + +#define WGL_SAMPLE_BUFFERS_ARB 0x2041 +#define WGL_SAMPLES_ARB 0x2042 + +#define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample) + +#endif /* WGL_ARB_multisample */ + +/* ---------------------------- WGL_ARB_pbuffer ---------------------------- */ + +#ifndef WGL_ARB_pbuffer +#define WGL_ARB_pbuffer 1 + +#define WGL_DRAW_TO_PBUFFER_ARB 0x202D +#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E +#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F +#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 +#define WGL_PBUFFER_LARGEST_ARB 0x2033 +#define WGL_PBUFFER_WIDTH_ARB 0x2034 +#define WGL_PBUFFER_HEIGHT_ARB 0x2035 +#define WGL_PBUFFER_LOST_ARB 0x2036 + +DECLARE_HANDLE(HPBUFFERARB); + +typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList); +typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); +typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); +typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue); +typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC); + +#define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB) +#define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB) +#define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB) +#define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB) +#define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB) + +#define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer) + +#endif /* WGL_ARB_pbuffer */ + +/* -------------------------- WGL_ARB_pixel_format ------------------------- */ + +#ifndef WGL_ARB_pixel_format +#define WGL_ARB_pixel_format 1 + +#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 +#define WGL_DRAW_TO_WINDOW_ARB 0x2001 +#define WGL_DRAW_TO_BITMAP_ARB 0x2002 +#define WGL_ACCELERATION_ARB 0x2003 +#define WGL_NEED_PALETTE_ARB 0x2004 +#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 +#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 +#define WGL_SWAP_METHOD_ARB 0x2007 +#define WGL_NUMBER_OVERLAYS_ARB 0x2008 +#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 +#define WGL_TRANSPARENT_ARB 0x200A +#define WGL_SHARE_DEPTH_ARB 0x200C +#define WGL_SHARE_STENCIL_ARB 0x200D +#define WGL_SHARE_ACCUM_ARB 0x200E +#define WGL_SUPPORT_GDI_ARB 0x200F +#define WGL_SUPPORT_OPENGL_ARB 0x2010 +#define WGL_DOUBLE_BUFFER_ARB 0x2011 +#define WGL_STEREO_ARB 0x2012 +#define WGL_PIXEL_TYPE_ARB 0x2013 +#define WGL_COLOR_BITS_ARB 0x2014 +#define WGL_RED_BITS_ARB 0x2015 +#define WGL_RED_SHIFT_ARB 0x2016 +#define WGL_GREEN_BITS_ARB 0x2017 +#define WGL_GREEN_SHIFT_ARB 0x2018 +#define WGL_BLUE_BITS_ARB 0x2019 +#define WGL_BLUE_SHIFT_ARB 0x201A +#define WGL_ALPHA_BITS_ARB 0x201B +#define WGL_ALPHA_SHIFT_ARB 0x201C +#define WGL_ACCUM_BITS_ARB 0x201D +#define WGL_ACCUM_RED_BITS_ARB 0x201E +#define WGL_ACCUM_GREEN_BITS_ARB 0x201F +#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 +#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 +#define WGL_DEPTH_BITS_ARB 0x2022 +#define WGL_STENCIL_BITS_ARB 0x2023 +#define WGL_AUX_BUFFERS_ARB 0x2024 +#define WGL_NO_ACCELERATION_ARB 0x2025 +#define WGL_GENERIC_ACCELERATION_ARB 0x2026 +#define WGL_FULL_ACCELERATION_ARB 0x2027 +#define WGL_SWAP_EXCHANGE_ARB 0x2028 +#define WGL_SWAP_COPY_ARB 0x2029 +#define WGL_SWAP_UNDEFINED_ARB 0x202A +#define WGL_TYPE_RGBA_ARB 0x202B +#define WGL_TYPE_COLORINDEX_ARB 0x202C +#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 +#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 +#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 +#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A +#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B + +typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues); +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues); + +#define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB) +#define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB) +#define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB) + +#define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format) + +#endif /* WGL_ARB_pixel_format */ + +/* ----------------------- WGL_ARB_pixel_format_float ---------------------- */ + +#ifndef WGL_ARB_pixel_format_float +#define WGL_ARB_pixel_format_float 1 + +#define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0 + +#define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float) + +#endif /* WGL_ARB_pixel_format_float */ + +/* ------------------------- WGL_ARB_render_texture ------------------------ */ + +#ifndef WGL_ARB_render_texture +#define WGL_ARB_render_texture 1 + +#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 +#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 +#define WGL_TEXTURE_FORMAT_ARB 0x2072 +#define WGL_TEXTURE_TARGET_ARB 0x2073 +#define WGL_MIPMAP_TEXTURE_ARB 0x2074 +#define WGL_TEXTURE_RGB_ARB 0x2075 +#define WGL_TEXTURE_RGBA_ARB 0x2076 +#define WGL_NO_TEXTURE_ARB 0x2077 +#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 +#define WGL_TEXTURE_1D_ARB 0x2079 +#define WGL_TEXTURE_2D_ARB 0x207A +#define WGL_MIPMAP_LEVEL_ARB 0x207B +#define WGL_CUBE_MAP_FACE_ARB 0x207C +#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D +#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E +#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F +#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 +#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 +#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 +#define WGL_FRONT_LEFT_ARB 0x2083 +#define WGL_FRONT_RIGHT_ARB 0x2084 +#define WGL_BACK_LEFT_ARB 0x2085 +#define WGL_BACK_RIGHT_ARB 0x2086 +#define WGL_AUX0_ARB 0x2087 +#define WGL_AUX1_ARB 0x2088 +#define WGL_AUX2_ARB 0x2089 +#define WGL_AUX3_ARB 0x208A +#define WGL_AUX4_ARB 0x208B +#define WGL_AUX5_ARB 0x208C +#define WGL_AUX6_ARB 0x208D +#define WGL_AUX7_ARB 0x208E +#define WGL_AUX8_ARB 0x208F +#define WGL_AUX9_ARB 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); + +#define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB) +#define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB) +#define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB) + +#define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture) + +#endif /* WGL_ARB_render_texture */ + +/* ----------------------- WGL_ATI_pixel_format_float ---------------------- */ + +#ifndef WGL_ATI_pixel_format_float +#define WGL_ATI_pixel_format_float 1 + +#define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0 +#define GL_RGBA_FLOAT_MODE_ATI 0x8820 +#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 + +#define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float) + +#endif /* WGL_ATI_pixel_format_float */ + +/* -------------------- WGL_ATI_render_texture_rectangle ------------------- */ + +#ifndef WGL_ATI_render_texture_rectangle +#define WGL_ATI_render_texture_rectangle 1 + +#define WGL_TEXTURE_RECTANGLE_ATI 0x21A5 + +#define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle) + +#endif /* WGL_ATI_render_texture_rectangle */ + +/* ------------------- WGL_EXT_create_context_es2_profile ------------------ */ + +#ifndef WGL_EXT_create_context_es2_profile +#define WGL_EXT_create_context_es2_profile 1 + +#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 + +#define WGLEW_EXT_create_context_es2_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es2_profile) + +#endif /* WGL_EXT_create_context_es2_profile */ + +/* -------------------------- WGL_EXT_depth_float -------------------------- */ + +#ifndef WGL_EXT_depth_float +#define WGL_EXT_depth_float 1 + +#define WGL_DEPTH_FLOAT_EXT 0x2040 + +#define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float) + +#endif /* WGL_EXT_depth_float */ + +/* ---------------------- WGL_EXT_display_color_table ---------------------- */ + +#ifndef WGL_EXT_display_color_table +#define WGL_EXT_display_color_table 1 + +typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); +typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); +typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); +typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length); + +#define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT) +#define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT) +#define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT) +#define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT) + +#define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table) + +#endif /* WGL_EXT_display_color_table */ + +/* ----------------------- WGL_EXT_extensions_string ----------------------- */ + +#ifndef WGL_EXT_extensions_string +#define WGL_EXT_extensions_string 1 + +typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); + +#define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT) + +#define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string) + +#endif /* WGL_EXT_extensions_string */ + +/* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */ + +#ifndef WGL_EXT_framebuffer_sRGB +#define WGL_EXT_framebuffer_sRGB 1 + +#define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9 + +#define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB) + +#endif /* WGL_EXT_framebuffer_sRGB */ + +/* ----------------------- WGL_EXT_make_current_read ----------------------- */ + +#ifndef WGL_EXT_make_current_read +#define WGL_EXT_make_current_read 1 + +#define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 + +typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID); +typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); + +#define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT) +#define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT) + +#define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read) + +#endif /* WGL_EXT_make_current_read */ + +/* -------------------------- WGL_EXT_multisample -------------------------- */ + +#ifndef WGL_EXT_multisample +#define WGL_EXT_multisample 1 + +#define WGL_SAMPLE_BUFFERS_EXT 0x2041 +#define WGL_SAMPLES_EXT 0x2042 + +#define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample) + +#endif /* WGL_EXT_multisample */ + +/* ---------------------------- WGL_EXT_pbuffer ---------------------------- */ + +#ifndef WGL_EXT_pbuffer +#define WGL_EXT_pbuffer 1 + +#define WGL_DRAW_TO_PBUFFER_EXT 0x202D +#define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E +#define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F +#define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 +#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 +#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 +#define WGL_PBUFFER_LARGEST_EXT 0x2033 +#define WGL_PBUFFER_WIDTH_EXT 0x2034 +#define WGL_PBUFFER_HEIGHT_EXT 0x2035 + +DECLARE_HANDLE(HPBUFFEREXT); + +typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList); +typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); +typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); +typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue); +typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC); + +#define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT) +#define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT) +#define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT) +#define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT) +#define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT) + +#define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer) + +#endif /* WGL_EXT_pbuffer */ + +/* -------------------------- WGL_EXT_pixel_format ------------------------- */ + +#ifndef WGL_EXT_pixel_format +#define WGL_EXT_pixel_format 1 + +#define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 +#define WGL_DRAW_TO_WINDOW_EXT 0x2001 +#define WGL_DRAW_TO_BITMAP_EXT 0x2002 +#define WGL_ACCELERATION_EXT 0x2003 +#define WGL_NEED_PALETTE_EXT 0x2004 +#define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 +#define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 +#define WGL_SWAP_METHOD_EXT 0x2007 +#define WGL_NUMBER_OVERLAYS_EXT 0x2008 +#define WGL_NUMBER_UNDERLAYS_EXT 0x2009 +#define WGL_TRANSPARENT_EXT 0x200A +#define WGL_TRANSPARENT_VALUE_EXT 0x200B +#define WGL_SHARE_DEPTH_EXT 0x200C +#define WGL_SHARE_STENCIL_EXT 0x200D +#define WGL_SHARE_ACCUM_EXT 0x200E +#define WGL_SUPPORT_GDI_EXT 0x200F +#define WGL_SUPPORT_OPENGL_EXT 0x2010 +#define WGL_DOUBLE_BUFFER_EXT 0x2011 +#define WGL_STEREO_EXT 0x2012 +#define WGL_PIXEL_TYPE_EXT 0x2013 +#define WGL_COLOR_BITS_EXT 0x2014 +#define WGL_RED_BITS_EXT 0x2015 +#define WGL_RED_SHIFT_EXT 0x2016 +#define WGL_GREEN_BITS_EXT 0x2017 +#define WGL_GREEN_SHIFT_EXT 0x2018 +#define WGL_BLUE_BITS_EXT 0x2019 +#define WGL_BLUE_SHIFT_EXT 0x201A +#define WGL_ALPHA_BITS_EXT 0x201B +#define WGL_ALPHA_SHIFT_EXT 0x201C +#define WGL_ACCUM_BITS_EXT 0x201D +#define WGL_ACCUM_RED_BITS_EXT 0x201E +#define WGL_ACCUM_GREEN_BITS_EXT 0x201F +#define WGL_ACCUM_BLUE_BITS_EXT 0x2020 +#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 +#define WGL_DEPTH_BITS_EXT 0x2022 +#define WGL_STENCIL_BITS_EXT 0x2023 +#define WGL_AUX_BUFFERS_EXT 0x2024 +#define WGL_NO_ACCELERATION_EXT 0x2025 +#define WGL_GENERIC_ACCELERATION_EXT 0x2026 +#define WGL_FULL_ACCELERATION_EXT 0x2027 +#define WGL_SWAP_EXCHANGE_EXT 0x2028 +#define WGL_SWAP_COPY_EXT 0x2029 +#define WGL_SWAP_UNDEFINED_EXT 0x202A +#define WGL_TYPE_RGBA_EXT 0x202B +#define WGL_TYPE_COLORINDEX_EXT 0x202C + +typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues); +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues); + +#define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT) +#define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT) +#define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT) + +#define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format) + +#endif /* WGL_EXT_pixel_format */ + +/* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */ + +#ifndef WGL_EXT_pixel_format_packed_float +#define WGL_EXT_pixel_format_packed_float 1 + +#define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8 + +#define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float) + +#endif /* WGL_EXT_pixel_format_packed_float */ + +/* -------------------------- WGL_EXT_swap_control ------------------------- */ + +#ifndef WGL_EXT_swap_control +#define WGL_EXT_swap_control 1 + +typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); +typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); + +#define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT) +#define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT) + +#define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control) + +#endif /* WGL_EXT_swap_control */ + +/* --------------------- WGL_I3D_digital_video_control --------------------- */ + +#ifndef WGL_I3D_digital_video_control +#define WGL_I3D_digital_video_control 1 + +#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 +#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 +#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 +#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 + +typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue); +typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue); + +#define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D) +#define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D) + +#define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control) + +#endif /* WGL_I3D_digital_video_control */ + +/* ----------------------------- WGL_I3D_gamma ----------------------------- */ + +#ifndef WGL_I3D_gamma +#define WGL_I3D_gamma 1 + +#define WGL_GAMMA_TABLE_SIZE_I3D 0x204E +#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F + +typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue); +typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue); +typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue); +typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue); + +#define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D) +#define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D) +#define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D) +#define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D) + +#define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma) + +#endif /* WGL_I3D_gamma */ + +/* ---------------------------- WGL_I3D_genlock ---------------------------- */ + +#ifndef WGL_I3D_genlock +#define WGL_I3D_genlock 1 + +#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 +#define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045 +#define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046 +#define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047 +#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 +#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 +#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A +#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B +#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C + +typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC); +typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC); +typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate); +typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay); +typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge); +typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource); +typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate); +typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay); +typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge); +typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource); +typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag); +typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay); + +#define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D) +#define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D) +#define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D) +#define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D) +#define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D) +#define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D) +#define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D) +#define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D) +#define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D) +#define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D) +#define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D) +#define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D) + +#define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock) + +#endif /* WGL_I3D_genlock */ + +/* -------------------------- WGL_I3D_image_buffer ------------------------- */ + +#ifndef WGL_I3D_image_buffer +#define WGL_I3D_image_buffer 1 + +#define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 +#define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 + +typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count); +typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags); +typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress); +typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count); + +#define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D) +#define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D) +#define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D) +#define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D) + +#define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer) + +#endif /* WGL_I3D_image_buffer */ + +/* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */ + +#ifndef WGL_I3D_swap_frame_lock +#define WGL_I3D_swap_frame_lock 1 + +typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID); +typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID); +typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag); +typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag); + +#define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D) +#define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D) +#define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D) +#define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D) + +#define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock) + +#endif /* WGL_I3D_swap_frame_lock */ + +/* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */ + +#ifndef WGL_I3D_swap_frame_usage +#define WGL_I3D_swap_frame_usage 1 + +typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void); +typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void); +typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage); +typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); + +#define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D) +#define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D) +#define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D) +#define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D) + +#define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage) + +#endif /* WGL_I3D_swap_frame_usage */ + +/* --------------------------- WGL_NV_copy_image --------------------------- */ + +#ifndef WGL_NV_copy_image +#define WGL_NV_copy_image 1 + +typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); + +#define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV) + +#define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image) + +#endif /* WGL_NV_copy_image */ + +/* -------------------------- WGL_NV_float_buffer -------------------------- */ + +#ifndef WGL_NV_float_buffer +#define WGL_NV_float_buffer 1 + +#define WGL_FLOAT_COMPONENTS_NV 0x20B0 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 +#define WGL_TEXTURE_FLOAT_R_NV 0x20B5 +#define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 +#define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 +#define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 + +#define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer) + +#endif /* WGL_NV_float_buffer */ + +/* -------------------------- WGL_NV_gpu_affinity -------------------------- */ + +#ifndef WGL_NV_gpu_affinity +#define WGL_NV_gpu_affinity 1 + +#define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 +#define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 + +DECLARE_HANDLE(HGPUNV); +typedef struct _GPU_DEVICE { + DWORD cb; + CHAR DeviceName[32]; + CHAR DeviceString[128]; + DWORD Flags; + RECT rcVirtualScreen; +} GPU_DEVICE, *PGPU_DEVICE; + +typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList); +typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc); +typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice); +typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu); +typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu); + +#define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV) +#define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV) +#define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV) +#define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV) +#define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV) + +#define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity) + +#endif /* WGL_NV_gpu_affinity */ + +/* ---------------------- WGL_NV_multisample_coverage ---------------------- */ + +#ifndef WGL_NV_multisample_coverage +#define WGL_NV_multisample_coverage 1 + +#define WGL_COVERAGE_SAMPLES_NV 0x2042 +#define WGL_COLOR_SAMPLES_NV 0x20B9 + +#define WGLEW_NV_multisample_coverage WGLEW_GET_VAR(__WGLEW_NV_multisample_coverage) + +#endif /* WGL_NV_multisample_coverage */ + +/* -------------------------- WGL_NV_present_video ------------------------- */ + +#ifndef WGL_NV_present_video +#define WGL_NV_present_video 1 + +#define WGL_NUM_VIDEO_SLOTS_NV 0x20F0 + +DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); + +typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList); +typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList); +typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue); + +#define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV) +#define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV) +#define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV) + +#define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video) + +#endif /* WGL_NV_present_video */ + +/* ---------------------- WGL_NV_render_depth_texture ---------------------- */ + +#ifndef WGL_NV_render_depth_texture +#define WGL_NV_render_depth_texture 1 + +#define WGL_NO_TEXTURE_ARB 0x2077 +#define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 +#define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 +#define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 +#define WGL_DEPTH_COMPONENT_NV 0x20A7 + +#define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture) + +#endif /* WGL_NV_render_depth_texture */ + +/* -------------------- WGL_NV_render_texture_rectangle -------------------- */ + +#ifndef WGL_NV_render_texture_rectangle +#define WGL_NV_render_texture_rectangle 1 + +#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 +#define WGL_TEXTURE_RECTANGLE_NV 0x20A2 + +#define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle) + +#endif /* WGL_NV_render_texture_rectangle */ + +/* --------------------------- WGL_NV_swap_group --------------------------- */ + +#ifndef WGL_NV_swap_group +#define WGL_NV_swap_group 1 + +typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier); +typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group); +typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count); +typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers); +typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier); +typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC); + +#define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV) +#define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV) +#define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV) +#define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV) +#define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV) +#define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV) + +#define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group) + +#endif /* WGL_NV_swap_group */ + +/* ----------------------- WGL_NV_vertex_array_range ----------------------- */ + +#ifndef WGL_NV_vertex_array_range +#define WGL_NV_vertex_array_range 1 + +typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority); +typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer); + +#define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV) +#define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV) + +#define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range) + +#endif /* WGL_NV_vertex_array_range */ + +/* -------------------------- WGL_NV_video_output -------------------------- */ + +#ifndef WGL_NV_video_output +#define WGL_NV_video_output 1 + +#define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0 +#define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1 +#define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2 +#define WGL_VIDEO_OUT_COLOR_NV 0x20C3 +#define WGL_VIDEO_OUT_ALPHA_NV 0x20C4 +#define WGL_VIDEO_OUT_DEPTH_NV 0x20C5 +#define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 +#define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 +#define WGL_VIDEO_OUT_FRAME 0x20C8 +#define WGL_VIDEO_OUT_FIELD_1 0x20C9 +#define WGL_VIDEO_OUT_FIELD_2 0x20CA +#define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB +#define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC + +DECLARE_HANDLE(HPVIDEODEV); + +typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer); +typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice); +typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); +typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice); +typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer); +typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock); + +#define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV) +#define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV) +#define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV) +#define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV) +#define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV) +#define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV) + +#define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output) + +#endif /* WGL_NV_video_output */ + +/* -------------------------- WGL_OML_sync_control ------------------------- */ + +#ifndef WGL_OML_sync_control +#define WGL_OML_sync_control 1 + +typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator); +typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc); +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); + +#define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML) +#define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML) +#define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML) +#define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML) +#define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML) +#define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML) + +#define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control) + +#endif /* WGL_OML_sync_control */ + +/* ------------------------------------------------------------------------- */ + +#ifdef GLEW_MX +#define WGLEW_EXPORT +#else +#define WGLEW_EXPORT GLEWAPI +#endif /* GLEW_MX */ + +#ifdef GLEW_MX +struct WGLEWContextStruct +{ +#endif /* GLEW_MX */ + +WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL; + +WGLEW_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD; +WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD; +WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD; +WGLEW_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD; +WGLEW_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD; +WGLEW_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD; +WGLEW_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD; +WGLEW_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD; +WGLEW_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD; + +WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB; +WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB; +WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB; +WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB; + +WGLEW_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB; + +WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB; + +WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB; +WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB; + +WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB; +WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB; +WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB; +WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB; +WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB; + +WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB; +WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB; +WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB; + +WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB; +WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB; +WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB; + +WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT; +WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT; +WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT; +WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT; + +WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT; + +WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT; +WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT; + +WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT; +WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT; +WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT; +WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT; +WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT; + +WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT; +WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT; +WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT; + +WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT; +WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT; + +WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D; +WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D; + +WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D; +WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D; +WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D; +WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D; + +WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D; +WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D; +WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D; +WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D; +WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D; +WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D; +WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D; +WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D; +WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D; +WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D; +WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D; +WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D; + +WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D; +WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D; +WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D; +WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D; + +WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D; +WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D; +WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D; +WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D; + +WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D; +WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D; +WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D; +WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D; + +WGLEW_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV; + +WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV; +WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV; +WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV; +WGLEW_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV; +WGLEW_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV; + +WGLEW_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV; +WGLEW_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV; +WGLEW_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV; + +WGLEW_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV; +WGLEW_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV; +WGLEW_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV; +WGLEW_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV; +WGLEW_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV; +WGLEW_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV; + +WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV; +WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV; + +WGLEW_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV; +WGLEW_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV; +WGLEW_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV; +WGLEW_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV; +WGLEW_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV; +WGLEW_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV; + +WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML; +WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML; +WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML; +WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML; +WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML; +WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML; +WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample; +WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control; +WGLEW_EXPORT GLboolean __WGLEW_AMD_gpu_association; +WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region; +WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context; +WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_profile; +WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_robustness; +WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string; +WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB; +WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read; +WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample; +WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer; +WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format; +WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float; +WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture; +WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float; +WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle; +WGLEW_EXPORT GLboolean __WGLEW_EXT_create_context_es2_profile; +WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float; +WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table; +WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string; +WGLEW_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB; +WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read; +WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample; +WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer; +WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format; +WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float; +WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control; +WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control; +WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma; +WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock; +WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer; +WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock; +WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage; +WGLEW_EXPORT GLboolean __WGLEW_NV_copy_image; +WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer; +WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity; +WGLEW_EXPORT GLboolean __WGLEW_NV_multisample_coverage; +WGLEW_EXPORT GLboolean __WGLEW_NV_present_video; +WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture; +WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle; +WGLEW_EXPORT GLboolean __WGLEW_NV_swap_group; +WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range; +WGLEW_EXPORT GLboolean __WGLEW_NV_video_output; +WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control; + +#ifdef GLEW_MX +}; /* WGLEWContextStruct */ +#endif /* GLEW_MX */ + +/* ------------------------------------------------------------------------- */ + +#ifdef GLEW_MX + +typedef struct WGLEWContextStruct WGLEWContext; +GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx); +GLEWAPI GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* name); + +#define wglewInit() wglewContextInit(wglewGetContext()) +#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x) + +#define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x)) +#define WGLEW_GET_FUN(x) wglewGetContext()->x + +#else /* GLEW_MX */ + +#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) +#define WGLEW_GET_FUN(x) x + +GLEWAPI GLboolean wglewIsSupported (const char* name); + +#endif /* GLEW_MX */ + +GLEWAPI GLboolean wglewGetExtension (const char* name); + +#ifdef __cplusplus +} +#endif + +#undef GLEWAPI + +#endif /* __wglew_h__ */ diff --git a/WCudaMSE/API_GL/LIB/mingw/libglew64.dll.a b/WCudaMSE/API_GL/LIB/mingw/libglew64.dll.a new file mode 100755 index 0000000..b893c15 Binary files /dev/null and b/WCudaMSE/API_GL/LIB/mingw/libglew64.dll.a differ diff --git a/WCudaMSE/API_GL/LIB/visual/glew64.lib b/WCudaMSE/API_GL/LIB/visual/glew64.lib new file mode 100755 index 0000000..115f371 Binary files /dev/null and b/WCudaMSE/API_GL/LIB/visual/glew64.lib differ diff --git a/WCudaMSE/API_GL/windowsOnly.txt b/WCudaMSE/API_GL/windowsOnly.txt new file mode 100755 index 0000000..e69de29 diff --git a/WCudaMSE/BUILDER/.classpath b/WCudaMSE/BUILDER/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/BUILDER/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/BUILDER/.project b/WCudaMSE/BUILDER/.project new file mode 100755 index 0000000..8150aed --- /dev/null +++ b/WCudaMSE/BUILDER/.project @@ -0,0 +1,17 @@ + + + BUILDER + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/BUILDER/makefile/help/MakeFileNotice.txt b/WCudaMSE/BUILDER/makefile/help/MakeFileNotice.txt new file mode 100755 index 0000000..6754c6b --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/help/MakeFileNotice.txt @@ -0,0 +1,123 @@ +# Version : 0.0.3 +# Date : 22.02.2012 +# Author : Cedric.Bilat@he-arc.ch +# +# !!! DEPRECATED !!!! to be updated or delete +# +# Use: +# +# make -f XXX +# make -f XXX init +# make -f XXX clean +# make -f XXX echoing +# make -f XXX all +# make -f XXX version +# make -f XXX help +# make -f XXX deploy +# make -f XXX run +# make -f XXX runDeploy +# make -f XXX runGl (Only with vncserver with linux) +# make -f XXX runGlDeploy (Only with vncserver with linux) +# +# Hyp: +# +# Windows: +# Path : icl (intel),xilib(intel),cl (visual),lib (visual) +# va env : icl : call iclvars_intel64.bat +# cl : call Vcvars32.bat amd64 +# +# Windows/linux +# Path : g++,make,sh, icpc (intel), xild (intel) +# va env : nothing to configure! +# +# Structure projet: +# src # .cpp,.cu,.h,.lib +# obj # .c -> .o +# lib # .o -> .exe,.dll,.lib,.so,.a +# +# Interresant: src peut contenir des sous-folders, no problem! Aucune contrainte, mais il peut etre interessant de ventiler ainsi +# src +# cpp +# cu +# header +# lib #lib qui seront utiles au linkage +# resources +# +# Si src, contient un folder resources, alors à chaque build, celui-ci est copier dans le folder specifier par +# TARGET_DEPLOY_PATH dans dataProject.mk +# +# Dependances: +# Les propriétés du projet sont spécifiés dans +# +# dataProject.mk +# Obligatoire: +# TARGET_NAME:= +# TARGET_MODE:= (EXE,SHARED_LIB,STATIC_LIB) +# TARGET_PATH:= +# Facultatif: +# TARGET_DEPLOY_PATH:= +# CODE_DEFINE_VARIABLES:= (Injecter avec -DXXX)(ne mettre que XXX, -D added automaticly) +# SRC_AUX+= (si fichier src à l'extérieur du folder racine src) +# NVCCFLAGS:= (flag compilation for nvcc) +# NVCCLDFLAGS:= (flag linkage for nvcc) +# +# +# Les propriétés du compilateur sont spécifiés dans : +# +# XXX.mk (gcc.mk, mingw.mk, visual.mk, intelWin.mk, intelLinux.mk) +# +# Obligatoire: +# SRC_AUX:= (additionnal source for specific compiler,) (empty by default) +# Facultatif: +# CXXFLAGS:= (flag compilation) +# LDFLAGS_AUX:= (flag linkage) +# ARFLAGS:= (flag static lib) +# CODE_DEFINE_VARIABLES:= (Injecter avec -DXXX)(ne mettre que XXX, -D added automaticly) +# EXCLUDE_LIBRARY_FILES:= (separateur espace) +# ADD_LIBRARY_FILES:= (separateur espace)(sans .lib ou prefixe.lib pour gcc) +# IS_DEFAULT_SYS_LIBRARY_ENABLE:= (not use with gcc,mingw)(true si actif) +# IS_ADVANCED_SYS_LIBRARY_ENABLE:= (not use with gcc,mingw)(true si actif) +# +# Inclusion : XXX.mk include +# 1) dataProject.mk +# 2) fileSet.mk +# 3) flags_XXX.mk +# 4) makeFileCPP.mk +# +# Les propriétés Cuda sont spécifiés dans : +# +# cudaXXX.mk (cudaWin.mk, cudaLinux.mk) +# +# Obligatoire: +# SRC_AUX:= (additionnal source for specific compiler,) (empty by default) +# Facultatif: +# CXXFLAGS:= (flag compilation) +# CXXLDFLAGS:= (flag linkage) +# EXCLUDE_LIBRARY_FILES:= (separateur espace) +# ADD_LIBRARY_FILES:= (separateur espace)(sans .lib ou prefixe.lib pour gcc) +# DEFAULT_SYS_LIBRARY_FILES:= (librairie system only for visual) +# +# Inclusion : cudaXXX.mk include +# 1) dataProject.mk +# 2) makeFileCudaXXX.mk +# +# Tester sous: +# +# OS : Windows : Seven64 +# mingw32-make : 3.81 (from MINGW32) +# GCC 32 bits : 3.4.5 (from MINGW32) +# GCC 64 bits : 4.4.5 (from MINGW64) +# Visual : Visual 2008 (15.00.21022.08) +# Intel : 11.0.075 +# Java : 1.6.020 +# sh 32 bits : 3.1.17 (from MINGW64 or RTOOLs) +# +# OS : Linux : Ubuntu64 (9.08,10.04,11.04) +# make : 3.81 +# GCC : 4.4.3 +# Java : 1.6.020 +# +# See +# OptionCompilateur.txt +# +# END \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/help/OptionCuda.txt b/WCudaMSE/BUILDER/makefile/help/OptionCuda.txt new file mode 100755 index 0000000..4a5a9e2 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/help/OptionCuda.txt @@ -0,0 +1,25 @@ +# version : 0.0.2 +# Cedric.Bilat@he-arc.ch + +####################### +# Compilateur : Cuda # +####################### + +# Compiler name +# +# nvcc +# +# Compiler option +# +# -O3 Optimisatiin +# -use_fast_math Optimisation +# -m64 Target 64 bits (pas utile) +# +# Linker option +# +# -shared Target .dll + + +####################### +# END # +####################### \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/help/OptionGCC.txt b/WCudaMSE/BUILDER/makefile/help/OptionGCC.txt new file mode 100755 index 0000000..7a4ac12 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/help/OptionGCC.txt @@ -0,0 +1,121 @@ +# version : 0.0.3 +# Cedric.Bilat@he-arc.ch + +####################### +# Compilateur : gcc # +####################### + +# Compiler name +# +# g++ +# +# Compiler Option +# +# Path +# +# -I XXX Header search path is XXX +# +# Warning +# +# -ainsi Norme +# -pedantic Norme Ainsi+ +# -W Print extra warning messages +# -w Suppres warning messages +# -Wall Combinaison of common option (warning) +# -fno-implicit-templates to use template (instanciation avancée) +# +# Optimisation +# +# -O3 Optimisation +# +# -march=native Optimisation (detection automatique arch) +# -march=pentium4 Optimisation MMX, SSE, SSE2 +# -march=prescott Optimisation MMX, SSE, SSE2, SSE3 +# -march=nocona Optimisation MMX, SSE, SSE2, SSE3, EMT64 +# -march=core2 Optimisation MMX, SSE, SSE2, SSE3, SSSE3, EMT64, +# +# -march=corei7 Optimisation MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 +# -march=corei7-avx Optimisation MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AES, PCLMUL +# +# -march=nehalem Optimisation MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 POPCNT (i3,i5,i7) [2008] 45nm +# -march=westmere Optimisation MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES ,PCLMUL (i3,i5,i7) [2008] 32nm +# +# -march=sandybridge Optimisation MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL (i3,i5,i7) [2011] 32nm +# -march=ivybridge Optimisation MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL, FSGSBASE, RDRND, F16C (i3,i5,i7) [2011] 22nm +# +# -march=haswell Optimisation MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, F16C, FMA, BMI, BMI2, MOVBE [2013] 22nm +# -march=broadwell Optimisation MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, F16C, FMA, BMI, BMI2, MOVBE, RDSEED, ADCX, PREFETCHW [2014] 14nm +# +# -fomit-frame-pointer Optimisation +# -frerun-loop-opt Optimisation +# -fgcse Optimisation +# +# Truc +# +# -DXXX Passe au code la variable XXX (same as #define XXX in code) +# +# OpenMP +# +# -fopenmp Enable use of OpenMP +# Compilation: +# opm.h (already include in mingw64 distribution) +# Link: +# libgomp.lib (already include in mingw64 distribution,link with gomp) +# Runtime: +# libgcc_S_SJLJ-1.dll (already include in mingw64 distribution) +# libgomp-1.dll (already include in mingw64 distribution) +# pthreadGC2-W64.dll (doit être installé séparrement) +# Truc: +# Use dependencyWalker.exe to see which .dll is required) +# +# Linker Option +# +# Path +# +# -L XXX Library .a search path is XXX +# -l XXX Library file xxx.a maybe usefull to link (search path is in -L folder). Becarefull, xXX without extension +# +# Target +# +# -shared To target a dynamice library : .so (don't forget to set extension .so to TARGET_NAME) +# +# Avancer +# +# -Wl,XXX Wl passe option XXX au linker +# -D_JNI_IMPLEMENTATION Use .dll with java +# -Wl,--kill-at Use .dll with java +# -Wl,--unresolved-symbols=ignore-in-shared-libs +# -static-libgcc -static-libstdc+ Forcer le linkage statique des .dll "système" +# +# Usefull +# +# Use .dll of Visual (cl) or Intel (icl) in g++ project +# +# Goal : XXX.dll -> XXX.def +# pexports XXX.dll>XXX.def +# +# Goal : XXX.dll XXX.def -> XXX.a +# dlltool --machine i386:x86-64 --dllname XXX.dll --input-def XXX.def --output-lib XXX.a +# dlltool --machine i386 --dllname XXX.dll --input-def XXX.def --output-lib XXX.a +# dlltool --help +# +# Next with your g++ project +# Compil with XXX.h +# Link with XXX.a +# Execute with XXX.dll +# +# Download +# dlltool.exe : Brother of g++.exe in installation folder! +# pexports.exe 32 bits : By example, download mingw-utils-YYY of mingw32 (http://www.mingw.org/) +# +# Help +# +# https://gcc.gnu.org/onlinedocs/gcc/i386-and-x86-64-Options.html#i386-and-x86-64-Options +# http://en.wikipedia.org/wiki/List_of_Intel_CPU_microarchitectures +# http://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html#Option-Summary +# http://sourceforge.net/projects/mingw-w64/ +# + +####################### +# END # +####################### \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/help/OptionIntel.txt b/WCudaMSE/BUILDER/makefile/help/OptionIntel.txt new file mode 100755 index 0000000..2ff63ff --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/help/OptionIntel.txt @@ -0,0 +1,71 @@ +# version : 0.0.2 +# Cedric.Bilat@he-arc.ch + +####################### +# Compilateur : Intel# +####################### + +# Compiler name +# +# icl +# +# Compiler Option +# +# Path +# +# /I XXX Header search path is XXX +# +# Warning +# +# /w Suppres warning messages +# +# Optimisation +# +# /fast Windows(/O3 /Qipo /Qprec-div- /QxHost) Linux(-ipo -O3 -no-prec-div -static -xHost) +# /O3 Optimisation +# +# /QxSSSE3 Optimisation with processor SSSE3 SSE3 SSE2 SSE MMX (intel core 2 duo) +# /QxSSE4.1 Optimisation with processor SSE4 SSSE3 SSE3 SSE2 SSE MMX +# /QxSSE4.2 Optimisation with processor SSE4 SSSE3 SSE3 SSE2 SSE MMX +# /QAVX Optimisation with processor SSE4 SSSE3 SSE3 SSE2 SSE MMX AVX +# /QAVX2 Optimisation with processor SSE4 SSSE3 SSE3 SSE2 SSE MMX AVX, AVX2 (Intel® Core™ i7 processors) +# +# /Qparallel Optimisation +# /Qpar-threshold100 Optimisation +# +# +# Truc +# +# -DXXX Passe au code la variable XXX (same as #define XXX in code) +# +# OpenMP +# +# /Qopenmp Enable use of OpenMP +# Compilation: +# opm.h (already include in intel/visual distribution) +# Link: +# libiomp5md.lib (already include in intel/visual distribution,implicitely link, nothing to do!) +# Runtime: +# libiomp5md.dll (already include in intel/visual distribution) +# Truc: +# Use dependencyWalker.exe to see which .dll is required) +# +# Note +# +# Most of cl option are available here! +# Replace / by on linux plateforme +# +# Linker Option +# +# /LD To target a dynamice library : .dll (don't forget to set extension .dll to TARGET_NAME) +# +# Help +# +# https://software.intel.com/en-us/articles/performance-tools-for-software-developers-intel-compiler-options-for-sse-generation-and-processor-specific-optimizations +# https://software.intel.com/en-us/articles/step-by-step-optimizing-with-intel-c-compiler +# http://wiki.scinethpc.ca/wiki/images/7/77/Snug_techtalk_compiler.pdf +# + +####################### +# END # +####################### \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/help/OptionVisual.txt b/WCudaMSE/BUILDER/makefile/help/OptionVisual.txt new file mode 100755 index 0000000..1e92093 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/help/OptionVisual.txt @@ -0,0 +1,108 @@ +# version : 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# +# + +####################### +# Compilateur : Visual# +####################### + +# Compiler name +# +# cl +# +# CL Compileur option: +# +# Path +# +# /I XXX Header search path is XXX +# +# Warning +# +# /W3 Warning level +# /w Suppres warning messages +# /Wall Enables all warning +# +# Optimisation +# +# /Ox Optimisation +# /Od Sans optimisation +# /arch:SSE Enables the use of SSE instructions. +# /arch:SSE2 Enables the use of SSE2 instructions. +# /arch:AVX Advanced Vector Extensions instructions +# /arch:AVX2 Advanced Vector Extensions instructions +# +# Avancer +# +# /EHsc Enable C++ exception handling +# /nologo Suppresses startup banner +# /fp:precise Floating point precise +# /Gd Calling convention __cdecl +# /MT see after +# /MD see after +# +# Truc +# +# -DXXX Passe au code la variable XXX (same as #define XXX in code) +# +# OpenMP +# +# /openmp Enable use of OpenMP +# Compilation: +# opm.h (already include in visual distribution) +# Link: +# libiomp5md.lib (already include in visual distribution,but must be explicitly link!) +# Runtime: +# libiomp5md.dll (already include in visual distribution) +# Truc: +# Use dependencyWalker.exe to see which .dll is required) +# +# Link (to pass to cl) +# +# /Link Prefixe of all option below: Example : cl TTT /link /LIBPATH:XXX /LD +# +# CL Linker option (to write after /link) +# +# Path +# +# /LIBPATH:XXX Library .a search path is XXX +# +# Target +# +# /DLL Target .dll (don't forget to set extension .dll to TARGET_NAME) (build the .dll and the associate.lib if __declspec(dllexport) is use at less once +# /MACHINE:X64 Target 64 bits +# /DEBUG +# +# Avancer +# +# /INCREMENTAL:NO Incremental linking +# /OPT:REF Eliminate Unreferenced Data +# /DYNAMICBASE:NO Disable Image Randomization +# +# About CRT (C Rutime library): +# +# If your application use specificity of windows, you need to link some basic library as +# +# kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib +# shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib +# +# or maybe all library available with visual and refered by the va LIBS (initialise by the script vcvarsamd64.bat). In this last case, you must choice +# what CRT you want to use. There 5 choices. Every one is represented by one of this lib: +# +# libcmt.lib libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib msvcurt.lib msvcrt.lib +# +# The general choice are: +# +# (C1) use msvcrt.lib and compile with flag /MD +# (C2) use libcmt.lib and compile with flag /MT +# +# Put only on of this lib in the /LIBPATH +# +# Help +# +# http://msdn.microsoft.com/en-us/library/7t5yh4fd.aspx + +####################### +# END # +####################### \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/help/VariableProjetData.pdf b/WCudaMSE/BUILDER/makefile/help/VariableProjetData.pdf new file mode 100755 index 0000000..d2cbc7d Binary files /dev/null and b/WCudaMSE/BUILDER/makefile/help/VariableProjetData.pdf differ diff --git a/WCudaMSE/BUILDER/makefile/help/tutoShareLib.pdf b/WCudaMSE/BUILDER/makefile/help/tutoShareLib.pdf new file mode 100755 index 0000000..c000743 Binary files /dev/null and b/WCudaMSE/BUILDER/makefile/help/tutoShareLib.pdf differ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/GL.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/GL.mk new file mode 100755 index 0000000..2a425c4 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/GL.mk @@ -0,0 +1,127 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_GL_MK__ +__API_GL_MK__=true + + +########################################## +# GL # +########################################## + +API_GL=../API_GL + +#dependance +include ${API}/X11.mk + +#compil + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +SRC_AUX+= ${API_GL}/INC_WIN + +#pour #include +override INC_PATH:=${INC_PATH} ${API_GL}/INC_WIN + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_GL}/LIB/visual + ADD_LIBRARY_FILES+= kernel32.lib gdi32.lib user32.lib opengl32.lib glu32.lib + + #runtime + API_BIN+= ${API_GL}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_GL}/LIB/visual + ADD_LIBRARY_FILES+= kernel32.lib gdi32.lib user32.lib opengl32.lib glu32.lib + + #runtime + API_BIN+= ${API_GL}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_GL}/LIB/mingw + ADD_LIBRARY_FILES+= kernel32 user32 gdi32 opengl32 glu32 + + #runtime + API_BIN+= ${API_GL}/BIN/visual + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + +LDFLAGS+= -l$(subst :, -l,${GL_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + CXXFLAGS+= -I$(subst :, -I,${GL_INC}) + LDFLAGS+= -L$(subst :, -L,${GL_LIB})#car use freeglut system + RPATH_LINK+=${GL_LIB} +endif + +endif#linux + +########################################## +# END # +########################################## + +endif#__API_GL_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/X11.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/X11.mk new file mode 100755 index 0000000..a57b4d9 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/X11.mk @@ -0,0 +1,70 @@ +# Version : 0.0.4 +# Author : vincent.grivel@master.hes-so.ch +# + +ifndef __API_X11_MK__ +__API_X11_MK__=true + +########################################## +# X11 # +########################################## + +#linux only! + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + + #compilation + #CXXFLAGS+= -I/usr/include/X11 + CXXFLAGS+= -I$(subst :, -I,${X11_INC}) + + #linkage + #LDFLAGS+= -L/usr/lib/x86_64-linux-gnu + #LDFLAGS+= -lX11 + + LDFLAGS+= -L$(subst :, -L,${X11_LIB}) + LDFLAGS+= -l$(subst :, -l,${X11_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + RPATH_LINK+=${X11_LIB} +endif + +endif#end os + +########################################## +# END # +########################################## + +endif#__API_X11_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Canvas_JNI.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Canvas_JNI.mk new file mode 100755 index 0000000..4baf723 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Canvas_JNI.mk @@ -0,0 +1,127 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __API_Bilat_Canvas_JNI_MK__ +__API_Bilat_Canvas_JNI_MK__=true + +########################################## +# Bilat Canvas JNI # +########################################## + + +#dependance +include $(API)/jni_hidden.mk +include ${API}/GL.mk +include ${API}/bilat_Displayable.mk + +API_Bilat_Canvas_JNI=../API_Bilat_Canvas_JNI + +#compil +SRC_AUX+= ${API_Bilat_Canvas_JNI}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + ADD_LIBRARY_FILES+= jawt c + CXXFLAGS+= -fpermissive + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_Bilat_Canvas_JNI}/BIN/intelLinux + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_Bilat_Canvas_JNI_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_DLL_Tools.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_DLL_Tools.mk new file mode 100755 index 0000000..7adb65e --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_DLL_Tools.mk @@ -0,0 +1,118 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_BILAT_DLL_TOOLS_MK__ +__API_BILAT_DLL_TOOLS_MK__=true + +########################################## +# Bilat DLL TOOLS # +########################################## + +#dependance + +#compil +SRC_AUX+= ../API_Bilat_DLL_Tools/INC + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + + + #runtime + + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + + + #runtime + + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + + + #runtime + + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + + + #runtime + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + + + #runtime + + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_BILAT_DLL_TOOLS_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Displayable.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Displayable.mk new file mode 100755 index 0000000..fed3c49 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Displayable.mk @@ -0,0 +1,125 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_BILAT_DISPLAYABLE_MK__ +__API_BILAT_DISPLAYABLE_MK__=true + +########################################## +# Bilat DISPLAYABLE # +########################################## + + +#dependance +include ${API}/bilat_DLL_Tools.mk + +API_Bilat_Displayable=../API_Bilat_Displayable + + +#compil +SRC_AUX+= ${API_Bilat_Displayable}/INC +CODE_DEFINE_VARIABLES+=CBI_DISPLAYABLE_DLL + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Displayable}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Displayable}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Displayable}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Displayable}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + SRC_AUX+= ${API_Bilat_Displayable}/BIN/intelLinux + #SRC_AUX+= ${API_Bilat_Displayable}/BIN/gcc${ARM_FOLDER} + + #runtime + #API_BIN+= ${API_Bilat_Displayable}/BIN/gcc${ARM_FOLDER} + API_BIN+= ${API_Bilat_Displayable}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_BILAT_DISPLAYABLE_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_FreeGlut_Tools.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_FreeGlut_Tools.mk new file mode 100755 index 0000000..7c85cf4 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_FreeGlut_Tools.mk @@ -0,0 +1,129 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_BILAT_FREEGLUT_TOOLS_MK__ +__API_BILAT_FREEGLUT_TOOLS_MK__=true + +########################################## +# Bilat FREEGLUT TOOLS # +########################################## + + +#dependance +include ${API}/freeGlut.mk +include $(API)/openmp.mk +include ${API}/bilat_DLL_Tools.mk +include $(API)/bilat_Displayable.mk + +API_FreeGlutTools=../API_Bilat_FreeGlut_Tools + +#compil +SRC_AUX+= ${API_FreeGlutTools}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_FreeGlutTools}/LIB/visual + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_FreeGlutTools}/LIB/intelWin + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_FreeGlutTools}/LIB/mingw + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + + #link + SRC_AUX+= ${API_FreeGlutTools}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #SRC_AUX+= ${API_FreeGlutTools}/BIN/gcc${ARM_FOLDER} + SRC_AUX+= ${API_FreeGlutTools}/BIN/intelLinux + + #runtime + #API_BIN+= ${API_FreeGlutTools}/BIN/gcc${ARM_FOLDER} + API_BIN+= ${API_FreeGlutTools}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_BILAT_FREEGLUT_TOOLS_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_GL.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_GL.mk new file mode 100755 index 0000000..f658dff --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_GL.mk @@ -0,0 +1,125 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __API_Bilat_GL_MK__ +__API_Bilat_GL_MK__=true + +########################################## +# Bilat GL # +########################################## + + +#dependance +include ${API}/GL.mk +include ${API}/bilat_DLL_Tools.mk + +API_Bilat_GL=../API_Bilat_GL + +#compil +SRC_AUX+= ${API_Bilat_GL}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_GL}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_GL}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_GL}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_GL}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #SRC_AUX+= ${API_Bilat_GL}/BIN/gcc${ARM_FOLDER} + SRC_AUX+= ${API_Bilat_GL}/BIN/intelLinux + + #runtime + #API_BIN+= ${API_Bilat_GL}/BIN/gcc${ARM_FOLDER} + API_BIN+= ${API_Bilat_GL}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_Bilat_GL_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Graph2D.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Graph2D.mk new file mode 100755 index 0000000..0023057 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Graph2D.mk @@ -0,0 +1,125 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __API_Bilat_Graph_MK__ +__API_Bilat_Graph_MK__=true + +########################################## +# BilatGraph # +########################################## + +#dependance +include ${API}/bilat_Displayable.mk +include ${API}/bilat_GL.mk + +API_Bilat_Graph=../API_Bilat_Graph2D + +#compil +SRC_AUX+= ${API_Bilat_Graph}/INC +CODE_DEFINE_VARIABLES+= CBI_GRAPH_DLL + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Graph}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Graph}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Graph}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Graph}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #SRC_AUX+= ${API_Bilat_Graph}/BIN/gcc${ARM_FOLDER} + SRC_AUX+= ${API_Bilat_Graph}/BIN/intelLinux + + #runtime + #API_BIN+= ${API_Bilat_Graph}/BIN/gcc${ARM_FOLDER} + API_BIN+= ${API_Bilat_Graph}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_Bilat_Graph_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Graph2D_FreeGlut.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Graph2D_FreeGlut.mk new file mode 100755 index 0000000..629c048 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Graph2D_FreeGlut.mk @@ -0,0 +1,125 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __API_Bilat_Graph2D_FreeGlut_MK__ +__API_Bilat_Graph2D_FreeGlut_MK__=true + +########################################## +# BilatGraph # +########################################## + +#dependance +include ${API}/bilat_Graph2D.mk +include ${API}/bilat_FreeGlut_Tools.mk + +API_Bilat_Graph2D_FreeGlut=../API_Bilat_Graph2D_FreeGlut + +#compil +SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/INC +CODE_DEFINE_VARIABLES+= + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/BIN/gcc${ARM_FOLDER} + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/BIN/intelLinux + + #runtime + #API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/gcc${ARM_FOLDER} + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_Bilat_Graph2D_FreeGlut_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_FreeGlut.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_FreeGlut.mk new file mode 100755 index 0000000..6553605 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_FreeGlut.mk @@ -0,0 +1,134 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_BILAT_IMAGE_FREEGLUT_TOOLS_MK__ +__API_BILAT_IMAGE_FREEGLUT_TOOLS_MK__=true + +########################################## +# Bilat IMAGE FREEGLUT # +########################################## + + +#dependance +include $(API)/bilat_Image_GL.mk +include $(API)/bilat_FreeGlut_Tools.mk + +API_ImageFreeGlut=../API_Bilat_Image_FreeGlut + +#compil +SRC_AUX+= ${API_ImageFreeGlut}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/LIB/visual + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/LIB/intelWin + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/LIB/mingw + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #SRC_AUX+= ${API_ImageFreeGlut}/BIN/gcc${ARM_FOLDER} + SRC_AUX+= ${API_ImageFreeGlut}/BIN/intelLinux + + #runtime + #API_BIN+= ${API_ImageFreeGlut}/BIN/gcc${ARM_FOLDER} + API_BIN+= ${API_ImageFreeGlut}/BIN/intelLinux + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #RPATH_LINK+=${API_ImageFreeGlut}/BIN/gcc +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_BILAT_IMAGE_FREEGLUT_TOOLS_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_GL.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_GL.mk new file mode 100755 index 0000000..f43dabf --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_GL.mk @@ -0,0 +1,127 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __API_BILAT_IMAGE_GL_MK__ +__API_BILAT_IMAGE_GL_MK__=true + +########################################## +# BilatGLImage # +########################################## + + +#dependance +include ${API}/GL.mk +include $(API)/openmp.mk +include ${API}/bilat_Displayable.mk + +API_Bilat_Image=../API_Bilat_Image_GL + +#compil +SRC_AUX+= ${API_Bilat_Image}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Image}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Image}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Image}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #SRC_AUX+= ${API_Bilat_Image}/BIN/gcc${ARM_FOLDER} + SRC_AUX+= ${API_Bilat_Image}/BIN/intelLinux + + #runtime + #API_BIN+= ${API_Bilat_Image}/BIN/gcc${ARM_FOLDER} + API_BIN+= ${API_Bilat_Image}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_BILAT_IMAGE_GL_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_JNI.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_JNI.mk new file mode 100755 index 0000000..a455d39 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/bilat_Image_JNI.mk @@ -0,0 +1,125 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# +ifndef __API_Bilat_Image_JNI_MK__ +__API_Bilat_Image_JNI_MK__=true + +########################################## +# Bilat Image JNI # +########################################## + +#dependance +include ${API}/bilat_Canvas_JNI.mk +include $(API)/bilat_Image_GL.mk + + +API_Bilat_Image_JNI=../API_Bilat_Image_JNI + + +#compil +SRC_AUX+= ${API_Bilat_Image_JNI}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_Bilat_Image_JNI}/BIN/intelLinux + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_Bilat_Image_JNI}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_Bilat_Image_JNI_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/boost.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/boost.mk new file mode 100755 index 0000000..6b1839d --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/boost.mk @@ -0,0 +1,135 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_BOOST_MK__ +__API_BOOST_MK__=true + +########################################## +# Boost # +########################################## + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #compilation + CXXFLAGS+= -I${BOOST64_INC} + + #link (link static lib) + LDFLAGS_AUX+= /LIBPATH:${BOOST64_VISUAL_LIB_STATIC} + #LDFLAGS_AUX+= /LIBPATH:${BOOST64_VISUAL_LIB} + + #runtime + #API_BIN+= ${BOOST64_VISUAL_BIN} +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #compilation + CXXFLAGS+= -I${BOOST64_INC} + + #link (link static lib) + LDFLAGS_AUX+= /LIBPATH:${BOOST64_INTEL_LIB_STATIC} + #LDFLAGS_AUX+= /LIBPATH:${BOOST64_INTEL_LIB} + + #runtime + #API_BIN+= ${BOOST64_INTEL_BIN} +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + #compilation + #CXXFLAGS+= -I${BOOST64_INC} + CXXFLAGS+= -I${BOOST64_MINGW_INC} + #-DBOOST_THREAD_USE_LIB + + #link (Link dynamic lib) + #SRC_AUX+= ${BOOST64_MINGW_LIB} #ok + SRC_AUX+= ${BOOST64_MINGW_LIB_STATIC}#ok + #LDFLAGS+= -L${BOOST64_MINGW_LIB} + + #runtime + #API_BIN+= ${BOOST64_MINGW_BIN} +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + + #instalation : sudo apt-get install libboost-all-dev + #LDFLAGS+= -L/usr/lib + + #installtion manuel + + #compilation + CXXFLAGS+= -I$(subst :, -I,${BOOST_INC}) + + #link + #LDFLAGS+= -L/opt/boost/gcc/lib + LDFLAGS+= -L$(subst :, -L,${BOOST_LIB}) + LDFLAGS+= -l$(subst :, -l,${BOOST_LIBRARIES}) + + #runtime + API_BIN+= ${BOOST_LIB} + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #RPATH_LINK+=${BOOST_LIB} +endif + +endif #end OS + +########################################## +# END # +########################################## + +endif#__API_BOOST_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/cppTest.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/cppTest.mk new file mode 100755 index 0000000..cf3d739 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/cppTest.mk @@ -0,0 +1,113 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CPP_TEST_MK__ +__API_CPP_TEST_MK__=true + +########################################## +# cpptest # +########################################## + +API_CppTest=../API_CppTest + +TAKE_CPP_TEST_SRC=true + +ifdef TAKE_CPP_TEST_SRC + SRC_AUX+= ${API_CppTest}/SRC +else + +######################### +# COMMOM ALL OS # +######################### + +#compil +SRC_AUX+= ${API_CppTest}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_CppTest}/LIB_STATIC/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_CppTest}/LIB_STATIC/intelWin +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_CppTest}/LIB_STATIC/mingw +endif + +endif + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_CppTest}/LIB_STATIC/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_CppTest}/LIB_STATIC/intelLinux${ARM_FOLDER} + +endif + +endif + +endif +########################################## +# END # +########################################## + +endif#__API_CPP_TEST_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/freeGlut.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/freeGlut.mk new file mode 100755 index 0000000..94fdffc --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/freeGlut.mk @@ -0,0 +1,124 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_FREEGLUT_MK__ +__API_FREEGLUT_MK__=true + +########################################## +# FREEGLUT # +########################################## + +#dependance +include ${API}/GL.mk + +API_FreeGlut=../API_FreeGlut + +#compil + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +SRC_AUX+= ${API_FreeGlut}/INC_WIN + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_FreeGlut}/LIB/visual + + #runtime + API_BIN+= ${API_FreeGlut}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_FreeGlut}/LIB/visual + + #runtime + API_BIN+= ${API_FreeGlut}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_FreeGlut}/LIB/mingw + + #runtime + API_BIN+= ${API_FreeGlut}/BIN/visual + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + +#link +LDFLAGS+= -l$(subst :, -l,${FREEGLUT_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + CXXFLAGS+= -I$(subst :, -I,${FREEGLUT_INC}) + LDFLAGS+= -L$(subst :, -L,${FREEGLUT_LIB})#car use freeglut system + RPATH_LINK+=${FREEGLUT_LIB} +endif + +endif#linux + +########################################## +# END # +########################################## + +endif#__API_FREEGLUT_MK__ + + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/jni.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/jni.mk new file mode 100755 index 0000000..144f916 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/jni.mk @@ -0,0 +1,31 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_JNI_MK__ +__API_JNI_MK__=true + +########################################## +# jni # +########################################## + +include $(API)/jni_hidden.mk + +# Si +# +# CXXFLAGS += -fvisibility=hidden +# +# Alors methode native ne serait pas visible par java (gcc,mingw) +# +# + +CXXFLAGS_EXCLUDE+= -fvisibility=hidden# + +# Maintenant elles sont toutes visibles! + +########################################## +# END # +########################################## + +endif#__API_JNI_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/jni_hidden.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/jni_hidden.mk new file mode 100755 index 0000000..570d445 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/jni_hidden.mk @@ -0,0 +1,136 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_JNI_HIDDEN_MK__ +__API_JNI_MK__=true + +########################################## +# jni # +########################################## + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +#JAVA_HOME_64=C:/Soft/java64/jdk + +#old deprecated +#ifeq (${OS},Win) + #PATH des Headers + # Inputs : + # "Program" "File" + # Outputs : + # "Program Files" +# JAVA_HEADER_JNI := $(subst Program Files,Program Files,$(JAVA_HEADER_JNI)) #correction de "Program" "Files" en "Program Files" +#endif +#SRC_AUX+= ${JAVA_HEADER_JNI} + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #compilation + CXXFLAGS+= -I${JAVA_HOME_64}/include + CXXFLAGS+= -I${JAVA_HOME_64}/include/win32 + + #linkage + SRC_AUX+=${JAVA_HOME_64}/lib + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #compilation + CXXFLAGS+= -I${JAVA_HOME_64}/include + CXXFLAGS+= -I${JAVA_HOME_64}/include/win32 + + #linkage + #rien + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #compilation + CXXFLAGS+= -I${JAVA_HOME_64}/include + CXXFLAGS+= -I${JAVA_HOME_64}/include/win32 + + #linkage + #rien + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +#JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26 +#JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 + +############ +# common # +############ + + #compilation + CXXFLAGS+= -I$(subst :, -I,${JAVA_INC}) + + #linkage + LDFLAGS+= -L$(subst :, -L,${JAVA_LIB}) + LDFLAGS+= -l$(subst :, -l,${JAVA_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + RPATH_LINK+=${JAVA_LIB} +endif + +endif #end OS + +########################################## +# END # +########################################## + +endif#__API_JNI_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/mkl.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/mkl.mk new file mode 100755 index 0000000..8ddecbe --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/mkl.mk @@ -0,0 +1,138 @@ +# Version : 0.0.6 +# Author : Cedric.Bilat@he-arc.ch +# +# +# https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/ +# + +ifndef __API_MKL_MK__ +__API_MKL_MK__=true + +########################################## +# MKL # +########################################## + +#http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #compil + #TODO + + #link + #TODO + + #runtime + #TODO + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #compilation. TODO necessaire? + CXXFLAGS+= /Qmkl + + #link + #rien + + #runtime + #rien + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #Possible? je pense pas! + + #compil + #TODO + + #link + #TODO + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #compil + #CXXFLAGS+= -I/opt/intel/mkl/include + CXXFLAGS+= -I$(subst :, -I,${MKL_INC}) + + CXXFLAGS+= -DMKL_ILP64 + CXXFLAGS+= -m64 + + #link + #LDFLAGS+= -L/opt/intel/mkl/lib/intel64 + LDFLAGS+= -L$(subst :, -L,${MKL_LIB}) + LDFLAGS+= -l$(subst :, -l,${MKL_LIB_GCC_LIBRARIES}) + + #runtime + API_BIN+= $(MKL_LIB) + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #compilation + CXXFLAGS+= -mkl + + #link + LDFLAGS+= -l$(subst :, -l,${MKL_LIB_INTEL_LIBRARIES}) + + #runtime + API_BIN+= $(MKL_LIB) + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #pas possible +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_MKL_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/opencv.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/opencv.mk new file mode 100755 index 0000000..9af218e --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/opencv.mk @@ -0,0 +1,204 @@ +# Version : 0.0.5 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_OPEN_CV_MK__ +__API_OPEN_CV_MK__=true + +########################################## +# OpenCV # +########################################## + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + ############## + #Version full + ############## + + #compil + #SRC_AUX+= ${OPENCV64_INC} #ok + #CXXFLAGS+= -I${OPENCV64_INC} #ko car sous folder + + #link + #SRC_AUX+= ${OPENCV64_VISUAL_LIB}#ok + #LDFLAGS_AUX+= /LIBPATH:${OPENCV64_VISUAL_LIB} #embettant il faut lister lib now -lxxx + #LDFLAGS_AUX+= opencv_highgui244.lib + #LDFLAGS_AUX+= opencv_core244.lib + #LDFLAGS_AUX+= opencv_imgproc244.lib + + ############## + #Version light + ############## + + #compilation ok + CXXFLAGS+= -I${OPENCV64_INC} + CXXFLAGS+= -I${OPENCV64_INC_CV2} + CXXFLAGS+= -I${OPENCV64_INC_CV2}/highgui + CXXFLAGS+= -I${OPENCV64_INC_CV2}/core + CXXFLAGS+= -I${OPENCV64_INC_CV2}/flann + CXXFLAGS+= -I${OPENCV64_INC_CV2}/imgproc + CXXFLAGS+= -I${OPENCV64_INC_CV2}/video + + #link ok : + #LDFLAGS_AUX+= /LIBPATH:${OPENCV64_VISUAL_LIB_STATIC} #ko + LDFLAGS_AUX+= /LIBPATH:${OPENCV64_VISUAL_LIB} #ok + #v1 : ko + #SRC_AUX+= ${OPENCV64_VISUAL_LIB} + #v2 : ok + ADD_LIBRARY_FILES+= opencv_highgui249.lib + ADD_LIBRARY_FILES+= opencv_core249.lib + ADD_LIBRARY_FILES+= opencv_imgproc249.lib + + #runtime + API_BIN+= ${OPENCV64_VISUAL_BIN} + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #todo + + ############## + #Version full + ############## + + #compil + #SRC_AUX+= ${OPENCV64_INC}#ok + #CXXFLAGS+= -I${OPENCV64_INC} #ko car sous folder + + #link + #SRC_AUX+= ${OPENCV64_VISUAL_LIB}#ok + #LDFLAGS+= /LIBPATH:${OPENCV64_VISUAL_LIB} #embettant il faut lister lib now -lxxx + + ############## + #Version light + ############## + + #compilation ok + CXXFLAGS+= -I${OPENCV64_INC} + CXXFLAGS+= -I${OPENCV64_INC_CV2} + CXXFLAGS+= -I${OPENCV64_INC_CV2}/highgui + CXXFLAGS+= -I${OPENCV64_INC_CV2}/core + CXXFLAGS+= -I${OPENCV64_INC_CV2}/flann + CXXFLAGS+= -I${OPENCV64_INC_CV2}/imgproc + CXXFLAGS+= -I${OPENCV64_INC_CV2}/video + + #link ok: + LDFLAGS_AUX+= /LIBPATH:${OPENCV64_VISUAL_LIB} #il faut lister lib now + #v1 : ko + #SRC_AUX+= ${OPENCV64_VISUAL_LIB} + #v2: ok + ADD_LIBRARY_FILES+= opencv_highgui249.lib + ADD_LIBRARY_FILES+= opencv_core249.lib + ADD_LIBRARY_FILES+= opencv_imgproc249.lib + + #runtime + API_BIN+= ${OPENCV64_VISUAL_BIN} + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #compil : ok + #SRC_AUX+= ${OPENCV64_INC}#ok + CXXFLAGS+= -I${OPENCV64_INC} + CXXFLAGS+= -I${OPENCV64_INC_CV2} + CXXFLAGS+= -I${OPENCV64_INC_CV2}/highgui + CXXFLAGS+= -I${OPENCV64_INC_CV2}/core + CXXFLAGS+= -I${OPENCV64_INC_CV2}/flann + CXXFLAGS+= -I${OPENCV64_INC_CV2}/imgproc + CXXFLAGS+= -I${OPENCV64_INC_CV2}/video + + #link : ok + #SRC_AUX+= ${OPENCV64_MINGW_BIN}#ko + #LDFLAGS+= -L${OPENCV64_MINGW_LIB_STATIC} #ko existe pas + LDFLAGS+= -L${OPENCV64_MINGW_LIB} #il faut lister lib now -lxxx + LDFLAGS+= -lopencv_highgui249 + LDFLAGS+= -lopencv_core249 + LDFLAGS+= -lopencv_imgproc249 + + #runtime + API_BIN+= ${OPENCV64_MINGW_BIN} + +endif + +endif + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + + #compilation + #OPENCV2_INC:=/usr/include/opencv2# + CXXFLAGS+= -I$(subst :, -I,${OPENCV_INC}) + + #link + #CXXLDFLAGS+= -lopencv_highgui -lopencv_core -lopencv_imgproc #ko + #ADD_LIBRARY_FILES+= opencv_highgui #ok + #ADD_LIBRARY_FILES+= opencv_core + #ADD_LIBRARY_FILES+= opencv_imgproc + + #LDFLAGS+= -L$(subst :, -L,${OPENCV_LIB})#pas besoin car system + LDFLAGS+= -l$(subst :, -l,${OPENCV_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + LDFLAGS+= -L$(subst :, -L,${OPENCV_LIB})#car use opencv system + #RPATH_LINK+=${OPENCV_LIB} +endif + +endif#end os + +########################################## +# END # +########################################## + +endif#__API_OPEN_CV_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/openmp.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/openmp.mk new file mode 100755 index 0000000..c740e90 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/openmp.mk @@ -0,0 +1,129 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_OPEN_MP_MK__ +__API_OPEN_MP_MK__=true + +########################################## +# OpenMP # +########################################## + +# OMP +# Visual 2008 cuda 4.1 +# bug : /openmp ne peut pas etre use with cu files +# Solution : compile cu files without /openmp +# compile .ccp file with /openmp +# Tip: compile all file without /openmp +# modify file usinf omp +# compile with flag /openmp +# Conclusion : with this technique omp ok ! +# Visual 2010 cuda 5.0 +# bug : fix +# Conclusion : On peut compiler/linker avec /openmp +# Linux : ok + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #compil + CXXFLAGS+= /openmp + + #link + #rien automatique by compilateur + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #compil + CXXFLAGS+= /Qopenmp + + #link + #rien automatique by compilateur + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #compil + CXXFLAGS+= -fopenmp + + #link + #ADD_LIBRARY_FILES+= gomp + LDFLAGS+= -lgomp +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #compilation + CXXFLAGS+= -fopenmp + + #link + #ADD_LIBRARY_FILES+= gomp + LDFLAGS+= -lgomp + #LDFLAGS+= -l$(subst :, -l,${OPENMP_LIBRARIES}) + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #compilation + CXXFLAGS+= -openmp + + #link + #ADD_LIBRARY_FILES+= iomp5 + LDFLAGS+= -liomp5 + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + LDFLAGS+= -L$(subst :, -L,${OPENCV_LIB})#car use opencv system + #RPATH_LINK+=${OPENCV_LIB} +endif + +endif#linux + +########################################## +# END # +########################################## + +endif#__API_OPEN_MP_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/winAdvancedSystemLib.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/winAdvancedSystemLib.mk new file mode 100755 index 0000000..be49dd4 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/winAdvancedSystemLib.mk @@ -0,0 +1,117 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_WIN_ADVANCED_LIBRARY_MK__ +__API_WIN_ADVANCED_LIBRARY_MK__=true + +########################################## +# win advanced library # +########################################## + +#deprecated + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + ifneq (, $(findstring /MD,$(CXXFLAGS)))#findstring return vide si /MD pas trouver! + CXXFLAGS+= /MD #dynamicaly link CRT with the target + endif + + #CXXFLAGS+= /MT #statically link the MS CRT to the DLL par d�faut ! + # en commentaire, pour pouvoir mettre /MD pour linker own lib + + #link + DEFAULT_SYS_LIBRARY_FILES+= kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib + DEFAULT_SYS_LIBRARY_FILES+= shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib + + ADVANCED_SYS_LIBRARY:=$(LIB) #where LIB is a va set by the script vcvarsamd64.bat. Requiert speccifique .dll as msvcr90.dll for running) + ADVANCED_SYS_LIBRARY:=$(subst \,/,$(ADVANCED_SYS_LIBRARY)) + ADVANCED_SYS_LIBRARY:=$(subst ;, ,$(ADVANCED_SYS_LIBRARY)) + #CRT =C runtime library. + #Only one of: libcmt.lib libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib msvcurt.lib msvcrt.lib + #must be used + #Choice smart 1: use msvcrt.lib (Contrainte use /MD) + #Choice smart 2: use libcmt.lib (Contrainte use /MT) + EXCLUDE_LIBRARY_FILES+= libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + ADVANCED_SYS_LIBRARY:=$(LIB) #where LIB is a va set by the script vcvarsamd64.bat. Requiert speccifique .dll as msvcr90.dll for running) + ADVANCED_SYS_LIBRARY:=$(subst \,/,$(ADVANCED_SYS_LIBRARY)) + ADVANCED_SYS_LIBRARY:=$(subst ;, ,$(ADVANCED_SYS_LIBRARY)) + #CRT =C runtime library. + #Only one of: libcmt.lib libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib msvcurt.lib msvcrt.lib + #must be used + #Choice smart 1: use msvcrt.lib (Contrainte use /MD) + #Choice smart 2: use libcmt.lib (Contrainte use /MT) + EXCLUDE_LIBRARY_FILES+= libcmt.lib libcmtd.lib msvcrtd.lib msvcmrt.lib libcpmtd.lib libcpmt.lib + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + #rien + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + #rien + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #rien + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_WIN_ADVANCED_LIBRARY_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cpp/winSystemLib.mk b/WCudaMSE/BUILDER/makefile/private/api/cpp/winSystemLib.mk new file mode 100755 index 0000000..9c53e17 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cpp/winSystemLib.mk @@ -0,0 +1,97 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_WIN_SYSTEM_LIBRARY_MK__ +__API_WIN_SYSTEM_LIBRARY_MK__=true + +########################################## +# win systenm library # +########################################## + +#deprecated + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + # flag permettant de linker statically les librairies systemes de visual (la CRT entre autre) + # en commentaire, pour pouvoir mettre /MD pour linker own lib without winAdvancedSystemLib.mk + # CXXFLAGS+= /MT + + #link + DEFAULT_SYS_LIBRARY_FILES+= kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib + DEFAULT_SYS_LIBRARY_FILES+= shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #rien + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + #rien + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + #rien + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + #rien + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_WIN_SYSTEM_LIBRARY_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_FreeGlut_Cuda.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_FreeGlut_Cuda.mk new file mode 100755 index 0000000..e7793e6 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_FreeGlut_Cuda.mk @@ -0,0 +1,123 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_BILAT_FREEGLUT_MK__ +__API_CUDA_BILAT_FREEGLUT_MK__=true + +########################################## +# Bilat CUDA IMAGE FREEGLUT # +########################################## + + +#dependance +include $(API_CUDA)/cuda_bilat_Image_FreeGlut.mk +include $(API_CUDA)/bilat_Image_GL_Cuda.mk + + +API_Bilat_Image_FreeGlut_Cuda=../API_Bilat_Image_FreeGlut_Cuda + +#compil +SRC_AUX+= ${API_Bilat_Image_FreeGlut_Cuda}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Image_FreeGlut_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image_FreeGlut_Cuda}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_FreeGlut_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image_FreeGlut_Cuda}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + #TODO + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Image_FreeGlut_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image_FreeGlut_Cuda}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_FreeGlut_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image_FreeGlut_Cuda}/BIN/gcc${ARM_FOLDER} + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_BILAT_FREEGLUT_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_GL_Cuda.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_GL_Cuda.mk new file mode 100755 index 0000000..fc57c71 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_GL_Cuda.mk @@ -0,0 +1,122 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_BILAT_IMAGE_GL_MK__ +__API_CUDA_BILAT_IMAGE_GL_MK__=true + +########################################## +# Bilat CUDA IMAGE GL # +########################################## + + +#dependance +include ${API_CUDA}/cuda_bilat_Image_GL.mk + +API_Bilat_Image_Cuda=../API_Bilat_Image_GL_Cuda + +#compil +SRC_AUX+= ${API_Bilat_Image_Cuda}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Image_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image_Cuda}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image_Cuda}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + #TODO + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + + #link + SRC_AUX+= ${API_Bilat_Image_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image_Cuda}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image_Cuda}/BIN/gcc${ARM_FOLDER} + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_BILAT_IMAGE_GL_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_JNI_Cuda.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_JNI_Cuda.mk new file mode 100755 index 0000000..55450ff --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Image_JNI_Cuda.mk @@ -0,0 +1,123 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_BILAT_IMAGE_JNI_CUDA_MK__ +__API_CUDA_BILAT_IMAGE_JNI_CUDA_MK__=true + +########################################## +# BilatImageJNI_Cuda # +########################################## + + +#dependance +include $(API_CUDA)/bilat_Image_GL_Cuda.mk +include ${API_CUDA}/cuda_bilat_Image_JNI.mk + + +API_Bilat_Image_JNI_Cuda=../API_Bilat_Image_JNI_Cuda + +#compil +SRC_AUX+= ${API_Bilat_Image_JNI_Cuda}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image_JNI_Cuda}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image_JNI_Cuda}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + #TODO + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image_JNI_Cuda}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image_JNI_Cuda}/BIN/gcc${ARM_FOLDER} + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_BILAT_IMAGE_JNI_CUDA_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_MultiCourbes_Cuda.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_MultiCourbes_Cuda.mk new file mode 100755 index 0000000..a9a8137 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_MultiCourbes_Cuda.mk @@ -0,0 +1,126 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_MULTI_COURBES_MK__ +__API_CUDA_MULTI_COURBES_MK__=true + +########################################## +# Bilat CUDA MULTICOURBES # +########################################## + + +#dependance +include $(API_CUDA)/cuda_bilat_GL.mk +include $(API_CUDA)/cuda_OpenMP.mk + +include $(API)/bilat_Displayable.mk + + +API_Bilat_MultiCourbes_Cuda=../API_Bilat_MultiCourbes_GL_Cuda + +#compil +SRC_AUX+= ${API_Bilat_MultiCourbes_Cuda}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_MultiCourbes_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_MultiCourbes_Cuda}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_MultiCourbes_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_MultiCourbes_Cuda}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + #TODO + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + + #link + SRC_AUX+= ${API_Bilat_MultiCourbes_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_MultiCourbes_Cuda}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_MultiCourbes_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_MultiCourbes_Cuda}/BIN/gcc${ARM_FOLDER} + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_MULTI_COURBES_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_MultiCourbes_FreeGlut_Cuda.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_MultiCourbes_FreeGlut_Cuda.mk new file mode 100755 index 0000000..7083a6e --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_MultiCourbes_FreeGlut_Cuda.mk @@ -0,0 +1,124 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_MULTI_COURBES_FREEGLUT_MK__ +__API_CUDA_MULTI_COURBES_FREEGLUT_MK__=true + +########################################## +# Bilat CUDA MULTICOURBES # +########################################## + + +#dependance +include $(API_CUDA)/cuda_bilat_FreeGlut_Tools.mk +include $(API_CUDA)/bilat_MultiCourbes_Cuda.mk + + +API_Bilat_MultiCourbes_FreeGlut_Cuda=../API_Bilat_MultiCourbes_FreeGlut_Cuda + +#compil +SRC_AUX+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + #TODO + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + + #link + SRC_AUX+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_MultiCourbes_FreeGlut_Cuda}/BIN/gcc${ARM_FOLDER} + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_MULTI_COURBES_FREEGLUT_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Tools_Cuda.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Tools_Cuda.mk new file mode 100755 index 0000000..81fa914 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/bilat_Tools_Cuda.mk @@ -0,0 +1,120 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __API_CUDA_BILAT_TOOLS_MK__ +__API_CUDA_BILAT_TOOLS_MK__=true + + +########################################## +# Bilat CUDA TOOLS # +########################################## + + +API_Bilat_Tools_Cuda=../API_Bilat_Tools_Cuda + +#compil +SRC_AUX+= ${API_Bilat_Tools_Cuda}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= + + #runtime + API_BIN+= + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= + + #runtime + API_BIN+= + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + #TODO + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= + + #runtime + API_BIN+= + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= + + #runtime + API_BIN+= + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_BILAT_TOOLS_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda.mk new file mode 100755 index 0000000..7241ef8 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda.mk @@ -0,0 +1,97 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_MK__ +__API_CUDA_MK__=true + +########################################## +# Cuda # +########################################## + + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #compil + #SRC_AUX+= ${CUDA_INC_ROOT} #ko + NVCCFLAGS+= -I${CUDA_INC_ROOT} + + #link + NVCCLDFLAGS+= -L${CUDA_LIB} + + #NVCCLDFLAGS+= -lcublas_device + NVCCLDFLAGS+= -lcublas + NVCCLDFLAGS+= -lcuda + NVCCLDFLAGS+= -lcudadevrt + NVCCLDFLAGS+= -lcudart + NVCCLDFLAGS+= -lcudart_static + NVCCLDFLAGS+= -lcufft + NVCCLDFLAGS+= -lcufftw + NVCCLDFLAGS+= -lcurand + NVCCLDFLAGS+= -lcusparse + NVCCLDFLAGS+= -lnppc + NVCCLDFLAGS+= -lnppi + NVCCLDFLAGS+= -lnpps + NVCCLDFLAGS+= -lnvblas + NVCCLDFLAGS+= -lnvcuvid + NVCCLDFLAGS+= -lOpenCL + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + + #compil + NVCCFLAGS+= -I$(subst :, -I,${CUDA_INC}) + + #link + NVCCLDFLAGS+= -L$(subst :, -L,${CUDA_LIB}) + NVCCLDFLAGS+= -l$(subst :, -l,${CUDA_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #LDFLAGS+= -L$(subst :, -L,${CUDA_LIB}) + #RPATH_LINK+=${CUDA_LIB} +endif + +endif#end os + +########################################## +# END # +########################################## + +endif#__API_CUDA_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Boost.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Boost.mk new file mode 100755 index 0000000..8eac8aa --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Boost.mk @@ -0,0 +1,93 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_BOOST_MK__ +__API_CUDA_BOOST_MK__=true + +########################################## +# Boost Cuda # +########################################## + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #include + NVCCFLAGS+= -I${BOOST64_INC} + + #link + NVCCLDFLAGS+= -L${BOOST64_VISUAL_LIB_STATIC} + #NVCCLDFLAGS+= -L${BOOST64_VISUAL_LIB} + + + #runtime + API_BIN+= ${BOOST64_VISUAL_BIN} + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + + #instalation : sudo apt-get install libboost-all-dev + #NVCCFLAGS+= -L/usr/lib + + #installtion manuel + + #compilation + #NVCCFLAGS+= -I/opt/boost/include + NVCCFLAGS+= -I$(subst :, -I,${BOOST_INC}) + + #link + #NVCCLDFLAGS+= -L/opt/boost/gcc/lib + NVCCLDFLAGS+= -L$(subst :, -L,${BOOST_LIB}) + NVCCLDFLAGS+= -l$(subst :, -l,${BOOST_LIBRARIES}) + + #runtime + API_BIN+= ${BOOST_LIB} + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #RPATH_LINK+=${BOOST_LIB} +endif + +endif#end os + +########################################## +# END # +########################################## + +endif#__API_CUDA_BOOST_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_GL.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_GL.mk new file mode 100755 index 0000000..b09fea7 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_GL.mk @@ -0,0 +1,125 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_GL_MK__ +__API_CUDA_GL_MK__=true + +########################################## +# GL # +########################################## + +API_GL=../API_GL + +#dependance +include ${API_CUDA}/cuda_X11.mk + +#compil + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +SRC_AUX+= ${API_GL}/INC_WIN + +#pour #include +override INC_PATH:=${INC_PATH} ${API_GL}/INC_WIN + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_GL}/LIB/visual + ADD_LIBRARY_FILES+= kernel32.lib gdi32.lib user32.lib opengl32.lib glu32.lib + + #runtime + API_BIN+= ${API_GL}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_GL}/LIB/visual + ADD_LIBRARY_FILES+= kernel32.lib gdi32.lib user32.lib opengl32.lib glu32.lib + + #runtime + API_BIN+= ${API_GL}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_GL}/LIB/mingw + ADD_LIBRARY_FILES+= kernel32 user32 gdi32 opengl32 glu32 + + #runtime + API_BIN+= ${API_GL}/BIN/visual + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + +NVCCLDFLAGS+= -l$(subst :, -l,${GL_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + NVCCFLAGS+= -I$(subst :, -I,${GL_INC}) + NVCCLDFLAGS+= -L$(subst :, -L,${GL_LIB})#car use freeglut system + RPATH_LINK+=${GL_LIB} +endif + +endif#linux + +########################################## +# END # +########################################## + +endif#__API_CUDA_GL_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Jni.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Jni.mk new file mode 100755 index 0000000..8aa1a1e --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Jni.mk @@ -0,0 +1,32 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_JNI_MK__ +__API_CUDA_JNI_MK__=true + +########################################## +# OpenCV Cuda # +########################################## + +include $(API_CUDA)/cuda_Jni_hidden.mk + +# Si +# +# CXXFLAGS += -fvisibility=hidden +# +# Alors methode native ne serait pas visible par java (gcc) +# +# + +NVCCFLAGS_EXCLUDE+= -fvisibility=hidden +#CXXFLAGS_EXCLUDE+= -fvisibility=hidden# + +# Maintenant elles sont toutes visibles! + +########################################## +# END # +########################################## + +endif#__API_CUDA_JNI_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Jni_hidden.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Jni_hidden.mk new file mode 100755 index 0000000..bb9f2d7 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_Jni_hidden.mk @@ -0,0 +1,73 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_JNI_HIDDEN_MK__ +__API_CUDA_JNI_MK__=true + +########################################## +# OpenCV Cuda # +########################################## + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + NVCCFLAGS+= -I${JAVA_HOME_64}/include + NVCCFLAGS+= -I${JAVA_HOME_64}/include/win32 + SRC_AUX+=${JAVA_HOME_64}/lib +endif + +endif#windows + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + + #compilation + NVCCFLAGS+= -I$(subst :, -I,${JAVA_INC}) + + #linkage + NVCCLDFLAGS+= -L$(subst :, -L,${JAVA_LIB}) + NVCCLDFLAGS+= -l$(subst :, -l,${JAVA_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + RPATH_LINK+=${JAVA_LIB} +endif + +endif#end os + +########################################## +# END # +########################################## + +endif#__API_CUDA_JNI_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_OpenCV.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_OpenCV.mk new file mode 100755 index 0000000..378b12a --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_OpenCV.mk @@ -0,0 +1,118 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_OPEN_CV_MK__ +__API_CUDA_OPEN_CV_MK__=true + +########################################## +# OpenCV Cuda # +########################################## + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + ############## + #Version full + ############## + + #compil + #SRC_AUX+= ${OPENCV64_INC} #ok + #NVCCFLAGS+= -I${OPENCV64_INC} #ko car sous folder + + #link + #SRC_AUX+= ${OPENCV64_VISUAL_LIB} #ok + #NVCCLDFLAGS+= -L${OPENCV64_VISUAL_LIB} #embettant il faut lister lib now -lxxx + + ############## + #Version light + ############## + + #compilation ok + NVCCFLAGS+= -I${OPENCV64_INC} + NVCCFLAGS+= -I${OPENCV64_INC_CV2} + NVCCFLAGS+= -I${OPENCV64_INC_CV2}/highgui + NVCCFLAGS+= -I${OPENCV64_INC_CV2}/core + NVCCFLAGS+= -I${OPENCV64_INC_CV2}/flann + NVCCFLAGS+= -I${OPENCV64_INC_CV2}/imgproc + NVCCFLAGS+= -I${OPENCV64_INC_CV2}/video + +#CXXFLAGS : ko + + #link ok + NVCCLDFLAGS+= -L${OPENCV64_VISUAL_LIB} + NVCCLDFLAGS+= -lopencv_highgui249 + NVCCLDFLAGS+= -lopencv_core249 + NVCCLDFLAGS+= -lopencv_imgproc249 + + #runtime + API_BIN+= ${OPENCV64_VISUAL_BIN} + + # ko avec + # CXXFLAGS + # CXXLDFLAGS + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + + #compilation + #OPENCV2_INC:=/usr/include/opencv2# + NVCCFLAGS+= -I$(subst :, -I,${OPENCV_INC}) + + #link + #NVCCLDFLAGS+= -L$(subst :, -L,${OPENCV_LIB})#pas besoin car system + NVCCLDFLAGS+= -l$(subst :, -l,${OPENCV_LIBRARIES}) + #NVCCLDFLAGS+= -L$(subst :, -L,${OPENCV_LIB})#pas ici. car OPENCV_LIB pas define, install avec apt-get install + + # aussi ok avec + # CXXFLAGS + # CXXLDFLAGS + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + NVCCLDFLAGS+= -L$(subst :, -L,${OPENCV_LIB}) + #RPATH_LINK+=${OPENCV_LIB} +endif + +endif#end os + +########################################## +# END # +########################################## + +endif#__API_CUDA_OPEN_CV_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_OpenMP.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_OpenMP.mk new file mode 100755 index 0000000..d622518 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_OpenMP.mk @@ -0,0 +1,76 @@ +# Version : 0.0.4 +# Date : 2.06.2013 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_OPEN_MP_MK__ +__API_CUDA_OPEN_MP_MK__=true + + +########################################## +# OpenCV Cuda # +########################################## + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #compil + CXXFLAGS+= /openmp + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #compilation + override CXXFLAGS:= -fopenmp ${CXXFLAGS} + #pour arm -fopenmp avant! + + #link + NVCCLDFLAGS+= -lgomp#version gcc + #NVCCLDFLAGS+= -liomp5#ou version intel + + #NVCCLDFLAGS+= -l$(subst :, -l,${OPENMP_LIBRARIES}) + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + +endif + + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_OPEN_MP_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_X11.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_X11.mk new file mode 100755 index 0000000..d98d134 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_X11.mk @@ -0,0 +1,63 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_X11_MK__ +__API_CUDA_X11_MK__=true + +########################################## +# x11 Cuda # +########################################## + +#linux only! + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + + #compilation + #NVCCFLAGS+= -I/usr/include/X11 + NVCCFLAGS+= -I$(subst :, -I,${X11_INC}) + + #linkage + #NVCCLDFLAGS+= -L/usr/lib/x86_64-linux-gnu + #NVCCLDFLAGS+= -lX11 + + NVCCLDFLAGS+= -L$(subst :, -L,${X11_LIB}) + NVCCLDFLAGS+= -l$(subst :, -l,${X11_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + +#ien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #NVCCFLAGS+= -I$(subst :, -I,${X11_INC}) + #NVCCLDFLAGS+= -L$(subst :, -L,${X11_LIB}) + + RPATH_LINK+=${X11_LIB} +endif + +endif#end os + +########################################## +# END # +########################################## + +endif#__API_CUDA_X11_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Canvas_JNI.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Canvas_JNI.mk new file mode 100755 index 0000000..c83a13d --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Canvas_JNI.mk @@ -0,0 +1,128 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __CUDA_API_Bilat_Canvas_JNI_MK__ +__CUDA_API_Bilat_Canvas_JNI_MK__=true + +########################################## +# Bilat Canvas JNI # +########################################## + + +#dependance +include $(API_CUDA)/cuda.mk +include ${API_CUDA}/cuda_GL.mk +include $(API_CUDA)/cuda_Jni_hidden.mk +include ${API_CUDA}/cuda_bilat_Displayable.mk + +API_Bilat_Canvas_JNI=../API_Bilat_Canvas_JNI + +#compil +SRC_AUX+= ${API_Bilat_Canvas_JNI}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + ADD_LIBRARY_FILES+= jawt c + CXXFLAGS+= -fpermissive + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Canvas_JNI}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_Bilat_Canvas_JNI}/BIN/intelLinux + + #runtime + API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_Bilat_Canvas_JNI}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__CUDA_API_Bilat_Canvas_JNI_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Displayable.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Displayable.mk new file mode 100755 index 0000000..4f41298 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Displayable.mk @@ -0,0 +1,123 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __CUDA_API_BILAT_DISPLAYABLE_MK__ +__CUDA_API_BILAT_DISPLAYABLE_MK__=true + +########################################## +# Cuda Bilat DISPLAYABLE # +########################################## + + +#dependance +include ${API}/bilat_DLL_Tools.mk + +API_Bilat_Displayable=../API_Bilat_Displayable + + +#compil +SRC_AUX+= ${API_Bilat_Displayable}/INC +CODE_DEFINE_VARIABLES+=CBI_DISPLAYABLE_DLL + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Displayable}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Displayable}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Displayable}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Displayable}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + SRC_AUX+= ${API_Bilat_Displayable}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Displayable}/BIN/gcc${ARM_FOLDER} + +endif + +endif + +########################################## +# END # +########################################## + +endif#__CUDA_API_BILAT_DISPLAYABLE_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_FreeGlut_Tools.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_FreeGlut_Tools.mk new file mode 100755 index 0000000..ac530af --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_FreeGlut_Tools.mk @@ -0,0 +1,131 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __CUDA_API_BILAT_FREEGLUT_TOOLS_MK__ +__CUDA_API_BILAT_FREEGLUT_TOOLS_MK__=true + +########################################## +# Cuda Bilat FREEGLUT TOOLS # +########################################## + + +#dependance +include $(API_CUDA)/cuda.mk +include $(API_CUDA)/cuda_OpenMP.mk +include ${API_CUDA}/cuda_freeGlut.mk + +include $(API_CUDA)/cuda_bilat_Displayable.mk +include ${API}/bilat_DLL_Tools.mk + +API_FreeGlutTools=../API_Bilat_FreeGlut_Tools + +#compil +SRC_AUX+= ${API_FreeGlutTools}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_FreeGlutTools}/LIB/visual + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_FreeGlutTools}/LIB/intelWin + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_FreeGlutTools}/LIB/mingw + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + + #link + SRC_AUX+= ${API_FreeGlutTools}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_FreeGlutTools}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_FreeGlutTools}/BIN/intelLinux + + #runtime + API_BIN+= ${API_FreeGlutTools}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_FreeGlutTools}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif #__CUDA_API_BILAT_FREEGLUT_TOOLS_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_GL.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_GL.mk new file mode 100755 index 0000000..26928e2 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_GL.mk @@ -0,0 +1,126 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __API_CUDA_Bilat_GL_MK__ +__API_CUDA_Bilat_GL_MK__=true + +########################################## +# CUDA Bilat GL # +########################################## + + +#dependance +include $(API_CUDA)/cuda.mk +include ${API_CUDA}/cuda_GL.mk +include ${API}/bilat_DLL_Tools.mk + +API_Bilat_GL=../API_Bilat_GL + +#compil +SRC_AUX+= ${API_Bilat_GL}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_GL}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_GL}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_GL}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_GL}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_GL}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_Bilat_GL}/BIN/intelLinux + + #runtime + API_BIN+= ${API_Bilat_GL}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_Bilat_GL}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_Bilat_GL_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Graph2D.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Graph2D.mk new file mode 100755 index 0000000..0cb7ac7 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Graph2D.mk @@ -0,0 +1,127 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __CUDA_API_Bilat_Graph_MK__ +__CUDA_API_Bilat_Graph_MK__=true + +########################################## +# CUDA BilatGraph # +########################################## + +#dependance +include $(API_CUDA)/cuda.mk +include $(API_CUDA)/cuda_OpenMP.mk +include ${API_CUDA}/cuda_bilat_GL.mk +include $(API_CUDA)/cuda_bilat_Displayable.mk + +API_Bilat_Graph=../API_Bilat_Graph2D + +#compil +SRC_AUX+= ${API_Bilat_Graph}/INC +CODE_DEFINE_VARIABLES+= CBI_GRAPH_DLL + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Graph}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Graph}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Graph}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Graph}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Graph}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_Bilat_Graph}/BIN/intelLinux + + #runtime + API_BIN+= ${API_Bilat_Graph}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_Bilat_Graph}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__CUDA_API_Bilat_Graph_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Graph2D_FreeGlut.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Graph2D_FreeGlut.mk new file mode 100755 index 0000000..b372348 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Graph2D_FreeGlut.mk @@ -0,0 +1,125 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __API_Bilat_Graph2D_FreeGlut_MK__ +__API_Bilat_Graph2D_FreeGlut_MK__=true + +########################################## +# BilatGraph # +########################################## + +#dependance +include ${API_CUDA}/cuda_bilat_Graph2D.mk +include ${API_CUDA}/cuda_bilat_FreeGlut_Tools.mk + +API_Bilat_Graph2D_FreeGlut=../API_Bilat_Graph2D_FreeGlut + +#compil +SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/INC +CODE_DEFINE_VARIABLES+= + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_Bilat_Graph2D_FreeGlut}/BIN/intelLinux + + #runtime + API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_Bilat_Graph2D_FreeGlut}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_Bilat_Graph2D_FreeGlut_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_FreeGlut.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_FreeGlut.mk new file mode 100755 index 0000000..e3e1bb4 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_FreeGlut.mk @@ -0,0 +1,134 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __CUDA_API_BILAT_IMAGE_FREEGLUT_TOOLS_MK__ +__CUDA_API_BILAT_IMAGE_FREEGLUT_TOOLS_MK__=true + +########################################## +# Bilat IMAGE FREEGLUT # +########################################## + + +#dependance +include $(API_CUDA)/cuda_bilat_Image_GL.mk +include $(API_CUDA)/cuda_bilat_FreeGlut_Tools.mk + +API_ImageFreeGlut=../API_Bilat_Image_FreeGlut + +#compil +SRC_AUX+= ${API_ImageFreeGlut}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/LIB/visual + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/LIB/intelWin + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/LIB/mingw + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/gcc${ARM_FOLDER} + + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_ImageFreeGlut}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_ImageFreeGlut}/BIN/intelLinux + + #runtime + API_BIN+= ${API_ImageFreeGlut}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_ImageFreeGlut}/BIN/intelLinux + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #RPATH_LINK+=${API_ImageFreeGlut}/BIN/gcc +endif + +endif + +########################################## +# END # +########################################## + +endif #__CUDA_API_BILAT_IMAGE_FREEGLUT_TOOLS_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_GL.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_GL.mk new file mode 100755 index 0000000..b575252 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_GL.mk @@ -0,0 +1,128 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __CUDA_API_BILAT_IMAGE_GL_MK__ +__CUDA_API_BILAT_IMAGE_GL_MK__=true + +########################################## +# BilatGLImage # +########################################## + + +#dependance +include $(API_CUDA)/cuda.mk +include $(API_CUDA)/cuda_GL.mk +include $(API_CUDA)/cuda_OpenMP.mk +include ${API}/bilat_Displayable.mk + +API_Bilat_Image=../API_Bilat_Image_GL + +#compil +SRC_AUX+= ${API_Bilat_Image}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Image}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Image}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Image}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_Bilat_Image}/BIN/intelLinux + + #runtime + API_BIN+= ${API_Bilat_Image}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_Bilat_Image}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_BILAT_IMAGE_GL_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_JNI.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_JNI.mk new file mode 100755 index 0000000..a0b5119 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_bilat_Image_JNI.mk @@ -0,0 +1,126 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# +ifndef __CUDA_API_Bilat_Image_JNI_MK__ +__CUDA_API_Bilat_Image_JNI_MK__=true + +########################################## +# Bilat Image JNI # +########################################## + +#dependance +include ${API_CUDA}/cuda_bilat_Canvas_JNI.mk +include ${API_CUDA}/cuda_bilat_Image_GL.mk + +API_Bilat_Image_JNI=../API_Bilat_Image_JNI + +#compil +SRC_AUX+= ${API_Bilat_Image_JNI}/INC + +#compil +SRC_AUX+= ${API_Bilat_Image_JNI}/INC + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/LIB/visual + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/LIB/intelWin + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/intelWin + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/LIB/mingw + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/mingw + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + ARM_FOLDER="_arm" +else + ARM_FOLDER=# +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/BIN/gcc${ARM_FOLDER} + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/gcc${ARM_FOLDER} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_Bilat_Image_JNI}/BIN/gcc${ARM_FOLDER} + #SRC_AUX+= ${API_Bilat_Image_JNI}/BIN/intelLinux + + #runtime + API_BIN+= ${API_Bilat_Image_JNI}/BIN/gcc${ARM_FOLDER} + #API_BIN+= ${API_Bilat_Image_JNI}/BIN/intelLinux + +endif + +endif + +########################################## +# END # +########################################## + +endif#__CUDA_API_Bilat_Image_JNI_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_freeGlut.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_freeGlut.mk new file mode 100755 index 0000000..757df0d --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_freeGlut.mk @@ -0,0 +1,124 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CUDA_FREEGLUT_MK__ +__API_CUDA_FREEGLUT_MK__=true + + +########################################## +# GL # +########################################## + +#dependance +include ${API_CUDA}/cuda_GL.mk + +API_FreeGlut=../API_FreeGlut + +#compil + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +SRC_AUX+= ${API_FreeGlut}/INC_WIN + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #link + SRC_AUX+= ${API_FreeGlut}/LIB/visual + + #runtime + API_BIN+= ${API_FreeGlut}/BIN/visual + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #link + SRC_AUX+= ${API_FreeGlut}/LIB/visual + + #runtime + API_BIN+= ${API_FreeGlut}/BIN/visual + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + #link + SRC_AUX+= ${API_FreeGlut}/LIB/mingw + + #runtime + API_BIN+= ${API_FreeGlut}/BIN/visual + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + +#link +NVCCLDFLAGS+= -l$(subst :, -l,${FREEGLUT_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + NVCCFLAGS+= -I$(subst :, -I,${FREEGLUT_INC}) + NVCCLDFLAGS+= -L$(subst :, -L,${FREEGLUT_LIB})#car use freeglut system + RPATH_LINK+=${FREEGLUT_LIB} +endif + +endif#linux + +########################################## +# END # +########################################## + +endif#__API_CUDA_FREEGLUT_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_mkl.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_mkl.mk new file mode 100755 index 0000000..5d48779 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cuda_mkl.mk @@ -0,0 +1,104 @@ +# Version : 0.0.6 +# Author : Cedric.Bilat@he-arc.ch +# +# +# https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/ +# + +ifndef __API_CUDA_MKL_MK__ +__API_CUDA_MKL_MK__=true + +########################################## +# MKL Cuda # +########################################## + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #compil + NVCCFLAGS+= -I$(subst ;, -I,${MKL_INCLUDE}) + + #link + NVCCLDFLAGS+= mkl_intel_lp64_dll.lib + NVCCLDFLAGS+= mkl_core_dll.lib + NVCCLDFLAGS+= mkl_intel_thread_dll.lib + + NVCCLDFLAGS+= -L$(subst ;, -L,${MKL_LIB64}) + + #runtime + API_BIN+=${MKL_BIN} + +endif + +endif + + + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #compilation + #NVCCFLAGS+= -I/opt/intel/mkl/include + NVCCFLAGS+= -I$(subst :, -I,${MKL_INC}) + + NVCCFLAGS+= -DMKL_ILP64 + #TODO a tester + #Intel fourni 2 fft, la sienne et une implementation de la libraire FFTW + #POur linker la version FFTW, utilisez les flag ci-dessous + #NVCCFLAGS+= -lfftw3_omp + #NVCCFLAGS+= -lfftw3 + + + + #link + #NVCCLDFLAGS+= -L/opt/intel/mkl/lib/intel64 + NVCCLDFLAGS+= -L$(subst :, -L,${MKL_LIB}) + NVCCLDFLAGS+= -l$(subst :, -l,${MKL_LIB_GCC_LIBRARIES}) + + #NVCCLDFLAGS+= -lmkl_intel_ilp64 + #NVCCLDFLAGS+= -lmkl_gnu_thread + #NVCCLDFLAGS+= -lmkl_core + + #NVCCLDFLAGS+= -ldl + #NVCCLDFLAGS+= -lpthread + #NVCCLDFLAGS+= -lm + + #runtime + API_BIN+= $(MKL_LIB) + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #pas possible +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_CUDA_MKL_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/cula.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/cula.mk new file mode 100755 index 0000000..dba3035 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/cula.mk @@ -0,0 +1,81 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_CULA_MK__ +__API_CULA_MK__=true + +########################################## +# Cula # +########################################## + + + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #compil + NVCCFLAGS+= -I${CULA_INC} + + #link + NVCCLDFLAGS+= -L${CULA_LIB} + NVCCLDFLAGS+= cula_lapack.lib + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + + +############ +# common # +############ + + #compil + NVCCFLAGS+= -I$(subst :, -I,${CULA_INC}) + + #link + #NVCCLDFLAGS+= -L${CULA_LIB} + NVCCLDFLAGS+= -L$(subst :, -L,${CULA_LIB}) + NVCCLDFLAGS+= -l$(subst :, -l,${CULA_LIBRARIES}) + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + #rien + +endif + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + #pas disponible +endif + +endif#end os + +########################################## +# END # +########################################## + +endif#__API_CULA_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/api/cuda/jCuda.mk b/WCudaMSE/BUILDER/makefile/private/api/cuda/jCuda.mk new file mode 100755 index 0000000..4ee08ae --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/api/cuda/jCuda.mk @@ -0,0 +1,61 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __API_JCUDA_MK__ +__API_JCUDA_MK__=true + +########################################## +# JCuda # +########################################## + +NVCCFLAGS += -keep -keep-dir ${TARGET_CUBIN} + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + # rien + +endif + +endif + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# common # +############ + +#rien + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + # rien + +endif + +endif + +########################################## +# END # +########################################## + +endif#__API_JCUDA_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/common/c++11.mk b/WCudaMSE/BUILDER/makefile/private/common/c++11.mk new file mode 100755 index 0000000..5c7103a --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/common/c++11.mk @@ -0,0 +1,93 @@ +# Version : 0.0.6 +# Date : 20.01.2014 +# Author : Cedric.Bilat@he-arc.ch + +ifndef __C++11_MK__ +__C++11_MK__=true + + +#-std=gnu++0x ou -std=c++0x, difference? + +######################### +# WINDOWS # +######################### + +ifeq ($(OS),Win) + +############ +# Visual # +############ + +ifeq ($(COMPILATEUR),VISUAL) + + #rien, par default + +endif + +############ +# Intel # +############ + +ifeq ($(COMPILATEUR),INTEL) + + #rien, par default + +endif + +############ +# MINGW # +############ + +ifeq ($(COMPILATEUR),MINGW) + + override CXXFLAGS:= -std=c++0x ${CXXFLAGS} + #To access C++11 threads in Windows, you will need a build of Mingw with posix-threads. + +endif + +endif#end win + +######################### +# LINUX # +######################### + +ifeq ($(OS),Linux) + +############ +# ARM # +############ + +ifeq ($(ARCH),arm) + + override CXXFLAGS:= -std=c++0x ${CXXFLAGS} + +endif + +############ +# GCC # +############ + +ifeq ($(COMPILATEUR),g++) + + override CXXFLAGS:= -std=c++0x ${CXXFLAGS} + +endif + +############ +# INTEL # +############ + +ifeq ($(COMPILATEUR),INTEL) + + override CXXFLAGS:= -std=c++0x ${CXXFLAGS} + +endif + +endif#linux + + +############################################# +# END # +############################################# + +endif#__C++11_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/common/common.mk b/WCudaMSE/BUILDER/makefile/private/common/common.mk new file mode 100755 index 0000000..93de0b6 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/common/common.mk @@ -0,0 +1,66 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __COMMON_MK__ +__COMMON_MK__=true + +############################################### +# COMMON # +############################################### + +######################## +# pivate # +######################## + +API_ROOT:=${ROOT_MAKEFILE_PRIVATE}/api +API:=${API_ROOT}/cpp +API_CUDA:=${API_ROOT}/cuda + +include dataProject.mk + +######## +#c++11 # +######## + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/c++11.mk + +######################## +# macro # +######################## + +#http://stackoverflow.com/questions/12315834/makefile-how-to-apply-an-equivalent-to-filter-on-multiple-wildcards +not-containing = $(foreach v,$2,$(if $(findstring $1,$v),,$v)) +containing = $(foreach v,$2,$(if $(findstring $1,$v),$v)) + +#example +#LIST := a_old_tt x_old_da a_new_da q_ty_we +#LIST_OLD := $(call containing,old,$(LIST)) +#LIST_NOT_OLD := $(call not-containing,old,$(LIST)) + +#http://stackoverflow.com/questions/16144115/makefile-remove-duplicate-words-without-sorting + +#v1: linux : ko : win : ok +#define uniq = +# $(eval seen :=) +# $(foreach _,$1,$(if $(filter $_,${seen}),,$(eval seen += $_))) +# ${seen} +#endef +#exemple +#w := z z x x y c x +#w:=$(call uniq,${w}) +#w:=$(strip ${w}) +#${info ${w}}#print immediately ww + +#v2 : linux ok : win ok +uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1))) +#exemple +#w := z z x x y c x +#w:=$(call uniq,${w}) +#${info ${w}}#print immediately ww + +############################################### +# End # +############################################### + +endif#__COMMON_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/common/commonLinux.mk b/WCudaMSE/BUILDER/makefile/private/common/commonLinux.mk new file mode 100755 index 0000000..8e1515d --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/common/commonLinux.mk @@ -0,0 +1,22 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __COMMON_LINUX_MK__ +__COMMON_LINUX_MK__=true + +############################################### +# COMMON LINUX # +############################################### + +OS:=Linux + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/common.mk + +include ${ROOT_MAKEFILE_PUBLIC_COMMON}/dataProjectLinux.mk + +############################################### +# End # +############################################### + +endif#__COMMON_LINUX_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/common/commonWin.mk b/WCudaMSE/BUILDER/makefile/private/common/commonWin.mk new file mode 100755 index 0000000..6c20c31 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/common/commonWin.mk @@ -0,0 +1,23 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __COMMON_WIN_MK__ +__COMMON_WIN_MK__=true + +############################################### +# GCC # +############################################### + +OS:=Win +USER=${USERNAME} + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/common.mk + +include ${ROOT_MAKEFILE_PUBLIC_COMMON}/dataProjectWin.mk + +############################################### +# End # +############################################### + +endif#__COMMON_WIN_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/cpp.mk b/WCudaMSE/BUILDER/makefile/private/cpp/cpp.mk new file mode 100755 index 0000000..0225a31 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/cpp.mk @@ -0,0 +1,701 @@ +# Version : 0.0.7 +# Date : 04.03.2014 +# Author : Cedric.Bilat@he-arc.ch +# +# See : OptionCompilateur.txt +# +# Hyp : Application that must be in path +# nvcc +# make +# g++ +# gcc + +############################################## +# Temp # +############################################## + +# Hyp : Environement Variables must be set +# +# ARCHI_32_64 : 32 or 64 + +ifndef __CPP_MK__ +__CPP_MK__=true + +############################################## +# Variables # +############################################## + +#OS:=$(shell uname) +#MACHINE:=${shell uname -m} + +######## +#32/64 # +######## + +ifneq ($(ARCH),arm) + TARGET_NAME:=${TARGET_NAME}_$(ARCHI_32_64) +else + TARGET_NAME:=$(TARGET_NAME)_ARM +endif + +######## +#setfile # +######## + +OBJ_FILES_CPP:= $(SRC_CPP_FILES:.cpp=.$(EXTENSION_OBJ)) +OBJ_FILES_C:= $(SRC_C_FILES:.c=.$(EXTENSION_OBJ)) + +OBJ_FILES:= ${OBJ_FILES_CPP} ${OBJ_FILES_C} + +########## +# TARGET # +########## + +TARGET_NAME_EXE:=$(TARGET_NAME).${EXTENSION_EXE} +TARGET_NAME_DLL:=${LIB_PREFIXE}$(TARGET_NAME).$(EXTENSION_DLL) +TARGET_NAME_LIB:=${LIB_PREFIXE}$(TARGET_NAME).${EXTENSION_LIB} + +TARGET_EXE:=${TARGET_BIN_PATH}/$(TARGET_NAME_EXE) +TARGET_DLL:=${TARGET_BIN_PATH}/$(TARGET_NAME_DLL) +TARGET_LIB:=${TARGET_BIN_PATH}/$(TARGET_NAME_LIB) +TARGET_OBJ:=$(addprefix $(TARGET_OBJ_PATH)/,$(notdir $(OBJ_FILES))) + +#Selection de la target en fonction TARGET_MODE +ifeq ($(TARGET_MODE),EXE) + TARGET:=${TARGET_EXE} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_EXE) +endif + +ifeq ($(TARGET_MODE),SHARED_LIB) + TARGET:=${TARGET_DLL} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_DLL) + override LDFLAGS += $(LINK_FLAG_DLL) +endif + +ifeq ($(TARGET_MODE),STATIC_LIB) + TARGET:=${TARGET_LIB} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_LIB) +endif + +########## +# RESSOURCES # +########## + +ifeq (,$(findstring $(RESOURCES_PATH),$(wildcard $(RESOURCES_PATH) ))) + nbFileRessources:=0 +else + nbFileRessources:=$(shell ls $(RESOURCES_PATH) | wc -l ) +endif + +########## +# securite # +########## + +VPATH := $(SRC_PATH_ALL) + + +########## +# runtime # +########## + +space:= #ne suufit pas ajoutre espaca, mais += le fait! +space+=# + +ifeq (${OS},Win) + separateurPath:=;# +else + separateurPath:=:# +endif + +API_BIN_FORMATTER:=$(subst ${space},${separateurPath},${API_BIN}) + +ifeq (${OS},Win) + override PATH:=${PATH}${separateurPath}${API_BIN_FORMATTER}# + export ${PATH}# +else + override LD_LIBRARY_PATH:=${LD_LIBRARY_PATH}${separateurPath}${API_BIN_FORMATTER}# + export ${LD_LIBRARY_PATH}#fixme semble pas marcher +endif + + + +######## +#optimisation # +######## + +include ${ROOT_MAKEFILE_PRIVATE_CPP}/optimisation.mk + +######## +#arm # +######## + +include ${ROOT_MAKEFILE_PRIVATE_CPP}/gcc_arm.mk + +########## +# exclude # +########## + +override CXXFLAGS:=$(filter-out $(CXXFLAGS_EXCLUDE),$(CXXFLAGS)) +#https://www.gnu.org/software/make/manual/make.html#Functions + +########## +# unicitye # +########## + +UNICITY=true + +ifdef UNICITY + + override CXXFLAGS:=$(call uniq,${CXXFLAGS}) + override CXXLDFLAGS:=$(call uniq,${CXXLDFLAGS}) + override ARFLAGS:=$(call uniq,${ARFLAGS}) + #override AR_OUT_FLAG:=$(call uniq,${AR_OUT_FLAG})#met espace apres /out, pas pour visual/intel + +#debug +#${info "CXXFLAGS= "${CXXFLAGS}}#print immediately +#${info "CXXLDFLAGS"= ${CXXLDFLAGS}}#print immediatel +#${info "ARFLAGS= "${ARFLAGS}}#print immediatel +#${info "AR_OUT_FLAG= "${AR_OUT_FLAG}}#print immediatel + +endif#UNICITY + +########## +# remove space # +########## + +#let a minimum of one space +REMOVE_SPACE=true + +ifdef REMOVE_SPACE + + override CXXFLAGS:=$(strip ${CXXFLAGS}) + override CXXLDFLAGS:=$(strip ${CXXLDFLAGS}) + override ARFLAGS:=$(strip ${ARFLAGS}) + #override AR_OUT_FLAG:=$(strip ${AR_OUT_FLAG}) #pas pour mingw car enleve espace apres -r + + #override CXXFLAGS:=$(subst $(space),,$(CXXFLAGS)) + +endif#REMOVE_SPACE + + +########## +# chrono # +########## + +override TIME_START:=$(shell date +%T) +TIME_CURRENT=$(shell date +%T) +#TIME_DELTA:=$(shell echo $(TIME_CURRENT) - $(TIME_START) | bc) #marche pas + +############################################## +# Rules # +############################################## + +# tabulation obligatoire before @ + +TITLE:=$(TARGET_NAME) + +################ +# .o->.exe # +################ + +${TARGET_EXE}:$(TARGET_OBJ) +#@echo "$(CXX) $(OUT_FILE_LINK)${TARGET_EXE} $^ $(LDFLAGS)" + @echo "" + @echo "[CBI] -> Linking to : "$(TARGET) + @echo "" + @echo "[CBI] -> Library Link :" +ifeq (${OS},Win) +ifeq (${COMPILATEUR},VISUAL) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,.${EXTENSION_LIB},$(LDFLAGS))) +endif +ifeq (${COMPILATEUR},INTEL) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,.${EXTENSION_LIB},$(LDFLAGS))) +endif +ifeq (${COMPILATEUR},MINGW) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,-${LIB_FLAG_SEPARATOR},$(LDFLAGS))) +endif +else + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,-l,$(LDFLAGS))) +endif + @$(CXX) $(OUT_FILE_LINK)${TARGET_EXE} $^ $(LDFLAGS) + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] -> Location : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Compilateur : ${COMPILATEUR} (${CXX})" + @echo "[CBI] -> Task : End Compiling-Linking !" + @echo "[CBI] -> Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + +################ +# .o->.dll # +################ + +${TARGET_DLL}:$(TARGET_OBJ) +#@echo "$(CXX) $(OUT_FILE_LINK)${TARGET_DLL} $^ $(LDFLAGS)" + @echo "" + @echo "[$(TITLE)] -> Linking to : "$(TARGET) + @echo "" + @echo "[$(TITLE)] -> Library Link :" + @echo "" +#@echo ${LDFLAGS} +ifeq (${OS},Win) +ifeq (${COMPILATEUR},VISUAL) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,.${EXTENSION_LIB},$(LDFLAGS))) +endif +ifeq (${COMPILATEUR},INTEL) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,.${EXTENSION_LIB},$(LDFLAGS))) +endif +ifeq (${COMPILATEUR},MINGW) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,-${LIB_FLAG_SEPARATOR},$(LDFLAGS))) +endif +else + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,-l,$(LDFLAGS))) +endif + @echo "" + @$(CXX) $(OUT_FILE_LINK)${TARGET_DLL} $^ $(LDFLAGS) + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] -> Location : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Compilateur : ${COMPILATEUR} (${CXX})" + @echo "[CBI] -> Task : End Compiling-Linking !" + @echo "[CBI] -> Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + +################ +# .o->.lib # +################ + +${TARGET_LIB}:$(TARGET_OBJ) +#@echo "${AR} ${AR_OUT_FLAG}${TARGET_LIB} ${ARFLAGS} $^" + @echo "" + @${AR} ${AR_OUT_FLAG}${TARGET_LIB} ${ARFLAGS} $^ + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] -> Location : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Compilateur : ${COMPILATEUR} (${CXX})" + @echo "[CBI] -> Task : End Compiling-Archive !" + @echo "[CBI] -> Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + +################ +# .cpp->.o # +################ + +$(TARGET_OBJ_PATH)/%.$(EXTENSION_OBJ):%.cpp +#@echo "$(CXX) $(CXXFLAGS) $(OUT_FILE_COMPILE)$@ -c $<" +#intelWin et visual affiche deja file +ifeq (${COMPILATEUR},MINGW) + @echo "[$(TITLE)] -> ${CXX} compiling .cpp : "$< +endif +ifeq (${COMPILATEUR},g++) + @echo "[$(TITLE)] -> ${CXX} compiling .cpp : "$< +endif +ifeq (${COMPILATEUR},INTEL) +ifeq (${OS},Linux) + @echo "[$(TITLE)] -> ${CXX} compiling .cpp : "$< +endif +endif + @$(CXX) $(CXXFLAGS) $(OUT_FILE_COMPILE)$@ -c $< + +# -c = compilation + +################ +# .c->.o # +################ + +$(TARGET_OBJ_PATH)/%.$(EXTENSION_OBJ):%.c +#@echo "" $(CXX) $(CXXFLAGS) $(OUT_FILE_COMPILE)$@ -c $< +#intelWin et visual affiche deja file +ifeq (${COMPILATEUR},MINGW) + @echo "[$(TITLE)] -> ${CXX} compiling .c : "$< +endif +ifeq (${COMPILATEUR},g++) + @echo "[$(TITLE)] -> ${CXX} compiling .c : "$< +endif +ifeq (${COMPILATEUR},INTEL) +ifeq (${OS},Linux) + @echo "[$(TITLE)] -> ${CXX} compiling .cpp : "$< +endif +endif + @$(CXX) $(CXXFLAGS) $(OUT_FILE_COMPILE)$@ -c $< + +# -c = compilation + +############################################## +# TARGET # +############################################## + +all: echoing init $(TARGET) deploy + @echo "" + @echo "[CBI] -> "$(TITLE)" : End ALL!" + +version: + @echo "" + @$(VERSION_CXX) + @echo "" + +help: + @echo "" + @$(CXX_HELP) + @echo "" + +########## +# init # +########## + +init: +#create folder heirerarchy TARGET_BIN_PATH iff don't exist +ifeq (,$(findstring $(TARGET_BIN_PATH),$(wildcard $(TARGET_BIN_PATH) ))) + @$(shell mkdir -p $(TARGET_BIN_PATH)) + @echo "[CBI] -> Create folder : "$(TARGET_BIN_PATH) +endif +#create folder heirerarchy TARGET_OBJ_PATH iff don't exist +ifeq (,$(findstring $(TARGET_OBJ_PATH),$(wildcard $(TARGET_OBJ_PATH) ))) + @$(shell mkdir -p $(TARGET_OBJ_PATH)) + @echo "[CBI] -> Create folder : "$(TARGET_OBJ_PATH) +endif +ifeq (,$(findstring $(TARGET_DEPLOY_PATH_BIN),$(wildcard $(TARGET_DEPLOY_PATH_BIN) ))) + @$(shell mkdir -p $(TARGET_DEPLOY_PATH_BIN)) + @echo "[CBI] -> Create folder : "$(TARGET_DEPLOY_PATH_BIN) +endif + @echo "" + +# -p permet de cr�er l�arborescence complete si existe pas + +########## +# run # +########## + +.PHONY: run +run: printRuntimeInfo + @echo "" + @echo "[CBI] -> Running : "$(TARGET) $(ARGS) + @echo "" + @echo "------------------------------------------------------------------------" + @echo "" + @echo "" + @$(TARGET) $(ARGS) +#$(MAKECMDGOALS) donne liste des para de make, et ainsi les args du code en c si il y en a + +.PHONY: runDeploy +runDeploy: printRuntimeInfo + @echo "" + @echo "[CBI] -> Running : "$(TARGET_DEPLOY) $(ARGS) + @echo "" + @echo "------------------------------------------------------------------------" + @echo "" + @echo "" + @$(TARGET_DEPLOY) $(ARGS) + +.PHONY: runGl +runGl: printRuntimeInfo +#gl is a wrapper of virtualgl +#gl is necessary to run opengl remotely with turbovnc +#OS : linux only + @echo "" + @echo "[CBI] -> Running remote-gl : "$(TARGET) $(ARGS) + @echo "" + @echo "" + @gl $(TARGET) $(ARGS) + +.PHONY: runGlDeploy +runGlDeploy: printRuntimeInfo +#gl is a wrapper of virtualgl +#gl is necessary to run opengl remotely with turbovnc +#OS : linux only! + @echo "" + @echo "[CBI] -> Running remote-gl : "$(TARGET_DEPLOY) $(ARGS) + @echo "" + @echo "" + @gl $(TARGET_DEPLOY) $(ARGS) + + +.PHONY: printRuntimeInfo +printRuntimeInfo: + @echo "[CBI] -> API BIN :" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh ${sort ${API_BIN}} + @echo "" + @echo "[CBI] -> ARGS :" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh ${sort ${ARGS}} + + +########## +# kill # +########## + +.PHONY: killLinux +killLinux: + @echo "[CBI] -> killing : "${TARGET_NAME_EXE} + @killall ${TARGET_NAME_EXE} + @echo "[CBI] -> ..." + @echo "[CBI] -> done!" + +.PHONY: killWin +killWin: + @echo "[CBI] -> killing : "${TARGET_NAME_EXE} + @powershell stop-process -processname ${TARGET_NAME} + @echo "[CBI] -> ..." + @echo "[CBI] -> done"! + +########## +# depends # +########## + +.PHONY: dependenciesLinux +dependenciesLinux: printRuntimeInfo + @echo "" +ifeq (${TARGET_MODE},STATIC_LIB) + @echo "[${TARGET_NAME}.${EXTENSION_LIB}] depends from :" + @echo "" + @ar -t ${TARGET_DEPLOY} +else ifeq (${TARGET_MODE},SHARED_LIB) + @echo "[${TARGET_NAME}.${EXTENSION_DLL}] depends from :" + @echo "" + @ldd -v ${TARGET_DEPLOY} +else + @echo "[${TARGET_NAME}.run] depends from :" + @echo "" + @ldd -v ${TARGET_DEPLOY} +endif + @echo "" + +.PHONY: dependenciesWin +dependenciesWin: printRuntimeInfo + @echo "" + @echo "[CBI] -> Dependencies .dll : "${TARGET_NAME_EXE} + @${DEPENDS_EXE} ${TARGET_DEPLOY} + + +########## +# contents # +########## + +.PHONY: contentsLinux +contentsLinux: + @echo "" +ifeq (${TARGET_MODE},STATIC_LIB) + @echo "[${TARGET_NAME}.${EXTENSION_LIB}] export :" + @echo "" + @ar -t ${TARGET_DEPLOY} +else ifeq (${TARGET_MODE},SHARED_LIB) + @echo "[${TARGET_NAME}.${EXTENSION_DLL}] export:" + @echo "" + @echo "[CBI] -> nm" + @echo "" + @nm -D --defined-only --extern--only ${TARGET_DEPLOY} + @echo "" + @echo "[CBI] -> readelf" + @echo "" + @readelf -s ${TARGET_DEPLOY} +endif + @echo "" + +.PHONY: contententsWin +contententsWin: printRuntimeInfo + @echo "" + @echo "[CBI] -> Dependencies .dll : "${TARGET_NAME_EXE} + @${DEPENDS_EXE} ${TARGET_DEPLOY} + +########## +# deploy # +########## + +.PHONY: deploy +deploy: +ifdef IS_DEPLOY + @$(shell cp $(TARGET) $(TARGET_DEPLOY)) + @echo "" + @echo "[CBI] -> Deploying : "$(TARGET_DEPLOY) +ifneq ($(nbFileRessources),0) + @echo "[CBI] -> Copying : "$(RESOURCES_PATH)" -> "${TARGET_DEPLOY_PATH_BIN} + @cp -f -r $(RESOURCES_PATH)/* $(TARGET_DEPLOY_PATH_BIN) +endif +endif + +########## +# doc # +########## + +include ${ROOT_MAKEFILE_PRIVATE_DOC}/doxyCPP.mk + +########## +# clean # +########## + +.PHONY: clean +clean: + @rm -f $(TARGET_OBJ_PATH)/*.o + @rm -f $(TARGET_OBJ_PATH)/*.obj + @rm -f $(TARGET_BIN_PATH)/*.exp + @rm -f $(TARGET_BIN_PATH)/*.html + @rm -f $(TARGET_BIN_PATH)/*.lib + @rm -f $(TARGET_BIN_PATH)/*.a + @rm -f $(TARGET_BIN_PATH)/*.def + @rm -f $(TARGET_BIN_PATH)/*.map + @rm -f $(TARGET) + @rm -f $(TARGET_DEPLOY) + @rm -f $(TARGET_DOC_DEPLOY_FILE) + @rm -f -r $(TARGET_DOC_PATH) + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target : "$(TARGET_NAME) + @echo "[CBI] -> Task : DELETE" + @echo "[CBI] ->" + @echo "[CBI] -> Delete .obj : "$(TARGET_OBJ_PATH) + @echo "[CBI] -> Delete .bin : "$(TARGET_BIN_PATH) + @echo "[CBI] -> Delete doc : "$(TARGET_DOC_PATH) + @echo "[CBI] ->" + @echo "[CBI] -> Delete deploy : "$(TARGET_DEPLOY) + @echo "[CBI] -> Delete deploy doc : "$(TARGET_DOC_DEPLOY_FILE) + @echo "==================================================================================" + @echo "" + +# -v verbose +# -r recursif +# -f pas d'erreur si file existe pas +#rm -rf #serait recursif (dangereux!!) + +.PHONY: cleanDeploy +cleanDeploy: + @rm -f ${TARGET_DEPLOY_PATH_BIN}/*.lib + @rm -f ${TARGET_DEPLOY_PATH_BIN}/*.so + @rm -f ${TARGET_DEPLOY_PATH_BIN}/*.dll + @rm -f ${TARGET_DEPLOY_PATH_BIN}/*.run + @rm -f ${TARGET_DEPLOY_PATH_BIN}/*.exe + @rm -f ${TARGET_DEPLOY_PATH_BIN}/*.a + @rm -f ${TARGET_DEPLOY_PATH_DOC}/*.gz + + +.PHONY: cleanTemp +cleanTemp: + @rm -f -r ${TARGET_PATH_ROOT} + +.PHONY: cleanAll +cleanAll: cleanTitleStart cleanDeploy cleanTemp cleanTitleEnd + +.PHONY: cleanTitleStart +cleanTitleStart: + @echo "==================================================================================" + @echo "[CBI] -> Delete : "${TARGET_DEPLOY_PATH_BIN}"/*" + @echo "[CBI] -> Delete : "${TARGET_DEPLOY_PATH_DOC}"/*" + @echo "[CBI] -> Delete : "${TARGET_PATH_ROOT} + @echo "==================================================================================" + @echo "" + @echo "[CBI] -> Please wait ..." + @echo "[CBI] -> Deleting ..." + @echo "" + +.PHONY: cleanTitleEnd +cleanTitleEnd: + @echo "==================================================================================" + @echo "[CBI] -> Delete : finished!" + @echo "==================================================================================" + +########## +# echo # +########## + +.PHONY: echoing +echoing: + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] ->" + @echo "[CBI] -> Build : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Task : Compiling-Linking" +#@echo "[CBI]->Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + @echo "[CBI] -> SRC AUX (Recursif) :" + @echo "[CBI] ->" +#@echo $(SRC_AUX) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(SRC_AUX)) + @echo "" + @echo "[CBI] -> CXXFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(CXXFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,${OPTION_SEPARATOR}$(HEADER_OPTION),$(CXXFLAGS))) + @echo "" +ifneq (${TARGET_MODE},STATIC_LIB) + @echo "[CBI] -> LDFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(LDFLAGS) +ifeq (${OS},Win) +ifeq (${COMPILATEUR},VISUAL) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,${LIB_PATH_SEPARATOR},$(call not-containing,.${EXTENSION_LIB},$(LDFLAGS)))) +endif +ifeq (${COMPILATEUR},INTEL) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,${LIB_PATH_SEPARATOR},$(call not-containing,.${EXTENSION_LIB},$(LDFLAGS)))) +endif +ifeq (${COMPILATEUR},MINGW) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,-${LIB_FLAG_SEPARATOR},$(call not-containing,-${LIB_PATH_SEPARATOR},$(LDFLAGS)))) +endif +else + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,-${LIB_FLAG_SEPARATOR},$(call not-containing,-${LIB_PATH_SEPARATOR},$(LDFLAGS)))) +endif +endif + @echo "" + @echo "[CBI] -> INC_PATH (auto detect):" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(INC_PATH)) + @echo "" + @echo "" + @echo "[CBI] -> LIB_PATH (auto detect):" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(LIB_PATH)) + @echo "" + + +############################################## +# HELP # +############################################## + +# target : dependencies +# +# $@ = name of the target +# $^ = all dependencie of a target +# $< =first (unique dependency of a target) (rm, compilation,linking) +# +# @ = diminue verbosite commande +# +# Attention : tabulation obligatoire avant commande dans rule!! +# +# http://www.gnu.org/software/make/manual/ + +############################################# +# END # +############################################# + +endif#__CPP_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/fileSet.mk b/WCudaMSE/BUILDER/makefile/private/cpp/fileSet.mk new file mode 100755 index 0000000..86b0c73 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/fileSet.mk @@ -0,0 +1,67 @@ +# Version : 0.0.2 +# Date : 26.01.2012 +# Author : Cedric.Bilat@he-arc.ch +# +# See : OptionCompilateur.txt +# MakeFileNotice.txt +# +# Hyp : Application that must be in path +# sh +# + +ifndef __CPP_FILSE_SET_MK__ +__CPP_FILSE_SET_MK__=true + + + +############# +# Path # +############# + +SRC_ROOT:=src +RESOURCES_PATH:=$(SRC_ROOT)/resources +TARGET_OBJ_PATH:=${TARGET_PATH}/obj +TARGET_BIN_PATH:=${TARGET_PATH}/bin + +#TARGET_DEPLOY_PATH_BIN=${TARGET_DEPLOY_PATH}/bin +TARGET_DEPLOY_PATH_DOC=${TARGET_DEPLOY_PATH}/doc + +SRC_PATH:=$(shell find $(SRC_ROOT) -type d) + +ifdef SRC_AUX + SRC_PATH_AUX:=$(shell find $(SRC_AUX) -type d) +else + SRC_PATH_AUX:= +endif + +SRC_PATH_ALL:=$(SRC_PATH) $(SRC_PATH_AUX) + +############# +# SET FILES # +############# + +#all +SRC_CPP_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cpp)) +SRC_C_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.c)) +SRC_HEADER_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.h)) + +#visual,intel +SRC_LIB_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.lib)) +SRC_DLL_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.dll)) + +#gcc,mingw +SRC_SO_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.so)) +SRC_A_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.a)) + +#nvcc +SRC_CU_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cu)) + +override INC_PATH:=${INC_PATH} $(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.h)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist +override INC_PATH:=$(call uniq,${INC_PATH}) +#${info "INC_PATH= "${INC_PATH}}#print immediately + +######### +# End # +######### + +endif#__CPP_FILSE_SET_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/flags_GccIntel.mk b/WCudaMSE/BUILDER/makefile/private/cpp/flags_GccIntel.mk new file mode 100755 index 0000000..baa8192 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/flags_GccIntel.mk @@ -0,0 +1,179 @@ +# Version : 0.0.3 +# Date : 12.02.2014 +# Author : Cedric.Bilat@he-arc.ch +# +# See : OptionCompilateur.txt +# MakeFileNotice.txt +# +# Hyp : Application that must be in path + + +ifndef __FLAG_GCC_INTEL_MK__ +__FLAG_GCC_INTEL_MK__=true + +###################### +# Init # +###################### + +#SHELL=/bin/bash + +machine:=${shell uname -m} +ifeq (${machine},x86_64) + ARCHI_32_64:=64 +else + ARCHI_32_64:=32 +endif + +###################### +# Variables # +###################### + +ifeq ($(COMPILATEUR),INTEL) + #Compilateur ,Archiveur (static lib) + CXX:=icpc + AR:=xiar +else + #Compilateur ,Archiveur (static lib) + + ifneq ($(ARCH),arm) + CXX:=g++ + AR:=ar + else + CXX:=g++ARM + AR:=arARM + endif + +endif + +############# +# Extension # +############# + +EXTENSION_OBJ:=o# +EXTENSION_LIB:=a# +EXTENSION_DLL:=so# +EXTENSION_EXE:=run# +# Note enstension sans le . + +############# +#Compilateur# +############# + +SYS_LIBRARY_FILES:=#minimum rien +OPTION_SEPARATOR:=-# +LIB_FLAG_SEPARATOR:=l# +LIB_PATH_SEPARATOR:=L# +HEADER_OPTION:=I# +OUT_FILE_COMPILE:=-o #attention end with space! +OUT_FILE_LINK:=-o #attention end with space! +LINK_TAG:=#rien +LINK_FLAG_DLL:=-shared #with espace ! + +LIB_PREFIXE:=lib# + +VERSION_CXX:=$(CXX) --version +CXX_HELP:=$(CXX) --help + +########## +#ARCHIVEUR# +########### + +AR_OUT_FLAG:=-r #with espace important ! + +############# +# SET FILES # +############# + +# Input : +# SRC_PATH_ALL +# Output : +# All files libXXX.a, libXXX.so and XXX.so, without XXX.a ! +# Objectifs : +# Les .a prefix� par lib (libXXX.a) seront donnee a GCC sous la forme -lXXX) +# Alors que les YYY.a devront etre donner a GCC sous la forme YYY.a +SRC_A_FILES_STANDART:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/$(LIB_PREFIXE)*.$(EXTENSION_LIB))) +SRC_A_FILES_STANDART+=$(SRC_SO_FILES) + +# Input : +# SRC_PATH_ALL +# Output : +# All files XXX.a without libXXX.a, libXXX.so and XXX.so ! +# Objectifs : +# Les .a prefix� par lib (libXXX.a) seront donnee a GCC sous la forme -lXXX +# Alors que les YYY.a devront etre donner a GCC sous la forme YYY.a avec la path complet (par exemple ../libs/YYY.a) +SRC_A_FILES_NOT_STANDART:=$(foreach dir,$(SRC_PATH_ALL),$(filter-out $(dir)/$(LIB_PREFIXE)%.$(EXTENSION_LIB),$(wildcard $(dir)/*.$(EXTENSION_LIB)))) + +################# +# PREPARE FLAGS # +################# + +#plus ici dans api +#Ajoute automatiquement gomp(gcc) or iomp5(Intel) si on use OpenMP +#ifneq (, $(findstring openmp,$(CXXFLAGS)))#findstring return vide si openmp pas trouver! +# ifeq ($(COMPILATEUR),INTEL) +# ADD_LIBRARY_FILES+=iomp5 +# else +# ADD_LIBRARY_FILES+=gomp +# endif +#endif + +#only fileName (./libs/libXXX.a ./libs/YYY.so -> lixXXX.a YYY.so) +LIB_FLAG:=$(notdir $(SRC_A_FILES_STANDART)) + +#removing prefix lib (libXXX.a libYYY.a libZZZ.so -> XXX.a YYY.a ZZZ.so) +LIB_FLAG:=$(subst $(LIB_PREFIXE),,$(LIB_FLAG))#remplace lib par rien + +#Delete extension .a (XXX.a YYY.a -> XXX YYY) +LIB_FLAG:=$(LIB_FLAG:.$(EXTENSION_LIB)=) + +#Delete extension .so (AAA.so BBB.so -> AAA BBB) +LIB_FLAG:=$(LIB_FLAG:.$(EXTENSION_DLL)=) + +#ADDING custom LIB and System LIB +LIB_FLAG+=$(ADD_LIBRARY_FILES) $(SYS_LIBRARY_FILES) + +# Input : +# list lib to delete example (AAA ZZZ) +# +# before : LIB_FLAG (XXX YYY ZZZ) +# after : LIB_FLAG (XXX YYY) without ZZZ +LIB_FLAG:=$(filter-out $(EXCLUDE_LIBRARY_FILES),$(LIB_FLAG)) + +#Adding Lib FLAG separator -l (XXX YYY -> -lXXX -lYYY) +LIB_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_FLAG_SEPARATOR),$(LIB_FLAG)) + +#Adding Lib path FLAG separator -L (../AAA ./BBB -> -L../AAA _L./BBB) +#LIB_PATH_FLAG:=${SRC_PATH_ALL}#old +#LIB_PATH_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_PATH_SEPARATOR),$(LIB_PATH_FLAG))#old +LIB_PATH:=$(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.so)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist +override LIB_PATH:=$(call uniq,${LIB_PATH}) +#${info "LIB_PATH= "${LIB_PATH}} +LIB_PATH_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_PATH_SEPARATOR),$(LIB_PATH)) + +#Adding Include FLAG separator -I (../header ../header/api -> -I../header -I../header/api) +#HEADER_FLAG:= $(addprefix $(OPTION_SEPARATOR)$(HEADER_OPTION),$(HEADER_PATH_ALL))#old +HEADER_FLAG:= $(addprefix $(OPTION_SEPARATOR)$(HEADER_OPTION),$(INC_PATH)) + + +#Injection variable in .cpp code (VAR1 VAR2 -> -DVAR1 -DVAR2) +CODE_DEFINE_VARIABLES_D:= $(addprefix -D,$(CODE_DEFINE_VARIABLES)) + +ifeq ($(TARGET_MODE),SHARED_LIB) + override CXXFLAGS := -fPIC -fvisibility=hidden ${CXXFLAGS} +endif + +ifeq ($(TARGET_MODE),STATIC_LIB) + override CXXFLAGS := -fPIC ${CXXFLAGS} +endif + +#OUTPUTS# +override LDFLAGS_AUX+= $(SRC_A_FILES_NOT_STANDART) +override CXXFLAGS += $(HEADER_FLAG) +override CXXFLAGS += $(CODE_DEFINE_VARIABLES_D) +override LDFLAGS += $(LINK_TAG) $(LIB_PATH_FLAG) $(LIB_FLAG) $(LDFLAGS_AUX) + +######### +# End # +######### + +endif#__FLAG_GCC_INTEL_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/flags_MinGW.mk b/WCudaMSE/BUILDER/makefile/private/cpp/flags_MinGW.mk new file mode 100755 index 0000000..ab73c30 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/flags_MinGW.mk @@ -0,0 +1,150 @@ +# Version : 0.0.3 +# Date : 02.02.2012 +# Author : Cedric.Bilat@he-arc.ch +# +# See : OptionCompilateur.txt +# MakeFileNotice.txt +# +# Hyp : Application that must be in path + +ifndef __CPP_FLAG_MINGW_MK__ +__CPP_FLAG_MINGW_MK__=true + +###################### +# Variables # +###################### + +#Compilateur ,Archiveur (static lib) +CXX:=g++ +AR:=ar + +############# +# Extension # +############# + +EXTENSION_OBJ:=obj# +EXTENSION_LIB:=a# +EXTENSION_DLL:=dll# +EXTENSION_EXE:=exe# +# Note enstension sans le . + +############# +#Compilateur# +############# + +SYS_LIBRARY_FILES:=#minimum rien +OPTION_SEPARATOR:=-# +LIB_FLAG_SEPARATOR:=l# +LIB_PATH_SEPARATOR:=L# +HEADER_OPTION:=I#attention end with space! +OUT_FILE_COMPILE:=-o #attention end with space! +OUT_FILE_LINK:=-o #attention end with space! +LINK_TAG:=#rien +LINK_FLAG_DLL:=-shared #with espace ! + +LIB_PREFIXE:=lib#rien + +VERSION_CXX:=$(CXX) --version +CXX_HELP:=$(CXX) --help + +########## +#ARCHIVEUR# +########### + +AR_OUT_FLAG:=-r #with espace important ! + +############# +# SET FILES # +############# + +# Input : +# SRC_PATH_ALL +# Output : +# All files libXXX.a, libXXX.dll and XXX.dll, without XXX.a ! +# Objectifs : +# Les .a prefix� par lib (libXXX.a) seront donnee a GCC sous la forme -lXXX) +# Alors que les YYY.a devront etre donner a GCC sous la forme YYY.a +SRC_A_FILES_STANDART:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/$(LIB_PREFIXE)*.$(EXTENSION_LIB))) +SRC_A_FILES_STANDART+=$(SRC_DLL_FILES) + +# Libraries # +# Input : +# SRC_PATH_ALL +# Output : +# All files XXX.a without libXXX.a, libXXX.dll and XXX.dll ! +# Objectifs : +# Les .a prefix� par lib (libXXX.a) seront donnee a GCC sous la forme -lXXX +# Alors que les YYY.a devront etre donner a GCC sous la forme YYY.a avec la path complet (par exemple ../libs/YYY.a). +SRC_A_FILES_NOT_STANDART:=$(foreach dir,$(SRC_PATH_ALL),$(filter-out $(dir)/$(LIB_PREFIXE)%.$(EXTENSION_LIB),$(wildcard $(dir)/*.$(EXTENSION_LIB)))) + +################# +# PREPARE FLAGS # +################# + +# dans api now +#Ajoute automatiquement gomp si on use OpenMP +#ifneq (, $(findstring openmp,$(CXXFLAGS)))#findstring return vide si openmp pas trouver! +# ADD_LIBRARY_FILES+=gomp +#endif + +#only fileName (./libs/libXXX.a ./libs/YYY.dll -> lixXXX.a YYY.dll) +LIB_FLAG:=$(notdir $(SRC_A_FILES_STANDART)) + +#removing prefix lib (libXXX.a libYYY.a libZZZ.dll -> XXX.a YYY.a ZZZ.dll) +LIB_FLAG:=$(subst $(LIB_PREFIXE),,$(LIB_FLAG))#remplace lib par rien + +#Delete extension .a (XXX.a YYY.a -> XXX YYY) +LIB_FLAG:=$(LIB_FLAG:.$(EXTENSION_LIB)=) + +#Delete extension .dll (XXX.dll YYY.dll -> XXX YYY) +LIB_FLAG:=$(LIB_FLAG:.$(EXTENSION_DLL)=) + +#ADDING custom LIB and System LIB +LIB_FLAG+= $(ADD_LIBRARY_FILES) $(SYS_LIBRARY_FILES) + +# Input : +# list lib to delete example (AAA ZZZ) +# +# before : LIB_FLAG (XXX YYY ZZZ) +# after : LIB_FLAG (XXX YYY) without ZZZ +LIB_FLAG:=$(filter-out $(EXCLUDE_LIBRARY_FILES),$(LIB_FLAG)) + +#Adding Lib FLAG separator -l (XXX YYY -> -lXXX -lYYY) +LIB_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_FLAG_SEPARATOR),$(LIB_FLAG)) + +#Adding Lib path FLAG separator -L (../AAA ./BBB -> -L../AAA _L./BBB) +#LIB_PATH_FLAG:=${SRC_PATH_ALL}#old +#LIB_PATH_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_PATH_SEPARATOR),$(LIB_PATH_FLAG))#old +LIB_PATH:=$(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.a)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist +override LIB_PATH:=$(call uniq,${LIB_PATH}) +#${info "LIB_PATH= "${LIB_PATH}} +LIB_PATH_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_PATH_SEPARATOR),$(LIB_PATH)) + +#Adding Include FLAG separator -I (../header ../header/api -> -I../header -I../header/api) +#HEADER_FLAG:= $(addprefix $(OPTION_SEPARATOR)$(HEADER_OPTION),$(HEADER_PATH_ALL))#old +HEADER_FLAG:= $(addprefix $(OPTION_SEPARATOR)$(HEADER_OPTION),$(INC_PATH)) + +ifeq ($(TARGET_MODE),SHARED_LIB) + GENERATEUR_DLL_DEF:= -Wl,--output-def,$(TARGET_BIN_PATH)/${LIB_PREFIXE}$(TARGET_NAME)_$(ARCHI_32_64).def + GENERATEUR_DLL_LIB_IMPORTATION:= -Wl,--out-implib,$(TARGET_BIN_PATH)/${LIB_PREFIXE}$(TARGET_NAME)_$(ARCHI_32_64).dll.$(EXTENSION_LIB) + LDFLAGS+=$(GENERATEUR_DLL_LIB_IMPORTATION) $(GENERATEUR_DLL_DEF) + + # CXXFLAGS += -fPIC + + override CXXFLAGS := -fvisibility=hidden ${CXXFLAGS} +endif + +#Injection variable in .cpp code (VAR1 VAR2 -> -DVAR1 -DVAR2) +CODE_DEFINE_VARIABLES_D:= $(addprefix -D,$(CODE_DEFINE_VARIABLES)) + +#OUTPUTS +override LDFLAGS_AUX+= $(SRC_A_FILES_NOT_STANDART) +override CXXFLAGS += $(HEADER_FLAG) +override CXXFLAGS += $(CODE_DEFINE_VARIABLES_D) +override LDFLAGS += $(LINK_TAG) $(LIB_PATH_FLAG) $(LIB_FLAG) $(LDFLAGS_AUX) + +######### +# End # +######### + +endif#__CPP_FLAG_MINGW_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/flags_VisualIntel.mk b/WCudaMSE/BUILDER/makefile/private/cpp/flags_VisualIntel.mk new file mode 100755 index 0000000..8fa74b1 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/flags_VisualIntel.mk @@ -0,0 +1,109 @@ +## Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# +# See : OptionCompilateur.txt +# MakeFileNotice.txt +# +# Hyp : Application that must be in path + +ifndef __CPP_FLAG_VISUAL_INTEL_MK__ +__CPP_FLAG_VISUAL_INTEL_MK__=true + +###################### +# Variables # +###################### + +ifeq ($(COMPILATEUR),VISUAL) + #Compilateur , Archiveur (static lib) + CXX:=cl + AR:=lib +endif + +ifeq ($(COMPILATEUR),INTEL) + #Compilateur , Archiveur (static lib) + CXX:=icl + AR:=xilib +endif + +############# +# Extension # +############# + +EXTENSION_OBJ:=obj# +EXTENSION_LIB:=lib# +EXTENSION_DLL:=dll# +EXTENSION_EXE:=exe# +# Note enstension sans le . + +############# +#Compilateur# +############# + +OPTION_SEPARATOR:=/# +LIB_FLAG_SEPARATOR:=# +LIB_PATH_SEPARATOR:=/LIBPATH:# +HEADER_OPTION:=I# +OUT_FILE_COMPILE:=/Fo#attention, end without space +OUT_FILE_LINK:=/Fe#idem +LINK_TAG:=/link# +LINK_FLAG_DLL:=/DLL# +SYS_LIBRARY_FILES:=#minimum rien + +LIB_PREFIXE:=#rien + +VERSION_CXX:=$(CXX) +CXX_HELP:=$(CXX) /help + +########## +#ARCHIVEUR# +########### + +AR_OUT_FLAG:=/OUT:#Sans espace + +############# +# SET FILES # +############# + +SRC_LIB_FILES+=$(foreach dir,$(ADVANCED_SYS_LIBRARY),$(wildcard $(dir)/$(EXTENSION_LIB))) + +################# +# PREPARE FLAGS # +################# + + + +#only fileName (./libs/XXX.lib ./libs/YYY.lib -> XXX.lib YYY.lib) +LIB_FLAG:=$(notdir $(SRC_LIB_FILES)) +LIB_FLAG+=${DEFAULT_SYS_LIBRARY_FILES} + +#Custom exclude libs +LIB_FLAG:=$(filter-out $(EXCLUDE_LIBRARY_FILES),$(LIB_FLAG)) + +#ADDING User defined LIB +LIB_FLAG+=$(ADD_LIBRARY_FILES) + +#Adding Lib path FLAG separator /LIBPATH: (../AAA ./BBB -> -/LIBPATH:../AAA /LIBPATH:./BBB) +#LIB_PATH_FLAG:=${SRC_PATH_ALL}#old +#LIB_PATH_FLAG:=$(addprefix $(LIB_PATH_SEPARATOR),$(LIB_PATH_FLAG))#old +LIB_PATH:=$(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.lib)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist +override LIB_PATH:=$(call uniq,${LIB_PATH}) +#${info "LIB_PATH= "${LIB_PATH}} +LIB_PATH_FLAG:=$(addprefix $(LIB_PATH_SEPARATOR),$(LIB_PATH)) + + +#HEADER_FLAG:= $(addprefix $(OPTION_SEPARATOR)$(HEADER_OPTION),$(HEADER_PATH_ALL))#old +HEADER_FLAG:= $(addprefix $(OPTION_SEPARATOR)$(HEADER_OPTION),$(INC_PATH)) + +CODE_DEFINE_VARIABLES_D:= $(addprefix /D,$(CODE_DEFINE_VARIABLES)) + +override CXXFLAGS += /nologo +override CXXFLAGS += $(HEADER_FLAG) +override CXXFLAGS += $(CODE_DEFINE_VARIABLES_D) + +override LDFLAGS += $(LINK_TAG) $(LIB_PATH_FLAG) $(LIB_FLAG) $(LDFLAGS_AUX) /nologo + +######### +# End # +######### + +endif#__CPP_FLAG_VISUAL_INTEL_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/gcc.mk b/WCudaMSE/BUILDER/makefile/private/cpp/gcc.mk new file mode 100755 index 0000000..c2e9e90 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/gcc.mk @@ -0,0 +1,42 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les definitions de variables ci-dessous, mefiez-vous des espaces � la fin! +# (A2) Laisser espace apres le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __GCC_MK__ +__GCC_MK__=true + +############################################### +# GCC # +############################################### + +######################## +# bug # +######################## + +ARFLAGS=# pas= car valeur vaut rv avant sous windows ??? + +######################## +# pivate # +######################## + +COMPILATEUR:=g++ + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/commonLinux.mk + +include ${ROOT_MAKEFILE_PUBLIC_CPP}/gcc.mk +#include gcc.mk + +include $(ROOT_MAKEFILE_PRIVATE_CPP)/fileSet.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/flags_GccIntel.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/cpp.mk + +############################################### +# End # +############################################### + +endif#__GCC_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/gcc_arm.mk b/WCudaMSE/BUILDER/makefile/private/cpp/gcc_arm.mk new file mode 100755 index 0000000..cc6add9 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/gcc_arm.mk @@ -0,0 +1,61 @@ +# Version : 0.0.6 +# Date : 20.01.2014 +# Author : Cedric.Bilat@he-arc.ch + + +ifndef __GCC_ARM_MK__ +__GCC_ARM_MK__=true + +############################################## +# Variables # +############################################## + +######## +#arm # +######## + +ifeq (${ARCH},arm) + + ARM=true + + # rpath-link : begin + # + # Context: + # liba.so depend de libb.so + # on link que liba.so avec + # -la + # Probleme: + # linker pas content car trouve pas lib.so + # warning ou carrement refuse linker! + # + # Solution: + # Mettre le folder contenant libb.so dans -rpathlink + # + # link: + # http://ftp.gnu.org/pub/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html + # + ESPACE:=# + ESPACE+=#astice de guere + + RPATH_LINK:=$(strip ${RPATH_LINK})#replaces each internal sequence of one or more whitespace characters with a single space + RPATH_LINK:=$(subst ${ESPACE},:,${RPATH_LINK})# ESPACE -> : + + ifdef RPATH_LINK + RPATH_LINK:=${RPATH_LINK}:/opt/kayla/system/lib#ici pour garantir unicite,si manque warning only, pas error + RPATH_LINK:= -rpath-link=${RPATH_LINK}#-rpath-link pourrait apparaitre plusieurs fois, + override LDFLAGS:= ${RPATH_LINK} ${LDFLAGS} + override LDFLAGS:= -Xlinker ${LDFLAGS}#-Xlinker doit apparaitre a gauche de -rpath-link. exemple: -Xlinker -rpath-link= + endif + #rpath-link : end + + override CXXFLAGS+= ${ARM_CXXFLAGS} + +endif + + +############################################# +# END # +############################################# + +endif#__GCC_ARM_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/intelLinux.mk b/WCudaMSE/BUILDER/makefile/private/cpp/intelLinux.mk new file mode 100755 index 0000000..d081669 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/intelLinux.mk @@ -0,0 +1,43 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __INTEL_LINUX_MK__ +__INTEL_LINUX_MK__=true + +############################################### +# Intel Linux # +############################################### + +######################## +# bug # +######################## + +ARFLAGS=# pas= car valeur vaut rv avant sous windows ??? + +######################## +# pivate # +######################## + +COMPILATEUR:=INTEL + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/commonLinux.mk + +include ${ROOT_MAKEFILE_PUBLIC_CPP}/intelLinux.mk +-include intelLinux.mk#optionel, dans path courant du project + +include $(ROOT_MAKEFILE_PRIVATE_CPP)/fileSet.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/flags_GccIntel.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/cpp.mk + +############################################### +# End # +############################################### + +endif#__INTEL_LINUX_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/intelWin.mk b/WCudaMSE/BUILDER/makefile/private/cpp/intelWin.mk new file mode 100755 index 0000000..3f1fe42 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/intelWin.mk @@ -0,0 +1,43 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + + +ifndef __INTEL_WIN_MK__ +__INTEL_WIN_MK__=true + +############################################### +# Intel Win # +############################################### + +######################## +# bug # +######################## + +ARFLAGS=# pas= car valeur vaut rv avant sous windows ??? + +######################## +# pivate # +######################## + +COMPILATEUR:=INTEL + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/commonWin.mk + +include ${ROOT_MAKEFILE_PUBLIC_CPP}/intelWin.mk +-include intelWin.mk#optionel, dans path courant du project + +include $(ROOT_MAKEFILE_PRIVATE_CPP)/fileSet.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/flags_VisualIntel.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/cpp.mk + +############################################### +# End # +############################################### + +endif#__INTEL_WIN_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/mingw.mk b/WCudaMSE/BUILDER/makefile/private/cpp/mingw.mk new file mode 100755 index 0000000..7c0e0f8 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/mingw.mk @@ -0,0 +1,43 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __MINGW_MK__ +__MINGW_MK__=true + +############################################### +# MinGW # +############################################### + +######################## +# bug # +######################## + +ARFLAGS=# pas= car valeur vaut rv avant sous windows ??? + +######################## +# pivate # +######################## + +COMPILATEUR:=MINGW + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/commonWin.mk + +include ${ROOT_MAKEFILE_PUBLIC_CPP}/mingw.mk +-include mingw.mk#optionel, dans path courant du project + +include $(ROOT_MAKEFILE_PRIVATE_CPP)/fileSet.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/flags_MinGW.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/cpp.mk + +############################################### +# End # +############################################### + +endif#__MINGW_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/optimisation.mk b/WCudaMSE/BUILDER/makefile/private/cpp/optimisation.mk new file mode 100755 index 0000000..79a07b0 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/optimisation.mk @@ -0,0 +1,34 @@ +# Version : 0.0.6 +# Date : 20.01.2014 +# Author : Cedric.Bilat@he-arc.ch + +ifndef __OPTIMISATION_MK__ +__OPTIMISATION_MK__=true + + +############################################## +# Optimisation # +############################################## + +ifneq (${ARCH},arm) + + ifneq (${DEBUG},true) + override CXXFLAGS+= ${CXX_OPTIMISATION} + override CXXFLAGS+= ${X86_CXX_OPTIMISATION} + else#debug + #todo + endif + +else #ARM + ifneq (${DEBUG},true) + override CXXFLAGS+= ${CXX_OPTIMISATION} + else#debug + #todo + endif +endif + +############################################# +# END # +############################################# + +endif#__OPTIMISATION_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/visual.mk b/WCudaMSE/BUILDER/makefile/private/cpp/visual.mk new file mode 100755 index 0000000..c12700b --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/visual.mk @@ -0,0 +1,43 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __VISUAL_MK__ +__VISUAL_MK__=true + +############################################### +# Visual # +############################################### + +######################## +# bug # +######################## + +ARFLAGS=# pas= car valeur vaut rv avant sous windows ??? + +######################## +# pivate # +######################## + +COMPILATEUR:=VISUAL + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/commonWin.mk + +include ${ROOT_MAKEFILE_PUBLIC_CPP}/visual.mk +-include visual.mk#optionel, dans path courant du project + + +include $(ROOT_MAKEFILE_PRIVATE_CPP)/fileSet.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/flags_VisualIntel.mk +include $(ROOT_MAKEFILE_PRIVATE_CPP)/cpp.mk + +############################################### +# End # +############################################### + +endif#__VISUAL_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/cuda/cudaGCC.mk b/WCudaMSE/BUILDER/makefile/private/cuda/cudaGCC.mk new file mode 100755 index 0000000..05d41b3 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cuda/cudaGCC.mk @@ -0,0 +1,34 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __CUDA_GCC_MK__ +__CUDA_GCC_MK__=true + +############################################### +# Cuda GCC Linux # +############################################### + +######################## +# pivate # +######################## + +COMPILATEUR:=g++ + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/commonLinux.mk + +include ${ROOT_MAKEFILE_PUBLIC_CUDA}/cudaGCC.mk +#include cudaGCC.mk + +include ${ROOT_MAKEFILE_PRIVATE_CUDA}/makeCudaGCC.mk + +############################################### +# End # +############################################### + +endif#__CUDA_GCC_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/cuda/cudaGCC_arm.mk b/WCudaMSE/BUILDER/makefile/private/cuda/cudaGCC_arm.mk new file mode 100755 index 0000000..121425d --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cuda/cudaGCC_arm.mk @@ -0,0 +1,161 @@ +# Version : 0.0.6 +# Date : 20.01.2014 +# Author : Cedric.Bilat@he-arc.ch + +ifndef __CUDA_GCC_ARM_MK__ +__CUDA_GCC_ARM_MK__=true + +############################################## +# Variables # +############################################## + +######## +#arm # +######## + +ifeq (${ARCH},arm) + + ARM=true + + #rpath-link : begin + # + # Context: + # liba.so depend de libb.so + # on link que liba.so avec + # -la + # Probleme: + # linker pas content car trouve pas lib.so + # warning ou carrement refuse linker! + # + # Solution: + # Mettre le folder contenant libb.so dans -rpathlink + # + # link: + # http://ftp.gnu.org/pub/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html + # + ESPACE:=# + ESPACE+=#astuce de guere + + RPATH_LINK:=$(strip ${RPATH_LINK})#replaces each internal sequence of one or more whitespace characters with a single space + RPATH_LINK:=$(subst ${ESPACE},:,${RPATH_LINK})# ESPACE -> : + + ifdef RPATH_LINK + RPATH_LINK:=${RPATH_LINK}:/opt/kayla/system/lib#ici pour garantir unicite, si manque warning only, pas error + RPATH_LINK:= -rpath-link=${RPATH_LINK}#-rpath-link pourrait apparaitre plusieurs fois + override CXXLDFLAGS:= ${RPATH_LINK} ${CXXLDFLAGS} + endif + #rpath-link : end + + override ARMFLAGS:= -ccbin g++ARM ${ARMFLAGS} + override ARMFLAGS:= -m32 ${ARMFLAGS} + override ARMFLAGS:= -target-cpu-arch ARM ${ARMFLAGS} + + override NVCCFLAGS:= ${ARMFLAGS} ${NVCCFLAGS} + override NVCCLDFLAGS:= ${ARMFLAGS} ${NVCCLDFLAGS} + + override NVCCFLAGS_EXCLUDE+= -m64# + + override CXXFLAGS+= ${ARM_CXXFLAGS} + +else + + ifeq (${DEBUG},false) + override CXXFLAGS+= ${X86_CXX_OPTIMISATION} + endif + +endif + +ifeq (${DEBUG},false) + override CXXFLAGS+= ${CXX_OPTIMISATION} +endif + +##################### +# Target # +##################### + +KAYLA_IP=157.26.103.143 +JETSON_IP=157.26.100.60 + +KAYLA_USER=ubuntu +JETSON_USER=ubuntu + +KAYLA_BIN=/home/ubuntu/bin +JETSON_BIN=/home/ubuntu/bin + +######## +# Copy # +######## + +.PHONY: toKayla +toKayla: + @echo "" + @echo "[CBI] -> Copy to Kayla ${KAYLA_IP}: "$(TARGET_DEPLOY) + @echo scp $(TARGET_DEPLOY) ${KAYLA_USER}@${KAYLA_IP}:${KAYLA_BIN} + @scp $(TARGET_DEPLOY) ${KAYLA_USER}@${KAYLA_IP}:${KAYLA_BIN} + @echo "[CBI] -> ..." + @echo "[CBI] -> Sucess!" + @echo "" + +.PHONY: toJetson +toJetson: + @echo "" + @echo "[CBI] -> Copy to Jetson ${JETSON_IP}: "$(TARGET_DEPLOY) + @echo scp $(TARGET_DEPLOY) ${JETSON_USER}@${JETSON_IP}:${JETSON_BIN} + @scp $(TARGET_DEPLOY) ${JETSON_USER}@${JETSON_IP}:${JETSON_BIN} + @echo "[CBI] -> ..." + @echo "[CBI] -> Sucess!" + @echo "" + +######## +# execute # +######## + +.PHONY: runKayla +runKayla: + @echo "" + @echo "[CBI] -> Run on Kayla: $(TARGET_NAME).run" + @echo "" + @echo "[CBI] -> ssh -X ${KAYLA_USER}@${KAYLA_IP} cbirt ${KAYLA_BIN}/$(TARGET_NAME).run" + @echo "" + @ssh ${KAYLA_USER}@${KAYLA_IP} cbirt ${KAYLA_BIN}/$(TARGET_NAME).run + @echo "" + +.PHONY: runKaylaGL +runKaylaGL: + @echo "" + @echo "[CBI] -> Run on Kayla [GL]: $(TARGET_NAME).run" + @echo "" + @echo "[CBI] -> ssh -X ${KAYLA_USER}@${KAYLA_IP} cbirt ${KAYLA_BIN}/$(TARGET_NAME).run" + @echo "" + @ssh -X ${KAYLA_USER}@${KAYLA_IP} cbirt ${KAYLA_BIN}/$(TARGET_NAME).run + @echo "" + #ko avec GL error while loading shared libraries: libcudart.so.5.0 why? + + +.PHONY: runJetson +runJetson: + @echo "" + @echo "[CBI] -> Run on Jetson: $(TARGET_NAME).run" + @echo "" + @echo "[CBI] -> ssh -X ${JETSON_USER}@${JETSON_IP} cbirt ${JETSON_BIN}/$(TARGET_NAME).run" + @echo "" + @ssh ${JETSON_USER}@${JETSON_IP} cbirt ${JETSON_BIN}/$(TARGET_NAME).run + @echo "" + +.PHONY: runJetsonGL +runJetsonGL: + @echo "" + @echo "[CBI] -> Run on Jetson [GL]: $(TARGET_NAME).run" + @echo "" + @echo "[CBI] -> ssh -X ${JETSON_USER}@${JETSON_IP} cbirt ${JETSON_BIN}/$(TARGET_NAME).run" + @echo "" + @ssh -X ${JETSON_USER}@${JETSON_IP} cbirt ${JETSON_BIN}/$(TARGET_NAME).run + @echo "" + #ko avec GL error while loading shared libraries: libcudart.so.5.0 why? + +############################################# +# END # +############################################# + +endif#__OCUDA_GCC_ARM_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/cuda/cudaVisual.mk b/WCudaMSE/BUILDER/makefile/private/cuda/cudaVisual.mk new file mode 100755 index 0000000..e2781fc --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cuda/cudaVisual.mk @@ -0,0 +1,34 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __CUDA_VISUAL_MK__ +__CUDA_VISUAL_MK__=true + +############################################### +# Cuda Visual Win # +############################################### + +######################## +# pivate # +######################## + +COMPILATEUR:=VISUAL + +include ${ROOT_MAKEFILE_PRIVATE_COMMON}/commonWin.mk + +include ${ROOT_MAKEFILE_PUBLIC_CUDA}/cudaVisual.mk +#include cudaVisual.mk + +include ${ROOT_MAKEFILE_PRIVATE_CUDA}/makeCudaVisual.mk + +############################################### +# End # +############################################### + +endif#__CUDA_VISUAL_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/cuda/makeCudaGCC.mk b/WCudaMSE/BUILDER/makefile/private/cuda/makeCudaGCC.mk new file mode 100755 index 0000000..76db375 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cuda/makeCudaGCC.mk @@ -0,0 +1,795 @@ +# Version : 0.0.8 +# Date : 01.08.2014 +# Author : Cedric.Bilat@he-arc.ch +# +# See : OptionCompilateur.txt +# +# Hyp : Application that must be in path +# nvcc +# make +# g++ +# gcc +# + + +ifndef __MAKE_CUDA_GCC_MK__ +__MAKE_CUDA_GCC_MK__=true + +############################################## +# Variables # +############################################## + +#SHELL=/bin/bash + +machine:=${shell uname -m} +ifeq (${machine},x86_64) + ARCHI_32_64:=64 +else + ARCHI_32_64:=32 +endif + +######## +# Path # +######## + +SRC_ROOT:=src +TARGET_OBJ:=${TARGET_PATH}/obj +TARGET_BIN:=${TARGET_PATH}/bin +TARGET_CUBIN:=${TARGET_PATH}/cubin + +#synonime ameliorer +TARGET_BIN_PATH:=${TARGET_BIN} +TARGET_OBJ_PATH:=${TARGET_OBJ} + +#TARGET_DEPLOY_PATH_BIN=${TARGET_DEPLOY_PATH}/bin +TARGET_DEPLOY_PATH_DOC=${TARGET_DEPLOY_PATH}/doc + +######## +# cpp # +######## + +CXX=g++ + +######## +# Cuda # +######## + +NVCC := nvcc +PTXAS_FLAGS := -fastimul +OBJ_EXTENSION:=o +OPTION_SEPARATOR:=-#attention, end without space +LINK_FLAG_DLL:=-shared #with space ! pour nvcc +EXTENSION_LIB:=.a +EXTENSION_DLL:=.so +LIB_PREFIXE:=lib# example : libXXX.a +LIB_FLAG_SEPARATOR:=l#attention end without space! +LIB_PATH_SEPARATOR:=L#attention end with space! + +######## +#32/64 # +######## + +#ifeq ($(ARCHI_32_64),64) + #override NVCCFLAGS+= -m64#default -m64! #dans public + #override CXXLDFLAGS+=/MACHINE:X64 #Deprecated! +#endif + +ifneq ($(ARCH),arm) + TARGET_NAME:=$(TARGET_NAME)_$(ARCHI_32_64) +else + TARGET_NAME:=$(TARGET_NAME)_ARM +endif + +########### +#Extension# +########### + +EXTENSION_OBJ:=o# +EXTENSION_LIB:=a# +EXTENSION_DLL:=so# +EXTENSION_EXE:=run# +# Note enstension sans le . + +########## +# TARGET # +########## + +#deja ci-dessus +#LIB_PREFIXE:=lib + +TARGET_NAME_EXE:=$(TARGET_NAME).${EXTENSION_EXE} +TARGET_NAME_DLL:=${LIB_PREFIXE}$(TARGET_NAME).$(EXTENSION_DLL) +TARGET_NAME_LIB:=${LIB_PREFIXE}$(TARGET_NAME).${EXTENSION_LIB} + +TARGET_EXE:=${TARGET_BIN_PATH}/$(TARGET_NAME_EXE) +TARGET_DLL:=${TARGET_BIN_PATH}/$(TARGET_NAME_DLL) +TARGET_LIB:=${TARGET_BIN_PATH}/$(TARGET_NAME_LIB) +#TARGET_OBJ:=$(addprefix $(TARGET_OBJ_PATH)/,$(notdir $(OBJ_FILES))) + +#Selection de la target en fonction TARGET_MODE +ifeq ($(TARGET_MODE),EXE) + TARGET:=${TARGET_EXE} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_EXE) +endif + +ifeq ($(TARGET_MODE),SHARED_LIB) + TARGET:=${TARGET_DLL} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_DLL) + + override NVCCLDFLAGS += $(LINK_FLAG_DLL) + + #Attention ARM : doit venir juste après le -Xcompiler! + override CXXFLAGS := -fPIC -fvisibility=hidden ${CXXFLAGS} + + +endif + +ifeq ($(TARGET_MODE),STATIC_LIB) + TARGET:=${TARGET_LIB} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_LIB) +endif + +#old + +#ifeq ($(TARGET_MODE),SHARED_LIB) +# override NVCCLDFLAGS+= $(LINK_FLAG_DLL) +# override CXXFLAGS += -fPIC -fvisibility=hidden +# TARGET_NAME_FULL=lib$(TARGET_NAME).so +#endif +# +#ifeq ($(TARGET_MODE),EXE) +# TARGET_NAME_FULL=$(TARGET_NAME).run +#endif + +#TARGET:=$(TARGET_BIN)/$(TARGET_NAME_FULL) +#TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_FULL) + +########## +#ARCHIVEUR# +########### + +ifneq ($(ARCH),arm) + AR:=ar +else + AR:=arARM +endif + +ARFLAGS=# pas= car valeur vaut rv avant sous windows ??? +AR_OUT_FLAG:=-r #with espace important ! + +############ +# Params # +############ + +#ameliorer deja avant mais sans . +EXTENSION_LIB:=.a +EXTENSION_DLL:=.so +#LIB_PREFIX:=#pas de prefixe + +############ +#Set files # +############ + +SRC_PATH:=$(shell find $(SRC_ROOT) -type d) + +ifdef SRC_AUX + SRC_PATH_AUX:=$(shell find $(SRC_AUX) -type d) +else + SRC_PATH_AUX:= +endif + +SRC_PATH_ALL:=$(SRC_PATH) $(SRC_PATH_AUX) +SRC_SO_FILES:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.so)) + +# Libraries au format standard +# +# Input : +# SRC_PATH_ALL +# Output : +# All files +# libXXX.a +# libXXX.so +# XXX.so +# Excepted +# XXX.a +# Goals : +# Les .a prefixe par lib (example libXXX.a) seront donnee a GCC sous la forme -lXXX) +# Alors que les YYY.a devront etre donner a GCC sous la forme YYY.a +# Convention +# Sous linux les .a standards sont libXXX.a +# Les YYY.a sont non standards. +# +SRC_A_FILES_STANDART:=$(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/$(LIB_PREFIXE)*$(EXTENSION_LIB))) +SRC_A_FILES_STANDART+=$(SRC_SO_FILES) + +# Libraries au format non standard +# +# Input : +# SRC_PATH_ALL +# Output : +# All files XXX.a (without libXXX.a) +# Objectifs : +# Les .a prefixer par lib (libXXX.a) seront donnee a GCC sous la forme -lXXX +# Alors que les YYY.a devront etre donner a GCC sous la forme YYY.a avec la path complet (par exemple ../libs/YYY.a) +# +SRC_A_FILES_NOT_STANDARD:=$(foreach dir,$(SRC_PATH_ALL),$(filter-out $(dir)/$(LIB_PREFIXE)%$(EXTENSION_LIB),$(wildcard $(dir)/*$(EXTENSION_LIB)))) + +SRC_CPP_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cpp)) +SRC_C_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.c)) +SRC_CU_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cu)) + +OBJ_FILES_CPP:= $(SRC_CPP_FILES:.cpp=.$(OBJ_EXTENSION)) +OBJ_FILES_C:= $(SRC_C_FILES:.c=.$(OBJ_EXTENSION)) +OBJ_FILES:= ${OBJ_FILES_CPP} ${OBJ_FILES_C} +OBJ_FILES:= $(addprefix $(TARGET_OBJ)/,$(notdir $(OBJ_FILES))) + +CU_FILES := $(SRC_CU_FILES:.cu=.$(OBJ_EXTENSION)) +CU_FILES := $(addprefix $(TARGET_OBJ)/,$(notdir $(CU_FILES))) + +OBJ_CU_FILES:=$(OBJ_FILES) $(CU_FILES) + +################# +# PREPARE FLAGS # +################# + +#only fileName (./libs/libXXX.a ./libs/YYY.so -> lixXXX.a YYY.so) +LIB_FLAG:=$(notdir $(SRC_A_FILES_STANDART)) + +#removing prefix lib (libXXX.a libYYY.a libZZZ.so -> XXX.a YYY.a ZZZ.so) +LIB_FLAG:=$(subst $(LIB_PREFIXE),,$(LIB_FLAG))#remplace lib par rien + +#Delete extension .a (XXX YYY) +LIB_FLAG:=$(LIB_FLAG:$(EXTENSION_LIB)=) + +#Delete extension .so (AAA.so BBB.so -> AAA BBB) +LIB_FLAG:=$(LIB_FLAG:$(EXTENSION_DLL)=) + +#ADDING user specified lib (GL GLUT gomp ...) +LIB_FLAG+=$(ADD_LIBRARY_FILES) + +# Input : +# list lib to delete example (AAA ZZZ) +# +# before : LIB_FLAG (XXX YYY ZZZ) +# after : LIB_FLAG (XXX YYY) without ZZZ +LIB_FLAG:=$(filter-out $(EXCLUDE_LIBRARY_FILES),$(LIB_FLAG)) + +#Adding Lib FLAG separator (XXX YYY -> -lXXX -lYYY) +LIB_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_FLAG_SEPARATOR),$(LIB_FLAG)) +LIB_FLAG+=$(CUDA_LIB_FILES_l) $(CULA_LIB_FILES_l) + +#Adding Lib path FLAG separator -L (../AAA ./BBB -> -L../AAA _L./BBB) +LIB_PATH:=$(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.so)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist +override LIB_PATH:=$(call uniq,${LIB_PATH}) +#LIB_PATH_FLAG+=$(CUDA_LIB_L) $(CULA_LIB_L)#old +#LIB_PATH_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_PATH_SEPARATOR),$(SRC_PATH_ALL))#old +LIB_PATH_FLAG:=$(addprefix $(OPTION_SEPARATOR)$(LIB_PATH_SEPARATOR),$(LIB_PATH)) + +#Adding Include FLAG separator +override INC_PATH:=${INC_PATH} $(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.h)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist +override INC_PATH:=$(call uniq,${INC_PATH}) +#${info "INC_PATH= "${INC_PATH}}#print immediately +#SRC_HEADER_I := $(addprefix $(OPTION_SEPARATOR)I,$(SRC_PATH_ALL))#old +SRC_HEADER_I := $(addprefix $(OPTION_SEPARATOR)I,$(INC_PATH)) +#ALL_HEADERS_I:= $(SRC_HEADER_I)#old + + +#Injection variable in .cpp code (VAR1 VAR2 -> -DVAR1 -DVAR2) +CODE_DEFINE_VARIABLES_D:= $(addprefix -D,$(CODE_DEFINE_VARIABLES)) + +#override NVCCFLAGS += $(ALL_HEADERS_I)#old +override NVCCFLAGS += $(SRC_HEADER_I) +override NVCCLDFLAGS += $(LIB_PATH_FLAG) $(LIB_FLAG) $(SRC_A_FILES_NOT_STANDARD) +override CXXFLAGS += $(CODE_DEFINE_VARIABLES_D) + +########## +# securite # +########## + +#Directory search path (use implicit in rules) +VPATH := $(SRC_PATH_ALL) + +########## +# runtime # +########## + +space:= #ne suufit pas ajoutre espaca, mais += le fait! +space+=# + +ifeq (${OS},Win) + separateurPath:=;# +else + separateurPath:=:# +endif + +API_BIN_FORMATTER:=$(subst ${space},${separateurPath},${API_BIN}) + +ifeq (${OS},Win) + override PATH:=${PATH}${separateurPath}${API_BIN_FORMATTER} + export ${PATH} +else + override LD_LIBRARY_PATH:=${LD_LIBRARY_PATH}${separateurPath}${API_BIN_FORMATTER} + export ${LD_LIBRARY_PATH}#fixme semble pas marcher +endif + +######## +#Optimisation # +######## + +include ${ROOT_MAKEFILE_PRIVATE_CUDA}/optimisation.mk + +######## +#arm # +######## + +include ${ROOT_MAKEFILE_PRIVATE_CUDA}/cudaGCC_arm.mk + +########## +# exclude # +########## + +override CXXFLAGS:=$(filter-out $(CXXFLAGS_EXCLUDE),$(CXXFLAGS)) +override NVCCFLAGS:=$(filter-out $(NVCCFLAGS_EXCLUDE),$(NVCCFLAGS)) + +#https://www.gnu.org/software/make/manual/make.html#Functions + + +########## +# unicitye # +########## + +UNICITY=true + +ifdef UNICITY + + override CXXFLAGS:=$(call uniq,${CXXFLAGS}) + override CXXLDFLAGS:=$(call uniq,${CXXLDFLAGS}) + #override NVCCFLAGS:=$(call uniq,${NVCCFLAGS}) pas possible car enleve -gencode + override NVCCLDFLAGS:=$(call uniq,${NVCCLDFLAGS}) + override ARFLAGS:=$(call uniq,${ARFLAGS}) + #override AR_OUT_FLAG:=$(call uniq,${AR_OUT_FLAG}) + + #debug +#${info "CXXFLAGS= "${CXXFLAGS}}#print immediately +#${info "CXXLDFLAGS"= ${CXXLDFLAGS}}#print immediatel +#${info "NVCCLDFLAGS= "${NVCCLDFLAGS}}#print immediatel +#${info "NVCCFLAGS= "${NVCCFLAGS}}#print immediatel +#${info "ARFLAGS= "${ARFLAGS}}#print immediatel +#${info "AR_OUT_FLAG= "${AR_OUT_FLAG}}#print immediatel + +endif#UNICITY + +########## +# remove space # +########## + +#let a minimum of one space +REMOVE_SPACE=true + +ifdef REMOVE_SPACE + + override CXXFLAGS:=$(strip ${CXXFLAGS}) + override CXXLDFLAGS:=$(strip ${CXXLDFLAGS}) + override NVCCLDFLAGS:=$(strip ${NVCCLDFLAGS}) + override NVCCFLAGS:=$(strip ${NVCCFLAGS}) + override ARFLAGS:=$(strip ${ARFLAGS}) + #override AR_OUT_FLAG:=$(strip ${AR_OUT_FLAG})#pas pour gcc (enleve espace apres -r) + + #override CXXFLAGS:=$(subst $(space),,$(CXXFLAGS)) + +endif#REMOVE_SPACE + + +########## +# bug # +########## + +#Adding " " around CXXFLAGS and CXXLDFLAGS, otherwise we can't specifie more than one options ! +override CXXFLAGS:=" $(CXXFLAGS) " +override CXXLDFLAGS:=" $(CXXLDFLAGS) " + +########### +#chrono# +########### + +override TIME_START:=$(shell date +%T) +TIME_CURRENT=$(shell date +%T) +#TIME_DELTA:=$(shell echo $(TIME_CURRENT) - $(TIME_START) | bc) #marche pas sous win, a tester sous linux + +############################################## +# Rules # +############################################## + +TITLE:=$(TARGET_NAME) + +################ +#.o->.run # +################ + +$(TARGET) : $(OBJ_CU_FILES) +#@echo "$(NVCC) $(NVCCLDFLAGS) -Xlinker $(CXXLDFLAGS) $^ -o $(TARGET)" + @echo "" + @echo "[CBI] -> Linking to : "$(TARGET) + @echo "" + @echo "[CBI] -> Library Link :" + @echo "[CBI] ->" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,-l,$(NVCCLDFLAGS))) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,-l,$(CXXLDFLAGS))) + @echo "" + @$(NVCC) $(NVCCLDFLAGS) -Xlinker $(CXXLDFLAGS) $^ -o $(TARGET) + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] -> Location : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Compilateur : ${CXX}) && ${NVCC}" + @echo "[CBI] -> Task : End Compiling-Linking !" + @echo "[CBI] -> Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + +# -o =outfile +# tabulation obligatoire before @ + +################ +# .o->.lib # +################ + +${TARGET_LIB}:$(OBJ_CU_FILES) + @${AR} ${AR_OUT_FLAG}${TARGET_LIB} ${ARFLAGS} $^ + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] -> Location : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Compilateur : ${CXX}) && ${NVCC}" + @echo "[CBI] -> Task : End Compiling-Archive !" + @echo "[CBI] -> Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + +################ +# .cpp->.o # +################ + +$(TARGET_OBJ)/%.$(OBJ_EXTENSION) :%.cpp +#@echo "$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler $(CXXFLAGS) -c $< -o $@" +ifdef ARM + @echo "[${TITLE}] -> g++ARM compiling .cpp : "$< +else + @echo "[${TITLE}] -> ${CXX} compiling .cpp : "$< +endif + @$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler $(CXXFLAGS) -o $@ -c $< + +# -c = compilation +# -o =outfile + +################ +# .c->.o # +################ + +$(TARGET_OBJ)/%.$(OBJ_EXTENSION) :%.c +#@echo "$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler $(CXXFLAGS) -c $< -o $@" +ifdef ARM + @echo "[${TITLE}] -> g++ARM compiling .cpp : "$< +else + @echo "[${TITLE}] -> ${CXX} compiling .cpp : "$< +endif + @$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler $(CXXFLAGS) -o $@ -c $< + +# -c = compilation +# -o =outfile + +################ +# .cu->.o # +################ + +$(TARGET_OBJ)/%.$(OBJ_EXTENSION) :%.cu +#@echo "@$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler ""$(filter-out -std=c++0x,$(CXXFLAGS))"" -c $< -o $@" + @echo "[${TITLE}] -> ${NVCC} compiling .cu : "$< + @$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler ""$(filter-out -std=c++0x,$(CXXFLAGS))"" -c $< -o $@ +#cuda6: Il ne faut pas utiliser le flag �std=c++0x lorsque l�on compile un fichier .cu ! +#cuda6.5: devrait etre ok +##Adding "" "" around final CXXFLAGS, to keep one " " around final CXXFLAGS , in order to can specifie more than one options ! + +# -c = compilation +# -o =outfile + +############################################## +# TARGET # +############################################## + +#all: version help +#all: echoing $(TARGET) deploy +all: echoing init $(TARGET) deploy cleanTempCudaFile + @echo "" + @echo "[CBI] -> "$(TITLE)" : End ALL!" + +.PHONY: version +version: + @echo "" + @nvcc --version + @echo "" + @gcc --version + @echo "" + @g++ --version + @echo "" + @make --version + @echo "" + @bash --version + @echo "" + +.PHONY: help +help: + @echo "" + @nvcc --help + +########## +# deploy # +########## + +.PHONY: deploy +deploy: +ifdef TARGET_DEPLOY_PATH + @$(shell cp $(TARGET) $(TARGET_DEPLOY)) + @echo "" + @echo "[CBI] -> Deploying : "$(TARGET_DEPLOY) +endif + +########## +# run # +########## + +.PHONY: run +run: printRuntimeInfo + @echo "" + @echo "[CBI] -> Running : "$(TARGET) $(ARGS) + @echo "" + @echo "------------------------------------------------------------------------" + @echo "" + @echo "" + @$(TARGET) $(ARGS) + +.PHONY: runDeploy +runDeploy: printRuntimeInfo + @echo "" + @echo "[CBI] -> Running : "$(TARGET_DEPLOY) $(ARGS) + @echo "" + @echo "------------------------------------------------------------------------" + @echo "" + @echo "" + @$(TARGET_DEPLOY) $(ARGS) + +.PHONY: runGl +runGl: printRuntimeInfo + #gl is a wrapper of virtualgl + #gl is necessary to run opengl remotely with turbovnc + #OS : linux only + @echo "" + @echo "[CBI] -> Running remote-gl : "$(TARGET) $(ARGS) + @gl $(TARGET) $(ARGS) + +.PHONY: runGlDeploy +runGlDeploy: printRuntimeInfo + #gl is a wrapper of virtualgl + #gl is necessary to run opengl remotely with turbovnc + #OS : linux only! + @echo "" + @echo "[CBI] -> Running remote-gl : "$(TARGET_DEPLOY) $(ARGS) + @gl $(TARGET_DEPLOY) $(ARGS) + + +.PHONY: printRuntimeInfo +printRuntimeInfo: + @echo "[CBI] -> API BIN :" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh ${sort ${API_BIN}} + @echo "" + @echo "[CBI] -> ARGS :" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh ${sort ${ARGS}} + +########## +# depends # +########## + +.PHONY: dependenciesLinux +dependenciesLinux: printRuntimeInfo + @echo "" + @echo "[${TARGET}] depends from :" + @echo "" + @ldd -v ${TARGET_DEPLOY} + +########## +# contents # +########## + +.PHONY: contentsLinux +contentsLinux: + @echo "" +ifeq (${TARGET_MODE},STATIC_LIB) + @echo "[${TARGET_NAME}.${EXTENSION_LIB}] export :" + @echo "" + @ar -t ${TARGET_DEPLOY} +else ifeq (${TARGET_MODE},SHARED_LIB) + @echo "[${TARGET_NAME}.${EXTENSION_DLL}] export:" + @echo "" + @echo "[CBI] -> nm" + @echo "" + @nm -D --defined-only --extern--only ${TARGET_DEPLOY} + @echo "" + @echo "[CBI] -> readelf" + @echo "" + @readelf -s ${TARGET_DEPLOY} +endif + @echo "" + +########## +# init # +########## + +.PHONY: init +init: +#create folder heirerarchy TARGET_BIN_PATH iff don't exist +ifeq (,$(findstring $(TARGET_BIN),$(wildcard $(TARGET_BIN) ))) + @$(shell mkdir -p $(TARGET_BIN)) + @echo "[CBI] -> Create folder : "$(TARGET_BIN) +endif +#create folder heirerarchy TARGET_BIN_PATH iff don't exist +ifeq (,$(findstring $(TARGET_OBJ),$(wildcard $(TARGET_OBJ) ))) + @$(shell mkdir -p $(TARGET_OBJ)) + @echo "[CBI] -> Create folder : "$(TARGET_OBJ) +endif +#create folder heirerarchy TARGET_BIN_PATH iff don't exist +ifeq (,$(findstring $(TARGET_CUBIN),$(wildcard $(TARGET_CUBIN) ))) + @$(shell mkdir -p $(TARGET_CUBIN)) + @echo "[CBI] -> Create folder : "$(TARGET_CUBIN) +endif +ifeq (,$(findstring $(TARGET_DEPLOY_PATH_BIN),$(wildcard $(TARGET_DEPLOY_PATH_BIN) ))) + @$(shell mkdir -p $(TARGET_DEPLOY_PATH_BIN)) + @echo "[CBI] -> Create folder : "$(TARGET_DEPLOY_PATH_BIN) + @echo "" +endif + @echo "" + +########## +# doc # +########## + +include ${ROOT_MAKEFILE_PRIVATE_DOC}/doxyCPP.mk + +########## +# clean # +########## + +.PHONY: clean +clean: + @rm -f $(TARGET_OBJ)/*.o + @rm -f $(TARGET_OBJ)/*.obj + @rm -f $(TARGET_BIN)/*.exp + @rm -f $(TARGET_BIN)/*.lib + @rm -f $(TARGET) + @rm -f $(TARGET_DEPLOY) + @rm -f $(TARGET_CUBIN)/* + @rm -f $(TARGET_DOC_DEPLOY_FILE) + @rm -f -r $(TARGET_DOC_PATH) + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target : "$(TARGET_NAME) + @echo "[CBI] -> Task : DELETE" + @echo "[CBI]" + @echo "[CBI] -> Delete .obj : "$(TARGET_OBJ) + @echo "[CBI] -> Delete .bin : "$(TARGET_BIN) + @echo "[CBI] -> Delete .cubin : "$(TARGET_CUBIN) + @echo "[CBI] -> Delete doc : "$(TARGET_DOC_PATH) + @echo "[CBI]" + @echo "[CBI] -> Delete deploy : "$(TARGET_DEPLOY) + @echo "[CBI] -> Delete deploy doc : "$(TARGET_DOC_DEPLOY_FILE) + @echo "==================================================================================" + @echo "" + +.PHONY: cleanTempCudaFile +cleanTempCudaFile: + @rm -f ${TARGET_CUBIN}/*.c + @rm -f ${TARGET_CUBIN}/*.cpp + @rm -f ${TARGET_CUBIN}/*.gpu + @rm -f ${TARGET_CUBIN}/*.i + @rm -f ${TARGET_CUBIN}/*.ii + @rm -f ${TARGET_CUBIN}/*.hash + @rm -f ${TARGET_CUBIN}/*.ptx +#@echo "[CBI] -> Cleaning : Cuda temp files, excepted .cubin for JCuda" +#@echo "" + +#rm -r #serait recursif (dangereux!!) +#rm -f #pas d'erreur si file existe pas! + +########## +# echo # +########## + +.PHONY: echoing +echoing: + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] ->" + @echo "[CBI] -> Build : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Task : Compiling-Linking !" +#@echo "[CBI]->Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + @echo "[CBI] -> SRC AUX (Recursif) :" + @echo "[CBI] ->" +#@echo $(SRC_AUX) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(SRC_AUX) + @echo "" + @echo "[CBI] -> CXXFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(CXXFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(call not-containing,-I,$(CXXFLAGS)) #sort ko why + @echo "" + @echo "[CBI] -> CXXLDFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(CXXLDFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(call not-containing,-L, $(call not-containing,-l,$(CXXLDFLAGS))) #sort ko, why? + @echo "" + @echo "[CBI] -> NVCCFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(NVCCFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,-I,$(NVCCFLAGS))) + @echo "" + @echo "[CBI] -> NVCCLDFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(NVCCLDFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,-L, $(call not-containing,-l,$(NVCCLDFLAGS)))) + @echo "" + @echo "[CBI] -> INC_PATH (auto detect):" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(INC_PATH)) + @echo "" + @echo "" + @echo "[CBI] -> LIB_PATH (auto detect):" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(LIB_PATH)) + @echo "" + +############################################## +# HELP # +############################################## + +# target : dependencies +# +# $@ = name of the target +# $^ = all dependencie of a target +# $< =first (unique dependency of a target) (rm, compilation,linking) +# +# @ = diminue verbosit� commande +# +# Attention : tabulation obligatoire avant commande dans rule!! +# +# http://www.gnu.org/software/make/manual/ + +############################################# +# END # +############################################# + + +endif#__MAKE_CUDA_GCC_MK__ + + + diff --git a/WCudaMSE/BUILDER/makefile/private/cuda/makeCudaVisual.mk b/WCudaMSE/BUILDER/makefile/private/cuda/makeCudaVisual.mk new file mode 100755 index 0000000..d2127ee --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cuda/makeCudaVisual.mk @@ -0,0 +1,676 @@ +# Version : 0.0.8 +# Date : 01.08.2014 +# Author : Cedric.Bilat@he-arc.ch +# +# See : OptionCompilateur.txt +# +# Hyp : Application that must be in path +# nvcc +# mingw32-make +# cl +# +# : Environement Variables must be set +# +# ARCHI_32_64 : 32 or 64 + +ifndef __MAKE_VISUAL_CUDA_MK__ +__MAKE_VISUAL_CUDA_MK__=true + + +############################################## +# Variables # +############################################## + +######## +# Path # +######## + +SRC_ROOT :=src +TARGET_OBJ:=${TARGET_PATH}/obj +TARGET_BIN:= ${TARGET_PATH}/bin +TARGET_CUBIN:=${TARGET_PATH}/cubin + +#synonime ameliorer +TARGET_BIN_PATH:=${TARGET_BIN} +TARGET_OBJ_PATH:=${TARGET_OBJ} + +#TARGET_DEPLOY_PATH_BIN=${TARGET_DEPLOY_PATH}/bin +TARGET_DEPLOY_PATH_DOC=${TARGET_DEPLOY_PATH}/doc + +######## +# cpp # +######## + +CXX=cl + +######## +# Cuda # +######## + +NVCC := nvcc +PTXAS_FLAGS := -fastimul +OBJ_EXTENSION:=obj +OPTION_SEPARATOR:=-#attention, end without space +LINK_FLAG_DLL:=-shared#attention,end without space + +######## +#32/64 # +######## + +#plus necessaire +#ifeq ($(ARCHI_32_64),64) + # override NVCCFLAGS+= -m64#default -m64 #dans public + #override CXXLDFLAGS+= /MACHINE:X64 #Deprecated! #En plus posait probl�me de guillement (� la d�finition de CXXLDFLAGS) +#endif + +TARGET_NAME:=$(TARGET_NAME)_$(ARCHI_32_64) + + +############# +# Extension # +############# + +EXTENSION_OBJ:=obj# +EXTENSION_LIB:=lib# +EXTENSION_DLL:=dll# +EXTENSION_EXE:=exe# +# Note enstension sans le . + +########## +# TARGET # +########## + +LIB_PREFIXE:=#rien + +TARGET_NAME_EXE:=$(TARGET_NAME).${EXTENSION_EXE} +TARGET_NAME_DLL:=${LIB_PREFIXE}$(TARGET_NAME).$(EXTENSION_DLL) +TARGET_NAME_LIB:=${LIB_PREFIXE}$(TARGET_NAME).${EXTENSION_LIB} + +TARGET_EXE:=${TARGET_BIN_PATH}/$(TARGET_NAME_EXE) +TARGET_DLL:=${TARGET_BIN_PATH}/$(TARGET_NAME_DLL) +TARGET_LIB:=${TARGET_BIN_PATH}/$(TARGET_NAME_LIB) +#TARGET_OBJ:=$(addprefix $(TARGET_OBJ_PATH)/,$(notdir $(OBJ_FILES))) + +#Selection de la target en fonction TARGET_MODE +ifeq ($(TARGET_MODE),EXE) + TARGET:=${TARGET_EXE} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_EXE) +endif + +ifeq ($(TARGET_MODE),SHARED_LIB) + TARGET:=${TARGET_DLL} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_DLL) + + override NVCCLDFLAGS += $(LINK_FLAG_DLL) +endif + +ifeq ($(TARGET_MODE),STATIC_LIB) + TARGET:=${TARGET_LIB} + TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_LIB) +endif + +########### +#Extension# +########### + +#ifeq ($(TARGET_MODE),SHARED_LIB) +# override NVCCLDFLAGS+= $(LINK_FLAG_DLL) +# TARGET_NAME_FULL=$(TARGET_NAME).dll +#endif + +#ifeq ($(TARGET_MODE),EXE) +# TARGET_NAME_FULL=$(TARGET_NAME).exe +#endif + +#TARGET:=$(TARGET_BIN)/$(TARGET_NAME_FULL) +#TARGET_DEPLOY:=$(TARGET_DEPLOY_PATH_BIN)/$(TARGET_NAME_FULL) + +########## +#ARCHIVEUR# +########### + +AR:=lib +ARFLAGS=# pas= car valeur vaut rv avant sous windows ??? +AR_OUT_FLAG:=/OUT:#Sans espace + +############ +# Params # +############ + +#ameliorer deja avant mais sans . +EXTENSION_LIB:=.lib +EXTENSION_DLL:=.dll +#LIB_PREFIX:=#pas de prefixe + +############ +#Set files # +############ + +#Hyp : Shell sh +SRC_PATH:=$(shell find $(SRC_ROOT) -type d) +ifdef SRC_AUX + SRC_PATH_AUX:=$(shell find $(SRC_AUX) -type d) +else + SRC_PATH_AUX:= +endif + +SRC_PATH_ALL:=$(SRC_PATH) $(SRC_PATH_AUX) + +SRC_CPP_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cpp)) +SRC_C_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.c)) +SRC_CU_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.cu)) +SRC_LIB_FILES := $(foreach dir,$(SRC_PATH_ALL),$(wildcard $(dir)/*.lib)) $(ADD_LIBRARY_FILES) + +################# +# PREPARE FLAGS # +################# + +#ifneq (, $(findstring openmp,$(CXXFLAGS)))#findstring return vide si openmp pas trouver! +# ADD_LIBRARY_FILES+=libiomp5md.lib + +#Delete extension .lib +SRC_LIB_FILES:= $(SRC_LIB_FILES:$(EXTENSION_LIB)=) + +SRC_LIB_FILES_l:= $(addprefix $(OPTION_SEPARATOR)l,$(notdir $(SRC_LIB_FILES))) +#ALL_LIB_FILES_l:= $(CUDA_LIB_FILES_l) $(CULA_LIB_FILES_l) $(SRC_LIB_FILES_l) +ALL_LIB_FILES_l:= $(SRC_LIB_FILES_l) + +LIB_PATH:=$(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.lib)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist +override LIB_PATH:=$(call uniq,${LIB_PATH}) +#SRC_LIB_L:=$(addprefix $(OPTION_SEPARATOR)L,$(SRC_PATH_ALL))#old +SRC_LIB_L:=$(addprefix $(OPTION_SEPARATOR)L,$(LIB_PATH)) + +#ALL_LIB_L:=$(SRC_LIB_L) $(CUDA_LIB_L) $(CULA_LIB_L) +ALL_LIB_L:=$(SRC_LIB_L) + + +override INC_PATH:=${INC_PATH} $(foreach dir,$(SRC_PATH_ALL),$(dir $(wildcard $(dir)/*.h)))#dir extract directory of file, $(wildcard $(dir)/*.h)=> take file.h if exist +override INC_PATH:=$(call uniq,${INC_PATH}) +#${info "INC_PATH= "${INC_PATH}}#print immediately +#SRC_HEADER_I := $(addprefix $(OPTION_SEPARATOR)I,$(SRC_PATH_ALL))#old +SRC_HEADER_I := $(addprefix $(OPTION_SEPARATOR)I,$(INC_PATH)) +#ALL_HEADERS_I:= $(SRC_HEADER_I)#old + +OBJ_FILES_CPP:= $(SRC_CPP_FILES:.cpp=.$(OBJ_EXTENSION)) +OBJ_FILES_C:= $(SRC_C_FILES:.c=.$(OBJ_EXTENSION)) +OBJ_FILES:= ${OBJ_FILES_CPP} ${OBJ_FILES_C} +OBJ_FILES:= $(addprefix $(TARGET_OBJ)/,$(notdir $(OBJ_FILES))) + +CU_FILES := $(SRC_CU_FILES:.cu=.$(OBJ_EXTENSION)) +CU_FILES := $(addprefix $(TARGET_OBJ)/,$(notdir $(CU_FILES))) + +OBJ_CU_FILES:=$(OBJ_FILES) $(CU_FILES) + +#Injection variable in .cpp code (VAR1 VAR2 -> -DVAR1 -DVAR2) +CODE_DEFINE_VARIABLES_D:= $(addprefix -D,$(CODE_DEFINE_VARIABLES)) + +#override NVCCFLAGS += $(ALL_HEADERS_I)#old +override NVCCFLAGS += $(SRC_HEADER_I) +override NVCCLDFLAGS += $(ALL_LIB_L) $(ALL_LIB_FILES_l) +override CXXFLAGS += $(CODE_DEFINE_VARIABLES_D) + +ifneq (, $(findstring /MD,$(CXXFLAGS)))#findstring return vide si /MD pas trouver! + override CXXLDFLAGS+= /NODEFAULTLIB:LIBCMT +endif + +#Adding " " around CXXFLAGS and CXXLDFLAGS, otherwise we can't specifie more than one options ! +#override CXXFLAGS:=" $(CXXFLAGS) " +#override CXXLDFLAGS:=" $(CXXLDFLAGS) " +#plus tard apres optimisation + +########## +# securite # +########## + +#Directory search path(use implicit in rules) +VPATH := $(SRC_PATH_ALL) + +######## +#Optimisation # +######## + +include ${ROOT_MAKEFILE_PRIVATE_CUDA}/optimisation.mk + +########## +# exclude # +########## + +override NVCCFLAGS:=$(filter-out $(NVCCFLAGS_EXCLUDE),$(NVCCFLAGS)) +override CXXFLAGS:=$(filter-out $(CXXFLAGS_EXCLUDE),$(CXXFLAGS)) + +#https://www.gnu.org/software/make/manual/make.html#Functions + +########## +# runtime # +########## + +space:= #ne suufit pas ajoutre espaca, mais += le fait! +space+=# + +ifeq (${OS},Win) + separateurPath:=;# +else + separateurPath:=:# +endif + +API_BIN_FORMATTER:=$(subst ${space},${separateurPath},${API_BIN}) + +ifeq (${OS},Win) + override PATH:=${PATH}${separateurPath}${API_BIN_FORMATTER}# + export ${PATH}# +else + override LD_LIBRARY_PATH:=${LD_LIBRARY_PATH}${separateurPath}${API_BIN_FORMATTER}# + export ${LD_LIBRARY_PATH}#fixme semble pas marcher +endif + +########## +# unicitye # +########## + +UNICITY=true + +ifdef UNICITY + + override CXXFLAGS:=$(call uniq,${CXXFLAGS}) + override CXXLDFLAGS:=$(call uniq,${CXXLDFLAGS}) + #override NVCCFLAGS:=$(call uniq,${NVCCFLAGS}) pas possible car enleve -gencode + override NVCCLDFLAGS:=$(call uniq,${NVCCLDFLAGS}) + override ARFLAGS:=$(call uniq,${ARFLAGS}) + #override AR_OUT_FLAG:=$(call uniq,${AR_OUT_FLAG})#met espace apres /out, pas pour visual/intel + +#debug +#${info "CXXFLAGS= "${CXXFLAGS}}#print immediately +#${info "CXXLDFLAGS"= ${CXXLDFLAGS}}#print immediatel +#${info "NVCCFLAGS= "${NVCCFLAGS}}#print immediatel +#${info "NVCCLDFLAGS= "${NVCCLDFLAGS}}#print immediatel +#${info "ARFLAGS= "${ARFLAGS}}#print immediatel +#${info "AR_OUT_FLAG= "${AR_OUT_FLAG}}#print immediatel + +endif#UNICITY + +########## +# remove space # +########## + +#let a minimum of one space +REMOVE_SPACE=true + +ifdef REMOVE_SPACE + + override CXXFLAGS:=$(strip ${CXXFLAGS}) + override CXXLDFLAGS:=$(strip ${CXXLDFLAGS}) + override NVCCLDFLAGS:=$(strip ${NVCCLDFLAGS}) + override NVCCFLAGS:=$(strip ${NVCCFLAGS}) + override ARFLAGS:=$(strip ${ARFLAGS}) + #override AR_OUT_FLAG:=$(strip ${AR_OUT_FLAG}) #pas pour mingw car enleve espace apres -r + + #override CXXFLAGS:=$(subst $(space),,$(CXXFLAGS)) + +endif#REMOVE_SPACE + +########## +# bug # +########## + +#Adding " " around CXXFLAGS and CXXLDFLAGS, otherwise we can't specifie more than one options ! +override CXXFLAGS:=" $(CXXFLAGS) " +override CXXLDFLAGS:=" $(CXXLDFLAGS) " + +########### +# chrono # +########### + +override TIME_START:=$(shell date +%T) +TIME_CURRENT=$(shell date +%T) +#TIME_DELTA:=$(shell echo $(TIME_CURRENT) - $(TIME_START) | bc) #marche pas + +###################### +# Rules # +###################### + +TITLE:=$(TARGET_NAME) + +################ +#.o->.exe,.dll # +################ + +$(TARGET) : $(OBJ_CU_FILES) +#@echo "$(NVCC) $(NVCCLDFLAGS) -Xlinker $(CXXLDFLAGS) $^ -o $(TARGET)" + @echo "" + @echo "[CBI] -> Linking to : "$(TARGET) + @echo "" + @echo "[CBI] -> Library Link :" + @echo "[CBI] ->" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,-l,$(NVCCLDFLAGS))) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call containing,-l,$(CXXLDFLAGS))) + @echo "" + @$(NVCC) $(NVCCLDFLAGS) -Xlinker $(CXXLDFLAGS) $^ -o $(TARGET) + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] -> Location : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Compilateur : VISUAL (${CXX}) && NVIDIA (${NVCC})" + @echo "[CBI] -> Task : End Compiling-Linking !" + @echo "[CBI] -> Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + +# -o =outfile +# tabulation obligatoire before @ + +################ +# .o->.lib # +################ + +${TARGET_LIB}:$(OBJ_CU_FILES) +#@echo "${AR} ${AR_OUT_FLAG}${TARGET_LIB} ${ARFLAGS} $^" + @echo "" + @${AR} ${AR_OUT_FLAG}${TARGET_LIB} ${ARFLAGS} $^ + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] -> Location : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Compilateur : VISUAL (${CXX}) && NVIDIA (${NVCC})" + @echo "[CBI] -> Task : End Compiling-Archive !" + @echo "[CBI] -> Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + +################ +# .cpp->.o # +################ + +$(TARGET_OBJ)/%.$(OBJ_EXTENSION) :%.cpp +#@echo "$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler $(CXXFLAGS) -c $< -o $@" +#@echo "[${TITLE}] -> ${CXX} compiling .cpp : "$< + @$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler $(CXXFLAGS) $@ -c $< + +# -c = compilation +# -o =outfile + +################ +# .c->.o # +################ + +$(TARGET_OBJ)/%.$(OBJ_EXTENSION) :%.c +#@echo "$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler $(CXXFLAGS) -c $< -o $@" +#@echo "[${TITLE}] -> ${CXX} compiling .c : "$< + @$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler $(CXXFLAGS) $@ -c $< + +# -c = compilation +# -o =outfile + +################ +# .cu->.o # +################ + +$(TARGET_OBJ)/%.$(OBJ_EXTENSION) :%.cu +#@echo "$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler ""$(filter-out -std=c++0x,$(CXXFLAGS))"" -c $< -o $@" +#@echo "[${TITLE}] -> ${NVCC} compiling .cu : "$< + @$(NVCC) $(NVCCFLAGS) -odir $(TARGET_OBJ) -Xcompiler ""$(filter-out -std=c++0x,$(CXXFLAGS))"" -c $< -o $@ +#cuda6: Il ne faut pas utiliser le flag �std=c++0x lorsque l�on compile un fichier .cu ! +#cuda6.5: devrait etre ok +##Adding "" "" around final CXXFLAGS, to keep one " " around final CXXFLAGS , in order to can specifie more than one options ! +#$(filter-out pas necesaire with visual&intel windows + +# -c = compilation +# -o =outfile + +############################################## +# TARGET # +############################################## + +#all: version help +#all: echoing $(TARGET) deploy +all: echoing init $(TARGET) deploy cleanTempCudaFile + @echo "" + @echo "[CBI] -> "$(TITLE)" : End ALL!" + +.PHONY: version +version: + @echo "" + @nvcc --version + @echo "" + @cl + +.PHONY: help +help: + @echo "" + @nvcc --help + +########## +# deploy # +########## + +.PHONY: deploy +deploy: +ifdef TARGET_DEPLOY_PATH + @$(shell cp $(TARGET) $(TARGET_DEPLOY)) + @echo "" + @echo "[CBI] -> Deploying : "$(TARGET_DEPLOY) +endif + +########## +# run # +########## + +.PHONY: run +run: printRuntimeInfo + @echo "" + @echo "[CBI] -> Running : "$(TARGET) $(ARGS) + @echo "" + @echo "------------------------------------------------------------------------" + @echo "" + @echo "" + @$(TARGET) $(ARGS) + +.PHONY: runDeploy +runDeploy: printRuntimeInfo + @echo "" + @echo "[CBI] -> Running : "$(TARGET_DEPLOY) $(ARGS) + @echo "" + @echo "------------------------------------------------------------------------" + @echo "" + @echo "" + @$(TARGET_DEPLOY) $(ARGS) + + +.PHONY: printRuntimeInfo +printRuntimeInfo: + @echo "" + @echo "[CBI] -> API BIN :" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh ${sort ${API_BIN}} + @echo "" + @echo "[CBI] -> ARGS :" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh ${sort ${ARGS}} + +########## +# depends # +########## + +.PHONY: dependenciesWin +dependenciesWin: printRuntimeInfo + @echo "" + @echo "[CBI] -> Dependencies .dll : "${TARGET} + @${DEPENDS_EXE} ${TARGET_DEPLOY} + +########## +# contents # +########## + +.PHONY: contententsWin +contententsWin: printRuntimeInfo + @echo "" + @echo "[CBI] -> Dependencies .dll : "${TARGET_NAME_EXE} + @${DEPENDS_EXE} ${TARGET_DEPLOY} + +########## +# init # +########## + +.PHONY: init +init: +#create folder heirerarchy TARGET_BIN_PATH iff don't exist +ifeq (,$(findstring $(TARGET_BIN),$(wildcard $(TARGET_BIN) ))) + @$(shell mkdir -p $(TARGET_BIN)) + @echo "[CBI] -> Create folder : "$(TARGET_BIN) +endif +#create folder heirerarchy TARGET_BIN_PATH iff don't exist +ifeq (,$(findstring $(TARGET_OBJ),$(wildcard $(TARGET_OBJ) ))) + @$(shell mkdir -p $(TARGET_OBJ)) + @echo "[CBI] -> Create folder : "$(TARGET_OBJ) +endif +#create folder heirerarchy TARGET_BIN_PATH iff don't exist +ifeq (,$(findstring $(TARGET_CUBIN),$(wildcard $(TARGET_CUBIN) ))) + @$(shell mkdir -p $(TARGET_CUBIN)) + @echo "[CBI] -> Create folder : "$(TARGET_CUBIN) +endif +ifeq (,$(findstring $(TARGET_DEPLOY_PATH_BIN),$(wildcard $(TARGET_DEPLOY_PATH_BIN) ))) + @$(shell mkdir -p $(TARGET_DEPLOY_PATH_BIN)) + @echo "[CBI] -> Create folder : "$(TARGET_DEPLOY_PATH_BIN) + @echo "" +endif + @echo "" + +########## +# doc # +########## + +include ${ROOT_MAKEFILE_PRIVATE_DOC}/doxyCPP.mk + + +########## +# clean # +########## + +.PHONY: clean +clean: + @rm -f $(TARGET_OBJ)/*.o + @rm -f $(TARGET_OBJ)/*.obj + @rm -f $(TARGET_BIN)/*.exp + @rm -f $(TARGET_BIN)/*.lib + @rm -f $(TARGET) + @rm -f $(TARGET_DEPLOY) + @rm -f $(TARGET_CUBIN)/* + @rm -f $(TARGET_DOC_DEPLOY_FILE) + @rm -f -r $(TARGET_DOC_PATH) + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target : "$(TARGET_NAME) + @echo "[CBI] -> Task : DELETE" + @echo "[CBI]" + @echo "[CBI] -> Delete .obj : "$(TARGET_OBJ) + @echo "[CBI] -> Delete .bin : "$(TARGET_BIN) + @echo "[CBI] -> Delete .cubin : "$(TARGET_CUBIN) + @echo "[CBI] -> Delete doc : "$(TARGET_DOC_PATH) + @echo "[CBI]" + @echo "[CBI] -> Delete deploy : "$(TARGET_DEPLOY) + @echo "[CBI] -> Delete deploy doc : "$(TARGET_DOC_DEPLOY_FILE) + @echo "==================================================================================" + @echo "" + +.PHONY: cleanTempCudaFile +cleanTempCudaFile: + @rm -f ${TARGET_CUBIN}/*.c + @rm -f ${TARGET_CUBIN}/*.cpp + @rm -f ${TARGET_CUBIN}/*.gpu + @rm -f ${TARGET_CUBIN}/*.i + @rm -f ${TARGET_CUBIN}/*.ii + @rm -f ${TARGET_CUBIN}/*.hash + @rm -f ${TARGET_CUBIN}/*.ptx +#@echo "[CBI] -> Cleaning : Cuda temp files, excepted .cubin for JCuda" +#@echo "" + +#rm -r #serait recursif (dangereux!!) +#rm -f #pas d'erreur si file existe pas! + +########## +# echo # +########## + +.PHONY: echoing +echoing: + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target Name : "$(TARGET_NAME) + @echo "[CBI] ->" + @echo "[CBI] -> Build : "$(TARGET) + @echo "[CBI] -> Deploy : "$(TARGET_DEPLOY_PATH_BIN) + @echo "[CBI] ->" + @echo "[CBI] -> Type : "$(TARGET_MODE) + @echo "[CBI] -> Arch : "$(ARCHI_32_64) + @echo "[CBI] -> OS : "$(OS) + @echo "[CBI] -> User : "$(USER) + @echo "[CBI] ->" + @echo "[CBI] -> Task : Compiling-Linking !" +#@echo "[CBI]->Time : "${TIME_CURRENT} + @echo "==================================================================================" + @echo "" + @echo "[CBI] -> SRC AUX (Recursif) :" + @echo "[CBI] ->" +#@echo $(SRC_AUX) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(SRC_AUX) + @echo "" + @echo "[CBI] -> CXXFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(CXXFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(call not-containing,-I,$(CXXFLAGS)) #sort kp, why + @echo "" + @echo "[CBI] -> CXXLDFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(CXXLDFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(call not-containing,-L, $(call not-containing,-l,$(CXXLDFLAGS))) #sort ko why? + @echo "" + @echo "[CBI] -> NVCCFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(NVCCFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,-I,$(NVCCFLAGS))) + @echo "" + @echo "[CBI] -> NVCCLDFLAGS (Partial) :" + @echo "[CBI] ->" +#@echo $(NVCCLDFLAGS) + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(call not-containing,-L, $(call not-containing,-l,$(NVCCLDFLAGS)))) + @echo "" + @echo "[CBI] -> INC_PATH (auto detect):" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(INC_PATH)) + @echo "" + @echo "" + @echo "[CBI] -> LIB_PATH (auto detect):" + @${ROOT_MAKEFILE_PRIVATE_COMMON_SCRIPT}/print.sh $(sort $(LIB_PATH)) + @echo "" + +############################################## +# HELP # +############################################## + +# target : dependencies +# +# $@ = name of the target +# $^ = all dependencie of a target +# $< =first (unique dependency of a target) (rm, compilation,linking) +# +# @ = diminue verbosit� commande +# +# Attention : tabulation obligatoire avant commande dans rule!! +# +# http://www.gnu.org/software/make/manual/ + +############################################# +# END # +############################################# + +endif#__MAKE_VISUAL_CUDA_MK__ diff --git a/WCudaMSE/BUILDER/makefile/private/cuda/optimisation.mk b/WCudaMSE/BUILDER/makefile/private/cuda/optimisation.mk new file mode 100755 index 0000000..5c9a388 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cuda/optimisation.mk @@ -0,0 +1,37 @@ +# Version : 0.0.6 +# Date : 20.01.2014 +# Author : Cedric.Bilat@he-arc.ch + +ifndef __OPTIMISATION_MK__ +__OPTIMISATION_MK__=true + +############################################## +# Optimisation # +############################################## + +ifneq (${ARCH},arm) + + ifneq (${DEBUG},true) + override CXXFLAGS+= ${CXX_OPTIMISATION} + override CXXFLAGS+= ${X86_CXX_OPTIMISATION} + else + override NVCCFLAGS+= -lineinfo + override NVCCFLAGS+= -G#device only + endif + +else #ARM + ifneq (${DEBUG},true) + override CXXFLAGS+= ${CXX_OPTIMISATION} + else + override NVCCFLAGS+= -lineinfo + override NVCCFLAGS+= -G#device only + endif +endif + +############################################# +# END # +############################################# + +endif#__OPTIMISATION_MK__ + + diff --git a/WCudaMSE/BUILDER/makefile/private/doc/doxyCPP.mk b/WCudaMSE/BUILDER/makefile/private/doc/doxyCPP.mk new file mode 100755 index 0000000..f066f55 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/doc/doxyCPP.mk @@ -0,0 +1,165 @@ +# Version : 0.0.7 +# Date : 17.01.2014 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __DOXYGEN_MK__ +__DOXYGEN_MK__=true + +############################################## +# Variables # +############################################## + +TARGET_DOC_PATH:=${TARGET_PATH}/doc + +TARGET_DOC_TEMP:=${TARGET_DOC_PATH}/temp +TARGET_DOC_FINAL:=${TARGET_DOC_PATH}/final +TARGET_DOC_DEPLOY:=${TARGET_DEPLOY_PATH_DOC} +TARGET_DOC_NAME=$(TARGET_NAME).doc.tar.gz +TARGET_DOC_DEPLOY_FILE:=$(TARGET_DOC_DEPLOY)/$(TARGET_DOC_NAME) + +-include ${ROOT_MAKEFILE}/public/doc/doxygen.mk + +############################################## +# Set # +############################################## + +DOX_SRC_FINAL:= $(filter-out $(DOX_SRC_EXCLUDE),$(DOX_SRC)) +#https://www.gnu.org/software/make/manual/make.html#Functions + +############################################## +# TARGET # +############################################## + + +###################### +# Doxygen # +###################### + +.PHONY: doc +doc: docTitleStart docTools docPurge docPrepare docConfig docBuild docDeploy docTitleEnd + +.PHONY: docTitleStart +docTitleStart: + @echo "==================================================================================" + @echo "[CBI] -> Target : "$(TARGET_NAME) + @echo "[CBI] -> Task : Doc" + @echo "[CBI] -> Doc src : "${DOX_SRC_FINAL} + @echo "[CBI] -> Directory doc html : "${TARGET_DOC_FINAL} +ifdef IS_DEPLOY + @echo "[CBI] -> Directory doc tar : "$(TARGET_DOC_DEPLOY) +endif + @echo "==================================================================================" + @echo "" + +.PHONY: docTitleEnd +docTitleEnd: + @echo "" + @echo "==================================================================================" + @echo "[CBI] -> Target : "$(TARGET_NAME) + @echo "[CBI] -> Task : Doc" + @echo "[CBI] -> Doc src : "${DOX_SRC_FINAL} + @echo "[CBI] -> Directory doc html : "${TARGET_DOC_FINAL} +ifdef IS_DEPLOY + @echo "[CBI] -> Directory doc tar : "$(TARGET_DOC_DEPLOY) +endif + @echo "==================================================================================" + +.PHONY: docTools +docTools: + @echo "[Tools]" + @echo "" + @echo "doxygen version : " + @doxygen --version + @dot -V + @echo "" + +.PHONY: docPurge +docPurge: + @echo "[Purge]" + @echo "" + @echo "delete " $(TARGET_DOC_PATH) + @echo "delete " $(TARGET_DOC_DEPLOY_FILE) + @rm -f -r $(TARGET_DOC_PATH) + @rm -f $(TARGET_DOC_DEPLOY_FILE) + @echo "" + +.PHONY: docPrepare +docPrepare: + @echo "[Prepare]" + @echo "" + @echo "mkdir " $(TARGET_DOC_FINAL) + @echo "mkdir " $(TARGET_DOC_TEMP) + @mkdir -p $(TARGET_DOC_FINAL) + @mkdir -p ${TARGET_DOC_TEMP} +ifdef IS_DEPLOY + @echo "mkdir " $(TARGET_DOC_DEPLOY) + @mkdir -p $(TARGET_DOC_DEPLOY) +endif + @echo "" + +.PHONY: docConfig +docConfig: + @echo "[Configuration]" + @doxygen -g $(TARGET_DOC_TEMP)/doxyFileDefaultTMP + @echo "Parse and fill defaut doxy-config with project-specific-config ..." + @echo "" +#DO NOT MODIFY THE SPACE at left of the first = +#Choice for separateur sed is ; + @sed -e 's;My Project;$(TARGET_NAME);' \ + -e 's;INPUT =;INPUT = $(DOX_SRC_FINAL);' \ + -e 's;CREATE_SUBDIRS = NO;CREATE_SUBDIRS = $(DOX_CREATE_SUBDIRS);' \ + -e 's;OUTPUT_DIRECTORY =;OUTPUT_DIRECTORY = \"$(TARGET_DOC_FINAL)\";' \ + -e 's;RECURSIVE = NO;RECURSIVE = $(DOX_RECURSIVE);' \ + -e 's;OUTPUT_LANGUAGE = English;OUTPUT_LANGUAGE = $(DOX_OUTPUT_LANGUAGE);' \ + -e 's;GENERATE_LATEX = YES;GENERATE_LATEX = $(DOX_GENERATE_LATEX);' \ + -e 's;CLASS_DIAGRAMS = YES;CLASS_DIAGRAMS = $(DOX_CLASS_DIAGRAMS);' \ + -e 's;EXTRACT_ALL = NO;EXTRACT_ALL = $(DOX_EXTRACT_ALL);' \ + -e 's;UML_LOOK = NO;UML_LOOK = $(DOX_UML_LOOK);' \ + -e 's;CALL_GRAPH = NO;CALL_GRAPH = $(DOX_CALL_GRAPH);' \ + -e 's;CALLER_GRAPH = NO;CALLER_GRAPH = $(DOX_CALLER_GRAPH);' \ + -e 's;EXTRACT_PRIVATE = NO;EXTRACT_PRIVATE = $(DOX_EXTRACT_PRIVATE);' \ + -e 's;HAVE_DOT = NO;HAVE_DOT = $(DOX_HAVE_DOT);' $(TARGET_DOC_TEMP)/doxyFileDefaultTMP >$(TARGET_DOC_TEMP)/doxyFileProjectTMP +#-e 's;INPUT =;INPUT = $(SRC_PATH_ALL) $(SRC_AUX);' \ + +.PHONY: docBuild +docBuild: + @echo "[Build]" + @echo "" + @doxygen $(TARGET_DOC_TEMP)/doxyFileProjectTMP + @echo "" + +.PHONY: docDeploy +docDeploy: +ifdef TARGET_DEPLOY_PATH + @echo "[Deploy]" + @echo "" + @echo "creating "$(TARGET_NAME).doc.tar +ifeq ($(OS),Linux) + @tar -cf ${TARGET_DOC_TEMP}/$(TARGET_NAME).doc.tar -C ${TARGET_DOC_FINAL} . + @echo "creating "$(TARGET_NAME).doc.tar.gz + @gzip -q ${TARGET_DOC_TEMP}/$(TARGET_NAME).doc.tar ${TARGET_DOC_TEMP}/$(TARGET_NAME).doc.tar.gz + @echo "moving "$(TARGET_NAME).doc.tar.gz" -> "$(TARGET_DOC_DEPLOY) + @mv -f $(TARGET_DOC_TEMP)/$(TARGET_NAME).doc.tar.gz $(TARGET_DOC_DEPLOY) +else +#@tar -cf '${TARGET_DOC_TEMP}/$(TARGET_NAME).doc.tar' -C ${TARGET_DOC_FINAL} . +#q: pose problem! + @tar -cf ${TARGET_DOC_DEPLOY}/$(TARGET_NAME).doc.tar -C ${TARGET_DOC_FINAL} . + @echo "creating "$(TARGET_NAME).doc.tar.gz + @gzip -q ${TARGET_DOC_DEPLOY}/$(TARGET_NAME).doc.tar ${TARGET_DOC_DEPLOY}/$(TARGET_NAME).doc.tar.gz +#@echo "moving "$(TARGET_NAME).doc.tar.gz" -> "$(TARGET_DOC_DEPLOY) +#@mv -f $(TARGET_NAME).doc.tar.gz $(TARGET_DOC_DEPLOY) +endif +endif + +.PHONY: docShow +docShow: + @echo "show " ${TARGET_DOC_FINAL}/html/index.html + @chrome ${TARGET_DOC_FINAL}/html/index.html + +############################################# +# END # +############################################# + +endif#__DOXYGEN_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/private/script/print.sh b/WCudaMSE/BUILDER/makefile/private/script/print.sh new file mode 100755 index 0000000..9ee7409 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/script/print.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# + + +# --------------------------------------- +# input +#---------------------------------------- + +# $@ : all para +# $1 : premier para +# $2 : second para + +# --------------------------------------- +# private +#---------------------------------------- + +for dir in $@ + do + echo "[CBI] -> : "${dir} + done + +# --------------------------------------- +# end +#---------------------------------------- diff --git a/WCudaMSE/BUILDER/makefile/private/script/printTable.sh b/WCudaMSE/BUILDER/makefile/private/script/printTable.sh new file mode 100755 index 0000000..382ed0c --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/script/printTable.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# + + +# --------------------------------------- +# input +#---------------------------------------- + +# "$@" : container + +# --------------------------------------- +# private +#---------------------------------------- + +i=0 +for element in $@ + do + if [ $((i % 2)) -eq 0 ]; then + echo -n "[CBI] -> : " + echo -n ${element} + else + echo -n " " + echo -n -e '\t\t' + echo ${element} + fi + + + i=$((i+1)) + done + +# --------------------------------------- +# end +#---------------------------------------- diff --git a/WCudaMSE/BUILDER/makefile/private/script/workspace_classification.sh b/WCudaMSE/BUILDER/makefile/private/script/workspace_classification.sh new file mode 100755 index 0000000..1d40135 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/script/workspace_classification.sh @@ -0,0 +1,209 @@ +#!/bin/bash +# +# Version: 0.0.3 +# Date: 04.03.2014 +# +# link: +# http://www.cyberciti.biz/faq/unix-linux-extract-filename-and-extension-in-bash/ +# http://stackoverflow.com/questions/2625976/sorting-space-delimited-numbers-with-linux-bash +# http://stackoverflow.com/questions/3236871/how-to-return-a-string-value-from-a-bash-function + +#----------------------------------------------- +# init +#----------------------------------------------- + +source ./workspace_os_management.sh + +#----------------------------------------------- +# CLassification Project +#----------------------------------------------- + +#buildable +setCUDA="" +setCPP="" +setIntel="" + +#buildable: os specific only +setLinux="" +setWin="" + +#not buildable +setETUDE="" + +setDataProject=$(find ${workspaceRoot} -name 'dataProject.mk') + +for filePath in ${setDataProject} + do + + folderPath=${filePath%/*} + folder=${folderPath##*/} + + #echo ${filePath} + #echo "folderPath = " ${folderPath} + #echo "folder = " ${folder} + + if [ -d ./${folder} ] # test si folder est bien sun sous folder de workspaceRoot + then + + #Etude + if [[ ${folder} == *Etude* ]] + then + setETUDE="${setETUDE} ${folder}" + fi + + #Os specific + if [[ ${folder} == *Linux* ]] + then + setLinux="${setLinux} ${folder}" + + elif [[ ${folder} == *Win* ]] + then + setWin="${setWin} ${folder}" + fi + + #GCC, INTEL ou Cuda + if [[ ${folder} == *Cuda* ]] + then + setCUDA="${setCUDA} ${folder}" + + elif [[ ${folder} == *Intel* ]] + then + setIntel="${setIntel} ${folder}" + + else + setCPP="${setCPP} ${folder}" + fi + fi + + done + +#----------------------------------------------- +# ensemble operation +#----------------------------------------------- + +# result=$1 - $2 +# ie, ce qui est dans $1 mais pas dans $2 +# +# Example: +# un='a b c d e' +# deux='e c' +# result=$(sub "$un" "$deux") +# echo "result=" $result # donne a b d +function sub() + { + input1=$1 + input2=$2 + + for e1 in $1 + do + isFound=false + for e2 in $2 + do + if [[ $e1 == $e2 ]] + then + isFound=true + break + fi + done + #echo "[ $isFound $e2 ]" + if [[ $isFound != true ]] + then + echo ${e1} + fi + done + } + +#soustarction de Etude +setCPP=$(sub "$setCPP" "$setETUDE") +setIntel=$(sub "$setIntel" "$setETUDE") +setCUDA=$(sub "$setCUDA" "$setETUDE") + +#soustarction de os specific +if [[ $OS == "Linux" ]] +then + setCPP=$(sub "$setCPP" "$setWin") + setIntel=$(sub "$setIntel" "$setWin") + setCUDA=$(sub "$setCUDA" "$setWin") + +elif [[ $OS == "Win" ]] +then + setCPP=$(sub "$setCPP" "$setLinux") + setIntel=$(sub "$setIntel" "$setLinux") + setCUDA=$(sub "$setCUDA" "$setLinux") +fi + +#----------------------------------------------- +# sort +#----------------------------------------------- + +#setCPP=$(printf "%s\n" $setCPP | sort -n) +function sorting() + { + input=$@ + result=$(printf "%s\n" $input | sort -n) + echo $result + } + +setCPP=$(sorting "$setCPP") +setCUDA=$(sorting "$setCUDA") +setETUDE=$(sorting "$setETUDE") +setIntel=$(sorting "$setIntel") +setLinux=$(sorting "$setLinux") +setWin=$(sorting "$setWin") + +#----------------------------------------------- +# show classification +#----------------------------------------------- + +function printing() + { + echo "" + + input=$@ + for element in ${input} + do + echo " " ${element} + done + + echo "" + } + +echo "" +echo "--------------------------------------------------------------------------------------------------------" +echo "[Classification of project]" +echo "" +echo " Workspace = "${workspaceRoot} +echo " State = Please wait ..." +echo -n " Time = " +date +"%T" +echo "--------------------------------------------------------------------------------------------------------" +echo "" + +echo "[CUDA] Projects :" +printing $setCUDA + +echo "[CPP] Projects :" +printing $setCPP + +echo "[CPP_Intel] Projects :" +printing $setIntel + +echo "[Linux] Projects : " +printing $setLinux + +echo "[WIN] Projects : " +printing $setWin + +echo "[ETUDE] Projects: (not build here)" +printing $setETUDE + +#Liasser de temps au user de voir classification +echo "" +echo "Pause ..." +sleep 2 + +#----------------------------------------------- +# end +#----------------------------------------------- + + diff --git a/WCudaMSE/BUILDER/makefile/private/script/workspace_compile.sh b/WCudaMSE/BUILDER/makefile/private/script/workspace_compile.sh new file mode 100755 index 0000000..09e55d3 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/script/workspace_compile.sh @@ -0,0 +1,192 @@ +#!/bin/bash +# +# Version: 0.0.2 +# + +#----------------------------------------------- +# Input +#----------------------------------------------- + +#$1: compilateur + +#linux +# gcc +# intellinux +# +#windows +# visual +# intelwin +# mingw + + + +#----------------------------------------------- +# init +#----------------------------------------------- + +source ./workspace_classification.sh + +#----------------------------------------------- +# check +#----------------------------------------------- + +if [ -z $1 ] +then + + if [ ${OS} == "Linux" ] + then + echo "[ERROR] : .sh : input missing : gcc or intellinux" + + elif [ ${OS} == "Win" ] + then + echo "[ERROR] : .sh : input missing : visual or intelwin or mingw" + fi + + exit +fi + +compilateur=$1 + +#----------------------------------------------- +# compile +#----------------------------------------------- + +echo "" +echo "" +echo "" +echo "" +echo "--------------------------------------------------------------------------------------------------------" +echo "[Compiling Workspace]" +echo "" +echo " Workspace = "${workspaceRoot} +echo " Compilateur = "${compilateur} +echo " State = Please wait ..." +echo -n " Time = " +date +"%T" +echo "--------------------------------------------------------------------------------------------------------" + + +for cuda in ${setCUDA} + do + echo "" + echo "" + echo "" + echo "" + echo "----------------------------------------------------------------------------------" + echo "[Compiling Cuda Project]" + echo "" + echo "Project =" ${cuda} + echo "Workspace =" $(pwd) + echo "Compilateur = g++ && nvcc" + echo "----------------------------------------------------------------------------------" + cd ./${cuda} + + if [ ${OS} == "Linux" ] + then + ${MAKE_CUDA_GCC} all + + elif [ ${OS} == "Win" ] + then + cmd.exe //c ${MAKE_CUDA_VISUAL} all + fi + + cd .. + done + +for cpp in ${setCPP} + do + echo "" + echo "" + echo "" + echo "" + echo "----------------------------------------------------------------------------------" + echo "[Compiling CPP Project]" + echo "" + echo "Project =" ${cpp} + echo "Workspace =" $(pwd) + echo "Compilateur = ${compilateur}" + echo "----------------------------------------------------------------------------------" + cd ./${cpp} + + if [ ${OS} == "Linux" ] + then + + if [ ${compilateur} == "gcc" ] + then + ${MAKE_GCC} all + + elif [ ${compilateur} == "intellinux" ] + then + ${MAKE_INTEL_LINUX} all + fi + + elif [ ${OS} == "Win" ] + then + + if [ ${compilateur} == "visual" ] + then + cmd.exe //c ${MAKE_VISUAL} all + + elif [ ${compilateur} == "intelwin" ] + then + cmd.exe //c ${MAKE_INTEL_WIN} all + + elif [ ${compilateur} == "mingw" ] + then + cmd.exe //c ${MAKE_MINGW} all + fi + + fi + + cd .. + done + +for intel in ${setIntel} + do + echo "" + echo "" + echo "" + echo "" + echo "----------------------------------------------------------------------------------" + echo "[Compiling CPP-intel only Project]" + echo "" + echo "Project =" ${cpp} + echo "Workspace =" $(pwd) + echo "Compilateur = icpp" + echo "----------------------------------------------------------------------------------" + cd ./${intel} + + if [ ${OS} == "Linux" ] + then + ${MAKE_INTEL_LINUX} all + + elif [ ${OS} == "Win" ] + then + cmd.exe //c ${MAKE_INTEL_WIN} all + fi + + cd .. + done + +echo "" +echo "" +echo "" +echo "" +echo "--------------------------------------------------------------------------------------------------------" +echo "[Compiling Workspace]" +echo "" +echo " Workspace = "${workspaceRoot} +echo " State = Success!" +echo -n " Time = " +date +"%T" +echo "--------------------------------------------------------------------------------------------------------" +echo "" +echo "" +echo "" +echo "" + +#----------------------------------------------- +# end +#----------------------------------------------- + + diff --git a/WCudaMSE/BUILDER/makefile/private/script/workspace_doc.sh b/WCudaMSE/BUILDER/makefile/private/script/workspace_doc.sh new file mode 100755 index 0000000..06da244 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/script/workspace_doc.sh @@ -0,0 +1,103 @@ +#!/bin/bash +# +# Version: 0.0.2 +# + +#----------------------------------------------- +# init +#----------------------------------------------- + +source ./workspace_classification.sh + +#----------------------------------------------- +# doc +#----------------------------------------------- + +echo "" +echo "" +echo "" +echo "" +echo "--------------------------------------------------------------------------------------------------------" +echo "[Doc Workspace]" +echo "" +echo " Workspace = "${workspaceRoot} +echo " State = Please wait ..." +echo -n " Time = " +date +"%T" +echo "--------------------------------------------------------------------------------------------------------" + +for cuda in ${setCUDA} + do + echo "" + echo "" + echo "" + echo "" + echo "----------------------------------------------------------------------------------" + echo "[Doc Cuda Project]" + echo "" + echo "Project =" ${cuda} + echo "Workspace =" $(pwd) + echo "----------------------------------------------------------------------------------" + cd ./${cuda} + + if [ ${OS} == "Linux" ] + then + ${MAKE_CUDA_GCC} doc + + elif [ ${OS} == "Win" ] + then + cmd.exe //c ${MAKE_CUDA_VISUAL} doc + fi + + cd .. + done + +for cpp in ${setCPP} + do + echo "" + echo "" + echo "" + echo "" + echo "----------------------------------------------------------------------------------" + echo "[Doc CPP Project]" + echo "" + echo "Project =" ${cpp} + echo "Workspace =" $(pwd) + echo "----------------------------------------------------------------------------------" + cd ./${cpp} + + if [ ${OS} == "Linux" ] + then + ${MAKE_GCC} doc + + elif [ ${OS} == "Win" ] + then + cmd.exe //c ${MAKE_VISUAL} doc + fi + + cd .. + done + +echo "" +echo "" +echo "" +echo "" +echo "--------------------------------------------------------------------------------------------------------" +echo "[Doc Workspace] " +echo "" +echo " Workspace = "${workspaceRoot} +echo " State = Success!" +echo -n " Time = " +date +"%T" +echo "--------------------------------------------------------------------------------------------------------" +echo "" +echo "" +echo "" +echo "" + +#----------------------------------------------- +# end +#----------------------------------------------- + + + diff --git a/WCudaMSE/BUILDER/makefile/private/script/workspace_os_management.sh b/WCudaMSE/BUILDER/makefile/private/script/workspace_os_management.sh new file mode 100755 index 0000000..383ebdc --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/script/workspace_os_management.sh @@ -0,0 +1,57 @@ +#!/bin/bash +# +# Version: 0.0.2 +# + +#----------------------------------------------- +# init +#----------------------------------------------- + +#stop des erreur +set -e + +#racine workspace +cd ../../../.. +#ls +#sleep 100000 + +workspaceRoot=$(pwd) + + +#----------------------------------------------- +# os management +#----------------------------------------------- + +echo "--------------------------------------------------------------------------------------------------------" +echo "[OS Management]" +echo "" + +if [ $(uname) == "Linux" ] +then + OS=Linux + echo "Linux detect" +else + OS=Win + echo "Windows detect" +fi + +if [ ${OS} == "Linux" ] +then + echo "Linux init" + source /usr/local/etc/cbi/dev/init/cbiMakeInit.sh +else + echo "Windows init" + #cmd.exe //c G:/CBI/HEARC/SoftLocal/ScriptLaucher/makefile/makeInit.cmd#ko why? +fi + +echo "--------------------------------------------------------------------------------------------------------" +echo "" +echo "" +echo "" +echo "" + +#----------------------------------------------- +# end +#----------------------------------------------- + + diff --git a/WCudaMSE/BUILDER/makefile/public/common/dataProject.mk b/WCudaMSE/BUILDER/makefile/public/common/dataProject.mk new file mode 100755 index 0000000..a9b8b74 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/common/dataProject.mk @@ -0,0 +1,36 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __CUDA_DATA_PROJECT_PUBLIC_MK__ +__CUDA_DATA_PROJECT_PUBLIC_MK__=true + +############################################### +# DataProject # +############################################### + +SRC_AUX+= + +# Define Path where target will be build (.o .lib .exe ...) +# Mimimum : Comment the ligne! Default value will be used. +# Tip : In server Cuda1 and Cuda2, default value is Ram disk. +# Tip : Use target to use a local directory at the root your project + +#TARGET_PATH_ROOT:=target#local + +# Tip : define if traget will be copied after build +# Mimimum : empty +IS_DEPLOY=true + +ifndef TARGET_DEPLOY_PATH + TARGET_DEPLOY_PATH:=../RELEASE + TARGET_DEPLOY_PATH_BIN=${TARGET_DEPLOY_PATH}/bin +else + TARGET_DEPLOY_PATH_BIN=${TARGET_DEPLOY_PATH} +endif + +############################################### +# End # +############################################### + +endif#__CUDA_DATA_PROJECT_PUBLIC_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/public/common/dataProjectLinux.mk b/WCudaMSE/BUILDER/makefile/public/common/dataProjectLinux.mk new file mode 100755 index 0000000..a56ebdc --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/common/dataProjectLinux.mk @@ -0,0 +1,26 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# + + +ifndef __CUDA_DATA_PROJECT_PUBLIC_LINUX_MK__ +__CUDA_DATA_PROJECT_PUBLIC_LINUX_MK__=true + +############################################### +# Linux # +############################################### + +include ${ROOT_MAKEFILE_PUBLIC_COMMON}/dataProject.mk + +ifndef TARGET_PATH_ROOT + TARGET_PATH_ROOT:=/tmp/ramdrive/${USER}/Targets + # linux ramdrive +endif + +TARGET_PATH:=${TARGET_PATH_ROOT}/${TARGET_NAME} + +############################################### +# End # +############################################### + +endif#__CUDA_DATA_PROJECT_PUBLIC_LINUX_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/public/common/dataProjectWin.mk b/WCudaMSE/BUILDER/makefile/public/common/dataProjectWin.mk new file mode 100755 index 0000000..848d442 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/common/dataProjectWin.mk @@ -0,0 +1,25 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# + +ifndef __CUDA_DATA_PROJECT_PUBLIC_WIN_MK__ +__CUDA_DATA_PROJECT_PUBLIC_LINUX_MK__=true + +############################################### +# Windows # +############################################### + +include ${ROOT_MAKEFILE_PUBLIC_COMMON}/dataProject.mk + +ifndef TARGET_PATH_ROOT + TARGET_PATH_ROOT:=Q:/${USER}/Targets + #windows ramdrive +endif + +TARGET_PATH:=${TARGET_PATH_ROOT}/${TARGET_NAME} + +############################################### +# End # +############################################### + +endif#__CUDA_DATA_PROJECT_PUBLIC_LINUX_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/public/cpp/gcc.mk b/WCudaMSE/BUILDER/makefile/public/cpp/gcc.mk new file mode 100755 index 0000000..5922bbf --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/cpp/gcc.mk @@ -0,0 +1,118 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les definitions de variables ci-dessous, mefiez-vous des espaces � la fin! +# (A2) Laisser espace apres le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __GCC_PUBLIC_OPTION_MK__ +__GCC_PUBLIC_OPTION_MK__=true + +############################################### +# GCC # +############################################### + +######################## +# public # +######################## + +# Option de compilation +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +#CXXFLAGS+= + +################# +# Warning # +################# + +#CXXFLAGS+= -w # Disable warning +#CXXFLAGS+= -W # Print extra warning messages +#CXXFLAGS+= -Wall # Enable all +#CXXFLAGS+= -Wunused-variable # show unused-variable +#CXXFLAGS+= -Wunused-function # show unused-function +#CXXFLAGS+= -Wunused-parameter # show unused-parameter + +################# +# Optimisation # +################# + +# Common X86 et ARM +CXX_OPTIMISATION+= -O3 + +####### +# x86 # +####### + +# General +X86_CXX_OPTIMISATION+= -frerun-loop-opt +#X86_CXX_OPTIMISATION+= -fgcse +X86_CXX_OPTIMISATION+= -fomit-frame-pointer + +# CPU specific +#X86_CXX_OPTIMISATION+= -march=native # Detection automatique arch +#X86_CXX_OPTIMISATION+= -march=core2 +X86_CXX_OPTIMISATION+= -march=corei7 # cuda1 +#X86_CXX_OPTIMISATION+= -march=corei7-avx # cuda2,i7 +#X86_CXX_OPTIMISATION+= -march=sandybridge # i7 work +#X86_CXX_OPTIMISATION+= -march=ivybridge # i7 home +#X86_CXX_OPTIMISATION+= -march=haswell + +####### +# ARM # +####### + +ARM_CXXFLAGS+=# + +################# +# debug # +################# + +#decommneter la ligne pour +# (1) empecher l'optimisation +# (2) activer les flag de debug + +#DEBUG=true + +################# +# linkage # +################# + +# Static Lib +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +ARFLAGS+=# + +# Shared lib +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +LDFLAGS+=# + +################# +# extension # +################# + +#Injection de variable dans le code +# same as #define XXX YYY +# same as -DXXX +#Attention, pas mettre -D, ni #define, que XXX + +CODE_DEFINE_VARIABLES+= + +# Attention : +# separateur est espac +# sans extension .lib +# sans prefixe lib + +EXCLUDE_LIBRARY_FILES+= +ADD_LIBRARY_FILES+= + +############################################### +# End # +############################################### + +endif#__GCC_PUBLIC_OPTION_MK__ \ No newline at end of file diff --git a/WCudaMSE/BUILDER/makefile/public/cpp/intelLinux.mk b/WCudaMSE/BUILDER/makefile/public/cpp/intelLinux.mk new file mode 100755 index 0000000..c82e3db --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/cpp/intelLinux.mk @@ -0,0 +1,107 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + + +ifndef __INTEL_LINUX_PUBLIC_OPTION_MK__ +__INTEL_LINUX_PUBLIC_OPTION_MK__=true + +############################################### +# Intel Linux # +############################################### + + +######################## +# public # +######################## + +# Option de compilation +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +#CXXFLAGS+=# + +################# +# Warning # +################# + +CXXFLAGS+= -w #supress warning message + +################# +# Optimisation # +################# + +# General +CXX_OPTIMISATION+= -O3 + +X86_CXX_OPTIMISATION+= -fast +X86_CXX_OPTIMISATION+= -parallel #linux pose probleme si projet trop simple (undefined reference to `__kmpc_begin'). Solution : use in local intelLinux.mk : CXXFLAGS_EXCLUDE+= -parallel +X86_CXX_OPTIMISATION+= -par-threshold100 + + + +# CPU specific +#X86_CXX_OPTIMISATION+= -axSSSE3 +#X86_CXX_OPTIMISATION+= -axSSE4.1 # xeon home +X86_CXX_OPTIMISATION+= -axSSE4.2 # cuda1 +#X86_CXX_OPTIMISATION+= -axAVX # (si pas supporter, alors recherche le meilleur!) +#X86_CXX_OPTIMISATION+= -axAVX2 # cuda2 + +################# +# debug # +################# + +#decommneter la ligne pour +# (1) empecher l'optimisation +# (2) activer les flag de debug + +#DEBUG=true + +################# +# linkage # +################# + +# Static Lib +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +ARFLAGS+=# + +# Shared lib +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +LDFLAGS_AUX+= + + + +################# +# extension # +################# + +#Injection de variable dans le code +# same as #define XXX YYY +# same as -DXXX +#Attention, pas mettre -D, ni #define, que XXX + +CODE_DEFINE_VARIABLES+= + +# Attention : +# separateur est espac +# sans extension .lib +# sans prefixe lib + +EXCLUDE_LIBRARY_FILES+= +ADD_LIBRARY_FILES+= + +############################################### +# End # +############################################### + +endif#__INTEL_LINUX_PUBLIC_OPTION_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/public/cpp/intelWin.mk b/WCudaMSE/BUILDER/makefile/public/cpp/intelWin.mk new file mode 100755 index 0000000..45d56b3 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/cpp/intelWin.mk @@ -0,0 +1,114 @@ +# Version : 0.0.3 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __INTEL_WIN_PUBLIC_OPTION_MK__ +__INTEL_WIN_PUBLIC_OPTION_MK__=true + +############################################### +# Intel Win # +############################################### + +######################## +# public # +######################## + +# Option de compilation +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +################# +# Warning # +################# + +#CXXFLAGS+= /w #Suppres warning messages + +################# +# Divers # +################# + +#exception +CXXFLAGS+= /EHsc + +#linkage dll +CXXFLAGS+= /MD + +################# +# Optimisation # +################# + +# General +CXX_OPTIMISATION+= /O3 +CXX_OPTIMISATION+= /fast +CXX_OPTIMISATION+= /Qparallel +CXX_OPTIMISATION+= /Qpar-threshold100 + +# CPU specific +#X86_CXX_OPTIMISATION+= /QxSSSE3 +X86_CXX_OPTIMISATION+= /QxSSE4.1 # xeon x8 home +#X86_CXX_OPTIMISATION+= /QxSSE4.2 # cuda1 +#X86_CXX_OPTIMISATION+= /QxAVX # +#X86_CXX_OPTIMISATION+= /QxAVX2 # cuda2,i7 (from visual 2013) + +################# +# debug # +################# + +#decommneter la ligne pour +# (1) empecher l'optimisation +# (2) activer les flag de debug + +#DEBUG=true + +################# +# linkage # +################# + +# Static Lib +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +ARFLAGS+=# + +# Shared lib +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +LDFLAGS_AUX+= + +################# +# extension # +################# + +#Injection de variable dans le code +# same as #define XXX YYY +# same as -DXXX +#Attention, pas mettre -D, ni #define, que XXX + +CODE_DEFINE_VARIABLES+= + +# Attention : +# separateur est espac +# sans extension .lib +# sans prefixe lib + +EXCLUDE_LIBRARY_FILES+= +ADD_LIBRARY_FILES+= + +# Injection automatique de lib windows standard +# true (ou n'importe quoi) pour activer! +# rien pour desactiver +# Version minimale : vide (avec # pour le montrer) +IS_DEFAULT_SYS_LIBRARY_ENABLE:=# +IS_ADVANCED_SYS_LIBRARY_ENABLE:=# + +############################################### +# End # +############################################### + +endif#__INTEL_WIN_PUBLIC_OPTION_MK__ diff --git a/WCudaMSE/BUILDER/makefile/public/cpp/mingw.mk b/WCudaMSE/BUILDER/makefile/public/cpp/mingw.mk new file mode 100755 index 0000000..df9799e --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/cpp/mingw.mk @@ -0,0 +1,112 @@ +# Version : 0.0.3 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __MINGW_PUBLIC_OPTION_MK__ +__MINGW_PUBLIC_OPTION_MK__=true + + +############################################### +# MinGW # +############################################### + +######################## +# public # +######################## + +#Option de compilation +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +#CXXFLAGS+=# +#CXXFLAGS+= -std=c++0x + + +################# +# Warning # +################# + +#CXXFLAGS+= -w # disable warning +#CXXFLAGS+= -W # Print extra warning messages +#CXXFLAGS+= -Wall # enable all warning +#CXXFLAGS+= -Wunused-variable # show unused-variable +#CXXFLAGS+= -Wunused-function # show unused-function +#CXXFLAGS+= -Wunused-parameter # show unused-parameter + +################# +# Optimisation # +################# + +# General +CXX_OPTIMISATION+= -O3 + +CXX_OPTIMISATION+= -frerun-loop-opt +CXX_OPTIMISATION+= -fgcse +CXX_OPTIMISATION+= -fomit-frame-pointer + +# CPU specific +#X86_CXX_OPTIMISATION+= -march=native # Detection automatique arch +X86_CXX_OPTIMISATION+= -march=core2 # xeon x4 home +#X86_CXX_OPTIMISATION+= -march=corei7 # cuda1 +#X86_CXX_OPTIMISATION+= -march=corei7-avx # cuda2, mieux? +#X86_CXX_OPTIMISATION+= -march=sandybridge # i7 work +#X86_CXX_OPTIMISATION+= -march=ivybridge # i7 home +#X86_CXX_OPTIMISATION+= -march=haswell + +################# +# debug # +################# + +#decommneter la ligne pour +# (1) empecher l'optimisation +# (2) activer les flag de debug + +#DEBUG=true + +################# +# linkage # +################# + +# Static Lib +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +ARFLAGS+=# + + +# Shared lib +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +LDFLAGS+= + +################# +# extension # +################# + +#Injection de variable dans le code +# same as #define XXX YYY +# same as -DXXX +#Attention, pas mettre -D, ni #define, que XXX + +CODE_DEFINE_VARIABLES+= + +# Attention : +# separateur est espac +# sans extension .lib +# sans prefixe lib + +ADD_LIBRARY_FILES+=# +EXCLUDE_LIBRARY_FILES+=# + +############################################### +# End # +############################################### + +endif#__MINGW_PUBLIC_OPTION_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/public/cpp/visual.mk b/WCudaMSE/BUILDER/makefile/public/cpp/visual.mk new file mode 100755 index 0000000..5b826eb --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/cpp/visual.mk @@ -0,0 +1,116 @@ +# Version : 0.0.2 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __VISUAL_PUBLIC_OPTION_MK__ +__VISUAL_PUBLIC_OPTION_MK__=true + +############################################### +# Visual # +############################################### + +######################## +# public # +######################## + +#Option de compilation +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +#CXXFLAGS+= + +################# +# Warning # +################# + +#CXXFLAGS+= /w # Suppres warning messages +#CXXFLAGS+= /Wall # Enables all warning +#CXXFLAGS+= /W3 # Warning level + +################# +# divers # +################# + +#exception +CXXFLAGS+= /EHsc + +#linkage dll +CXXFLAGS+= /MD +#CXXFLAGS+= /MT + +################# +# Optimisation # +################# + +# General +CXX_OPTIMISATION+= /Ox # All optimisation + +# CPU specific +#X86_CXX_OPTIMISATION+= /arch:SSE # By default with 64bits processor +#X86_CXX_OPTIMISATION+= /arch:SSE2 # By default with 64bits processor , xeon x4 home +#X86_CXX_OPTIMISATION+= /arch:AVX # ko home +#X86_CXX_OPTIMISATION+= /arch:AVX2 # cuda2,i7 (from visual 2013) + +################# +# debug # +################# + +#decommneter la ligne pour +# (1) empecher l'optimisation +# (2) activer les flag de debug + +#DEBUG=true + +################# +# linkage # +################# + +# Static Lib +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +ARFLAGS+=# + +# Shared lib +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +LDFLAGS_AUX+= + +################# +# extension # +################# + +#Injection de variable dans le code +# same as #define XXX YYY +# same as -DXXX +#Attention, pas mettre -D, ni #define, que XXX + +CODE_DEFINE_VARIABLES+= + +# Attention : +# separateur est espac +# sans extension .lib +# sans prefixe lib + +IS_DEFAULT_SYS_LIBRARY_ENABLE+= +IS_ADVANCED_SYS_LIBRARY_ENABLE+= + +# Injection automatique de lib windows standard +# true (ou n'importe quoi) pour activer! +# rien pour desactiver +# Version minimale : vide (avec # pour le montrer) + +EXCLUDE_LIBRARY_FILES+=# +ADD_LIBRARY_FILES+=# + +############################################### +# End # +############################################### + +endif#__VISUAL_PUBLIC_OPTION_MK__ diff --git a/WCudaMSE/BUILDER/makefile/public/cuda/cudaGCC.mk b/WCudaMSE/BUILDER/makefile/public/cuda/cudaGCC.mk new file mode 100755 index 0000000..e1043d4 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/cuda/cudaGCC.mk @@ -0,0 +1,190 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __CUDA_GCC_PUBLIC_OPTION_MK__ +__CUDA_GCC_PUBLIC_OPTION_MK__=true + +############################################### +# Cuda GCC Linux # +############################################### + +################################## +# public # +################################## + +######################## +# gcc # +######################## + +#Option de compilation +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +################# +# Warning # +################# + +#CXXFLAGS+= -w # Disable +#CXXFLAGS+= -W # Print extra warning messages +#CXXFLAGS+= -Wall # Enable all +#CXXFLAGS+= -Wunused-variable # show unused-variable +#CXXFLAGS+= -Wunused-function # show unused-function +#CXXFLAGS+= -Wunused-parameter # show unused-parameter + +################# +# Optimisation # +################# + +# Common X86 et ARM +CXX_OPTIMISATION+= -O3 # + +####### +# x86 # +####### + +X86_CXX_OPTIMISATION+= -frerun-loop-opt# +#X86_CXX_OPTIMISATION+= --fgcse# +X86_CXX_OPTIMISATION+= -fomit-frame-pointer# + +# CPU specific +#X86_CXXFLAGS+= -march=native # Detection automatique arch +#X86_CXX_OPTIMISATION+= -march=core2 +X86_CXX_OPTIMISATION+= -march=corei7 # cuda1 +#X86_CXX_OPTIMISATION+= -march=corei7-avx # cuda2, mieux? +#X86_CXX_OPTIMISATION+= -march=sandybridge # i7 work +#X86_CXX_OPTIMISATION+= -march=ivybridge # i7 home +#X86_CXX_OPTIMISATION+= -march=haswell + +####### +# ARM # +####### + +ARM_CXXFLAGS+=# + +################# +# linkage # +################# + +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +CXXLDFLAGS+=# + +######################## +# nvcc # +######################## + +################# +# Target # +################# + +# NVCCFLAGS +# https://developer.nvidia.com/cuda-gpus +# Quadro Fx4600 : sm_10 +# Quadro nvs140M : sm_11 +# GTX_295 : sm_13 +# GTX 580 sm_20 +# Tesla m2090 sm_20 +# Quadro6000 sm_20 +# Quadroplex 7000 sm_20 +# GTX 680 sm_30 +# Quadro k5000 sm_30 +# Tesla k20c sm_35 +# Gforce titan sm_35 +# Quadro k6000 sm_35 +# Tesla k40 sm_35 + +# NVCCFLAGS possibilities: +# +# -arch= Generate PTX for capability x.y +# -code= Generate binary for capability x.y, by default same as -arch +# -gencode arch=...,code=... Same as -arch and -code, but may be repeated (executable is bigger, and compilation time longer) +# +# Target : Syntaxe light (shorcut) +# : Avantage : short,easy, quick +# : Incovenient : only one target can be specify! +# +NVCCFLAGS+= -arch=sm_20 +# +# Target : Syntaxe full +# : Avantage : many target can be specify! +# : : Allow jit compilation at runtime, for deploying in a gpu with higher arch than arch use for developpement. +# +# : Option : -arch : Virtual architecture +# : generate PTX (ptx code is the same as byte code in java) +# : Like java, a jit compilation at runtime is performed. +# : Jit compilatioonce is performed only once, fortunately a cache is used to persist a final binary image. +# +# : Option : -code : Real architecture +# : nvcc embeded a compiled code image in the executable for each specified architecture -arch, +# : Code image is a true binary load image for each real architecture (present at compilation time?), and ptx code for earch virtual architecture (not present at compilation time?) +# +# +# +# Enable or disable all following lignes +#NVCCFLAGS+= -gencode arch=compute_20,code=sm_20 #idem NVCCFLAGS+= -arch=sm_20 +#NVCCFLAGS+= -gencode arch=compute_30,code=sm_30 #idem NVCCFLAGS+= -arch=sm_30 +#NVCCFLAGS+= -gencode arch=compute_35,code=sm_35 #idem NVCCFLAGS+= -arch=sm_35 +#NVCCFLAGS+= -gencode arch=compute_50,code=sm_50 #idem NVCCFLAGS+= -arch=sm_50 + +NVCCFLAGS+= -m64 # + +################# +# Optimisation # +################# + +NVCCFLAGS+= -use_fast_math #idem -ftz=true -prec_div=false -prec_sqrt=false +NVCCFLAGS+= --fmad=true # + +################# +# linkage # +################# + +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +NVCCLDFLAGS+=# + +################# +# debug # +################# + +#decommneter la ligne pour +# (1) empecher l'optimisation +# (2) activer les flag de debug + +#DEBUG=true + +#NVCCFLAGS+= -dryrun +#NVCCFLAGS+= -v + +################# +# extension # +################# + +#Injection de variable dans le code +# same as #define XXX YYY +# same as -DXXX +#Attention, pas mettre -D, ni #define, que XXX + +CODE_DEFINE_VARIABLES+=# + +# Injection automatique de lib windows standard +# true (ou n'importe quoi) pour activer! +# rien pour desactiver +# Version minimale : vide (avec # pour le montrer) + +EXCLUDE_LIBRARY_FILES+=# +ADD_LIBRARY_FILES+=# + +############################################### +# End # +############################################### + +endif#__CUDA_GCC_PUBLIC_OPTION_MK__ diff --git a/WCudaMSE/BUILDER/makefile/public/cuda/cudaVisual.mk b/WCudaMSE/BUILDER/makefile/public/cuda/cudaVisual.mk new file mode 100755 index 0000000..c2f8e2c --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/cuda/cudaVisual.mk @@ -0,0 +1,178 @@ +# Version : 0.0.4 +# Author : Cedric.Bilat@he-arc.ch +# +# Attention +# +# (A1) Dans les d�finitions de variables ci-dessous, m�fiez-vous des espaces � la fin! +# (A2) Laisser espace apr�s le += de surcharge : exemple : xxx+= yyyy +# + +ifndef __CUDA_VISUAL_PUBLIC_OPTION_MK__ +__CUDA_VISUAL_PUBLIC_OPTION_MK__=true + +############################################### +# Cuda Visual Win # +############################################### + +################################## +# public # +################################## + +######################## +# visual # +######################## + +#Option de compilation +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +#CXXFLAGS+= + +################# +# Warning # +################# + +#linkage dll +CXXFLAGS+= /MD + +################# +# Optimisation # +################# + +# General +CXX_OPTIMISATION+= /Ox # All optimisation + +# CPU specific +# +#CXX_OPTIMISATION+= /arch:SSE # By default with 64bits processor +#CXX_OPTIMISATION+= /arch:SSE2 # By default with 64bits processor +#CXX_OPTIMISATION+= /arch:AVX # ko home +#X86_CXX_OPTIMISATION+= /arch:AVX2 # cuda2,i7 (from visual 2013) + +################# +# linkage # +################# + +#Option de linkage +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +CXXLDFLAGS+=# + +######################## +# nvcc # +######################## + +################# +# target # +################# + +# NVCCFLAGS +# https://developer.nvidia.com/cuda-gpus +# Quadro Fx4600 : sm_10 +# Quadro nvs140M : sm_11 +# GTX_295 : sm_13 +# GTX 580 sm_20 +# Tesla m2090 sm_20 +# Quadro6000 sm_20 +# Quadroplex 7000 sm_20 +# GTX 680 sm_30 +# Quadro k5000 sm_30 +# Tesla k20c sm_35 +# Gforce titan sm_35 +# Quadro k6000 sm_35 +# Tesla k40 sm_35 + +# NVCCFLAGS possibilities: +# +# -arch= Generate PTX for capability x.y +# -code= Generate binary for capability x.y, by default same as -arch +# -gencode arch=...,code=... Same as -arch and -code, but may be repeated (executable is bigger, and compilation time longer) + +# Target : Syntaxe light (shorcut) +# : Avantage : short,easy, quick +# : Incovenient : only one target can be specify! +# +NVCCFLAGS+= -arch=sm_20 +# +# Target : Syntaxe full +# : Avantage : many target can be specify! +# : : Allow jit compilation at runtime, for deploying in a gpu with higher arch than arch use for developpement. +# +# : Option : -arch : Virtual architecture +# : generate PTX (ptx code is the same as byte code in java) +# : Like java, a jit compilation at runtime is performed. +# : Jit compilatioonce is performed only once, fortunately a cache is used to persist a final binary image. +# +# : Option : -code : Real architecture +# : nvcc embeded a compiled code image in the executable for each specified architecture -arch, +# : Code image is a true binary load image for each real architecture (present at compilation time?), and ptx code for earch virtual architecture (not present at compilation time?) +# +# +# +# Enable or disable all following lignes +#NVCCFLAGS+= -gencode arch=compute_20,code=sm_20 #idem NVCCFLAGS+= -arch=sm_20 +#NVCCFLAGS+= -gencode arch=compute_30,code=sm_30 #idem NVCCFLAGS+= -arch=sm_30 +#NVCCFLAGS+= -gencode arch=compute_35,code=sm_35 #idem NVCCFLAGS+= -arch=sm_35 +#NVCCFLAGS+= -gencode arch=compute_50,code=sm_50 #idem NVCCFLAGS+= -arch=sm_50 + +NVCCFLAGS+= -m64 # + +#Option de compilation +# Version minimale : vide +# Surcharger automatiquement (par exemple en fonction du type de la target) + +################# +# Optimisation # +################# + +NVCCFLAGS+= -use_fast_math #idem -ftz=true -prec_div=false -prec_sqrt=false +NVCCFLAGS+= --fmad=true # + +################# +# linkage # +################# + +# Version minimale : vide (sera surcharg�e) +# Surcharger automatiquement (par exemple en fonction du type de la target) + +NVCCLDFLAGS+=# + +################# +# debug # +################# + +#decommneter la ligne pour +# (1) empecher l'optimisation +# (2) activer les flag de debug + +#DEBUG=true + +#NVCCFLAGS+= -dryrun +#NVCCFLAGS+= -v + +################# +# extension # +################# + +#Injection de variable dans le code +# same as #define XXX YYY +# same as -DXXX +#Attention, pas mettre -D, ni #define, que XXX + +CODE_DEFINE_VARIABLES+=# + +# Injection automatique de lib windows standard +# true (ou n'importe quoi) pour activer! +# rien pour desactiver +# Version minimale : vide (avec # pour le montrer) + +EXCLUDE_LIBRARY_FILES+=# +ADD_LIBRARY_FILES+=# + +############################################### +# End # +############################################### + +endif#__CUDA_VISUAL_PUBLIC_OPTION_MK__ + diff --git a/WCudaMSE/BUILDER/makefile/public/doc/doxygen.mk b/WCudaMSE/BUILDER/makefile/public/doc/doxygen.mk new file mode 100755 index 0000000..10be538 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/public/doc/doxygen.mk @@ -0,0 +1,67 @@ +# Version : 0.0.1 +# Date : 20.01.2014 +# +# Installation (Linux): +# +# sudo apt-get install doxygen +# sudo apt-get install graphviz +# + +ifndef __CUDA_DOXYGEN_MK__ +__CUDA_DOXYGEN_MK__=true + +################################################# +# SRC # +################################################# + +#recursif +DOX_SRC:=$(SRC_ROOT) $(SRC_AUX) +#DOX_SRC:=$(SRC_ROOT) + +#recursif +DOX_SRC_EXCLUDE:= $(SRC_AUX) + +################################################# +# General Doxygen configuration # +################################################# + +DOX_CREATE_SUBDIRS:=YES + +#Other supported language: French, German, look the Doxyfile document for more +DOX_OUTPUT_LANGUAGE:=English + +#Generate the latex files for the documentation. Need to compile to create the pdf +DOX_GENERATE_LATEX:=NO + +#Look recursively into directories +DOX_RECURSIVE:=YES + +DOX_EXTRACT_PRIVATE:=NO + +######################################### +# Configuration of Dot (graph) # +######################################### + +#Define if you have the software 'dot' +DOX_HAVE_DOT:=YES + +#Display the class diagram +DOX_CLASS_DIAGRAMS:=YES + +#Required to display the class diagram in UML +DOX_EXTRACT_ALL:=YES + +#UML look for the diagram +DOX_UML_LOOK:=YES + +#For a methode, generate a graph for every sub methode used. TAKE A LOT OF TIME +DOX_CALL_GRAPH:=NO + +#For a methode, generate a graph which contain the methode using the current methode. TAKE A LOT OF TIME +DOX_CALLER_GRAPH:=NO + +######################################### +# End # +######################################### + +endif#__CUDA_DOXYGEN_MK__ \ No newline at end of file diff --git a/WCudaMSE/BilatTools_CPP/.project b/WCudaMSE/BilatTools_CPP/.project new file mode 100755 index 0000000..d9b6443 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/.project @@ -0,0 +1,79 @@ + + + BilatTools_CPP + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f mingw.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/BilatTools_CPP/dataProject.mk b/WCudaMSE/BilatTools_CPP/dataProject.mk new file mode 100755 index 0000000..e5df808 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/dataProject.mk @@ -0,0 +1,74 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=BilatTools_CPP + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +#SRC_AUX+= + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# +# Mimimum : empty + +include $(API)/openmp.mk +#include $(API)/cppTest.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+=CBI_NO_CUDA + +################################################# +# End # +################################################# diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/AleaTools.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/AleaTools.cpp new file mode 100755 index 0000000..f55adc1 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/AleaTools.cpp @@ -0,0 +1,72 @@ +#include +#include +#include +#include + +#include "AleaTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + +AleaTools::AleaTools() + { + srand(time(NULL)); + } + +AleaTools::~AleaTools() + { + // rien + } + +/*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + +/*----------------------*\ + |* static *| + \*---------------------*/ + +/** + * in [a,b] + * Attention : pas thread safe + */ +double AleaTools::uniformeAB(double a, double b) + { + return a + uniforme01() * (b - a); + } + +/** + * in [0,1] + * Attention : pas thread safe + */ +double AleaTools::uniforme01(void) + { + // rand in [0,RAND_MAX] + return rand() / (double) RAND_MAX; + } + +/** + * in [a,b] + * Attention : pas thread safe + */ +int AleaTools::uniformeAB(int a, int b) + { + // rand in [0,RAND_MAX] + double pente = (b-a)/(double)RAND_MAX; + + return a+(int)(pente*rand()); + } + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/Chronos.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/Chronos.cpp new file mode 100755 index 0000000..0b94574 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/Chronos.cpp @@ -0,0 +1,113 @@ +#include +#include +#include +#include + +#include "Chronos.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + +Chronos::Chronos() + { + start(); + } + +Chronos::~Chronos() + { + // rien + } + +/*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + +void Chronos::start() + { + // cout << "Chronos : start" << endl; + + isRunning = true; + + deltaTime = -1; + timeStart = time(); + } + +double Chronos::stop() + { + //cout << "Chronos : stop" << endl; + + isRunning = false; + + timeStop = time(); + deltaTime = timeStop - timeStart; + + return deltaTime; + } + +double Chronos::getDeltaTime() const + { + if (isRunning) + { + cout << "Chronos : Warning : Stop chrono befor, or use methode timeFlight() instead!" << endl; + return -1; + } + else + { + return deltaTime; + } + } + +double Chronos::timeFlight() const + { + return time() - timeStart; + } + +void Chronos::print(const string& titre) const + { + print(cout, titre); + } + +void Chronos::print(ostream& stream, const string& titre) const + { + double dt; + if (isRunning) + { + dt = timeFlight(); + } + else + { + dt = deltaTime; + } + stream << titre << " " << dt << " (s)" << endl; + } + +double Chronos::time() + { + // return time(NULL); // #include time(NULL) est time_t + // Problem : Sous linux : compte en seconde! + + return omp_get_wtime(); //#include + } + +/*--------------------------------------*\ + |* Friend *| + \*-------------------------------------*/ + +ostream& operator <<(ostream& stream, const Chronos& chrono) // friend + { + chrono.print(stream); + return stream; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/LimitsTools.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/LimitsTools.cpp new file mode 100755 index 0000000..59b82a0 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/LimitsTools.cpp @@ -0,0 +1,50 @@ +#include +#include + +#include "LimitsTools.h" + + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + +LimitsTools::LimitsTools() + { + // rien + } + +LimitsTools::~LimitsTools() + { + // rien + } + +/*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + +/*----------------------*\ + |* static *| + \*---------------------*/ + + +void LimitsTools::rappelTypeSize(void) + { + cout< +#include +#include +#include + +#include "MathTools.h" + + +using std::cout; +using std::endl; + +#ifndef MIN +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif + +#ifndef MAX +#define MAX(a,b) (((a)>(b))?(a):(b)) +#endif + +#ifndef ABS +#define ABS(x) ((x)>0?(x):-(x)) +#endif + +#ifndef MAXABS +#define MAXABS(a,b) (ABS((a))>ABS((b)) ? ABS((a)): ABS((b))) +#endif + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + +MathTools::MathTools() + { + // rien + } + +MathTools::~MathTools() + { + // rien + } + +/*--------------------------------------*\ + |* Methodes static *| + \*-------------------------------------*/ + +/*----------------------*\ + |* static *| + \*---------------------*/ + +/*---------------*\ +|* Float *| +\*---------------*/ + +bool MathTools::isEquals(float x1, float x2, float epsilon) + { + bool isOk; + double delta; + + if (x1 == 0 || x2 == 0) + { + delta = fabs(x1 - x2); + isOk = delta <= epsilon; + } + else + { + delta = fabs((x1 - x2) / MAXABS(x1,x2)); + isOk = delta <= epsilon; + } + + if (!isOk) + { + cout << "isEgale Float: (x1,x2)=(" << x1 << "," << x2 << ") : delta (Relatif) = " << delta << endl; + } + + return isOk; + } + + +bool MathTools::isEquals(float a, float b, float reference, float epsilon) + { + return fabs((a - b) / reference) <= epsilon; + } + +bool MathTools::isEquals(float* tabA, float* tabB, int n, float epsilon) + { + for (int i = 0; i < n; i++) + { + if (!isEquals(tabA[i], tabB[i], epsilon)) + { + return false; + } + } + return true; + } + +bool MathTools::isEqualsRelatifMax(float* tabA, float* tabB, int n, float epsilon) + { + float max = maxAbs(tabA, tabB, n); + + if (max != 0) + { + for (int i = 0; i < n; i++) + { + if (!isEquals(tabA[i], tabB[i], max, epsilon)) + { + return false; + } + } + return true; + } + else + { + return true;// tous à zero + //return isEquals(tabA, tabB, n, epsilon); + } + } + +/*---------------*\ +|* Double *| +\*---------------*/ + +bool MathTools::isEquals(double x1, double x2, double epsilon) + { + bool isOk; + double delta; + if (x1 == 0 || x2 == 0) + { + delta = fabs(x1 - x2); + isOk = delta <= epsilon; + } + else + { + delta = fabs((x1 - x2) / MAXABS(x1,x2)); + isOk = delta <= epsilon; + } + + if (!isOk) + { + cout << "isEgale Double : (x1,x2)=(" << x1 << "," << x2 << ") : delta (Relatif) = " << delta << endl; + } + + return isOk; + } + +/*---------------*\ +|* Long *| + \*---------------*/ + +bool MathTools::isEquals(long x1, long x2) + { + long delta = labs(x1 - x2); + bool isOk = (delta == 0); + + if (!isOk) + { + cout << "isEgale Long: (x1,x2)=(" << x1 << "," << x2 << ") : delta (Relatif) = " << delta << endl; + } + + return isOk; + } + +bool MathTools::isPower2(long i) + { + while (i >= 2) + { + if (i % 2 != 0) + { + return false; + } + i /= 2; + } + return true; + } + +/*---------------*\ +|* isPower2 *| +\*---------------*/ + +bool MathTools::isPower2(int i) // TODO operateur bit + { + while (i >= 2) + { + if (i % 2 != 0) + { + return false; + } + i /= 2; + } + return true; + } + +bool MathTools::isPower2(unsigned int i) // TODO operateur bit + { + while (i >= 2) + { + if (i % 2 != 0) + { + return false; + } + i /= 2; + } + return true; + } + +/*--------------------------------------*\ + |* Methode static private *| + \*-------------------------------------*/ + +float MathTools::maxAbs(float a, float b) + { + return MAXABS(fabs(a), fabs(b)); + } + +float MathTools::maxAbs(float* tabA, float* tabB, int n) + { + float maxAbs = 0; + + for (int i = 0; i < n; i++) + { + if (fabs(tabA[i]) > maxAbs) + { + maxAbs = fabs(tabA[i]); + } + if (fabs(tabB[i]) > maxAbs) + { + maxAbs = fabs(tabB[i]); + } + } + + return maxAbs; + } + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/StringTools.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/StringTools.cpp new file mode 100755 index 0000000..0baca35 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/StringTools.cpp @@ -0,0 +1,73 @@ +#include + +#include "StringTools.h" + +using std::stringstream; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + +StringTools::StringTools() + { + // rien + } + +StringTools::~StringTools() + { + // rien + } + +/*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + +/*----------------------*\ + |* static *| + \*---------------------*/ + +string StringTools::toString(int number) + { + stringstream ss; //create a stringstream + ss << number; //add number to the stream + return ss.str(); //return a string with the contents of the stream + } + +string StringTools::toString(unsigned int number) + { + stringstream ss; //create a stringstream + ss << number; //add number to the stream + return ss.str(); //return a string with the contents of the stream + } + +string StringTools::toString(long number) + { + stringstream ss; //create a stringstream + ss << number; //add number to the stream + return ss.str(); //return a string with the contents of the stream + } + +string StringTools::toString(float number) + { + stringstream ss; //create a stringstream + ss << number; //add number to the stream + return ss.str(); //return a string with the contents of the stream + } + +string StringTools::toString(double number) + { + stringstream ss; //create a stringstream + ss << number; //add number to the stream + return ss.str(); //return a string with the contents of the stream + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + + + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/TabTools.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/TabTools.cpp new file mode 100755 index 0000000..db57e32 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/TabTools.cpp @@ -0,0 +1,64 @@ +#include +#include +#include +#include + +#include "TabTools.h" +#include "AleaTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + +TabTools::TabTools() + { + // rien + } + +TabTools::~TabTools() + { + // rien + } + +/*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + +/*----------------------*\ + |* static *| + \*---------------------*/ + + double TabTools::reduction(double* tab, int n) + { + double sum=0; + for(int i=1;i<=n;i++) + { + sum+=*tab; + tab++; + } + return sum; + } + + void TabTools::init(double* tab,int n,double a) + { + for(int i=1;i<=n;i++) + { + *tab=a; + tab++; + } + } + + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/VariateurF.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/VariateurF.cpp new file mode 100755 index 0000000..8181794 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/VariateurF.cpp @@ -0,0 +1,89 @@ +#include "VariateurF.h" +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +VariateurF::VariateurF(const IntervalF& range, float dt) + { + this->dt = dt; + this->tMin = range.a; + this->tMax =range.b; + + // Tools + this->isCroisssantPhase = true; + this->t =range.a; + + assert(tMin= tMax) + { + isCroisssantPhase = false; + t -= dt; + } + else + { + t += dt; + } + } + else + { + if (t <= tMin) + { + isCroisssantPhase = true; + t += dt; + } + else + { + t -= dt; + } + } + + return t; + } + +double VariateurF::get() + { + return t; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/VariateurI.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/VariateurI.cpp new file mode 100755 index 0000000..a1c7d56 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/VariateurI.cpp @@ -0,0 +1,89 @@ +#include "VariateurI.h" +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +VariateurI::VariateurI(const IntervalI& range, int dt) + { + this->dt = dt; + this->tMin = range.a; + this->tMax = range.b; + + // Tools + this->isCroisssantPhase = true; + this->t =range.a; + + assert(tMin= tMax) + { + isCroisssantPhase = false; + t -= dt; + } + else + { + t += dt; + } + } + else + { + if (t <= tMin) + { + isCroisssantPhase = true; + t += dt; + } + else + { + t -= dt; + } + } + + return t; + } + +int VariateurI::get() + { + return t; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/namespace_cpu/ColorTools_CPU.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/namespace_cpu/ColorTools_CPU.cpp new file mode 100755 index 0000000..7762d55 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/namespace_cpu/ColorTools_CPU.cpp @@ -0,0 +1,194 @@ +/* + * The two methode HSB_TO_RGB and RGB_TO_HSB are from http://www.easyrgb.com/index.php?X=MATH&H=21#text21 + */ +#include "ColorTools_CPU.h" + +#define max(a,b) (a>=b?a:b) +#define min(a,b) (a<=b?a:b) + +namespace cpu + { + +//#define RED_MASK 0x000000FF +//#define GREEN_MASK 0x0000FF00 +//#define BLUE_MASK 0x00FF0000 +//#define ALPHA_MASK 0xFF000000; + + /*--------------------------------------*\ +|* HSB_TO_RVB *| + \*-------------------------------------*/ + + void ColorTools::HSB_TO_RVB(const float3& hsb, uchar4* ptrRVBA) + { + ColorTools::HSB_TO_RVB(hsb.x, hsb.y, hsb.z, &ptrRVBA->x, &ptrRVBA->y, &ptrRVBA->z); + } + + void ColorTools::HSB_TO_RVB(float h01, uchar4* ptrRVBA) + { + ColorTools::HSB_TO_RVB(h01, 1.0f, 1.0f, &ptrRVBA->x, &ptrRVBA->y, &ptrRVBA->z); + } + + void ColorTools::HSB_TO_RVB(float h01, float s01, float b01, uchar4* ptrRVBA) + { + ColorTools::HSB_TO_RVB(h01, s01, b01, &ptrRVBA->x, &ptrRVBA->y, &ptrRVBA->z); + } + + /** + * Inputs : + * H,S,B valeur comprise entre [0,1] + * + * Outpus : + * R,G,B le resultat compris dans les valeurs [0-255] + */ + void ColorTools::HSB_TO_RVB(const float H, const float S, const float V, unsigned char *ptrR, unsigned char *ptrG, unsigned char *ptrB) + { + if (S == 0) //HSV from 0 to 1 + { + *ptrR = V * 255; + *ptrG = V * 255; + *ptrB = V * 255; + } + else + { + float var_h = H * 6; + if (var_h == 6) + { + var_h = 0; + } //H must be < 1 + + unsigned char var_i = (unsigned char) var_h; //Or ... var_i = floor( var_h ) + float var_1 = V * (1 - S); + float var_2 = V * (1 - S * (var_h - var_i)); + float var_3 = V * (1 - S * (1 - (var_h - var_i))); + + float var_r, var_g, var_b; + if (var_i == 0) + { + var_r = V; + var_g = var_3; + var_b = var_1; + } + else if (var_i == 1) + { + var_r = var_2; + var_g = V; + var_b = var_1; + } + else if (var_i == 2) + { + var_r = var_1; + var_g = V; + var_b = var_3; + } + else if (var_i == 3) + { + var_r = var_1; + var_g = var_2; + var_b = V; + } + else if (var_i == 4) + { + var_r = var_3; + var_g = var_1; + var_b = V; + } + else + { + var_r = V; + var_g = var_1; + var_b = var_2; + } + + //RGB results from 0 to 255 + *ptrR = (unsigned char) (var_r * 255); + *ptrG = (unsigned char) (var_g * 255); + *ptrB = (unsigned char) (var_b * 255); + } + } + + /*--------------------------------------*\ + |* RGB_TO_HSV *| + \*-------------------------------------*/ + + void ColorTools::RGB_TO_HSB(const unsigned char R, const unsigned char G, const unsigned char B, float &H, float &S, float &V) + { + //RGB from 0 to 255 + float var_R = (R / (float) 255); + float var_G = (G / (float) 255); + float var_B = (B / (float) 255); + + float var_Min = min(var_R, min(var_G, var_B)); //Min. value of RGB + float var_Max = max(var_R, max(var_G, var_B)); //Max. value of RGB + float del_Max = var_Max - var_Min; //Delta RGB value + + V = var_Max; + + if (del_Max == 0) //This is a gray, no chroma... + { + H = 0; //HSV results from 0 to 1 + S = 0; + } + else //Chromatic data... + { + S = del_Max / var_Max; + + float del_R, del_G, del_B; + del_R = (((var_Max - var_R) / 6) + (del_Max / 2)) / del_Max; + del_G = (((var_Max - var_G) / 6) + (del_Max / 2)) / del_Max; + del_B = (((var_Max - var_B) / 6) + (del_Max / 2)) / del_Max; + + if (var_R == var_Max) + H = del_B - del_G; + else if (var_G == var_Max) + H = (1 / 3) + del_R - del_B; + else if (var_B == var_Max) + H = (2 / 3) + del_G - del_R; + + if (H < 0) + H += 1; + if (H > 1) + H -= 1; + } + } + + /*--------------------------------------*\ + |* int *| + \*-------------------------------------*/ + + int ColorTools::toIntRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + { + int var_a = a << 24; + int var_b = b << 16; + int var_g = g << 8; + int rgb = var_b ^ var_g ^ ((int) r) ^ var_a; + + return rgb; + } + + int ColorTools::toIntRGBA(float r, float g, float b, float a) + { + return toIntRGBA((unsigned char) (r * 255.0), (unsigned char) (g * 255.0), (unsigned char) (b * 255.0), (unsigned char) (a * 255.0)); + } + + int ColorTools::HSB_TO_IntRGBA(float h01, float s01, float b01, float a01) + { + unsigned char result_r, result_v, result_b; + ColorTools::HSB_TO_RVB(h01, s01, b01, &result_r, &result_v, &result_b); + + return toIntRGBA(result_r, result_v, result_b, (int) (a01 * 255.0)); + } + + void ColorTools::fromIntRGBA(const int rgba, unsigned char &r, unsigned char &g, unsigned char &b, unsigned char &a) + { + r = (unsigned char) rgba; + g = (unsigned char) (rgba >> 8); + b = (unsigned char) (rgba >> 16); + a = (unsigned char) (rgba >> 24); + } + + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/namespace_cpu/IndiceTools_CPU.cpp b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/namespace_cpu/IndiceTools_CPU.cpp new file mode 100755 index 0000000..b70c829 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/cpp/namespace_cpu/IndiceTools_CPU.cpp @@ -0,0 +1,35 @@ +#include "IndiceTools_CPU.h" + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + + /** + * s[0,W*H[ --> i[0,H[ j[0,W[ + */ + void IndiceTools::toIJ( int s, int w, int* ptrI, int* ptrJ) + { + *ptrI = s / w; + *ptrJ = s - w * (*ptrI); + } + + /** + * i[0,H[ j[0,W[ --> s[0,W*H[ + */ + int IndiceTools::toS(int W, int i, int j) + { + return (i * W) + j; + } + + } +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/AleaTools.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/AleaTools.h new file mode 100755 index 0000000..4420132 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/AleaTools.h @@ -0,0 +1,74 @@ +#ifndef ALEATOOLS_H_ +#define ALEATOOLS_H_ + +#include +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + + +/** + * Not thread safe, see OpenpTools to obtian random number with parrallel thread + */ +class AleaTools + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + /** + * practice srand(time(NULL)); + */ + AleaTools(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~AleaTools(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /** + * in [a,b] + * Attention : pas thread safe + */ + double uniformeAB(double a,double b); + + /** + * in [0,1] + * Attention : pas thread safe + */ + double uniforme01(void); + + /** + * in [a,b] + * Attention : pas thread safe + */ + int uniformeAB(int a,int b); + + + private: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + }; + +#endif + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/Chronos.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/Chronos.h new file mode 100755 index 0000000..b740e9b --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/Chronos.h @@ -0,0 +1,60 @@ +#ifndef CHRONOS_H +#define CHRONOS_H + +#include + +using std::string; +using std::ostream; + +class Chronos + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + Chronos(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~Chronos(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + void start(); + double stop(); + double timeFlight() const; + double getDeltaTime() const; + void print(const string& titre = "") const; + void print(ostream& stream, const string& titre = "") const; + + /*--------------------------------------*\ + |* Friend *| + \*-------------------------------------*/ + + friend ostream& operator <<(ostream& stream, const Chronos& chrono); + + private: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + static double time(); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + double timeStart; + double timeStop; + double deltaTime; + bool isRunning; + }; + +#endif diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/LimitsTools.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/LimitsTools.h new file mode 100755 index 0000000..7fdc5b9 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/LimitsTools.h @@ -0,0 +1,54 @@ +#ifndef LIMITS_H +#define LIMITS_H + + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +class LimitsTools + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + + LimitsTools(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~LimitsTools(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /** + * Be careful between linux and windows limits! + */ + static void rappelTypeSize(void); + + + private: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + }; + +#endif + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/MathTools.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/MathTools.h new file mode 100755 index 0000000..fb4b55b --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/MathTools.h @@ -0,0 +1,111 @@ +#ifndef MATH_TOOLS_ +#define MATH_TOOLS_ + +#define PI_FLOAT 3.141592653589793f + +#ifndef PI +#define PI 3.1415926535897932384626433832795028841971693993751 +#endif + +#ifndef MIN +#define MIN(X,Y) ((X)<(Y)?(X):(Y)) +#endif + +#ifndef MAX +#define MAX(X,Y) ((X)>(Y)?(X):(Y)) +#endif + +class MathTools + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + MathTools(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~MathTools(); + + /*--------------------------------------*\ + |* Methodes Static *| + \*-------------------------------------*/ + + /*---------------*\ + |* Float *| + \*---------------*/ + + /** + * Relatif au max(x1,x2) + */ + static bool isEquals(float x1, float x2, float epsilon = 0); + + /** + * Relatif a reference + * epsilon pas de valeur par default, sinon meme signature que autre methode (overload) + */ + static bool isEquals(float a, float b, float reference, float epsilon); // + + /** + * Relatif, un a un (au max des 2) + * Hyp: tab de meme size n + */ + static bool isEquals(float* tabA, float* tabB, int n, float epsilon = 0); + + /** + * Relatif par rapport au max de la série + * Hyp: tab de meme size n + */ + static bool isEqualsRelatifMax(float* tabA, float* tabB, int n, float epsilon = 0); + + /*---------------*\ + |* Double *| + \*---------------*/ + + /** + * Relatif au max(x1,x2) + */ + static bool isEquals(double x1, double x2, double epsilon = 0); + + + /*---------------*\ + |* Long *| + \*---------------*/ + + /** + * Absolu + */ + static bool isEquals(long x1, long x2); + + /*---------------*\ + |* isPower2 *| + \*---------------*/ + + static bool isPower2(long i); + static bool isPower2(int i); + static bool isPower2(unsigned int i); + + private: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + static float maxAbs(float a, float b); + + /** + * Hyp: tab de meme size n + */ + static float maxAbs(float* tabA, float* tabB, int n); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + }; + +#endif diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/StringTools.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/StringTools.h new file mode 100755 index 0000000..557ecca --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/StringTools.h @@ -0,0 +1,51 @@ +#ifndef STRING_TOOLS_H_ +#define STRING_TOOLS_H_ + +#include + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +class StringTools + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + StringTools(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~StringTools(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + static string toString(int number); + static string toString(unsigned int number); + static string toString(long number); + static string toString(float number); + static string toString(double number); + + private: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + }; + +#endif + diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/TabTools.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/TabTools.h new file mode 100755 index 0000000..b19e12d --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/TabTools.h @@ -0,0 +1,45 @@ +#ifndef TAB_TOOLS_H_ +#define TAB_TOOLS_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +class TabTools + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + TabTools(); + virtual ~TabTools(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + static double reduction(double* tab, int n); + + static void init(double* tab,int n,double a); + + private: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/VariateurF.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/VariateurF.h new file mode 100755 index 0000000..4e4c159 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/VariateurF.h @@ -0,0 +1,54 @@ +#ifndef VARIATEUR_F_H_ +#define VARIATEUR_F_H_ + +#include "IntervalF_CPU.h" + +using namespace cpu; + +/** + * F pour float + */ +class VariateurF + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + VariateurF(const IntervalF& range, float dt); + VariateurF(); + virtual ~VariateurF(); + + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + double varierAndGet(); + double get(); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Input + float tMin; + float tMax; + float dt; + + // tools + float t; + bool isCroisssantPhase; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/VariateurI.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/VariateurI.h new file mode 100755 index 0000000..799eda2 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/VariateurI.h @@ -0,0 +1,54 @@ +#ifndef VARIATEUR_I_H_ +#define VARIATEUR_I_H_ + +#include "IntervalI_CPU.h" + +using namespace cpu; + +/** + * I pour Int + */ +class VariateurI + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + VariateurI(const IntervalI& range, int dt); + VariateurI(); + virtual ~VariateurI(); + + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + int varierAndGet(); + int get(); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Input + int tMin; + int tMax; + int dt; + + // tools + int t; + bool isCroisssantPhase; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/CalibreurF_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/CalibreurF_CPU.h new file mode 100755 index 0000000..6f40d89 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/CalibreurF_CPU.h @@ -0,0 +1,61 @@ +#ifndef CALIBREUR_F_CPU_H_ +#define CALIBREUR_F_CPU_H_ + +#include "IntervalF_CPU.h" + +namespace cpu + { + + class CalibreurF + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + CalibreurF(const IntervalF& input, const IntervalF& output) + { + this->pente = (output.b - output.a) / (float) (input.b - input.a); + this->translation = output.a - pente * input.a; + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void calibrer(float& value) + { + value = value * pente + translation; + } + + float getPente() + { + return this->pente; + } + + float getTranslation() + { + return this->translation; + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Output + float pente; + float translation; + + }; + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/ColorTools_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/ColorTools_CPU.h new file mode 100755 index 0000000..728e9d2 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/ColorTools_CPU.h @@ -0,0 +1,103 @@ +#ifndef COLOR_TOOLS_CPU_H +#define COLOR_TOOLS_CPU_H + +#include "cudaType_CPU.h" + +/** + * The two methode HSB_TO_RGB and RGB_TO_HSB are from http://www.easyrgb.com/index.php?X=MATH&H=21#text21 + */ +namespace cpu + { + class ColorTools + { + public: + + /*--------------------------------------*\ + |* HSB_TO_RVB *| + \*-------------------------------------*/ + + /** + * Convertir une couleur HSB en RVB ! + * H,S,B in [0,1] + * R,V,B in [0,255] + */ + static void HSB_TO_RVB(const float3& hsb01, uchar4* ptrRVBA); + + /** + * Convertir une couleur HSB en RGB ! + * H,S,B in [0,1] + * R,G,B in [0,255] + */ + static void HSB_TO_RVB(float h01, uchar4* ptrRVBA); + + /** + * Convertir une couleur HSB en RGB ! + * H,S,B in [0,1] + * R,G,B in [0,255] + */ + static void HSB_TO_RVB(float h01, float s01, float b01, uchar4* ptrRVBA); + + /** + * Conversion HSB => RVB + * Inputs : + * H,S,B in [0,1] + * Outputs : + * R,V,B in [0,255] + */ + static void HSB_TO_RVB(const float H, const float S, const float V, unsigned char *ptrR, unsigned char *ptrG, unsigned char *ptrB); + + /*--------------------------------------*\ + |* RGB_TO_HSV *| + \*-------------------------------------*/ + + /** + * Conversion RGB => HSB + * Inputs : + * R,G,B in [0,255] + * Outpus : + * H,S,B in [0,1] + */ + static void RGB_TO_HSB(const unsigned char R, const unsigned char G, const unsigned char B, float &H, float &S, float &V); + + /*--------------------------------------*\ + |* int *| + \*-------------------------------------*/ + + /** + * Conversion HSB => RGBA + toIntRGBA + * Inputs : + * h01,b01,b01 in [0,1] + * Outpus : + * intRGBA cod� sur 32 bits, chaque composante (a,r,g,b) �tant cod�e sur 4 bits + * intRGBA cod�e : 0xAARRGGBB + */ + static int HSB_TO_IntRGBA(float h01, float s01, float b01, float a01 = 0); + + /** + * Conversion (r,g,b,a) => intRGBA + * Inputs : + * r,g,b,a in [0,255] + * Outputs : + * intRGBA cod� sur 32 bits, chaque composante (a,r,g,b) �tant cod�e sur 4 bits + * intRGBA cod�e : 0xAARRGGBB + */ + static int toIntRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a = 0); + + /** + * see toIntRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a = 0) + */ + static int toIntRGBA(float r01, float g01, float b01, float a01 = 0); + + /** + * Inputs : + * intRGBA cod� sur 32 bits, chaque composante (a,r,g,b) �tant cod�e sur 4 bits + * intRGBA cod�e : 0xAARRGGBB + * Outputs : + * r,g,b,a in [0,255] + */ + static void fromIntRGBA(const int rgb, unsigned char &r, unsigned char &g, unsigned char &b, unsigned char &a); + + }; + } + +#endif diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IndiceTools_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IndiceTools_CPU.h new file mode 100755 index 0000000..89e2f3e --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IndiceTools_CPU.h @@ -0,0 +1,53 @@ +#ifndef INDICE_TOOLS_CPU_H_ +#define INDICE_TOOLS_CPU_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class IndiceTools + { + + /*--------------------------------------*\ + |* Constructor *| + \*--------------------------------------*/ + + public: + + /*--------------------------------------*\ + |* Methodes *| + \*--------------------------------------*/ + + public: + + /** + * s[0,W*H[ --> i[0,H[ j[0,W[ + */ + static void toIJ( int s, int W, int* ptri, int* ptrj); + + /** + * i[0,H[ j[0,W[ --> s[0,W*H[ + */ + static int toS(int W, int i, int j); + + + /*-------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IntervalF_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IntervalF_CPU.h new file mode 100755 index 0000000..a4b83ce --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IntervalF_CPU.h @@ -0,0 +1,64 @@ +#ifndef INTERVAL_F_CPU_H_ +#define INTERVAL_F_CPU_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + + /** + * F Pour Float + */ + class IntervalF + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + IntervalF(float a, float b) + { + this->a = a; + this->b = b; + } + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + float getA(void) + { + return this->a; + } + + float getB(void) + { + return this->b; + } + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + public: + + float a; + float b; + }; + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IntervalI_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IntervalI_CPU.h new file mode 100755 index 0000000..c38df11 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/IntervalI_CPU.h @@ -0,0 +1,48 @@ +#ifndef INTERVAL_I_CPU_H_ +#define INTERVAL_I_CPU_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class IntervalI + { + + public: + + IntervalI(int a, int b) + { + this->a = a; + this->b = b; + } + + public: + + int getA(void) + { + return this->a; + } + + int getB(void) + { + return this->b; + } + + public: + + int a; + int b; + }; + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/cudaType_CPU.h b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/cudaType_CPU.h new file mode 100755 index 0000000..78098b5 --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/core/tools/header/namespace_cpu/cudaType_CPU.h @@ -0,0 +1,48 @@ +#ifndef CUDA_TYPE_CPU_H_ +#define CUDA_TYPE_CPU_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +// Attention : code duplicated : aussi dans shared_lib api image +// Contrainte : Les deux versions doivent etre identique + +namespace cpu + { + + #define uchar unsigned char + #define uint unsigned int + #define ulong unsigned long + + struct float2 + { + float x; + float y; + }; + + struct float3 + { + float x; + float y; + float z; + }; + + struct uchar4 + { + uchar x; + uchar y; + uchar z; + uchar w; + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_CPP/src/main.cpp b/WCudaMSE/BilatTools_CPP/src/main.cpp new file mode 100755 index 0000000..30b121a --- /dev/null +++ b/WCudaMSE/BilatTools_CPP/src/main.cpp @@ -0,0 +1,31 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Importation *| + \*---------------------------------------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + cout<<"BilatTools_CPP"< + + BilatTools_Cuda + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/BilatTools_Cuda/dataProject.mk b/WCudaMSE/BilatTools_Cuda/dataProject.mk new file mode 100755 index 0000000..1464347 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/dataProject.mk @@ -0,0 +1,76 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=BilatTools_Cuda + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + + +include $(API_CUDA)/cuda.mk +include $(API)/cppTest.mk +include $(API_CUDA)/cuda_OpenMP.mk #pour BilatTools_CPP +#include $(API_CUDA)/bilat_Image_FreeGlut_Cuda.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/cpp/Device.cpp b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/cpp/Device.cpp new file mode 100755 index 0000000..cd0d798 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/cpp/Device.cpp @@ -0,0 +1,712 @@ +#include +#include +#include +#include + +#include "Device.h" +#include "cudaTools.h" +#include "Chronos.h" +#include "omp.h" +#include "StringTools.h" + +using std::string; +using std::cout; +using std::cerr; +using std::endl; +using std::flush; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static void cout01(int isTrue); +static void coutBool(bool isFlag); +static int dim(const dim3& dim); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------*\ +|* wrapper *| + \*-------------*/ + +void Device::synchronize(void) + { + cudaDeviceSynchronize(); + } + +/*--------------*\ +|* Tools *| + \*-------------*/ + +void Device::checkKernelError(const char *message) + { + cudaError_t error = cudaGetLastError(); + if (error != cudaSuccess) + { + if (message != NULL) + { + fprintf(stderr, "\n[CUDA ERROR] : Kernel Execution Failed : %s: %s\n\n", message, cudaGetErrorString(error)); + } + else + { + fprintf(stderr, "\n[CUDA ERROR] : Kernel Execution Failed : %s\n\n", cudaGetErrorString(error)); + } + exit (EXIT_FAILURE); + } + } + +void Device::checkDimError(const dim3& dg, const dim3& db) + { + assertDim(dg, db); + checkDimOptimiser(dg, db); + } + +void Device::checkDimOptimiser(const dim3& dg, const dim3& db) + { + int mpCount = Device::getMPCount(); + int warpSize = Device::getWarpSize(); + + int nbBlock = dim(dg); + int nbThreadBlock = dim(db); + + // grid + if (nbBlock < mpCount || nbBlock % mpCount != 0) + { + string messageGrid = "nbBlock = " + StringTools::toString(nbBlock) + " : Heuristic : For best performance, for nbBlock, try a multiple of #MP=" + + StringTools::toString(mpCount); + + cout << "dg" << "(" << dg.x << "," << dg.y << "," << dg.z << ") " << messageGrid << endl; + } + + // block + if (nbThreadBlock < warpSize || nbThreadBlock % warpSize != 0) // TODO kepler + { + string messageBlock = "nbThreadBlock = " + StringTools::toString(nbThreadBlock) + + " : Heuristic : For best performance, for nbThreadBlock, try a multiple of |warp|=" + StringTools::toString(warpSize); + + cout << "db" << "(" << db.x << "," << db.y << "," << db.z << ") " << messageBlock << endl; + } + } + +void Device::assertDim(const dim3& dg, const dim3& db) + { + // grid + { + dim3 dimGridMax = Device::getMaxGridDim(); + + assert(dg.x <= dimGridMax.x); + assert(dg.y <= dimGridMax.y); + assert(dg.z <= dimGridMax.z); + } + + // block + { + dim3 dimBlockMax = Device::getMaxBlockDim(); + + assert(db.x <= dimBlockMax.x); + assert(db.y <= dimBlockMax.y); + assert(db.z <= dimBlockMax.z); + } + + // Thread per block + assert(dim(db) <= getMaxThreadPerBlock()); + } + +void Device::print(const dim3& dg, const dim3& db) + { + cout << "dg" << "(" << dg.x << "," << dg.y << "," << dg.z << ") " << endl; + cout << "db" << "(" << db.x << "," << db.y << "," << db.z << ") " << endl; + } + +int Device::dim(const dim3& dim) + { + return dim.x * dim.y * dim.z; + } + +int Device::nbThread(const dim3& dg, const dim3& db) + { + return dim(dg) * dim(db); + } + +/*--------------*\ +|* get *| + \*-------------*/ + +int Device::getDeviceId(void) + { + int deviceId; + HANDLE_ERROR(cudaGetDevice(&deviceId)); + + return deviceId; + } + +int Device::getDeviceCount(void) + { + int nbDevice; + HANDLE_ERROR(cudaGetDeviceCount(&nbDevice)); + + return nbDevice; + } + +cudaDeviceProp Device::getDeviceProp(int idDevice) + { + cudaDeviceProp prop; + HANDLE_ERROR(cudaGetDeviceProperties(&prop, idDevice)); + return prop; + } + +cudaDeviceProp Device::getDeviceProp(void) + { + return getDeviceProp(getDeviceId()); + } + +/*--------------------------------------*\ + |* Secondaire *| + \*-------------------------------------*/ + +/*--------------*\ +|* get *| + \*-------------*/ + +string Device::getNameSimple(int idDevice) + { + return getDeviceProp(idDevice).name; + } + +string Device::getNameSimple() + { + return getNameSimple(getDeviceId()); + } + +string Device::getName(int idDevice) + { + string id = StringTools::toString(idDevice); + string a = StringTools::toString(getCapacityMajor(idDevice)); + string b = StringTools::toString(getCapacityMinor(idDevice)); + + return "[" + getNameSimple(idDevice) + "] id = " + id + " sm=" + a + "" + b; + } + +string Device::getName() + { + return getName(getDeviceId()); + } + +dim3 Device::getMaxGridDim(int idDevice) + { + cudaDeviceProp prop = getDeviceProp(idDevice); + + return dim3(prop.maxGridSize[0], prop.maxGridSize[1], prop.maxGridSize[2]); + } + +dim3 Device::getMaxGridDim() + { + return getMaxGridDim(getDeviceId()); + } + +dim3 Device::getMaxBlockDim(int idDevice) + { + cudaDeviceProp prop = getDeviceProp(idDevice); + + return dim3(prop.maxThreadsDim[0], prop.maxThreadsDim[1], prop.maxThreadsDim[2]); + } + +dim3 Device::getMaxBlockDim() + { + return getMaxBlockDim(getDeviceId()); + } + +int Device::getMaxThreadPerBlock(int idDevice) + { + return getDeviceProp(idDevice).maxThreadsPerBlock; + } + +int Device::getMaxThreadPerBlock() + { + return getMaxThreadPerBlock(getDeviceId()); + } + +int Device::getWarpSize(int idDevice) + { + return getDeviceProp(idDevice).warpSize; + } + +int Device::getWarpSize(void) + { + return getWarpSize(getDeviceId()); + } + +int Device::getMPCount(int idDevice) + { + return getDeviceProp(idDevice).multiProcessorCount; + } + +int Device::getMPCount(void) + { + return getMPCount(getDeviceId()); + } + +int Device::getCapacityMajor(int idDevice) + { + return getDeviceProp(idDevice).major; + } + +int Device::getCapacityMajor() + { + return getCapacityMajor(getDeviceId()); + } + +int Device::getCapacityMinor(int idDevice) + { + return getDeviceProp(idDevice).minor; + } + +int Device::getCapacityMinor() + { + return getCapacityMinor(getDeviceId()); + } + +int Device::getRuntimeVersion() + { + int version = -1; + cudaRuntimeGetVersion(&version); + return version; + + // return CUDART_VERSION; + } + +int Device::getDriverVersion(void) + { + int version = -1; + cudaDriverGetVersion(&version); + return version; + } + +int Device::getAsyncEngineCount(int idDevice) + { + return getDeviceProp(idDevice).asyncEngineCount; + } + +int Device::getAsyncEngineCount() + { + return getAsyncEngineCount(getDeviceId()); + } + +/*--------------*\ +|* is *| + \*-------------*/ + +bool Device::isCuda(void) + { + return getDeviceCount() >= 1; + } + +bool Device::isFermi(int idDevice) + { + int c = getCapacityMajor(idDevice); + + return c >= 2 && c < 3; + } + +bool Device::isFermi() + { + return isFermi(getDeviceId()); + } + +bool Device::isKepler(int idDevice) + { + int c = getCapacityMajor(idDevice); + + return c >= 3 && c < 4; + } + +bool Device::isKepler() + { + return isKepler(getDeviceId()); + } + +/** + * 64 bits only + */ +bool Device::isUVAEnable(int idDevice) + { + return getCapacityMajor() >= 2.0 && getRuntimeVersion() >= 4000; + } + +/** + * 64 bits only + */ +bool Device::isUVAEnable() + { + return isUVAEnable(getDeviceId()); + } + +bool Device::isAtomicShareMemoryEnable(int idDevice) + { + return (getCapacityMajor(idDevice) == 1 && Device::getCapacityMinor(idDevice) >= 2) || getCapacityMajor(idDevice) >= 2; + } + +bool Device::isAtomicShareMemoryEnable() + { + return isAtomicShareMemoryEnable(getDeviceId()); + } + +bool Device::isHostMapMemoryEnable(int idDevice) + { + return getDeviceProp(idDevice).canMapHostMemory; + } + +bool Device::isHostMapMemoryEnable() + { + return isHostMapMemoryEnable(getDeviceId()); + } + +bool Device::isECCEnable(int idDevice) + { + return getDeviceProp(idDevice).ECCEnabled; + } + +bool Device::isECCEnable(void) + { + return isECCEnable(getDeviceId()); + } + +bool Device::isAsyncEngine(int idDevice) + { + return getDeviceProp(idDevice).deviceOverlap; + } + +bool Device::isAsyncEngine(void) + { + return isAsyncEngine(getDeviceId()); + } + +/*--------------------------------------*\ + |* Print *| + \*-------------------------------------*/ + +void Device::print(int idDevice) + { + cudaDeviceProp prop = getDeviceProp(idDevice); + + cout << endl; + cout << "===========================================" << endl; + cout << " " << prop.name << " : id=" << idDevice << " : sm=" << prop.major << "" << prop.minor << " :" << endl; + cout << "===========================================" << endl; + + cout << endl; + cout << "Device id : " << idDevice << endl; + cout << "Name : " << prop.name << endl; + cout << "GPU capability : " << prop.major << "." << prop.minor << "" << endl; + cout << "is Fermi : "; + coutBool(isFermi(idDevice)); + cout << "is Kepler : "; + coutBool(isKepler(idDevice)); + cout << "Clock rate : " << prop.clockRate / 1000 << " MHZ" << endl; + cout << "GPU integrated on MB : "; + cout01(prop.integrated); + // cout << "ComputeMode : " << prop.computeMode << endl; + + cout << endl; + cout << "Kernel : " << endl; + cout << "Limit execution (timeout): "; + cout01(prop.kernelExecTimeoutEnabled); + + cout << endl; + cout << "Memory : " << endl; + cout << "Global Memory : " << prop.totalGlobalMem / 1024 / 1024 << " MB" << endl; + cout << "Constant Memory : " << prop.totalConstMem / 1024 << " KB" << endl; + cout << "Texture1D max size : (" << prop.maxTexture1D << ")" << endl; + cout << "Texture2D max size : (" << prop.maxTexture2D[0] << "," << prop.maxTexture2D[1] << ")" << endl; + cout << "Texture3D max size : (" << prop.maxTexture3D[0] << "," << prop.maxTexture3D[1] << "," << prop.maxTexture3D[2] << ")" << endl; + //cout << "Texture2D Array max Size : (" << ptrProp.maxTexture2DArray[0] << "," << ptrProp.maxTexture2DArray[1] << "," << ptrProp.maxTexture2DArray[2] << ")"<< endl; + cout << "Texture Alignment : " << prop.textureAlignment << " B" << endl; + cout << "Max mem pitch : " << prop.memPitch << endl; + + cout << endl; + cout << "Multiprocesseur(MP) : " << endl; + cout << "MP count : " << prop.multiProcessorCount << endl; + cout << "Shared memory per block : " << prop.sharedMemPerBlock / 1024 << " KB " << endl; + cout << "Register memory per block: " << prop.regsPerBlock / 1024 << " KB " << endl; + cout << "Max threads per block : " << prop.maxThreadsPerBlock << endl; + cout << "Max block dim : (" << prop.maxThreadsDim[0] << "," << prop.maxThreadsDim[1] << "," << prop.maxThreadsDim[2] << ")" << endl; + cout << "Max grid dim : (" << prop.maxGridSize[0] << "," << prop.maxGridSize[1] << "," << prop.maxGridSize[2] << ")" << endl; + cout << "Threads in warp : " << prop.warpSize << endl; + + cout << endl; + cout << "GPU Capacity : " << endl; + cout << "MapHostMemory : "; + cout01(isHostMapMemoryEnable()); + cout << "AtomicOperation sharedMemory : "; + cout01(isAtomicShareMemoryEnable()); + + cout << "UVA (Unified Virtual Addressing) : "; + cout01(isUVAEnable()); + + cout << "ECCEnabled : "; + cout01(prop.ECCEnabled); + + cout << "Concurrent bidirectional copy (DMA only!) : "; + cout01(prop.deviceOverlap); + if (prop.deviceOverlap) + { + cout << "Concurrent bidirectional copy : host->device // device->host : " << getAsyncEngineCount(idDevice) << endl; + } + + cout << "Concurrent Kernels (fermi 16x) : "; + cout01(prop.concurrentKernels); + + cout << endl; + if (Device::getDeviceCount() >= 2) + { + printP2PmatrixCompatibility(); + } + + cout << "Cuda Runtime version : " << getRuntimeVersion() << endl; + cout << "Cuda Driver version : " << getDriverVersion() << endl; + cout << endl; + // cout << "=================== end ========================" << endl; + +// cout << endl; +// cout << "===========================================" << endl; +// cout << "Cuda Runtime version : " << getRuntimeVersion() << endl; +// cout << "===========================================" << endl; +// cout << endl; + } + +void Device::print() + { + print(getDeviceId()); + } + +void Device::printAll() + { + cout << "\nList of all GPU available :" << endl; + printAllSimple(); + + cout << endl << "Details :" << endl; + int deviceCount = getDeviceCount(); + + for (int id = 0; id < deviceCount; id++) + { + print(id); + } + + printCurrent(); + } + +void Device::printAllSimple() + { + cout << endl; + cout << "==============================================================" << endl; + cout << "[CUDA] : List GPU Available : cuda version = " << getRuntimeVersion() <= 2) + { + cout << "P2P enable : symetric matrix (" << n << "x" << n << "):" << endl; + } + + for (int i = 0; i < n; i++) + { + for (int j = 0; j < n; j++) + { + if (i != j) + { + cout << *ptrMatrixP2PCompatibility << " "; + } + else + { + cout << " "; + } + + if (*ptrMatrixP2PCompatibility) + { + int flaginutile = 0; + HANDLE_ERROR(cudaSetDevice(i)); + HANDLE_ERROR(cudaDeviceEnablePeerAccess(j, flaginutile)); + } + ptrMatrixP2PCompatibility++; + } + } + + delete[] matrixP2PCompatibility; + } + +int* Device::p2pMatrixCompatibility() + { + int n = Device::getDeviceCount(); + + int* matrixP2PCompatibility = new int[n * n]; + int* ptrMatrixP2PCompatibility = matrixP2PCompatibility; + + for (int i = 0; i < n; i++) + { + for (int j = 0; j < n; j++) + { + int isP2PAutorized01; + HANDLE_ERROR(cudaDeviceCanAccessPeer(&isP2PAutorized01, i, j)); + + *ptrMatrixP2PCompatibility++ = isP2PAutorized01; + } + } + + return matrixP2PCompatibility; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void cout01(int isTrue) + { + if (isTrue) + cout << "True" << endl; + else + cout << "False" << endl; + } + +void coutBool(bool isFlag) + { + if (isFlag) + cout << "True" << endl; + else + cout << "False" << endl; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/cpp/cudaTools.cpp b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/cpp/cudaTools.cpp new file mode 100755 index 0000000..c100173 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/cpp/cudaTools.cpp @@ -0,0 +1,101 @@ +#include +#include +#include +#include + +#include "cudaTools.h" +#include "StringTools.h" + +using std::string; +using std::cout; +using std::cerr; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Cuda + */ +void cudaHandleError(cudaError_t error, const char *file, int line) + { + if (error != cudaSuccess) + { + cerr << endl << "[CUDA ERROR] : " << cudaGetErrorString(error) << " in " << file << " at ligne " << line << endl; + exit (EXIT_FAILURE); + } + } + +/** + * Curand + */ +void cudaHandleError(curandStatus_t statut, const char *file, int line) + { + if (statut != CURAND_STATUS_SUCCESS) + { + cerr << endl << "[CURAND ERROR] : " << statut << " in " << file << " at ligne " << line << endl; + exit (EXIT_FAILURE); + } + } + +/** + * Cublas + */ +void cudaHandleError(cublasStatus_t cublasStatus, const char *file, int line) + { + + if (cublasStatus != CUBLAS_STATUS_SUCCESS) + { + switch (cublasStatus) + { + case CUBLAS_STATUS_INVALID_VALUE: + cerr << endl << "[CUBLAS ERROR] : CUBLAS_STATUS_INVALID_VALUE " << " in " << file << " at line " << line << endl; + break; + case CUBLAS_STATUS_NOT_INITIALIZED: + cerr << endl << "[CUBLAS ERROR] : CUBLAS_STATUS_NOT_INITIALIZED " << " in " << file << " at line " << line << endl; + break; + case CUBLAS_STATUS_INTERNAL_ERROR: + cerr << endl << "[CUBLAS ERROR] : CUBLAS_STATUS_INTERNAL_ERROR " << " in " << file << " at line " << line << endl; + break; + case CUBLAS_STATUS_MAPPING_ERROR: + cerr << endl << "[CUBLAS ERROR] : CUBLAS_STATUS_MAPPING_ERROR " << " in " << file << " at line " << line << endl; + break; + + case CUBLAS_STATUS_ALLOC_FAILED: + cerr << endl << "[CUBLAS ERROR] : CUBLAS_STATUS_ALLOC_FAILED " << " in " << file << " at line " << line << endl; + break; + case CUBLAS_STATUS_ARCH_MISMATCH: + cerr << endl << "[CUBLAS ERROR] : CUBLAS_STATUS_ARCH_MISMATCH" << " in " << file << " at line " << line << endl; + break; + case CUBLAS_STATUS_EXECUTION_FAILED: + cerr << endl << "[CUBLAS ERROR] : CUBLAS_STATUS_EXECUTION_FAILED" << " in " << file << " at line " << line << endl; + break; + default: + cerr << endl << "[CUBLAS ERROR] : Unknown error !" << " in " << file << " at line " << line << endl; + break; + } + exit (EXIT_FAILURE); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/CalibreurF_GPU.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/CalibreurF_GPU.h new file mode 100755 index 0000000..5d5183c --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/CalibreurF_GPU.h @@ -0,0 +1,78 @@ +#ifndef CALIBREUR_F_CUDA_H_ +#define CALIBREUR_F_CUDA_H_ + +#include "both_define.h" +#include "IntervalF_GPU.h" + +namespace gpu + { + + class CalibreurF + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + __BOTH__ + CalibreurF(const IntervalF& input, const IntervalF& output) + { + this->pente = (output.b - output.a) / (input.b - input.a); + this->translation = output.a - pente * input.a; + } + + // constructeur copie automatique car pas pointeur dans + // CalibreurF + // IntervalF + +// // TODO dangereux +// __device__ __host__ +// CalibreurF(const CalibreurF& source) +// { +// } + + + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + __BOTH__ + void calibrer(float& value) + { + value = value * pente + translation; + } + + __BOTH__ + float getPente() + { + return this->pente; + } + + __BOTH__ + float getTranslation() + { + return this->translation; + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Output + float pente; + float translation; + + }; + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/IntervalF_GPU.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/IntervalF_GPU.h new file mode 100755 index 0000000..bb50554 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/IntervalF_GPU.h @@ -0,0 +1,75 @@ +#ifndef INTERVAL_F_CUDA_H_ +#define INTERVAL_F_CUDA_H_ + +#include "both_define.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class IntervalF + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + __BOTH__ + IntervalF(float a, float b) + { + this->a = a; + this->b = b; + } + + // constructeur copie automatique car pas pointeur dans + // IntervalF + +// // TODO dangereux +// __device__ __host__ +// IntervalF() +// { +// +// } + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + __BOTH__ + float getA(void) + { + return this->a; + } + + __BOTH__ + float getB(void) + { + return this->b; + } + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + public: + + float a; + float b; + }; + + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/both_define.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/both_define.h new file mode 100755 index 0000000..63229d0 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/both/both_define.h @@ -0,0 +1,67 @@ +#ifndef BOTH_SMART_CBI_H_ +#define BOTH_SMART_CBI_H_ + + +/*----------------------------------------------------------------------*\ + |* Pre-defined Compiler Macros *| + \*---------------------------------------------------------------------*/ + +// http://sourceforge.net/p/predef/wiki/Compilers/ + +// http://msdn.microsoft.com/en-us/library/b0084kay.aspx +// https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html +// http://sourceforge.net/p/predef/wiki/Home/ + +// #ifdef __GNUC__ +// #if defined(_MSC_VER) +// #ifdef __CBI_CUDA__ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +// Note +// Value of +// +// __CUDACC__ +// +// is +// +// true for code in a .cu file, ie code compil with nvcc (host or device side) +// false for code in a .cpp file, meme si nvcc est le compilateur used +// + +// But: +// Autoriser l'utilisation de code +// __device__ __host__ +// sur le host, meme dans un fichier cpp + +#ifdef __CUDACC__ + +#define __BOTH__ __device__ __host__ +#define __HOST__ __host__ + +#else + +// vide +#define __BOTH__ +#define __HOST__ + +//# warning __BOTH__ --> empty +//# warning __HOST__ --> empty + +#endif + +// A tester +//#include "cuda_runtime.h" +//#include "code utilisant __host__.h" + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/ColorTools_GPU.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/ColorTools_GPU.h new file mode 100755 index 0000000..76fbfc6 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/ColorTools_GPU.h @@ -0,0 +1,144 @@ +#ifndef COLOR_TOOL_GPU_H +#define COLOR_TOOL_GPU_H + +#include "both_define.h" +#include "builtin_types.h" // pour float3 + + +// TODO cuda ameliorer + +namespace gpu + { + + class ColorTools + { + /*--------------------------------------*\ + |* HSB_TO_RVB *| + \*-------------------------------------*/ + + /*--------------------------------------*\ + |* public *| + \*-------------------------------------*/ + + public: + + /** + * Convertir une couleur HSB en RGB ! + * H,S,B in [0,1] + * R,G,B in [0,255] + */ + __BOTH__ + static void HSB_TO_RVB(const float3& hsb01, uchar4* ptrRVBA) + { + ColorTools::HSB_TO_RVB(hsb01.x, hsb01.y, hsb01.z, &ptrRVBA->x, &ptrRVBA->y, &ptrRVBA->z); + } + + /** + * Convertir une couleur HSB en RGB ! + * H,S,B in [0,1] + * R,G,B in [0,255] + */ + __BOTH__ + static void HSB_TO_RVB(float h01, uchar4* ptrRVBA) + { + ColorTools::HSB_TO_RVB(h01, 1.0f, 1.0f, &ptrRVBA->x, &ptrRVBA->y, &ptrRVBA->z); + } + + /** + * Convertir une couleur HSB en RGB ! + * H,S,B in [0,1] + * R,G,B in [0,255] + */ + __BOTH__ + static void HSB_TO_RVB(float h01, float s01, float b01, uchar4* ptrRVBA) + { + ColorTools::HSB_TO_RVB(h01, s01, b01, &ptrRVBA->x, &ptrRVBA->y, &ptrRVBA->z); + } + + /** + * Convertir une couleur HSB en RGB ! + * H,S,B in [0,1] + * R,G,B in [0,255] + */ + __BOTH__ + static void HSB_TO_RVB(float H, float S, float V, unsigned char *ptrR, unsigned char *ptrG, unsigned char *ptrB) + { + //float H = profondeur / 255.0; + //float S = 1; + //float V = 1; + if (S == 0) //HSV from 0 to 1 + { + *ptrR = V * 255; + *ptrG = V * 255; + *ptrB = V * 255; + } + else + { + float var_h = H * 6; + if (var_h == 6) + { + var_h = 0; + } //H must be < 1 + + unsigned char var_i = (unsigned char) var_h; //Or ... var_i = floor( var_h ) + + float var_1 = V * (1 - S); + float var_2 = V * (1 - S * (var_h - var_i)); + float var_3 = V * (1 - S * (1 - (var_h - var_i))); + + float var_r, var_g, var_b; + if (var_i == 0) + { + var_r = V; + var_g = var_3; + var_b = var_1; + } + else if (var_i == 1) + { + var_r = var_2; + var_g = V; + var_b = var_1; + } + else if (var_i == 2) + { + var_r = var_1; + var_g = V; + var_b = var_3; + } + else if (var_i == 3) + { + var_r = var_1; + var_g = var_2; + var_b = V; + } + else if (var_i == 4) + { + var_r = var_3; + var_g = var_1; + var_b = V; + } + else + { + var_r = V; + var_g = var_1; + var_b = var_2; + } + + //RGB results from 0 to 255 + *ptrR = (unsigned char) (var_r * 255); + *ptrG = (unsigned char) (var_g * 255); + *ptrB = (unsigned char) (var_b * 255); + } + } + + /*--------------------------------------*\ + |* private *| + \*-------------------------------------*/ + + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/Indice1D.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/Indice1D.h new file mode 100755 index 0000000..64ded10 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/Indice1D.h @@ -0,0 +1,97 @@ +#ifndef INDICE_1D +#define INDICE_1D + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Indice1D + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*------------------*\ + |* tid *| + \*-----------------*/ + + /** + * i in [0,nbThreadX-1] + * i=threadIdx.y + (blockDim.y * blockIdx.y) + */ + __device__ + static int tid() + { + return threadIdx.x + (blockDim.x * blockIdx.x); + } + + /** + * output in [0,nbThreadBlock()[ + * return threadIdx; + */ + __device__ + static int tidLocalBlock() + { + return threadIdx.x; + } + + /** + * idem tidLocalBlock + */ + __device__ + static int tidBlock() + { + return threadIdx.x; + } + + /** + * idem tidLocalBlock + */ + __device__ + static int tidLocal() + { + return threadIdx.x; + } + + /*------------------*\ + |* nbThread *| + \*-------------------*/ + + __device__ + static int nbThread() + { + return gridDim.x * blockDim.x; + } + + __device__ + static int nbThreadBlock() + { + return blockDim.x; + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/Indice2D.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/Indice2D.h new file mode 100755 index 0000000..54b0c5a --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/Indice2D.h @@ -0,0 +1,107 @@ +#ifndef INDICE_2D +#define INDICE_2D + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Indice2D + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*------------------*\ + |* tid *| + \*-----------------*/ + + __device__ + static int tid() + { + return (threadIdx.x + (blockDim.x * blockIdx.x)) + ((threadIdx.y + (blockDim.y * blockIdx.y)) * (gridDim.x * blockDim.x)); + } + + /** + * output in [0,nbThreadBlock()[ + * return threadIdx.x+blockDim.x*threadIdx.y; + */ + __device__ + static int tidLocalBlock() + { + return threadIdx.x + blockDim.x * threadIdx.y; + } + + /** + * idem tidLocalBlock + */ + __device__ + static int tidBlock() + { + return threadIdx.x + blockDim.x * threadIdx.y; + } + + /** + * idem tidLocalBlock + */ + __device__ + static int tidLocal() + { + return threadIdx.x + blockDim.x * threadIdx.y; + } + + /*------------------*\ + |* nbThread *| + \*-------------------*/ + + __device__ + static int nbThread() + { + return (gridDim.x * gridDim.y) * (blockDim.x * blockDim.y); + } + + __device__ + static int nbThreadX() + { + return gridDim.x * blockDim.x; + } + + __device__ + static int nbThreadY() + { + return gridDim.y * blockDim.y; + } + + __device__ + static int nbThreadBlock() + { + return blockDim.x * blockDim.y; + } + + + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + +private: + +}; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/IndiceTools_GPU.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/IndiceTools_GPU.h new file mode 100755 index 0000000..d230aef --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/IndiceTools_GPU.h @@ -0,0 +1,67 @@ +#ifndef INDICES_TOOLS_GPU_H_ +#define INDICES_TOOLS_GPU_H_ + +#include "both_define.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + class IndiceTools + { + + /*--------------------------------------*\ + |* Constructor *| + \*--------------------------------------*/ + + public: + + /*--------------------------------------*\ + |* Methodes *| + \*--------------------------------------*/ + + public: + + /** + * s[0,W*H[ --> i[0,H[ j[0,W[ + * w = largeur + * h = hauteur + */ + __BOTH__ + static void toIJ( int s, int w, int* ptrI, int* ptrJ) + { + *ptrI = s / w; + *ptrJ = s - w * (*ptrI); + } + + /** + * i[0,H[ j[0,W[ --> s[0,W*H[ + * w = largeur + * h = hauteur + */ + __BOTH__ + static int toS(int w, int i, int j) + { + return (i * w) + j; + } + + /*-------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/curand/curandTools.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/curand/curandTools.h new file mode 100755 index 0000000..8ac7bd4 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/curand/curandTools.h @@ -0,0 +1,65 @@ +#ifndef CURAND_TOOLS_H_ +#define CURAND_TOOLS_H_ + +#include +#include "Indice1D.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Utilisation: + * (1) Fabriquer sur le device les generateurs parallels de nomber aleatoire : setup_kernel_rand + * (2) Passer au kernel métier ces générateurs : ptrDevTabGeneratorThread + * (3) Dans le kernel métier + * curandState generatorThread = ptrDevTabGeneratorThread[tid]; //Optimisation + * xAlea = curand_uniform(&generatorThread); + * Hyp + * (H1) Grid et block monodimensionnelle + */ +__global__ void setup_kernel_rand(curandState* ptrDevTabGeneratorThread, int deviceId); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +__global__ void setup_kernel_rand(curandState* ptrDevTabGeneratorThread, int deviceId) + { + int tid = Indice1D::tid(); + + // Customisation du generator: Proposition (au lecteur de faire mieux) + // Contrainte : Doit etre différent d'un GPU à l'autre + int deltaSeed = deviceId * INT_MAX; + int deltaSequence = deviceId * 100; + int deltaOffset = deviceId * 100; + + int seed = 1234 + deltaSeed; // deviceId+tid; + int sequenceNumber = tid + deltaSequence; // + tid; + int offset = deltaOffset; + + //Each thread gets same seed , a different sequence number , no offset + curand_init(seed, sequenceNumber, offset, &ptrDevTabGeneratorThread[tid]); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionADD.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionADD.h new file mode 100755 index 0000000..fb9eba7 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionADD.h @@ -0,0 +1,142 @@ +#ifndef REDUCTION_ADD_H_ +#define REDUCTION_ADD_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +#include "Indice1D.h" + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Hyp + * (H1) atomicAdd doit exister pour T , sinon utiliser la version in reductionADDLock.h + * (H2) tabBlock size is a power of 2 + * (H3) tabBlock is already fill with data + */ +template +__device__ void reductionADD(T* tabBlock, T* ptrDevResultat); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +template +static __device__ void reductionIntraBlock(T* tabBlock); + +template +static __device__ void reductionInterblock(T* tabBlock, T* ptrDevResultat); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +template +__device__ void reductionADD(T* tabBlock, T* ptrDevResultat) + { + reductionIntraBlock(tabBlock); + + __syncthreads(); + + reductionInterblock(tabBlock, ptrDevResultat); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) T est un type simple suppoter par atomicAdd + * + */ +template +__device__ void reductionIntraBlock(T* tabBlock) + { + + //v1 +// int midle = blockDim.x / 2; +// int tidLocal = threadIdx.x; +// +// // int tidLocal = Indice1D::tidLocal() +// +// while (midle >= 1) +// { +// +// if (tidLocal < midle) +// { +// tabBlock[tidLocal] += tabBlock[tidLocal + midle]; +// } +// +// __syncthreads(); +// +// //midle /= 2; +// midle>>=1; +// } + +//v2 + int midle = blockDim.x / 2; + int tidLocal = threadIdx.x; + + //a 64 on ne divise plus et on a besoin de 32 thread pour finir de reduire le 64 premières cases + while (midle >= 64) + { + + if (tidLocal < midle) + { + tabBlock[tidLocal] += tabBlock[tidLocal + midle]; + } + + __syncthreads(); + + //midle /= 2; + midle>>=1; + } + + // Utilisation des 32 thread d'un warp pour finir la reduction + if(tidLocal<32) + { + // no __syncthreads() necessary after exah of the following lines as long as we acces the data via a pointzer decalred as volatile + // because teh 32 therad in each warp execute in a locked-step with each other + volatile T* ptrData=tabBlock; + + ptrData[tidLocal]+=ptrData[tidLocal+32]; + ptrData[tidLocal]+=ptrData[tidLocal+16]; + ptrData[tidLocal]+=ptrData[tidLocal+8]; + ptrData[tidLocal]+=ptrData[tidLocal+4]; + ptrData[tidLocal]+=ptrData[tidLocal+2]; + ptrData[tidLocal]+=ptrData[tidLocal+1]; + } + + } + +/** + * Hyp : ptrDevResultat iniotaiuliasé avec 0 !! + */ +template +__device__ void reductionInterblock(T* tabBlock, T* ptrDevResultat) + { + if (threadIdx.x == 0) + { + atomicAdd(ptrDevResultat, tabBlock[0]); // autant d'acces que de block + } + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionADDLock.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionADDLock.h new file mode 100755 index 0000000..fa64f41 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionADDLock.h @@ -0,0 +1,155 @@ +#ifndef REDUCTION_ADD_LOCK_H_ +#define REDUCTION_ADD_LOCK_H_ + +#include "Indice1D.h" +#include "Lock.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Hyp + * (H1) atomicAdd n'existe pas pour T , sinon utiliser la version in reductionADD.h + * (H2) tabBlock size is a power of 2 + * (H3) tabBlock is already fill with data + * + * Usage LockGPU + * + * // variable global .cu + * __device__ int mutex=0; // Attention à l'initialisation + * + * // Variable local inside kernel (same .cu as variable mutex) + * LockGPU lock=LockGPU(&mutex); + */ +template +__device__ void reductionADD(T* tabBlock, T* ptrDevResultat,Lock* ptrlock); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +template +static __device__ void reductionIntraBlock(T* tabBlock); + +template +static __device__ void reductionInterblock(T* tabBlock, T* ptrDevResultat,Lock* ptrlock); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +template +__device__ void reductionADD(T* tabBlock, T* ptrDevResultat,Lock* ptrlock) + { + reductionIntraBlock(tabBlock); + + __syncthreads(); + + reductionInterblock(tabBlock, ptrDevResultat,ptrlock); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) T est un type simple suppoter par atomicAdd + * + */ +template +__device__ void reductionIntraBlock(T* tabBlock) + { + + //v1 +// int midle = blockDim.x / 2; +// int tidLocal = threadIdx.x; +// +// // int tidLocal = Indice1D::tidLocal() +// +// while (midle >= 1) +// { +// +// if (tidLocal < midle) +// { +// tabBlock[tidLocal] += tabBlock[tidLocal + midle]; +// } +// +// __syncthreads(); +// +// //midle /= 2; +// midle>>=1; +// } + +//v2 + int midle = blockDim.x / 2; + int tidLocal = threadIdx.x; + + //a 64 on ne divise plus et on a besoin de 32 thread pour finir de reduire le 64 premières cases + while (midle >= 64) + { + + if (tidLocal < midle) + { + tabBlock[tidLocal] += tabBlock[tidLocal + midle]; + } + + __syncthreads(); + + //midle /= 2; + midle>>=1; + } + + // Utilisation des 32 thread d'un warp pour finir la reduction + if(tidLocal<32) + { + // no __syncthreads() necessary after exah of the following lines as long as we acces the data via a pointzer decalred as volatile + // because teh 32 therad in each warp execute in a locked-step with each other + volatile T* ptrData=tabBlock; + + ptrData[tidLocal]+=ptrData[tidLocal+32]; + ptrData[tidLocal]+=ptrData[tidLocal+16]; + ptrData[tidLocal]+=ptrData[tidLocal+8]; + ptrData[tidLocal]+=ptrData[tidLocal+4]; + ptrData[tidLocal]+=ptrData[tidLocal+2]; + ptrData[tidLocal]+=ptrData[tidLocal+1]; + } + + } + +/** + * Hyp : ptrDevResultat iniotaiuliasé avec 0 !! + */ +template +__device__ void reductionInterblock(T* tabBlock, T* ptrDevResultat,Lock* ptrlock) + { + if (threadIdx.x == 0) + { + ptrlock->lock(); + *ptrDevResultat+= tabBlock[0]; + ptrlock->unlock(); + } + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionMinMax.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionMinMax.h new file mode 100755 index 0000000..b12ca30 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionMinMax.h @@ -0,0 +1,277 @@ +#ifndef REDUCTION_MIN_MAX_H_ +#define REDUCTION_MIN_MAX_H_ + +#ifndef MIN +#define MIN(X,Y) ((X)<(Y)?(X):(Y)) +#endif + +#ifndef MAX +#define MAX(X,Y) ((X)>(Y)?(X):(Y)) +#endif + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +#include "Indice1D.h" + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Hyp + * (H1) atomicMin existe pour T , sinon utiliser la version in reductionMinMaxLock.h + * (H2) tabBlock size is a power of 2 + * (H3) tabBlock is already fill with data + */ +template +__device__ void reduction_Min(T* tabBlock, T* ptrDevResultat); + +/** + * Hyp + * (H1) atomicMax existe pour T , sinon utiliser la version in reductionMinMaxLock.h + * (H2) tabBlock size is a power of 2 + * (H3) tabBlock is already fill with data + */ +template +__device__ void reduction_Max(T* tabBlock, T* ptrDevResultat); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*-----------------*\ + |* Intra *| + \*-----------------*/ + +template +static __device__ void reduction_IntraBlock_Min(T* tabBlock); + +template +static __device__ void reduction_IntraBlock_Max(T* tabBlock); + +/*-----------------*\ + |* Inter *| + \*-----------------*/ + +template +static __device__ void reduction_Interblock_Min(T* tabBlock, T* ptrDevResultat); + +template +static __device__ void reduction_Interblock_Max(T* tabBlock, T* ptrDevResultat); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +template +__device__ void reduction_Min(T* tabBlock, T* ptrDevResultat) + { + reduction_IntraBlock_Min(tabBlock); + + __syncthreads(); + + reduction_Interblock_Min(tabBlock, ptrDevResultat); + } + +template +__device__ void reduction_Max(T* tabBlock, T* ptrDevResultat) + { + reduction_IntraBlock_Max(tabBlock); + + __syncthreads(); + + reduction_Interblock_Max(tabBlock, ptrDevResultat); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*-----------------*\ + |* Intra *| + \*-----------------*/ + + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) T est un type simple suppoter par atomicMin (sinon use reductionMinMaxLock.h) + */ +template +__device__ void reduction_IntraBlock_Min(T* tabBlock) + { + // v1 +// int midle = blockDim.x / 2; +// int tidLocal = threadIdx.x; +// +// // int tidLocal = Indice1D::tidLocal() +// +// while (midle >= 1) +// { +// +// if (tidLocal < midle) +// { +// tabBlock[tidLocal] =MIN( tabBlock[tidLocal] ,tabBlock[tidLocal + midle]); +// } +// +// __syncthreads(); // threads d'un meme block +// +// //midle /= 2; +// midle>>=1; +// } + + //v2 + int midle = blockDim.x / 2; + int tidLocal = threadIdx.x; + + //a 64 on ne divise plus et on a besoin de 32 thread pour finir de reduire le 64 premières cases + while (midle >= 64) + { + + if (tidLocal < midle) + { + tabBlock[tidLocal] =MIN( tabBlock[tidLocal], tabBlock[tidLocal + midle]); +} + + __syncthreads(); + + //midle /= 2; + midle>>=1; + } + + // Utilisation des 32 thread d'un warp pour finir la reduction + if(tidLocal<32) + { + // no __syncthreads() necessary after exah of the following lines as long as we acces the data via a pointzer decalred as volatile + // because teh 32 therad in each warp execute in a locked-step with each other + volatile T* ptrData=tabBlock; + + ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 32]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 16]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 8]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 4]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 2]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 1]); +} + } + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) T est un type simple suppoter par atomicMax (sinon use reductionMinMaxLock.h) + */ +template +__device__ void reduction_IntraBlock_Max(T* tabBlock) + { + //v1 +// int midle = blockDim.x / 2; +// int tidLocal = threadIdx.x; +// +// // int tidLocal = Indice1D::tidLocal() +// +// while (midle >= 1) +// { +// +// if (tidLocal < midle) +// { +// tabBlock[tidLocal] =MAX( tabBlock[tidLocal] ,tabBlock[tidLocal + midle]); +// } +// +// __syncthreads(); // threads d'un meme block +// +// midle /= 2; +// } + + //v2 + int midle = blockDim.x / 2; + int tidLocal = threadIdx.x; + + //a 64 on ne divise plus et on a besoin de 32 thread pour finir de reduire le 64 premières cases + while (midle >= 64) + { + + if (tidLocal < midle) + { + tabBlock[tidLocal] =MAX( tabBlock[tidLocal], tabBlock[tidLocal + midle]); +} + + __syncthreads(); + + //midle /= 2; + midle>>=1; + } + + // Utilisation des 32 thread d'un warp pour finir la reduction + if(tidLocal<32) + { + // no __syncthreads() necessary after exah of the following lines as long as we acces the data via a pointzer decalred as volatile + // because teh 32 therad in each warp execute in a locked-step with each other + volatile float* ptrData=tabBlock; + + ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 32]); +ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 16]); +ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 8]); +ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 4]); +ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 2]); +ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 1]); +} +} + +/*-----------------*\ + |* Inter *| + \*-----------------*/ + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) T est un type simple suppoter par atomicMin + * (H4) ptrDevResultat a été initialisé avec une valeur intelligente + */ +template +__device__ void reduction_Interblock_Min(T* tabBlock, T* ptrDevResultat) +{ +if (threadIdx.x == 0) +{ +atomicMin(ptrDevResultat, tabBlock[0]); // autant d'acces que de block +} +} + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) T est un type simple suppoter par atomicMax + * (H4) ptrDevResultat a été initialisé avec une valeur intelligente + */ +template +__device__ void reduction_Interblock_Max(T* tabBlock, T* ptrDevResultat) +{ +if (threadIdx.x == 0) +{ +atomicMax(ptrDevResultat, tabBlock[0]); // autant d'acces que de block +} +} + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionMinMaxLock.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionMinMaxLock.h new file mode 100755 index 0000000..cf9b713 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/reduction/reductionMinMaxLock.h @@ -0,0 +1,304 @@ +#ifndef REDUCTION_MIN_MAX_LOCKH_ +#define REDUCTION_MIN_MAX_LOCKH_ + +#include "Lock.h" + +#ifndef MIN +#define MIN(X,Y) ((X)<(Y)?(X):(Y)) +#endif + +#ifndef MAX +#define MAX(X,Y) ((X)>(Y)?(X):(Y)) +#endif + +//TODO : mieux : use foncteur + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +#include "Indice1D.h" + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Hyp + * (H1) atomicMin n'existe pas pour T , sinon utiliser la version in reductionMinMax.h + * (H2) tabBlock size is a power of 2 + * (H3) tabBlock is already fill with data + * + * Usage LockGPU + * + * // variable global .cu + * __device__ int mutex=0; // Attention à l'initialisation + * + * // Variable local inside kernel (same .cu as variable mutex) + * LockGPU lock=LockGPU(&mutex); + * + */ +template +__device__ void reduction_Min(T* tabBlock, T* ptrDevResultat,Lock* ptrlock); + +/** + * Hyp + * (H1) atomicMax n'existe pas pour T , sinon utiliser la version in reductionMinMax.h + * (H2) tabBlock size is a power of 2 + * (H3) tabBlock is already fill with data + * + * Usage LockGPU + * + * // variable global .cu + * __device__ int mutex=0; // Attention à l'initialisation + * + * // Variable local inside kernel + * LockGPU lock=LockGPU(&mutex); + */ +template +__device__ void reduction_Max(T* tabBlock, T* ptrDevResultat,Lock* ptrlock); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*-----------------*\ + |* Intra *| + \*-----------------*/ + +template +static __device__ void reduction_IntraBlock_Min(T* tabBlock); + +template +static __device__ void reduction_IntraBlock_Max(T* tabBlock); + +/*-----------------*\ + |* Inter *| + \*-----------------*/ + +template +static __device__ void reduction_Interblock_Min(T* tabBlock, T* ptrDevResultat,Lock* ptrlock); + +template +static __device__ void reduction_Interblock_Max(T* tabBlock, T* ptrDevResultat,Lock* ptrlock); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +template +__device__ void reduction_Min(T* tabBlock, T* ptrDevResultat,Lock* ptrlock) + { + reduction_IntraBlock_Min(tabBlock); + + __syncthreads(); + + reduction_Interblock_Min(tabBlock, ptrDevResultat, ptrlock); + } + +template +__device__ void reduction_Max(T* tabBlock, T* ptrDevResultat,Lock* ptrlock) + { + reduction_IntraBlock_Max(tabBlock); + + __syncthreads(); + + reduction_Interblock_Max(tabBlock, ptrDevResultat,ptrlock); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*-----------------*\ + |* Intra *| + \*-----------------*/ + + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) T est un type simple suppoter par atomicMin + */ +template +__device__ void reduction_IntraBlock_Min(T* tabBlock) + { +// int midle = blockDim.x / 2; +// int tidLocal = threadIdx.x; +// +// // int tidLocal = Indice1D::tidLocal() +// +// while (midle >= 1) +// { +// +// if (tidLocal < midle) +// { +// tabBlock[tidLocal] =MIN( tabBlock[tidLocal] ,tabBlock[tidLocal + midle]); +// } +// +// __syncthreads(); +// +// //midle /= 2; +// midle>>=1; +// } + + //v2 + int midle = blockDim.x / 2; + int tidLocal = threadIdx.x; + + //a 64 on ne divise plus et on a besoin de 32 thread pour finir de reduire le 64 premières cases + while (midle >= 64) + { + + if (tidLocal < midle) + { + tabBlock[tidLocal] =MIN( tabBlock[tidLocal], tabBlock[tidLocal + midle]); +} + + __syncthreads(); + + //midle /= 2; + midle>>=1; + } + + // Utilisation des 32 thread d'un warp pour finir la reduction + if(tidLocal<32) + { + // no __syncthreads() necessary after exah of the following lines as long as we acces the data via a pointzer decalred as volatile + // because teh 32 therad in each warp execute in a locked-step with each other + volatile T* ptrData=tabBlock; + + ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 32]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 16]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 8]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 4]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 2]); +ptrData[tidLocal]=MIN( tabBlock[tidLocal], tabBlock[tidLocal + 1]); +} + } + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) T est un type simple suppoter par atomicMax + */ +template +__device__ void reduction_IntraBlock_Max(T* tabBlock) + { + // v1 +// int midle = blockDim.x / 2; +// int tidLocal = threadIdx.x; +// +// // int tidLocal = Indice1D::tidLocal() +// +// while (midle >= 1) +// { +// +// if (tidLocal < midle) +// { +// tabBlock[tidLocal] =MAX( tabBlock[tidLocal] ,tabBlock[tidLocal + midle]); +// } +// +// __syncthreads(); +// +// midle /= 2; +// } + + + //v2 + int midle = blockDim.x / 2; + int tidLocal = threadIdx.x; + + //a 64 on ne divise plus et on a besoin de 32 thread pour finir de reduire le 64 premières cases + while (midle >= 64) + { + + if (tidLocal < midle) + { + tabBlock[tidLocal] =MAX( tabBlock[tidLocal], tabBlock[tidLocal + midle]); + } + + __syncthreads(); + + //midle /= 2; + midle>>=1; + } + + // Utilisation des 32 thread d'un warp pour finir la reduction + if(tidLocal<32) + { + // no __syncthreads() necessary after exah of the following lines as long as we acces the data via a pointzer decalred as volatile + // because teh 32 therad in each warp execute in a locked-step with each other + volatile float* ptrData=tabBlock; + + ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 32]); + ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 16]); + ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 8]); + ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 4]); + ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 2]); + ptrData[tidLocal]=MAX( tabBlock[tidLocal], tabBlock[tidLocal + 1]); + } + } + +/*-----------------*\ + |* Inter *| + \*-----------------*/ + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) ptrDevResultat a été initialisé avec une valeur intelligente + */ +template +__device__ void reduction_Interblock_Min(T* tabBlock, T* ptrDevResultat,Lock* ptrlock) + { + if (threadIdx.x == 0) + { + ptrlock->lock(); + + *ptrDevResultat=MIN(*ptrDevResultat, tabBlock[0]); // autant d'acces que de block + + ptrlock->unlock(); + } + } + +/** + * Hyp : + * (H1) length(tabBlock) est une puissance de 2 ! ie blockDim.x est une puissance de 2 + * (H2) gride et Block de dim 1 + * (H3) ptrDevResultat a été initialisé avec une valeur intelligente + */ +template +__device__ void reduction_Interblock_Max(T* tabBlock, T* ptrDevResultat,Lock* ptrlock) + { + if (threadIdx.x == 0) + { + ptrlock->lock(); + + *ptrDevResultat=MAX(*ptrDevResultat, tabBlock[0]); // autant d'acces que de block + + ptrlock->unlock(); + } + } + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/synchronisation/Lock.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/synchronisation/Lock.h new file mode 100755 index 0000000..4c6787d --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/device/synchronisation/Lock.h @@ -0,0 +1,119 @@ +#ifndef LOCK_CUDA_H_ +#define LOCK_CUDA_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * General : + * + * A Mutex will act like something of a traffic signal that governs access to some resources. + * When a thread reads a 0 from the mutex,it interprets this valu as a "green lignt" indicating that no other thread is using the memory. + * Therefore, the thread is free to lock the memory and make whatever changes it desires,free of interference from other threads. + * To lock the memory location in nquestion, the thread writes a 1 to the mutex. + * This will act as a "red light" for potentially competing threads. + * The competing threads must then wait until the owner has written a 0 to the mutex beforfe they can attempt to modify the locked memory. + * + * Interet + * On utilise un lock lorsque l'opération qui doit être synchroniser ne possède pas d'opérateur atomic (comme atomicADD, ...), + * ou lorsqui'il s'agit de plusieurs opérations à synchroniser (joue alors le role de section critique) + * + * Note : + * + * Lock ne laisse aucune trace coté host, il s'instancie only coté device: Code moins invasif + * LockMixte laisse une trace coté host. Code plus invasif + * + * Use (Device side only) + * + * + * // Global variable of .cu + * __device__ int mutex=0; // Attention à l'initialisation + * + * // variable local inside a kernel (same .cu as variable mutex) + * Lock lock=Lock(&mutex); + * + * lock.lock(); + * doSomething(); + * lock.unlock(); + * + */ +class Lock + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /** + * Toutes les instance se partagent la meme adresse du mutex ptrDevMutexGM + */ + __device__ + Lock(int* ptrDevMutexGM) + { + this->ptrDevMutexGM = ptrDevMutexGM; + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + __device__ + void lock(void) + { + // Goal : + // if (*ptrDev_mutex==0) {*ptrDev_mutex==1} + // But must be thread safe! + // + // Solution: + // atomicCAS = atomic Compare And Swap + // Prototype : c atomicCAS(ptr,a,b) + // Action : compare ptr avec a, si egale affecte b à ptr, renvoie ptr + + // Tant que ptrDev_mutex!=0 le thread cuda boucle sur while + // Des qu'il vaut 0, il met le mutex à 1 et lock se termine + while (atomicCAS(ptrDevMutexGM, 0, 1) != 0); + } + + __device__ + void unlock(void) + { + // Goal : + // Put 1 in the mutex + // + // Solution 1: + // + // *ptrDev_mutex=0; + // Aucun thread en competition ici. L'affectation n'a pas besoin d'être atomique. + // Solution satisfaisante. + // + // Solution 2 (prefered for symetric approach) + // + // Une solution atomique + + // Echange et renvoie la valeur originale + atomicExch(ptrDevMutexGM, 0); + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + int* ptrDevMutexGM; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/ConstantMemoryLink.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/ConstantMemoryLink.h new file mode 100755 index 0000000..66f2016 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/ConstantMemoryLink.h @@ -0,0 +1,25 @@ +#ifndef CONSTANT_MEMORY_LINK_H_ +#define CONSTANT_MEMORY_LINK_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +struct ConstantMemoryLink + { + void** ptrDevTab; // void** pour la généricité + int n; // #octets de tout le tab + size_t sizeAll; // nb case du tableau + }; + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/Device.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/Device.h new file mode 100755 index 0000000..0c97843 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/Device.h @@ -0,0 +1,197 @@ +#ifndef DEVICE_H +#define DEVICE_H + +#include "cuda_runtime.h" +#include + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/** + * idDevice in [0,nbDevice-1] + * + * dim3.x + * dim3.y + * dim3.z + * + * sm=1.2 major=1 minor=2 + */ +class Device + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + public: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*--------------*\ + |* Wrapper *| + \*-------------*/ + + /** + * wrapper for cudaDeviceSynchronize() + */ + static void synchronize(void); + + /*--------------*\ + |* Tools *| + \*-------------*/ + + /** + * message = nameKernel by example + */ + static void checkKernelError(const char *message = NULL); + + /** + * Booth: + * assertDim(dg, db); + * checkDimOPtimiser(dg, db); + */ + static void checkDimError(const dim3& dg, const dim3& db); + + static void checkDimOptimiser(const dim3& dg, const dim3& db); + static void assertDim(const dim3& dg, const dim3& db); + + static int dim(const dim3& dim); + static int nbThread(const dim3& dg, const dim3& db); + + static void print(const dim3& dg, const dim3& db); + + /*--------------*\ + |* get *| + \*-------------*/ + + static int getRuntimeVersion(void); + static int getDriverVersion(void); + + static int getDeviceCount(void); + static int getDeviceId(void); + + static cudaDeviceProp getDeviceProp(int idDevice); + static cudaDeviceProp getDeviceProp(void); + + static string getNameSimple(int idDevice); + static string getNameSimple(void); + + static string getName(int idDevice); + static string getName(void); + + static dim3 getMaxGridDim(int idDevice); + static dim3 getMaxGridDim(void); + + static dim3 getMaxBlockDim(int idDevice); + static dim3 getMaxBlockDim(void); + + static int getWarpSize(int idDevice); + static int getWarpSize(void); + + static int getMaxThreadPerBlock(int idDevice); + static int getMaxThreadPerBlock(void); + + static int getMPCount(void); + static int getMPCount(int idDevice); + + static int getCapacityMajor(int idDevice); + static int getCapacityMajor(void); + + static int getCapacityMinor(int idDevice); + static int getCapacityMinor(void); + + static int getAsyncEngineCount(int idDevice); + static int getAsyncEngineCount(void); + + /*--------------*\ + |* print *| + \*-------------*/ + + static void printAll(void); + static void printAllSimple(void); + + static void print(int idDevice); + static void print(void); + + static void printCurrent(void); + + /*--------------*\ + |* Is *| + \*-------------*/ + + static bool isCuda(void); + + static bool isFermi(int idDevice); + static bool isFermi(void); + + static bool isKepler(int idDevice); + static bool isKepler(void); + + static bool isUVAEnable(int idDevice); + static bool isUVAEnable(void); + + static bool isAtomicShareMemoryEnable(int idDevice); + static bool isAtomicShareMemoryEnable(void); + + static bool isHostMapMemoryEnable(int idDevice); + static bool isHostMapMemoryEnable(void); + + static bool isECCEnable(int idDevice); + static bool isECCEnable(void); + + static bool isAsyncEngine(int idDevice); + static bool isAsyncEngine(void); + + /*--------------*\ + |* load *| + \*-------------*/ + + /** + * Force load + */ + static void loadCudaDriver(int deviceID, bool isMapMemoryEnable = true); + /** + * Force load + */ + static void loadCudaDriver(bool isMapMemoryEnable = true); + /** + * Force load + */ + static void loadCudaDriverAll(bool isMapMemoryEnable = true); + + /*--------------*\ + |* p2p *| + \*-------------*/ + + /** + * use delete[] ptrMatrixP2PCompatibility after usage + * raw major vectoriser + */ + static int* p2pMatrixCompatibility(void); + + /** + * to be used after HANDLE_ERROR(cudaGLSetGLDevice(deviceId)); + */ + static void p2pEnableALL(void); + + static void printP2PmatrixCompatibility(void); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/cudaTools.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/cudaTools.h new file mode 100755 index 0000000..8c0834d --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/host/cudaTools.h @@ -0,0 +1,35 @@ +#ifndef CUDA_TOOLS_H_ +#define CUDA_TOOLS_H_ + + +//#include "cuda.h" +#include "builtin_types.h" +#include "cuda_runtime.h" +#include "curand.h" + +// cublas +#include "cublas_v2.h" // Pour specifier la version qu'on veut! (definition CUBLASAPI) +//#include "cublas.h" // Pour specifier la version qu'on veut!(definition CUBLASAPI) +#include "cublas_api.h" // Après include "cublas_v2.h" ou "cublas.h" + + + + +typedef unsigned char uchar; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +#define HANDLE_ERROR( error ) (cudaHandleError( error, __FILE__, __LINE__ )) + +void cudaHandleError(cudaError_t error, const char *file, int line); //cuda +void cudaHandleError(curandStatus_t statut, const char *file, int line); // curand +void cudaHandleError(cublasStatus_t cublasStatus,const char *file, int line); // cublas + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/mixte/LockMixte.h b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/mixte/LockMixte.h new file mode 100755 index 0000000..0c96e90 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/core/cudatools/header/mixte/LockMixte.h @@ -0,0 +1,137 @@ +#ifndef LOCK_MIXTE_H_ +#define LOCK_MIXTE_H_ + +#include "cudaTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + + +/** + * General : + * + * A Mutex will act like something of a traffic signal that governs access to some resources. + * When a thread reads a 0 from the mutex,it interprets this valu as a "green lignt" indicating that no other thread is using the memory. + * Therefore, the thread is free to lock the memory and make whatever changes it desires,free of interference from other threads. + * To lock the memory location in nquestion, the thread writes a 1 to the mutex. + * This will act as a "red light" for potentially competing threads. + * The competing threads must then wait until the owner has written a 0 to the mutex beforfe they can attempt to modify the locked memory. + * + * Interet + * On utilise un lock lorsque l'opération qui doit être synchroniser ne possède pas d'opérateur atomic (comme atomicADD, ...), + * ou lorsqui'il s'agit de plusieurs opérations à synchroniser (joue alors le role de section critique) + * + * Note : + * + * Lock ne laisse aucune trace coté host, il s'instancie only coté device: Code moins invasif + * LockMixte laisse une trace coté host. Code plus invasif + * + * Use (host) : + * + * LockMixte lock(); + * kernel<<>>(...,lock,...); // pas besoin de memory managment MM + * + * Use (device): + * + * lock.lock(); + * doSomething(); + * lock.unlock(); + * + */ +class LockMixte + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public : + + LockMixte(void) + { + int state = 0; + HANDLE_ERROR(cudaMalloc((void**) &ptrDev_mutex, sizeof(int))); + HANDLE_ERROR(cudaMemcpy(ptrDev_mutex, &state, sizeof(int), cudaMemcpyHostToDevice)); + } + + /** + * Observation: + * + * Comme Lock est passer par valeur au kernel,ie par copie,deux objets au total sont vivants, un sur le cpu et sun sur le gpu. + * Le destructeur sera donc appeler 2x,la premiere fois, lors de la fin du kernel sur le gpu, la seconde fois sur le cpu. + * Comme cudaFree peut etre appeler sur le cpu ou gpu, le code ci-dessous est valide, mais sans le HANDLE_ERROR qui n'a aucun sens + * (affichage d'un message d'error) sur le GPU et qui est donc enlever ici. + * Heureusement cudaFree peut être appeler plusieurs fois de suite sans probleme,mais un seul appel suffirait! + * + * Attention: + * + * Sur le GPU, il ne faut jamais passer Lock par valeur, car sinon, la premiere instance detruite, detruit ptrDev_mutex !! + * et le mutex devient alors inutilisable! + */ + ~LockMixte(void) + { + // HANDLE_ERROR(cudaFree(ptrDev_mutex)); // HANDLE_ERROR : pas possible car executer aussi sur le GPU + cudaFree(ptrDev_mutex); + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public : + + __device__ void lock(void) + { + // Goal : + // if (*ptrDev_mutex==0) {*ptrDev_mutex==1} + // But must be thread safe! + // + // Solution: + // atomicCAS = atomic Compare And Swap + // Prototype : c atomicCAS(ptr,a,b) + // Action : compare ptr avec a, si egale affecte b à ptr, renvoie ptr + + // Tant que ptrDev_mutex!=0 le thread cuda boucle sur while + // Des qu'il vaut 0, il met le mutex à 1 et lock se termine + while (atomicCAS(ptrDev_mutex, 0, 1) != 0); + } + + __device__ void unlock(void) + { + // Goal : + // Put 1 in the mutex + // + // Solution 1: + // + // *ptrDev_mutex=0; + // Aucun thread en competition ici. L'affectation n'a pas besoin d'être atomique. + // Solution satisfaisante. + // + // Solution 2 (prefered for symetric approach) + // + // Une solution atomique + + // Echange et renvoie la valeur originale + atomicExch(ptrDev_mutex, 0); + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private : + + int* ptrDev_mutex; // Espace adressage GPU, en global memory GM + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/test/cu.h b/WCudaMSE/BilatTools_Cuda/src/test/cu.h new file mode 100755 index 0000000..be7bb4e --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/test/cu.h @@ -0,0 +1,28 @@ +#ifndef CU_H_ +#define CU_H_ + +/*---------------*\ + |* Device Side *| + \*---------------*/ + +#include "Indice1D.h" +#include "Indice2D.h" + +#include "Lock.h" + +#include "reductionADD.h" +//#include "reductionADDLock.h" //meme proto reductionADD.h + +#include "reductionMinMax.h" +//#include "reductionMinMaxLock.h" //meme proto reductionMinMax.h + +#include "curandTools.h" + +/*---------------*\ + |* Mixte Side *| + \*---------------*/ + +#include "LockMixte.h" + + +#endif diff --git a/WCudaMSE/BilatTools_Cuda/src/test/cu_cpp.h b/WCudaMSE/BilatTools_Cuda/src/test/cu_cpp.h new file mode 100755 index 0000000..00f2d47 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/test/cu_cpp.h @@ -0,0 +1,38 @@ +#ifndef CU_CPP_H_ +#define CU_CPP_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*---------------*\ + |* HostDevice Side *| + \*---------------*/ + +#include "CalibreurF_GPU.h" +#include "IntervalF_GPU.h" + +#include "ColorTools_GPU.h" +#include "IndiceTools_GPU.h" + + +/*---------------*\ + |* Host Side *| + \*---------------*/ + +#include "Device.h" + +#include "cudaTools.h" + +#include "ConstantMemoryLink.h" + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda/src/test/main.cpp b/WCudaMSE/BilatTools_Cuda/src/test/main.cpp new file mode 100755 index 0000000..f87ddb5 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/test/main.cpp @@ -0,0 +1,55 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + + + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool mainCPP(); +extern bool mainCU(); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + cout << "[BilatTools_Cuda] : just inlcude to force compilation" << endl; + + bool isOk=true; + + isOk&=mainCPP(); + isOk&=mainCU(); + + return isOk?EXIT_SUCCESS:EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda/src/test/mainCPP.cpp b/WCudaMSE/BilatTools_Cuda/src/test/mainCPP.cpp new file mode 100755 index 0000000..3190c07 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/test/mainCPP.cpp @@ -0,0 +1,51 @@ +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +#include "cu_cpp.h" + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool mainCU(); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool mainCPP(void) + { + cout << "[BilatTools_Cuda] : just inlcude to force compilation in .cpp" << endl; + + // TODO use classe + mainCU(); + + return true;; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda/src/test/mainCU.cu b/WCudaMSE/BilatTools_Cuda/src/test/mainCU.cu new file mode 100755 index 0000000..8e71c62 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda/src/test/mainCU.cu @@ -0,0 +1,66 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Importation *| + \*---------------------------------------------------------------------*/ + +#include "cu.h" +#include "cu_cpp.h" + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool mainCU(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static void lauchKernel(void); +static __global__ void kernelTest(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +bool mainCU(void) + { + cout << "[BilatTools_Cuda] : just inlcude to force compilation in .cu" << endl; + + lauchKernel(); + + return true; + } + +void lauchKernel(void) + { + dim3 dg = dim3(1, 1, 1); + dim3 db = dim3(1, 1, 1); + + kernelTest<<>>(); + Device::synchronize(); + } + +__global__ void kernelTest(void) + { + printf("\nHello from kernel\n"); // TODO use classe + } + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_Image/.project b/WCudaMSE/BilatTools_Cuda_Image/.project new file mode 100755 index 0000000..ef92d50 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/.project @@ -0,0 +1,27 @@ + + + BilatTools_Cuda + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/BilatTools_Cuda_Image/dataProject.mk b/WCudaMSE/BilatTools_Cuda_Image/dataProject.mk new file mode 100755 index 0000000..89b0d68 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/dataProject.mk @@ -0,0 +1,79 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=BilatTools_Cuda_Image + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_Cuda/src/core +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_Cuda_smart_switch/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + + +include $(API_CUDA)/cuda.mk +include $(API)/cppTest.mk +include $(API_CUDA)/cuda_OpenMP.mk #pour BilatTools_CPP +include $(API_CUDA)/bilat_Image_FreeGlut_Cuda.mk + + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/ColorRGB_01.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/ColorRGB_01.h new file mode 100755 index 0000000..bdf1c9d --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/ColorRGB_01.h @@ -0,0 +1,53 @@ +#ifndef COLOR_RGB_01_H_ +#define COLOR_RGB_01_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class ColorRGB_01 + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + ColorRGB_01(float r, float g, float b) + { + this->r = r; + this->g = g; + this->b = b; + } + + virtual ~ColorRGB_01() + { + // rien + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + public: + + float r; + float g; + float b; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/cpp/AnimateurFreeGL.cpp b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/cpp/AnimateurFreeGL.cpp new file mode 100755 index 0000000..6d2a14c --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/cpp/AnimateurFreeGL.cpp @@ -0,0 +1,114 @@ +#include + +#include "cudaTools.h" +#include "Device.h" +#include "MathTools.h" + +#include "Chronos.h" + +#include "AnimateurFreeGL.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +AnimateurFreeGL::AnimateurFreeGL(Animable_I* ptrAnimable, int nbIteration) + { + // Input + this->nbIteration = nbIteration; + this->ptrAnimable = ptrAnimable; + + // Outputs + this->fps = -1; + this->timeElapseS = -1; + + start(); + printStat(); + } + +AnimateurFreeGL::~AnimateurFreeGL() + { + delete ptrAnimable; // discutable! + } + +int AnimateurFreeGL::getFps(void) + { + return fps; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +int AnimateurFreeGL::start() + { + cout << "\n[AnimateurFreeGL] : started : " << ptrAnimable->getTitle() << endl; + + int w = ptrAnimable->getW(); + int h = ptrAnimable->getH(); + size_t size = w * h * sizeof(uchar4); + + uchar4* ptrDevImage; + HANDLE_ERROR(cudaMalloc((void**) &ptrDevImage, size)); + HANDLE_ERROR(cudaMemset(ptrDevImage, 0, size)); + + int i = 0; + Chronos chrono; + const char* messageError=ptrAnimable->getTitle().c_str(); + while (i < nbIteration) + { + ptrAnimable->runGPU(ptrDevImage); + + Device::checkKernelError(messageError); + Device::synchronize(); // Important! + + ptrAnimable->animationStep(); + + i++; + } + + chrono.stop(); + HANDLE_ERROR(cudaFree(ptrDevImage)); + + this->timeElapseS = chrono.getDeltaTime(); + this->fps = nbIteration / timeElapseS; + + return fps; + } + +void AnimateurFreeGL::printStat() + { + cout << endl; + cout << "Benchmark : [" << ptrAnimable->getTitle()<<"]" << endl; + cout << "#Iteration : " << nbIteration << endl; + cout << "#secondes : " << timeElapseS << " (s)" << endl; + cout << "#fps : " << fps << endl; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/cpp/Image.cpp b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/cpp/Image.cpp new file mode 100755 index 0000000..5ae2097 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/cpp/Image.cpp @@ -0,0 +1,101 @@ +#include +#include +#include + +#include "Image.h" +#include "StringTools.h" +#include "MathTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +Image::Image(Animable_I* ptrAnimable,ColorRGB_01* ptrColorTitreRGB) : + ImageMOOs_A(ptrAnimable->getW(), ptrAnimable->getH()) + { + this->ptrAnimable = ptrAnimable; + this->ptrColorTitreRGB=ptrColorTitreRGB; + } + +Image::~Image(void) + { + delete ptrAnimable; + } + +/** + * Override + */ +void Image::animationStep(bool& isNeedUpdateView) + { + // cout << "[CBI] : Image : animationStep" <animationStep(); + isNeedUpdateView = true; // true par default + } + +/** + * Override + */ +void Image::fillImageGL(uchar4* ptrDevImageGL, int w, int h) + { + // cout << "[CBI] : Image : fillImageGL" <runGPU(ptrDevImageGL); + } + +/** + * Override + */ +void Image::paintPrimitives(Graphic2Ds& graphic2D) // redefinition + { + const Font_A* ptrfont = graphic2D.getFont(TIMES_ROMAN_24); + + float r = ptrColorTitreRGB->r; + float g = ptrColorTitreRGB->g; + float b = ptrColorTitreRGB->b; + graphic2D.setColorRGB(r, g, b); + + // top + { + float t = ptrAnimable->getT(); + string message = "t = " + StringTools::toString(t); + graphic2D.drawTitleTop(message, ptrfont); + } + + // bottom + { + string title = ptrAnimable->getTitle(); + graphic2D.drawTitleBottom(title, ptrfont); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/Animable_I.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/Animable_I.h new file mode 100755 index 0000000..3568641 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/Animable_I.h @@ -0,0 +1,43 @@ +#ifndef ANIMABLE_I_H_ +#define ANIMABLE_I_H_ + +#include +#include "cudaTools.h" + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Animable_I + { + public: + + //virtual ~Animable_I(void)=0; + + virtual void runGPU(uchar4* ptrDevPixels)=0; + virtual void animationStep(void)=0; + + virtual int getW()=0; + virtual int getH()=0; + + /** + * getParaAnimation + */ + virtual float getT()=0; + + virtual string getTitle()=0; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/AnimateurFreeGL.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/AnimateurFreeGL.h new file mode 100755 index 0000000..f978d3c --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/AnimateurFreeGL.h @@ -0,0 +1,73 @@ +#ifndef ANIMATEUR_FREE_GL_H_ +#define ANIMATEUR_FREE_GL_H_ + +#include "Animable_I.h" + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class AnimateurFreeGL + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /** + * Hyp: + * (H1) nbIteration suffisamment grand pour que timeElapse soit significatif + * (H2) ptrAnimable image uchar4 + */ + AnimateurFreeGL(Animable_I* ptrAnimable,int nbIteration=1000); + virtual ~AnimateurFreeGL(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public : + + int getFps(void); + + private: + + /** + * Synchrone, ,return fps + */ + int start(void); + void printStat(void); + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int nbIteration; + Animable_I* ptrAnimable; + + // Tools + + // Output + int fps; + float timeElapseS; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/Image.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/Image.h new file mode 100755 index 0000000..69729c6 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/bitmap/header/Image.h @@ -0,0 +1,63 @@ +#ifndef IMAGE_H_ +#define IMAGE_H_ + +#include "ImageMOOs_A.h" +#include "MathTools.h" +#include "ColorRGB_01.h" + +#include "Animable_I.h" + + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Image: public ImageMOOs_A + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /** + * ptrColorRGB : color all titre + */ + Image(Animable_I* ptrAnimable, ColorRGB_01* ptrColorTitreRGB = new ColorRGB_01(1, 0, 0)); + + /** + * Warning :delete ptrAnimable + */ + virtual ~Image(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void fillImageGL(uchar4* ptrDevImageGL, int w, int h); // override + void animationStep(bool& isNeedUpdateView); // override + void paintPrimitives(Graphic2Ds& graphic2D); // override + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Input + Animable_I* ptrAnimable; + ColorRGB_01* ptrColorTitreRGB; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/cpp/AnimateurFonctionelFreeGL.cpp b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/cpp/AnimateurFonctionelFreeGL.cpp new file mode 100755 index 0000000..ad90374 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/cpp/AnimateurFonctionelFreeGL.cpp @@ -0,0 +1,117 @@ +#include + +#include "cudaTools.h" +#include "Device.h" +#include "MathTools.h" +#include "StringTools.h" + +#include "Chronos.h" + +#include "AnimateurFonctionelFreeGL.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +AnimateurFonctionelFreeGL::AnimateurFonctionelFreeGL(AnimableFonctionel_I* ptrAnimable, int nbIteration) + { + // Input + this->nbIteration = nbIteration; + this->ptrAnimable = ptrAnimable; + + // Outputs + this->fps = -1; + this->timeElapseS = -1; + + start(); + printStat(); + } + +AnimateurFonctionelFreeGL::~AnimateurFonctionelFreeGL() + { + delete ptrAnimable; // discutable! + } + +int AnimateurFonctionelFreeGL::getFps(void) + { + return fps; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +int AnimateurFonctionelFreeGL::start() + { + cout << "\n[AnimateurFreeGL] : started : " << ptrAnimable->getTitle() << endl; + + int w = ptrAnimable->getW(); + int h = ptrAnimable->getH(); + size_t size = w * h * sizeof(uchar4); + + uchar4* ptrDevImage; + HANDLE_ERROR(cudaMalloc((void**) &ptrDevImage, size)); + HANDLE_ERROR(cudaMemset(ptrDevImage, 0, size)); + + int i = 0; + Chronos chrono; + + DomaineMath* ptrDomaineMath=ptrAnimable->getDomaineMathInit(); + const char* messageError=ptrAnimable->getTitle().c_str(); + while (i < nbIteration) + { + ptrAnimable->runGPU(ptrDevImage,*ptrDomaineMath); + + Device::checkKernelError(messageError); + Device::synchronize(); // Important! + + ptrAnimable->animationStep(); + + i++; + } + + chrono.stop(); + HANDLE_ERROR(cudaFree(ptrDevImage)); + + this->timeElapseS = chrono.getDeltaTime(); + this->fps = nbIteration / timeElapseS; + + return fps; + } + +void AnimateurFonctionelFreeGL::printStat() + { + cout << endl; + cout << "Benchmark : [" << ptrAnimable->getTitle()<<"]" << endl; + cout << "#Iteration : " << nbIteration << endl; + cout << "#secondes : " << timeElapseS << " (s)" << endl; + cout << "#fps : " << fps << endl; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/cpp/ImageFonctionel.cpp b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/cpp/ImageFonctionel.cpp new file mode 100755 index 0000000..b002904 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/cpp/ImageFonctionel.cpp @@ -0,0 +1,103 @@ +#include +#include +#include + +#include "ImageFonctionel.h" +#include "StringTools.h" +#include "MathTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +ImageFonctionel::ImageFonctionel(AnimableFonctionel_I* ptrAnimable, ColorRGB_01* ptrColorTitreRGB) : + ImageFonctionelMOOs_A(ptrAnimable->getW(), ptrAnimable->getH(), *ptrAnimable->getDomaineMathInit()) + { + this->ptrAnimable = ptrAnimable; + this->ptrColorTitreRGB = ptrColorTitreRGB; + + setEnableDomaineOverlay(true); + } + +ImageFonctionel::~ImageFonctionel(void) + { + delete ptrAnimable; + } + +/** + * Override + */ +void ImageFonctionel::animationStep(bool& isNeedUpdateView) + { + // cout << "[CBI] : Image : animationStep" <animationStep(); + isNeedUpdateView = true; // true par default + } + +/** + * Override + */ +void ImageFonctionel::fillImageGL(uchar4* ptrDevImageGL, int w, int h, const DomaineMath& domaineMath) // override + { + // cout << "[CBI] : Image : fillImageGL" <runGPU(ptrDevImageGL, domaineMath); + } + +/** + * Override + */ +void ImageFonctionel::paintPrimitives(Graphic2Ds& graphic2D) // redefinition + { + const Font_A* ptrfont = graphic2D.getFont(TIMES_ROMAN_24); + + float r = ptrColorTitreRGB->r; + float g = ptrColorTitreRGB->g; + float b = ptrColorTitreRGB->b; + graphic2D.setColorRGB(r, g, b); + + // top + { + float t = ptrAnimable->getT(); + string message = "t = " + StringTools::toString(t); + graphic2D.drawTitleTop(message, ptrfont); + } + + // bottom + { + string title = ptrAnimable->getTitle(); + graphic2D.drawTitleBottom(title, ptrfont); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/AnimableFonctionel_I.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/AnimableFonctionel_I.h new file mode 100755 index 0000000..6fb67ce --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/AnimableFonctionel_I.h @@ -0,0 +1,48 @@ +#ifndef ANIMABLE_FONCTIONEL_I_H_ +#define ANIMABLE_FONCTIONEL_I_H_ + +#include + +#include "cudaTools.h" +#include "DomaineMath.h" + +using std::string; + + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class AnimableFonctionel_I + { + public: + + //virtual ~Animable_I(void)=0; + + virtual void runGPU(uchar4* ptrDevPixels,const DomaineMath& domaineMath)=0; + virtual void animationStep(void)=0; + + virtual int getW(void)=0; + virtual int getH(void)=0; + virtual DomaineMath* getDomaineMathInit(void)=0; + + /** + * getParaAnimation + */ + virtual float getT(void)=0; + + virtual string getTitle(void)=0; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/AnimateurFonctionelFreeGL.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/AnimateurFonctionelFreeGL.h new file mode 100755 index 0000000..b07beab --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/AnimateurFonctionelFreeGL.h @@ -0,0 +1,73 @@ +#ifndef ANIMATEUR_FONCTIONEL_FREE_GL_H_ +#define ANIMATEUR_FONCTIONEL_FREE_GL_H_ + +#include "AnimableFonctionel_I.h" + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class AnimateurFonctionelFreeGL + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /** + * Hyp: + * (H1) nbIteration suffisamment grand pour que timeElapse soit significatif + * (H2) ptrAnimable image uchar4 + */ + AnimateurFonctionelFreeGL(AnimableFonctionel_I* ptrAnimable,int nbIteration=1000); + virtual ~AnimateurFonctionelFreeGL(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public : + + int getFps(void); + + private: + + /** + * Synchrone, ,return fps + */ + int start(void); + void printStat(void); + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int nbIteration; + AnimableFonctionel_I* ptrAnimable; + + // Tools + + // Output + int fps; + float timeElapseS; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/ImageFonctionel.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/ImageFonctionel.h new file mode 100755 index 0000000..70e1585 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/ImageFonctionel.h @@ -0,0 +1,63 @@ +#ifndef IMAGE_FONCTIONEL_H_ +#define IMAGE_FONCTIONEL_H_ + +#include "ImageFonctionelMOOs_A.h" +#include "MathTools.h" +#include "ColorRGB_01.h" + +#include "AnimableFonctionel_I.h" + + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class ImageFonctionel: public ImageFonctionelMOOs_A + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + /** + * ptrColorRGB : color all titre + */ + ImageFonctionel(AnimableFonctionel_I* ptrAnimable, ColorRGB_01* ptrColorTitre = new ColorRGB_01(1, 0, 0)); + + /** + * Warning : delete ptrAnimable et delete ptrColorTitre + */ + virtual ~ImageFonctionel(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + void fillImageGL(uchar4* ptrDevImageGL, int w, int h, const DomaineMath& domaineMath); // override + void animationStep(bool& isNeedUpdateView); // override + void paintPrimitives(Graphic2Ds& graphic2D); // override + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Input + AnimableFonctionel_I* ptrAnimable; + ColorRGB_01* ptrColorTitreRGB; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/main.cpp b/WCudaMSE/BilatTools_Cuda_Image/src/main.cpp new file mode 100755 index 0000000..dc71180 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_Image/src/main.cpp @@ -0,0 +1,31 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Importation *| + \*---------------------------------------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + cout<<"BilatTools_Cuda_Image"< + + BilatTools_Cuda_smart_switch + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/dataProject.mk b/WCudaMSE/BilatTools_Cuda_smart_switch/dataProject.mk new file mode 100755 index 0000000..f1bca44 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/dataProject.mk @@ -0,0 +1,80 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=BilatTools_Cuda_Priority + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_Cuda/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + + +include $(API_CUDA)/cuda.mk +#include $(API)/cppTest.mk +include $(API_CUDA)/cuda_OpenMP.mk #pour BilatTools_CPP + +include $(API_CUDA)/bilat_Image_GL_Cuda.mk +include $(API_CUDA)/bilat_Image_FreeGlut_Cuda.mk +include $(API_CUDA)/bilat_Image_JNI_Cuda.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_FreeGlut/GLUTImageViewers.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_FreeGlut/GLUTImageViewers.h new file mode 100755 index 0000000..948ae46 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_FreeGlut/GLUTImageViewers.h @@ -0,0 +1,29 @@ +#ifndef GLUT_IMAGE_VIEWERS_H_ +#define GLUT_IMAGE_VIEWERS_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "GLUTImageViewers_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "GLUTImageViewers_CPU.h" +#include "prioriteCPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/DomaineEcran.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/DomaineEcran.h new file mode 100755 index 0000000..44506cf --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/DomaineEcran.h @@ -0,0 +1,29 @@ +#ifndef DOMAINEECRAN_H_ +#define DOMAINEECRAN_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "DomaineEcran_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "DomaineEcran_CPU.h" +#include "prioriteCPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/DomaineMath.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/DomaineMath.h new file mode 100755 index 0000000..b9cffa8 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/DomaineMath.h @@ -0,0 +1,29 @@ +#ifndef DOMAINEMATH_H_ +#define DOMAINEMATH_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "DomaineMath_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "DomaineMath_CPU.h" +#include "prioriteCPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/ImageFonctionelMOOs_A.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/ImageFonctionelMOOs_A.h new file mode 100755 index 0000000..34358e2 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/ImageFonctionelMOOs_A.h @@ -0,0 +1,28 @@ +#ifndef IMAGEFONCTIONELMOOS_A_H_ +#define IMAGEFONCTIONELMOOS_A_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "ImageFonctionelMOOs_A_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "ImageFonctionelMOOs_A_CPU.h" +#include "prioriteCPU.h" + +#endif + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/ImageMOOs_A.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/ImageMOOs_A.h new file mode 100755 index 0000000..7b5bf61 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/ImageMOOs_A.h @@ -0,0 +1,30 @@ +#ifndef IMAGEMOOS_A_H_ +#define IMAGEMOOS_A_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "ImageMOOs_A_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "ImageMOOs_A_CPU.h" +#include "prioriteCPU.h" + +#endif + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImageFonctionelSelections.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImageFonctionelSelections.h new file mode 100755 index 0000000..a6a9b03 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImageFonctionelSelections.h @@ -0,0 +1,29 @@ +#ifndef GLIMAGEFONCTIONELSELECTIONS_H_ +#define GLIMAGEFONCTIONELSELECTIONS_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "GLImageFonctionelSelections_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "GLImageFonctionelSelections_CPU.h" +#include "prioriteCPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImageSelections.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImageSelections.h new file mode 100755 index 0000000..af013a8 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImageSelections.h @@ -0,0 +1,28 @@ +#ifndef GLIMAGESELECTIONS_H_ +#define GLIMAGESELECTIONS_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "GLImageSelections_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "GLImageSelections_CPU.h" +#include "prioriteCPU.h" + +#endif + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImages.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImages.h new file mode 100755 index 0000000..d999827 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_GL/indirect/GLImages.h @@ -0,0 +1,28 @@ +#ifndef GLIMAGES_H_ +#define GLIMAGES_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "GLImages_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "GLImages_CPU.h" +#include "prioriteCPU.h" + +#endif + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_Jni/CanvasImageViewers.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_Jni/CanvasImageViewers.h new file mode 100755 index 0000000..0c62ee9 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/Image_Jni/CanvasImageViewers.h @@ -0,0 +1,29 @@ +#ifndef CANVAS_NATIVE_IMAGE_VIEWERS_H_ +#define CANVAS_NATIVE_IMAGE_VIEWERS_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "CanvasImageViewers_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation sans cuda +#include "CanvasImageViewers_CPU.h" +#include "prioriteCPU.h" + +#endif // CBI_NO_CUDA + + +#endif // CANVAS_NATIVE_IMAGE_VIEWERS_H_ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/CalibreurF.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/CalibreurF.h new file mode 100755 index 0000000..56aba6d --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/CalibreurF.h @@ -0,0 +1,32 @@ +#ifndef CALIBREURF_PRIORITE_CUDA_H_ +#define CALIBREURF_PRIORITE_CUDA_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "CalibreurF_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation avec cuda + +#include "CalibreurF_CPU.h" +#include "prioriteCPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + + diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/ColorTools.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/ColorTools.h new file mode 100755 index 0000000..3167456 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/ColorTools.h @@ -0,0 +1,29 @@ +#ifndef COLORTOOLS_PRIORITE_CUDA_H_ +#define COLORTOOLS_PRIORITE_CUDA_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "ColorTools_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation avec cuda + +#include "IndiceTools_CPU.h" +#include "ColorTools_CPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/IndiceTools.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/IndiceTools.h new file mode 100755 index 0000000..15857cd --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/IndiceTools.h @@ -0,0 +1,30 @@ +#ifndef INDICE_TOOLS_PRIORITE_CUDA_H_ +#define INDICE_TOOLS_PRIORITE_CUDA_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "IndiceTools_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation avec cuda + +#include "IndiceTools_CPU.h" +#include "prioriteCPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/IntervalF.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/IntervalF.h new file mode 100755 index 0000000..f126bb7 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_GPU/IntervalF.h @@ -0,0 +1,31 @@ +#ifndef INTERVALF_PRIORITE_CUDA_H_ +#define INTERVALF_PRIORITE_CUDA_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "IntervalF_GPU.h" +#include "prioriteGPU.h" + +#else // pour compilation avec cuda + +#include "IntervalF_CPU.h" +#include "prioriteCPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_switch/prioriteCPU.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_switch/prioriteCPU.h new file mode 100755 index 0000000..ea3e858 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_switch/prioriteCPU.h @@ -0,0 +1,22 @@ +#ifndef CPU_PRIORITE_H +#define CPU_PRIORITE_H + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifdef CBI_NO_CUDA // pour compilation sans cuda + +using namespace cpu; + +#endif + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_switch/prioriteGPU.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_switch/prioriteGPU.h new file mode 100755 index 0000000..568a4a0 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/tools_switch/prioriteGPU.h @@ -0,0 +1,23 @@ +#ifndef CUDA_PRIORITE_H +#define CUDA_PRIORITE_H + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +using namespace gpu; + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/type/cudaType.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/type/cudaType.h new file mode 100755 index 0000000..8d21c81 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/header/type/cudaType.h @@ -0,0 +1,43 @@ +#ifndef CUDA_TYPE_PRIORITE_H_ +#define CUDA_TYPE_PRIORITE_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#ifndef CBI_NO_CUDA // pour compilation avec cuda + +#include "cudaTools.h" +#include "cuda_runtime.h" +//#include "prioriteGPU.h" + +#ifndef uchar +#define uchar unsigned char +#endif + +#ifndef uint +#define uint unsigned char +#endif + +#ifndef ulong +#define ulong unsigned char +#endif + + +#else // pour compilation sans cuda + +#include "cudaType_CPU.h" +#include "prioriteCPU.h" + +#endif + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/readme.txt b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/readme.txt new file mode 100755 index 0000000..1990f5d --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/core/switch/readme.txt @@ -0,0 +1,60 @@ +// Objectif: +// +// Faciliter la vie de l'utilisateur! +// +// Probleme: +// +// Exemple (api image) +// +// Methodologie 1 (utilisation namespace explicite) +// +// Compilation gcc = > cpu::Image #include "Image_CPU.h" +// Compilation nvcc => gpu::Image #include "Image_GPU.h" +// +// Avantage : On peut utiliser en meme temps (meme exe) la vesrion cuda(namespace gpu) et non cuda (namespace cpu) de l'api-image +// Inconvenient : syntaxe lourde +// +// Methodologie 2 (utilisation de smart switch a priorite cuda) +// +// Code (sans namespace) +// +// Image #include "Image.h" +// +// Compilation gcc = > utilise automatiquemnt namespace cpu +// => et donc indirectememt cpu::Image #include "Image_CPU.h" +// +// Compilation nvcc = > utilise automatiquemnt namespace gpu +// => et donc indirectememt gpu::Image #include "Image_GPU.h" +// +// +// Avantage : syntaxe ligth,portage de code facile entre version cpu et gpu, c'est le compilateur qui oriente +// Inconvenient : On peut pas utiliser en meme temps (meme exe) la vesrion cuda(namespace gpu) et non cuda (namespace cpu) de l'api-image +// +// Contrainte : +// Injecter la variable +// +// -D__CBI_CUDA__ +// +// ou mieux injecter la variable pour les projets non cuda +// +// -DCBI_NO_CUDA +// Note +// L'utilisation de la variable +// +// __CUDACC__ +// +// ne marche pas, elle est vrai que pour les portions de codes compiliés par nvcc, et false lorsque nvcc demande à gcc de compiler + +/*----------------------------------------------------------------------*\ + |* Pre-defined Compiler Macros *| + \*---------------------------------------------------------------------*/ + +// http://sourceforge.net/p/predef/wiki/Compilers/ + +// http://msdn.microsoft.com/en-us/library/b0084kay.aspx +// https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html +// http://sourceforge.net/p/predef/wiki/Home/ + +// #ifdef __GNUC__ +// #if defined(_MSC_VER) +// #ifdef __CBI_CUDA__ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cpp.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cpp.h new file mode 100755 index 0000000..c207f4d --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cpp.h @@ -0,0 +1,20 @@ +#ifndef CPP_H_ +#define CPP_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +#include "CanvasImageViewers.h"// pas utilisable dans cu car utilise boost +#include "GLUTImageViewers.h" // pas utilisable dans cu car utilise boost + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cu.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cu.h new file mode 100755 index 0000000..be7bb4e --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cu.h @@ -0,0 +1,28 @@ +#ifndef CU_H_ +#define CU_H_ + +/*---------------*\ + |* Device Side *| + \*---------------*/ + +#include "Indice1D.h" +#include "Indice2D.h" + +#include "Lock.h" + +#include "reductionADD.h" +//#include "reductionADDLock.h" //meme proto reductionADD.h + +#include "reductionMinMax.h" +//#include "reductionMinMaxLock.h" //meme proto reductionMinMax.h + +#include "curandTools.h" + +/*---------------*\ + |* Mixte Side *| + \*---------------*/ + +#include "LockMixte.h" + + +#endif diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cu_cpp.h b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cu_cpp.h new file mode 100755 index 0000000..8dee993 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/cu_cpp.h @@ -0,0 +1,41 @@ +#ifndef CU_CPP_H_ +#define CU_CPP_H_ + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*---------------*\ + |* HostDevice Side *| + \*---------------*/ + +#include "DomaineMath.h" +#include "DomaineEcran.h" + +#include "CalibreurF.h" +#include "IntervalF.h" + +#include "ColorTools.h" +#include "IndiceTools.h" + +/*---------------*\ + |* Host Side *| + \*---------------*/ + +#include "ImageFonctionelMOOs_A.h" +#include "ImageMOOs_A.h" +//#include "CanvasImageViewers.h"// pas utilisable dans cu car utilise boost +//#include "GLUTImageViewers.h" // pas utilisable dans cu car utilise boost + +#include "cudaType.h" + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/main.cpp b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/main.cpp new file mode 100755 index 0000000..1cd8c11 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/main.cpp @@ -0,0 +1,55 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + + + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool mainCPP(); +extern bool mainCU(); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + cout << "[BilatTools_Cuda_Smart_switch] : just inlcude to force compilation" << endl; + + bool isOk=true; + + isOk&=mainCPP(); + isOk&=mainCU(); + + return isOk?EXIT_SUCCESS:EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/mainCPP.cpp b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/mainCPP.cpp new file mode 100755 index 0000000..6d367ca --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/mainCPP.cpp @@ -0,0 +1,52 @@ +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +#include "cpp.h" +#include "cu_cpp.h" + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool mainCU(); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool mainCPP(void) + { + cout << "[BilatTools_Cuda_Smart_switch] : just inlcude to force compilation in .cpp" << endl; + + // TODO use classe + mainCU(); + + return true;; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/mainCU.cu b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/mainCU.cu new file mode 100755 index 0000000..ad37985 --- /dev/null +++ b/WCudaMSE/BilatTools_Cuda_smart_switch/src/test/mainCU.cu @@ -0,0 +1,68 @@ +#include +#include + +#include "Device.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Importation *| + \*---------------------------------------------------------------------*/ + +#include "cu.h" +#include "cu_cpp.h" + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool mainCU(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static void lauchKernel(void); +static __global__ void kernelTest(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +bool mainCU(void) + { + cout << "[BilatTools_Cuda_Smart_switch] : just inlcude to force compilation in .cu" << endl; + + lauchKernel(); + + return true; + } + +void lauchKernel(void) + { + dim3 dg = dim3(1, 1, 1); + dim3 db = dim3(1, 1, 1); + + kernelTest<<>>(); + Device::synchronize(); + } + +__global__ void kernelTest(void) + { + printf("\nHello from kernel\n"); // TODO use classe + } + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_OMP/.project b/WCudaMSE/BilatTools_OMP/.project new file mode 100755 index 0000000..ed7836f --- /dev/null +++ b/WCudaMSE/BilatTools_OMP/.project @@ -0,0 +1,27 @@ + + + BilatTools_OMP + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/BilatTools_OMP/dataProject.mk b/WCudaMSE/BilatTools_OMP/dataProject.mk new file mode 100755 index 0000000..d65356e --- /dev/null +++ b/WCudaMSE/BilatTools_OMP/dataProject.mk @@ -0,0 +1,72 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=BilatTools_OMP + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=STATIC_LIB + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +#SRC_AUX+= + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# +# Mimimum : empty + +include $(API)/openmp.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/BilatTools_OMP/intelLinux.mk b/WCudaMSE/BilatTools_OMP/intelLinux.mk new file mode 100755 index 0000000..435d3a3 --- /dev/null +++ b/WCudaMSE/BilatTools_OMP/intelLinux.mk @@ -0,0 +1,11 @@ +# Version : 0.0.1 + +############################################### +# Intel # +############################################### + +CXXFLAGS_EXCLUDE+= -parallel + +############################################### +# End # +############################################### diff --git a/WCudaMSE/BilatTools_OMP/src/core/OMP_Tools/cpp/OmpTools.cpp b/WCudaMSE/BilatTools_OMP/src/core/OMP_Tools/cpp/OmpTools.cpp new file mode 100755 index 0000000..a7d1de1 --- /dev/null +++ b/WCudaMSE/BilatTools_OMP/src/core/OMP_Tools/cpp/OmpTools.cpp @@ -0,0 +1,112 @@ +#include +#include "OmpTools.h" + +#define MULTIPLIER 1366 +#define ADDEND 150889 +#define PMOD 714025 + +long random_last = 0; +#pragma omp threadprivate(random_last) + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + +OmpTools::OmpTools() + { + // rien + } + +OmpTools::~OmpTools() + { + // rien + } + +/*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + +/*----------------------*\ + |* static public *| + \*---------------------*/ + +int OmpTools::setAndGetNaturalGranularity() + { + // ko sur ARM, 1 core detecte only +// { +// int nbThread = omp_get_num_procs(); +// omp_set_num_threads(nbThread); +// return nbThread; +// } + +#ifndef __arm__ + + int nbThread = omp_get_num_procs(); + +#else + + //omp_get_num_procs ne donne pas la bonne valeurs sur kayla + + int nbThread=4;//4 car kayla à 4 coeurs. + +#endif + + omp_set_num_threads(nbThread); + return nbThread; + } + +/*--------*\ + |* get *| + \*-------*/ + +int OmpTools::getNbCore() + { + return omp_get_num_procs(); + } + +int OmpTools::getNbThread() + { + return omp_get_num_threads(); + } + +int OmpTools::getTid() + { + return omp_get_thread_num(); + } + +/*--------*\ + |* set *| + \*-------*/ + +void OmpTools::setNbThread(int nbThread) + { + omp_set_num_threads(nbThread); + } + +/*--------*\ + |* math *| + \*-------*/ + +double OmpTools::uniform01(void) + { + long random_next; + + random_next = (MULTIPLIER * random_last + ADDEND) % PMOD; + random_last = random_next; + + return ((double) random_next / (double) PMOD); + } + +double OmpTools::uniform(double a, double b) + { + return a + uniform01() * (b - a); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_OMP/src/core/OMP_Tools/header/OmpTools.h b/WCudaMSE/BilatTools_OMP/src/core/OMP_Tools/header/OmpTools.h new file mode 100755 index 0000000..6896e6c --- /dev/null +++ b/WCudaMSE/BilatTools_OMP/src/core/OMP_Tools/header/OmpTools.h @@ -0,0 +1,68 @@ +#ifndef OMP_TOOLS_H_ +#define OMP_TOOLS_H_ + +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +class OmpTools + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + OmpTools(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~OmpTools(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /** + * autant de thread que de core + */ + static int setAndGetNaturalGranularity(); + + static void setNbThread(int nbThread); + static int getNbCore(); + static int getNbThread(); + static int getTid(); + + /** + * Thread safe + * [0,1[ + */ + static double uniform01(void); + + /** + * Thread safe + * [a,b[ + */ + static double uniform(double a, double b); + + private: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_OpenCV/.project b/WCudaMSE/BilatTools_OpenCV/.project new file mode 100755 index 0000000..19d786a --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/.project @@ -0,0 +1,79 @@ + + + BilatTools_OpenCV + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f mingw.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/BilatTools_OpenCV/dataProject.mk b/WCudaMSE/BilatTools_OpenCV/dataProject.mk new file mode 100755 index 0000000..5bd59d9 --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/dataProject.mk @@ -0,0 +1,74 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=BilatTools_OpenCV + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=SHARED_LIB + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_Cuda_smart_switch/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# +# Mimimum : empty + +include $(API)/opencv.mk +include $(API)/openmp.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+=CBI_NO_CUDA + +################################################# +# End # +################################################# diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/CaptureCamera.cpp b/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/CaptureCamera.cpp new file mode 100755 index 0000000..3c11ccb --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/CaptureCamera.cpp @@ -0,0 +1,114 @@ +#include +#include "CaptureCamera.h" + +using std::cerr; +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*------------------*\ + |* Constructeur *| + \*-----------------*/ + +/** + * see doc of Capture_A constructor for cuda use (ptrHostMemory) + */ +CaptureCamera::CaptureCamera(int idCamera, const string& title, int wAsk, int hAsk,uchar4* ptrHostMemory) : + Capture_A(createStream(idCamera), title,ptrHostMemory) + + { + this->idCamera = idCamera; + this->wAsk = wAsk; + this->hAsk = hAsk; + + configure(); + } + +CaptureCamera::~CaptureCamera(void) + { + // rien + // delete ptrCaptureStream; in constructor + } + +/*------------------*\ + |* Methode *| + \*-----------------*/ + +void CaptureCamera::printInfo(void) + { + Capture_A::printInfo(); + + cout << "\t(w,h) asked = (" << wAsk << "," << hAsk << ") " << endl; + + cout << endl; + } + +void CaptureCamera::readStream(VideoCapture* ptrCaptureStream, Mat* ptrMatCaptureSrc) + { + (*ptrCaptureStream) >> (*ptrMatCaptureSrc); + } + +/*------------------*\ + |* get *| + \*-----------------*/ + +int CaptureCamera::getIdCamera() + { + return idCamera; + } + +int CaptureCamera::dtOriginalMS() + { + return 0; // On doit attendre sur le port usb, mieux? + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +VideoCapture* CaptureCamera::createStream(int idCamera) + { + return new VideoCapture(idCamera); + } + +void CaptureCamera::configure() + { + // VideoCapture* ptrCaptureStream = getVideoCapture(); + + // cout << "(w,h) asked = (" << wAsk << "," << hAsk << ") asked" << endl; + + if (wAsk != -1) + { + ptrCaptureStream->set(CV_CAP_PROP_FRAME_WIDTH, wAsk); + } + + if (hAsk != -1) + { + ptrCaptureStream->set(CV_CAP_PROP_FRAME_HEIGHT, hAsk); + } + + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/CaptureVideo.cpp b/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/CaptureVideo.cpp new file mode 100755 index 0000000..fc8ddc5 --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/CaptureVideo.cpp @@ -0,0 +1,157 @@ +#include +#include "CaptureVideo.h" + +using std::cerr; +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*------------------*\ + |* Constructeur *| + \*-----------------*/ + +/** + * see doc of Capture_A constructor for cuda use (ptrHostMemory) + */ +CaptureVideo::CaptureVideo(const string& videoName, const string& title, uchar4* ptrHostMemory) : + Capture_A(createStream(videoName), title, ptrHostMemory) + { + //cout << "[CaptureVideo] : CaptureVideo" << endl; + this->videoName = videoName; + configure(); + } + +CaptureVideo::~CaptureVideo(void) + { + // rien + // delete ptrCaptureStream; in constructor + } + +/*------------------*\ + |* Methode *| + \*-----------------*/ + +void CaptureVideo::printInfo(void) + { + Capture_A::printInfo(); + + cout << "\tvideo name = " << videoName << endl; + + if (isFpsSourceConnu) + { + cout << "\tfps(source) = " << fpsSource << endl; + } + else + { + cout << "\tfps(source) = Inconnu" << endl; + } + + cout << endl; + } + +void CaptureVideo::readStream(VideoCapture* ptrCaptureStream, Mat* ptrMatCaptureSrc) + { + //cout << "[CaptureVideo] : readStream" << endl; + + // plante si fin cideo + // (*ptrCaptureStream) >> (*ptrMatCaptureSrc); + + // mieux + // cout << "[CaptureVideo] : read : try" << endl; + bool isOk = ptrCaptureStream->read(*ptrMatCaptureSrc); + // cout << "[CaptureVideo] : read : sucess" << endl; + + bool isFinVideo = !isOk; + if (isFinVideo) + { + ptrCaptureStream->set(CV_CAP_PROP_POS_FRAMES, 0); // remise du lecteur à la position 0 + ptrCaptureStream->read(*ptrMatCaptureSrc); + } + } + +/*------------------*\ + |* get *| + \*-----------------*/ + +int CaptureVideo::dtOriginalMS() + { + return dtSourceMS; + } + +int CaptureVideo::fpsOriginal() + { + return fpsSource; + } + +/*------------------*\ + |* is *| + \*-----------------*/ + +bool CaptureVideo::isFpsOriginalKnown() + { + return isFpsSourceConnu; + } + +string CaptureVideo::getVideoName() + { + return videoName; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +VideoCapture* CaptureVideo::createStream(const string& videoName) + { + return new VideoCapture(videoName); + } + +void CaptureVideo::configure() + { + //cout << "[CaptureVideo] : configure" << endl; + + //VideoCapture* ptrCaptureStream = getVideoCapture(); + + this->fpsSource = ptrCaptureStream->get(CV_CAP_PROP_FPS); // TODO bug? always 1000 windows + + // cout << "fps video source (" << videoName << ") = "; + + if (fpsSource != 0) + { + this->isFpsSourceConnu = true; + this->dtSourceMS = 1000 / fpsSource; + + //cout << fps << endl << endl; + } + else + { + this->isFpsSourceConnu = false; + this->dtSourceMS = 0; + + //cout << "fps unknown" << endl << endl; + } + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/Capture_A.cpp b/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/Capture_A.cpp new file mode 100755 index 0000000..cf614bb --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/capture/cpp/Capture_A.cpp @@ -0,0 +1,279 @@ +#include +#include "Capture_A.h" + +using std::cerr; +using std::cout; +using std::endl; + +//http://docs.opencv.org/doc/tutorials/highgui/video-input-psnr-ssim/video-input-psnr-ssim.html + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*------------------*\ + |* Constructeur *| + \*-----------------*/ + +/** + * Optimisation Cuda: + * Principe: + * Use pinned memory in host side + * Give this area to openCV + * Syntaxe: + * size_t sizeOctets=w*h*sizeof(uchar4); + * uchar4* ptrHostMemory; + * HANDLE_ERROR( cudaHostAlloc ((void**) &ptrHostMemory, sizeOctets,cudaHostAllocDefault ) ); + * + * Usage: + * CaptureVideo captureur(pathToVideo, titre); + * Mat matImage=captureur.capturer(); // capture une image seulement ( à utiliser en boucle!) + * uchar4* image= CaptureVideo::castToUChar4(&matImage); // format cuda + */ +Capture_A::Capture_A(VideoCapture* ptrCaptureStream, const string& title, uchar4* ptrHostMemory):chrono() + { + // cout << "[Capture_A] : Capture_A" << endl; + + this->title = title; + this->compteurCapture = 0; + this->ptrCaptureStream = ptrCaptureStream; + + this->w = (int) ptrCaptureStream->get(CV_CAP_PROP_FRAME_WIDTH); + this->h = (int) ptrCaptureStream->get(CV_CAP_PROP_FRAME_HEIGHT); + + // chrono=Chronos(); + + if(ptrHostMemory!=NULL) + { + matCaptureSrc=Mat(w,h,CV_BGR2RGBA,ptrHostMemory); // Ecrase ancienne + } + } + +Capture_A::~Capture_A(void) + { + if (ptrCaptureStream != NULL) + { + delete ptrCaptureStream; + ptrCaptureStream = NULL; + } + } + +/*------------------*\ + |* Methode *| + \*-----------------*/ + +Mat Capture_A::capturer(void) + { + //cout << "[Capture_A] : capturer" << endl; + + compteurCapture++; + + //(*ptrCaptureStream) >> matCaptureSrc; // plante en fin de video + readStream(this->ptrCaptureStream, &this->matCaptureSrc); // methode virtuelle : au lieu de ci-dessous, plus robuste + + // debug + { + //printInfo(); + } + + // old + { + // Type image: + // CV_8U CV_ => BVRA et non RVBA => demande correction TODO Mieux? + // RGB2GRAY + // int nbChannel = 4; // 0 keep same chanel // 4 permet par exemple d'ajouter la couche alpha à rvb (pour une video ou webcam) + // cvtColor(matCaptureSrc, matCaptureDest, CV_8U, nbChannel); + } + + // new + { + // http://siggiorn.com/wp-content/uploads/libraries/opencv-java/docs/sj/opencv/Constants.ColorConversion.html + //int colorConversion=CV_BGR2GRAY; // ok + //int colorConversion=CV_BGR2RGBA ; // ko + int colorConversion = CV_BGR2BGRA; // ok + cvtColor(matCaptureSrc, matCaptureDest, colorConversion); + } + + return matCaptureDest; //castToUChar4(matCapture.data); + } + +void Capture_A::printInfo(void) + { + cout << "[Capture_A] : Capture Info :" << endl; + cout << "\t(w,h) = (" << w << "," << h << ")" << endl; + cout << "\ttitle = " << title << endl; + cout << "\tnbChannel = " << matCaptureSrc.channels() << endl; + cout << "\ttype = " << matCaptureSrc.type() << endl; + cout << "\tisEmpty = " << matCaptureSrc.empty() << endl; + cout << "\tdtMS(source) = " << dtOriginalMS() << endl; + + if (compteurCapture >= 2) + { + cout << "\tfps(capture) = " << fpsCapture() << endl; + } + + cout << "\tchrono = " << chrono.timeFlight() << " (s)"<< endl; + cout << "\t#image = " << compteurCapture << endl; + } + +int Capture_A::nbOctetImage() + { + return w * h * sizeof(uchar4); + } + +int Capture_A::fpsCapture() + { + double timeS = chrono.timeFlight(); + double fps = compteurCapture / timeS; + + return (int) fps; + } + +/*------------------*\ + |* is *| + \*-----------------*/ + +bool Capture_A::isOpened(void) + { + return ptrCaptureStream->isOpened(); + } + +/*------------------*\ + |* get *| + \*-----------------*/ + +VideoCapture* Capture_A::getVideoCapture() + { + return ptrCaptureStream; + } + +int Capture_A::getW(void) + { + return w; + } + +int Capture_A::getH(void) + { + return h; + } + +int Capture_A::dtOriginalMS() + { + return 0; + } + +long Capture_A::nbCapture() + { + return compteurCapture; + } + +string Capture_A::getTitle() + { + return title; + } + +Chronos Capture_A::getChronos() + { + return chrono; + } + +/*--------------------------------------*\ + |* Static *| + \*-------------------------------------*/ + +/** + * uchar = unsigned char + * uchar4 = 4 char sequentiel + */ +uchar4* Capture_A::castToUChar4(uchar* ptrTab) + { + return (uchar4*) ptrTab; + } + +/** + * uchar = unsigned char + * uchar4 = 4 char sequentiel + */ +uchar4* Capture_A::castToUChar4(Mat* ptrMap) + { + return castToUChar4(ptrMap->data); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +// http://opencv.willowgarage.com/documentation/cpp/reading_and_writing_images_and_video.html#cv-videocapture-get +// TODO: fixme marche pas trop bien +// capture.set(CV_CAP_PROP_FRAME_WIDTH,1280); +// capture.set(CV_CAP_PROP_FRAME_HEIGHT ,720); +//capture.set(CV_CAP_PROP_EXPOSURE,0); +// int n = matCapture.rows; +// int m = matCapture.cols; +// +//uchar* ptr=matCapture.data; +// unsigned char* ptr4=(unsigned char*)ptr; +// cout<<"size uchar = "< valeur par default camera + * wAsk=-2500 hAsk=1600 => valeur max camera, pas necessairement 2500x1600, mais max (strange, mais semble marcher) + */ + CaptureCamera(int idCamera,const string& title, int wAsk = 2500, int hAsk = 1600,uchar4* ptrHostMemory=NULL); + virtual ~CaptureCamera(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void printInfo(void); // Override + int getIdCamera(void); + int dtOriginalMS(void);// Override + + + protected : + + virtual void readStream(VideoCapture* ptrCaptureStream, Mat* ptrMatCaptureSrc); + + private: + + void configure(void); + VideoCapture* createStream(int idCamera); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int idCamera; + int wAsk; + int hAsk; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/capture/header/CaptureVideo.h b/WCudaMSE/BilatTools_OpenCV/src/core/capture/header/CaptureVideo.h new file mode 100755 index 0000000..239ac14 --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/capture/header/CaptureVideo.h @@ -0,0 +1,90 @@ +#ifndef CAPTURE_VIDEO_H_ +#define CAPTURE_VIDEO_H_ + +#include "Capture_A.h" + +using namespace cv; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * http://opencv.willowgarage.com/wiki/VideoCodecs + * + * AVI 'I420' RAW I420 Uncompressed YUV, 4:2:0 chroma subsampled + * + * Soft convertion : + * (S1) mencoder + * http://www.mplayerhq.hu/design7/dload.html + * console: mencoder in.avi -ovc raw -vf format=i420 -oac mp3lame -o out.avi + * http://smplayer.sourceforge.net/ + * + * + * sudo apt-get install mencoder + * + * (S2) VirtualDub + */ +class CaptureVideo: public Capture_A + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + CaptureVideo(const string& videoName, const string& title,uchar4* ptrHostMemory=NULL); + virtual ~CaptureVideo(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * Temps a attendre entre 2 captures pour respecter fps original + */ + int dtOriginalMS(void); // Override + + string getVideoName(void); + + void printInfo(void); // Override + + int fpsOriginal(void); + bool isFpsOriginalKnown(void); + + private: + + void configure(void); + VideoCapture* createStream(const string& videoName); + + protected: + + virtual void readStream(VideoCapture* ptrCaptureStream, Mat* ptrMatCaptureSrc); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + string videoName; + + // Outputs + int dtSourceMS; + bool isFpsSourceConnu; + int fpsSource; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/capture/header/Capture_A.h b/WCudaMSE/BilatTools_OpenCV/src/core/capture/header/Capture_A.h new file mode 100755 index 0000000..f902212 --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/capture/header/Capture_A.h @@ -0,0 +1,105 @@ +#ifndef CAPTURE_A_H_ +#define CAPTURE_A_H_ + +#include + +#include +#include + +#include "Chronos.h" +#include "cudaType.h" + +using namespace cv; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * http://opencv.willowgarage.com/wiki/VideoCodecs + */ +class Capture_A + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Capture_A(VideoCapture* ptrCaptureStream,const string& title, uchar4* ptrHostMemory=NULL); + virtual ~Capture_A(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + VideoCapture* getVideoCapture(void); + int getW(void); + int getH(void); + string getTitle(void); + Chronos getChronos(void); + int fpsCapture(void); + + bool isOpened(void); + int nbOctetImage(void); + long nbCapture(void); + + virtual void printInfo(void); + + /** + * Temps a attendre entre 2 captures pour respecter fps original + */ + virtual int dtOriginalMS(void); + + /** + * To be call periodicly to obtain image + * Type pas RVBA, mais BVRA + */ + Mat capturer(void); + + // Tools + static uchar4* castToUChar4(uchar* ptrTab); + static uchar4* castToUChar4(Mat* ptrMap); + + protected: + + virtual void readStream(VideoCapture* ptrCaptureStream, Mat* ptrMatCaptureSrc)=0; + + private: + + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + string title; + + + // Tools + Mat matCaptureSrc; + + // Outputs + float w; + int h; + Mat matCaptureDest; + long compteurCapture; + Chronos chrono; + + protected: + VideoCapture* ptrCaptureStream; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/tuto/tuto.cpp b/WCudaMSE/BilatTools_OpenCV/src/core/tuto/tuto.cpp new file mode 100755 index 0000000..537735f --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/tuto/tuto.cpp @@ -0,0 +1,131 @@ +#include + +#include +#include + +using std::cout; +using std::cerr; +using std::endl; +using std::string; + +using namespace cv; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int tuto(string nameVideo); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static int work(VideoCapture* ptrVideoCapture); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * http://docs.opencv.org/doc/tutorials/highgui/video-input-psnr-ssim/video-input-psnr-ssim.html + */ +int tuto(string nameVideo) + { + + try + { + //v1 + // VideoCapture cap(nameVideo); + + //v2 + VideoCapture cap; + cap.open(nameVideo); + + if (!cap.isOpened()) + { + return EXIT_FAILURE; + } + + else + { + return work(&cap); + } + + } + catch (cv::Exception& e) + { + const char* err_msg = e.what(); + + cerr << "Tuto failed" << endl; + cerr << err_msg << endl; + + return EXIT_FAILURE; + } + + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +int work(VideoCapture* ptrVideoCapture) + { + cout<<"[Tuto] : work"<> frame : try" << endl; // debug + cap >> frame; // get a new frame from camera + + if (frame.empty()) + { + return EXIT_SUCCESS; + } + else + { + // ColorConversion + { + // http://siggiorn.com/wp-content/uploads/libraries/opencv-java/docs/sj/opencv/Constants.ColorConversion.html + //int colorConversion=CV_BGR2GRAY; // ok + //int colorConversion=CV_BGR2RGBA ; // ko + int colorConversion = CV_BGR2BGRA; // ok + cvtColor(frame, edges, colorConversion); + } + + // Effet + { + //GaussianBlur(edges, edges, Size(7, 7), 1.5, 1.5); + //Canny(edges, edges, 0, 30, 3); + } + + imshow("edges", edges); + + if (waitKey(delay) >= 0) + { + return EXIT_SUCCESS; + } + } + } + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/viewer/image/ImageViewerCV.cpp b/WCudaMSE/BilatTools_OpenCV/src/core/viewer/image/ImageViewerCV.cpp new file mode 100755 index 0000000..6bedb94 --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/viewer/image/ImageViewerCV.cpp @@ -0,0 +1,65 @@ +#include "ImageViewerCV.h" + + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +ImageVieverCV::ImageVieverCV(const string& titleFrame) : + chrono() + { + this->titleFrame = titleFrame; + //namedWindow(idWindow, 1); + compteur = 0; + } + +ImageVieverCV::~ImageVieverCV(void) + { + // rien + } + +void ImageVieverCV::show(Mat* ptrMatCapture) + { + imshow(titleFrame, *ptrMatCapture); + compteur++; + } + +int ImageVieverCV::fps(void) + { + double delayS = chrono.timeFlight(); + int fps = compteur / delayS; + + if (delayS > 2.0) //disons + { + compteur = 0; + chrono.start(); + } + + return fps; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/viewer/image/ImageViewerCV.h b/WCudaMSE/BilatTools_OpenCV/src/core/viewer/image/ImageViewerCV.h new file mode 100755 index 0000000..dd09e8f --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/viewer/image/ImageViewerCV.h @@ -0,0 +1,61 @@ +#ifndef IMAGE_VIEVER_CV_H_ +#define IMAGE_VIEVER_CV_H_ + +#include +#include +#include + +#include "Chronos.h" + +using namespace cv; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class ImageVieverCV + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + ImageVieverCV(const string& titleFrame); + virtual ~ImageVieverCV(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * Warning : call cvWaitKey(1) after,sinon frame bloquer + */ + void show(Mat* ptrMatCapture); + int fps(void); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + //Inputs + string titleFrame; + + // Tools + int compteur; + Chronos chrono; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/viewer/sequence/SequenceViewerCV.cpp b/WCudaMSE/BilatTools_OpenCV/src/core/viewer/sequence/SequenceViewerCV.cpp new file mode 100755 index 0000000..4461ed9 --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/viewer/sequence/SequenceViewerCV.cpp @@ -0,0 +1,111 @@ +#include "SequenceViewerCV.h" +#include "ImageViewerCV.h" +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +SequenceVieverCV::SequenceVieverCV(Capture_A* ptrCaptureur) + { + cout<<"[SequenceViever] : SequenceViever"<ptrCaptureur = ptrCaptureur; + this->isStart = false; + } + +SequenceVieverCV::~SequenceVieverCV(void) + { + // rien + } + +void SequenceVieverCV::run() + { + cout<<"[SequenceViever] : run"<capturer(); + ptrCaptureur->printInfo(); + + string titleFrame = ptrCaptureur->getTitle() + "[q to quit]"; + ImageVieverCV imageViever(titleFrame); + + Chronos chrono; + char key = 'a'; //disons + while (key != 'q') + { + imageViever.show(&image); + image = ptrCaptureur->capturer(); + + int timetoWaitYetMS = timeToWaitMS(&chrono); // FIXME + key = cvWaitKey(max(1, timetoWaitYetMS)); // attention 1 min, pour respecter cadence original + + if (ptrCaptureur->nbCapture() % 60 == 0) //disons + { + cout << "[SequenceViewer] : fps = " << ptrCaptureur->fpsCapture() << endl; + // ptrCaptureur->printInfo(); + } + } + + isStart = false; + } + } + +int SequenceVieverCV::fps() + { + return ptrCaptureur->fpsCapture(); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +int SequenceVieverCV::timeToWaitMS(Chronos* ptrChrono) // TODO BUG play trop vite why? + { + double timeElapseS = ptrChrono->stop(); + ptrChrono->start(); + + int timeElapseMS = (int) (timeElapseS * 1000); + int timeToWaitTheoriqueMS = ptrCaptureur->dtOriginalMS(); + + int timetoWaitYetMS = timeToWaitTheoriqueMS - timeElapseMS; + timetoWaitYetMS = max(0, timetoWaitYetMS); // 0 si negatif + + // debug +// { +// cout << endl; +// cout << "timeToWaitTheorique (MS) = " << timeToWaitTheoriqueMS << endl; +// cout << "timeElapse (MS) = " << timeElapseMS << endl; +// cout << "timetoWaitYet (MS) = " << timetoWaitYetMS << endl; +// cout << endl; +// } + + return timetoWaitYetMS; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/BilatTools_OpenCV/src/core/viewer/sequence/SequenceViewerCV.h b/WCudaMSE/BilatTools_OpenCV/src/core/viewer/sequence/SequenceViewerCV.h new file mode 100755 index 0000000..18d6bf5 --- /dev/null +++ b/WCudaMSE/BilatTools_OpenCV/src/core/viewer/sequence/SequenceViewerCV.h @@ -0,0 +1,59 @@ +#ifndef SEQUENCE_VIEVER_CV_H_ +#define SEQUENCE_VIEVER_CV_H_ + +#include +#include "Capture_A.h" +#include "Chronos.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class SequenceVieverCV + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + SequenceVieverCV(Capture_A* ptrCaptureur); + virtual ~SequenceVieverCV(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void run(); + int fps(void); + +private: + + int timeToWaitMS(Chronos* ptrChrono); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + //Inputs + Capture_A* ptrCaptureur; + + // Tools + bool isStart; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/JavaTrucBase/.project b/WCudaMSE/JavaTrucBase/.project new file mode 100755 index 0000000..95837a4 --- /dev/null +++ b/WCudaMSE/JavaTrucBase/.project @@ -0,0 +1,17 @@ + + + JavaTrucBase + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/RELEASE/.classpath b/WCudaMSE/RELEASE/.classpath new file mode 100755 index 0000000..e9bcd51 --- /dev/null +++ b/WCudaMSE/RELEASE/.classpath @@ -0,0 +1,5 @@ + + + + + diff --git a/WCudaMSE/RELEASE/.project b/WCudaMSE/RELEASE/.project new file mode 100755 index 0000000..82d9379 --- /dev/null +++ b/WCudaMSE/RELEASE/.project @@ -0,0 +1,17 @@ + + + RELEASE + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/WCudaMSE/RELEASE/doc/Student_Cuda_64.doc.tar.gz b/WCudaMSE/RELEASE/doc/Student_Cuda_64.doc.tar.gz new file mode 100644 index 0000000..a45f077 Binary files /dev/null and b/WCudaMSE/RELEASE/doc/Student_Cuda_64.doc.tar.gz differ diff --git a/WCudaMSE/Student_Cuda/.project b/WCudaMSE/Student_Cuda/.project new file mode 100755 index 0000000..b87b289 --- /dev/null +++ b/WCudaMSE/Student_Cuda/.project @@ -0,0 +1,79 @@ + + + Student_Cuda + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f cudaWin.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Student_Cuda/cudaLinux.mk b/WCudaMSE/Student_Cuda/cudaLinux.mk new file mode 100755 index 0000000..9d18821 --- /dev/null +++ b/WCudaMSE/Student_Cuda/cudaLinux.mk @@ -0,0 +1,45 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Notes +# +# (N1) Les options de compilation sont souvent les memes d'un projet à l'autre. +# Ces options communes à tout le workspace se trouve daan la partie public du projet BUILDER. +# +# (N2) Vous pouvez redefinir ou surcharger ces options dans ce present .mk pour customizer un projet spécifique. +# +# (N3) Pour modifier la configuration de tous vos projets, modifier directement les .mk generiques dans le BUILDER +# + +############################################### +# Cuda Visual # +############################################### + +######################## +# public # +######################## + +######### +# visual# +######### + +CXXFLAGS+= +CXXLDFLAGS+= + +######### +# nvcc # +######### + +#NVCCFLAGS+= --ptxas-options=-v +NVCCLDFLAGS+= + +######### +# plus # +######### + +CODE_DEFINE_VARIABLES+= + +############################################### +# End # +############################################### + diff --git a/WCudaMSE/Student_Cuda/cudaVisual.mk b/WCudaMSE/Student_Cuda/cudaVisual.mk new file mode 100755 index 0000000..ad909cc --- /dev/null +++ b/WCudaMSE/Student_Cuda/cudaVisual.mk @@ -0,0 +1,44 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Notes +# +# (N1) Les options de compilation sont souvent les memes d'un projet à l'autre. +# Ces options communes à tout le workspace se trouve daan la partie public du projet BUILDER. +# +# (N2) Vous pouvez redefinir ou surcharger ces options dans ce present .mk pour customizer un projet spécifique. +# +# (N3) Pour modifier la configuration de tous vos projets, modifier directement les .mk generiques dans le BUILDER +# + +############################################### +# Cuda Visual # +############################################### + +######################## +# public # +######################## + +######### +# visual# +######### + +CXXFLAGS+= +CXXLDFLAGS+= + +######### +# nvcc # +######### + +#NVCCFLAGS+= --ptxas-options=-v +NVCCLDFLAGS+= + +######### +# plus # +######### + +CODE_DEFINE_VARIABLES+= + +############################################### +# End # +############################################### diff --git a/WCudaMSE/Student_Cuda/dataProject.mk b/WCudaMSE/Student_Cuda/dataProject.mk new file mode 100755 index 0000000..9a99332 --- /dev/null +++ b/WCudaMSE/Student_Cuda/dataProject.mk @@ -0,0 +1,77 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Student_Cuda + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_Cuda/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + +include $(API_CUDA)/cuda.mk +include $(API_CUDA)/cuda_Boost.mk +include $(API_CUDA)/cuda_OpenMP.mk + +include $(API)/cppTest.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Student_Cuda/deviceId_0.html b/WCudaMSE/Student_Cuda/deviceId_0.html new file mode 100755 index 0000000..306cb24 --- /dev/null +++ b/WCudaMSE/Student_Cuda/deviceId_0.html @@ -0,0 +1,146 @@ + + + + + + + Unit Tests Results + + + + + + +

Unit Tests Results

+ +
+Designed by CppTest +
+
+ +

Summary

+ + + + + + + + + + + + + +
TestsErrorsSuccessTime (s)
20100%0.000000
+
+ +

Test suites

+ + + + + + + + + + + + + + + +
NameTestsErrorsSuccessTime (s)
TestHello20100%0.000000
+
+ +

Suite: TestHello

+ + + + + + + + + + + + + + + + + + + +
NameErrorsSuccessTime (s)
testHelloCuda0true0.000000
testAdd0true0.000000
+

Back to top +

+
+ + +

+ + Valid XHTML 1.0 Strict + +

+ + diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/01_helloCuda.cu b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/01_helloCuda.cu new file mode 100755 index 0000000..5c1b753 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/01_helloCuda.cu @@ -0,0 +1,86 @@ +// Attention : Extension .cu + +#include +#include "cudaTools.h" +#include "Device.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +__host__ bool helloCuda(void); //__host__ facultatif + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +__global__ static void kernelHello(void); +__device__ static void doSomethingHello(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * resumer commande cuda: + * http://developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/docs/online/index.html + */ +__host__ bool helloCuda(void) //__host__ facultatif + { + cout << endl << "[Hello Cuda 1]" << endl; + + // Specifier nb thread : ici 1 thread au total ! + dim3 dg = dim3(1, 1, 1); + dim3 db = dim3(1, 1, 1); + + // Debug + //Device::print(dg, db); + Device::checkDimError(dg,db); + + kernelHello<<>>(); // asynchrone !! + Device::checkKernelError("kernelHello"); // facultatif + + return true; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + +/** + * output : void + */ +__global__ void kernelHello(void) + { + doSomethingHello(); + } + +/** + * Can be call only by device + * inliner by nvcc (nvidia compiler) + */ +__device__ void doSomethingHello(void) + { + // rien + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/02_hello_add.cu b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/02_hello_add.cu new file mode 100755 index 0000000..70f3908 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/02_hello_add.cu @@ -0,0 +1,104 @@ +// Attention : Extension .cu + +#include +#include +#include "cudaTools.h" +#include "Device.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +__host__ bool isAddScalarGPU_Ok(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +__host__ static int addScalarGPU(int a, int b); +__global__ static void addScalar(int a, int b, int* ptrC); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +__host__ bool isAddScalarGPU_Ok(void) + { + cout << endl << "[Hello Cuda 2]" << endl; + + int a = 2; + int b = 7; + + int sumGPU = addScalarGPU(a, b); + int sumTheorique = a + b; + + cout <<"\n[CPU] "<< a << " + " << b << " = " << sumGPU << endl; + + return sumGPU == sumTheorique; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +__host__ int addScalarGPU(int a, int b) + { + int c; + int* ptrC=&c; // on host (CPU) + int* ptrDev_c; // on device (GPU) + + // Specifier nb thread : ici 1 thread au total ! + dim3 dg = dim3(1,1,1); + dim3 db = dim3(1, 1, 1); + + // Debug + //Device::print(dg, db); + Device::checkDimError(dg,db); + + size_t size=sizeof(int); + HANDLE_ERROR(cudaMalloc((void**) &ptrDev_c, size)); // Device memory allocation (*) + + addScalar<<>>(a,b,ptrDev_c); // asynchrone !! + Device::checkKernelError("addScalar"); // facultatif + + //v1 + Device::synchronize();// Pour printf sur GPU + + //v2 + // cudaDeviceSynchronize(); // Pour printf sur GPU + + // memoryManagement => barrier de synchronisation + HANDLE_ERROR(cudaMemcpy(ptrC, ptrDev_c, size, cudaMemcpyDeviceToHost));// Device -> Host + HANDLE_ERROR(cudaFree(ptrDev_c)); // device dispose memory in (*) + + return c; + } + + +__global__ void addScalar(int a, int b, int* ptrC) + { + *ptrC = a + b; + + // debug + printf("[GPU] %d + %d = %d",a,b, *ptrC); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/useHello.cpp b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/useHello.cpp new file mode 100755 index 0000000..db80816 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/core/01_Hello/useHello.cpp @@ -0,0 +1,59 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool helloCuda(void); +extern bool isAddScalarGPU_Ok(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool useHello(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + + +bool useHello(void) + { + cout << endl << "[Hello]" << endl; + + bool isOk = true; + + isOk&= helloCuda(); + isOk&= isAddScalarGPU_Ok(); + + return true; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp b/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp new file mode 100755 index 0000000..ad144a1 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/core/mainCore.cpp @@ -0,0 +1,58 @@ +#include +#include + + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool useHello(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore(); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore() + { + bool isOk = true; + isOk &= useHello(); + + cout << "\nisOK = " << isOk << endl; + cout << "\nEnd : mainCore" << endl; + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda/src/cpp/main.cpp b/WCudaMSE/Student_Cuda/src/cpp/main.cpp new file mode 100755 index 0000000..3fad450 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/main.cpp @@ -0,0 +1,108 @@ +#include +#include +#include + +#include "cudaTools.h" +#include "Device.h" +#include "LimitsTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern int mainCore(); +extern int mainTest(); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static void initCuda(int deviceId); +static int start(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + cout << "main" << endl; + + // LimitsTools::rappelTypeSize(); + + if (Device::isCuda()) + { + Device::printAll(); + Device::printAllSimple(); + + // Server Cuda1: in [0,5] + // Server Cuda2: in [0,2] + int deviceId = 0; + + int isOk = start(); + + //cudaDeviceReset causes the driver to clean up all state. + // While not mandatory in normal operation, it is good practice. + HANDLE_ERROR(cudaDeviceReset()); + + return isOk; + } + else + { + return EXIT_FAILURE; + } + } + +void initCuda(int deviceId) + { + // Check deviceId area + int nbDevice = Device::getDeviceCount(); + assert(deviceId >= 0 && deviceId < nbDevice); + + //HANDLE_ERROR(cudaDeviceReset()); + + // Choose current device (state of host-thread) + HANDLE_ERROR(cudaSetDevice(deviceId)); + + // It can be usefull to preload driver, by example to practice benchmarking! (sometimes slow under linux) + Device::loadCudaDriver(deviceId); + // Device::loadCudaDriverAll();// Force driver to be load for all GPU + } + +int start(void) + { + Device::printCurrent(); + + bool IS_TEST = true; + + if (IS_TEST) + { + return mainTest(); + } + else + { + return mainCore(); + } + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda/src/cpp/test/junit/01_Test_Hello/TestHello.cpp b/WCudaMSE/Student_Cuda/src/cpp/test/junit/01_Test_Hello/TestHello.cpp new file mode 100755 index 0000000..acdf9d8 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/test/junit/01_Test_Hello/TestHello.cpp @@ -0,0 +1,48 @@ +#include "TestHello.h" +#include "Device.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool helloCuda(void); +extern bool isAddScalarGPU_Ok(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + +TestHello::TestHello(int deviceId) + { + this->deviceId=deviceId; + + TEST_ADD(TestHello::testHelloCuda); + TEST_ADD(TestHello::testAdd); + } + +/*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + +void TestHello::testHelloCuda(void) + { + TEST_ASSERT(helloCuda() == true); + } + +void TestHello::testAdd(void) + { + TEST_ASSERT(isAddScalarGPU_Ok() == true); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda/src/cpp/test/junit/01_Test_Hello/TestHello.h b/WCudaMSE/Student_Cuda/src/cpp/test/junit/01_Test_Hello/TestHello.h new file mode 100755 index 0000000..a715f21 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/test/junit/01_Test_Hello/TestHello.h @@ -0,0 +1,34 @@ +#ifndef TEST_HELLO_H +#define TEST_HELLO_H + +#include "cpptest.h" + +using Test::Suite; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +class TestHello: public Suite + { + public: + + TestHello(int deviceId); + + private: + + void testHelloCuda(void); + void testAdd(void); + + private: + + int deviceId; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda/src/cpp/test/mainTest.cpp b/WCudaMSE/Student_Cuda/src/cpp/test/mainTest.cpp new file mode 100755 index 0000000..259f355 --- /dev/null +++ b/WCudaMSE/Student_Cuda/src/cpp/test/mainTest.cpp @@ -0,0 +1,77 @@ +#include +#include +#include + +#include "cppTest+.h" +#include "Device.h" +#include "StringTools.h" +#include "cudaTools.h" + +#include "TestHello.h" + + +using std::string; +using std::cout; +using std::endl; + +using Test::Suite; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static bool testALL(); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainTest(); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainTest() + { + bool isOk = testALL(); + + cout << "\nisOK = " << isOk << endl; + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +bool testALL() + { + int deviceId=Device::getDeviceId(); + + Suite testSuite; + + testSuite.add(std::auto_ptr < Suite > (new TestHello(deviceId))); + + string titre = "deviceId_" + StringTools::toString(deviceId); + + return runTestHtml(titre, testSuite); // Attention: html create in working directory!! + //return runTestConsole(titre, testSuite); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda/testOutput_deviceId_0.html b/WCudaMSE/Student_Cuda/testOutput_deviceId_0.html new file mode 100755 index 0000000..70449d3 --- /dev/null +++ b/WCudaMSE/Student_Cuda/testOutput_deviceId_0.html @@ -0,0 +1,152 @@ + + + + + + + Unit Tests Results + + + + + + +

Unit Tests Results

+ +
+Designed by CppTest +
+
+ +

Summary

+ + + + + + + + + + + + + +
TestsErrorsSuccessTime (s)
30100%0.000000
+
+ +

Test suites

+ + + + + + + + + + + + + + + +
NameTestsErrorsSuccessTime (s)
TestHelloJunit30100%0.000000
+
+ +

Suite: TestHelloJunit

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameErrorsSuccessTime (s)
testDeviceInfo0true0.000000
testHelloCuda0true0.000000
testAdd0true0.000000
+

Back to top +

+
+ + +

+ + Valid XHTML 1.0 Strict + +

+ + diff --git a/WCudaMSE/Student_Cuda_Image/.project b/WCudaMSE/Student_Cuda_Image/.project new file mode 100755 index 0000000..6492232 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/.project @@ -0,0 +1,79 @@ + + + Student_Cuda_Image + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f cudaWin.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Student_Cuda_Image/cudaLinux.mk b/WCudaMSE/Student_Cuda_Image/cudaLinux.mk new file mode 100755 index 0000000..9d18821 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/cudaLinux.mk @@ -0,0 +1,45 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Notes +# +# (N1) Les options de compilation sont souvent les memes d'un projet à l'autre. +# Ces options communes à tout le workspace se trouve daan la partie public du projet BUILDER. +# +# (N2) Vous pouvez redefinir ou surcharger ces options dans ce present .mk pour customizer un projet spécifique. +# +# (N3) Pour modifier la configuration de tous vos projets, modifier directement les .mk generiques dans le BUILDER +# + +############################################### +# Cuda Visual # +############################################### + +######################## +# public # +######################## + +######### +# visual# +######### + +CXXFLAGS+= +CXXLDFLAGS+= + +######### +# nvcc # +######### + +#NVCCFLAGS+= --ptxas-options=-v +NVCCLDFLAGS+= + +######### +# plus # +######### + +CODE_DEFINE_VARIABLES+= + +############################################### +# End # +############################################### + diff --git a/WCudaMSE/Student_Cuda_Image/cudaVisual.mk b/WCudaMSE/Student_Cuda_Image/cudaVisual.mk new file mode 100755 index 0000000..ad909cc --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/cudaVisual.mk @@ -0,0 +1,44 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Notes +# +# (N1) Les options de compilation sont souvent les memes d'un projet à l'autre. +# Ces options communes à tout le workspace se trouve daan la partie public du projet BUILDER. +# +# (N2) Vous pouvez redefinir ou surcharger ces options dans ce present .mk pour customizer un projet spécifique. +# +# (N3) Pour modifier la configuration de tous vos projets, modifier directement les .mk generiques dans le BUILDER +# + +############################################### +# Cuda Visual # +############################################### + +######################## +# public # +######################## + +######### +# visual# +######### + +CXXFLAGS+= +CXXLDFLAGS+= + +######### +# nvcc # +######### + +#NVCCFLAGS+= --ptxas-options=-v +NVCCLDFLAGS+= + +######### +# plus # +######### + +CODE_DEFINE_VARIABLES+= + +############################################### +# End # +############################################### diff --git a/WCudaMSE/Student_Cuda_Image/dataProject.mk b/WCudaMSE/Student_Cuda_Image/dataProject.mk new file mode 100755 index 0000000..a3acd73 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/dataProject.mk @@ -0,0 +1,79 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Student_Cuda_Image + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_Cuda/src/core +SRC_AUX+= ../BilatTools_Cuda_Image/src/core +SRC_AUX+= ../BilatTools_OpenCV/src/core +SRC_AUX+= ../BilatTools_Cuda_smart_switch/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + +include $(API_CUDA)/bilat_Image_FreeGlut_Cuda.mk +include $(API_CUDA)/cuda_OpenCV.mk +include $(API_CUDA)/cuda_Boost.mk +include $(API_CUDA)/cuda_OpenMP.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.cpp new file mode 100755 index 0000000..dc9e211 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.cpp @@ -0,0 +1,108 @@ +#include +#include +#include + +#include "MathTools.h" +#include "StringTools.h" + +#include "Rippling0Image.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void launchKernelRippling0(uchar4* ptrDevPixels, int w, int h, float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +Rippling0Image::Rippling0Image(unsigned int w, unsigned int h, float dt) : + ImageMOOs_A(w, h) + { + assert(getW() == getH()); // image carrer + + // Input + this->dt = dt; + + // Tools + this->t = 0; + } + +Rippling0Image::~Rippling0Image(void) + { + // rien + } + +/*--------------------------------------*\ + |* Redefinition *| + \*-------------------------------------*/ + +/** + * Call automaticly by the api + */ +void Rippling0Image::animationStep(bool& isNeedUpdateView) // Override + { + this->t += dt; + isNeedUpdateView = true; // true par default + } + +/** + * Call automaticly by the api + */ +void Rippling0Image::fillImageGL(uchar4* ptrDevImageGL, int w, int h) // Override + { + launchKernelRippling0(ptrDevImageGL, w, h, t); + } + +/** + * Call automaticly by the api + */ +void Rippling0Image::paintPrimitives(Graphic2Ds& graphic2D) // Override + { + const Font_A* ptrFont = graphic2D.getFont(TIMES_ROMAN_24); + + float r = 1; + float g = 0; + float b = 0; + + graphic2D.setColorRGB(r, g, b); + + // top + { + string message = "t = " + StringTools::toString(t); + graphic2D.drawTitleTop(message, ptrFont); + } + + // bottom + { + graphic2D.drawTitleBottom("Rippling warmup CUDA", ptrFont); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.h new file mode 100755 index 0000000..b536093 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.h @@ -0,0 +1,69 @@ +#ifndef RIPPLING_0_IMAGE_H_ +#define RIPPLING_0_IMAGE_H_ + +#include "ImageMOOs_A.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Rippling0Image: public ImageMOOs_A + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + Rippling0Image(unsigned int w, unsigned int h, float dt = 2 * PI / 10); + virtual ~Rippling0Image(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override, call periodicly by the api + */ + void fillImageGL(uchar4* ptrDevImageGL, int w, int h); + + /** + * Override, call periodicly by the api + */ + void animationStep(bool& isNeedUpdateView); + + /** + * Override, call periodicly by the api + */ + void paintPrimitives(Graphic2Ds& graphic2D); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Input + double dt; + + // Tools + double t; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/02_cuda/rippling0.cu b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/02_cuda/rippling0.cu new file mode 100755 index 0000000..eb778bf --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/02_cuda/rippling0.cu @@ -0,0 +1,91 @@ +#include +#include + +#include "Indice2D.h" +#include "IndiceTools.h" +#include "cudaTools.h" +#include "Device.h" + +#include "Rippling0Math.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static __global__ void rippling0(uchar4* ptrDevPixels,int w, int h,float t); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void launchKernelRippling0(uchar4* ptrDevPixels, int w, int h, float t) + { + dim3 dg = dim3(8, 8, 1); // disons, a optimiser + dim3 db = dim3(16, 16, 1); // disons, a optimiser + + //Device::print(dg, db); + Device::checkDimError(dg,db); + + rippling0<<>>(ptrDevPixels,w,h,t); + Device::checkKernelError("rippling0"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +__global__ void rippling0(uchar4* ptrDevPixels, int w, int h, float t) + { + Rippling0Math rippling0Math = Rippling0Math(w, h); + + const int TID = Indice2D::tid(); + const int NB_THREAD = Indice2D::nbThread(); + + const int WH=w*h; + + uchar4 color; + color.w = 255; // alpha + + int pixelI; + int pixelJ; + + int s = TID; + while (s < WH) + { + IndiceTools::toIJ(s, w, &pixelI, &pixelJ); // update (pixelI, pixelJ) + + rippling0Math.color(pixelI, pixelJ, t, &color); // update color + ptrDevPixels[s] = color; + + s += NB_THREAD; + } + + } + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/03_math/Rippling0Math.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/03_math/Rippling0Math.h new file mode 100755 index 0000000..67b4387 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/03_math/Rippling0Math.h @@ -0,0 +1,79 @@ +#ifndef RIPPLING_0_MATH_H_ +#define RIPPLING_0_MATH_H_ + +#include +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Rippling0Math + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + __device__ + Rippling0Math(int w, int h) + { + // TODO + } + + __device__ + Rippling0Math(const Rippling0Math& source) + { + // TODO + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * x=pixelI + * y=pixelJ + */ + __device__ + void color(int i, int j, float t, uchar4* ptrColor) + { + // Debug (a mettre en commentaire) + { + unsigned char levelGris = 128; //in [0.255] (debug image) + ptrColor->x = levelGris; + ptrColor->y = levelGris; + ptrColor->z = levelGris; + } + + // Vrai problem + { + // TODO + } + + //color.w = 255; // opaque + } + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/Rippling0Provider.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/Rippling0Provider.h new file mode 100755 index 0000000..bc730be --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/Rippling0Provider.h @@ -0,0 +1,36 @@ +#ifndef RIPPLING_0_PROVIDER_H_ +#define RIPPLING_0_PROVIDER_H_ + + +#include "Rippling0Image.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Rippling0Provider + { + public: + + static Rippling0Image* createGL(void) + { + float dt = 2*PI/1000; // animation para + + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + return new Rippling0Image(dw, dh, dt); + } + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/rippling0FreeGL.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/rippling0FreeGL.cpp new file mode 100755 index 0000000..b0aaa32 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/rippling0FreeGL.cpp @@ -0,0 +1,87 @@ +#include +#include "cudaTools.h" +#include "Device.h" +#include "MathTools.h" + +#include "Chronos.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void launchKernelRippling0(uchar4* ptrDevPixels, int w, int h, float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int rippling0FreeGL(int itmax); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Hyp: itmax suffisamment grand pour que timeElapse soit significatif + */ +int rippling0FreeGL(int itmax) + { + cout<<"\n[Rippling0] : FreeGL running ..."< + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class RipplingMath + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + __device__ + RipplingMath(int w, int h) + { + // TODO + } + + __device__ + RipplingMath(const RipplingMath& source) + { + // TODO + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * x=pixelI + * y=pixelJ + */ + __device__ + void color(int i, int j, float t, uchar4& color) + { + // Debug (a mettre en commentaire) + { + unsigned char levelGris = 128; //in [0.255] (debug image) + color.x = levelGris; + color.y = levelGris; + color.z = levelGris; + } + + // Vrai problem + { + // TODO + } + + //color.w = 255; // opaque + } + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Tools + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/ripplingDevice.cu b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/ripplingDevice.cu new file mode 100755 index 0000000..d599127 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/ripplingDevice.cu @@ -0,0 +1,52 @@ +#include + +#include "Indice2D.h" +#include "cudaTools.h" +#include "Device.h" + +#include "RipplingMath.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +__global__ void rippling(uchar4* ptrDevPixels, int w, int h, float t); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +__global__ void rippling(uchar4* ptrDevPixels, int w, int h, float t) + { + RipplingMath ripplingMath = RipplingMath(w, h); + + // TODO pattern entrelacement + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.cu b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.cu new file mode 100755 index 0000000..6bd9e0c --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.cu @@ -0,0 +1,129 @@ +#include +#include + +#include "Rippling.h" +#include "Device.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern __global__ void rippling(uchar4* ptrDevPixels, int w, int h, float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-------------------------*\ + |* Constructeur *| + \*-------------------------*/ + +Rippling::Rippling(int w, int h, float dt) + { + assert(w == h); + + // Inputs + this->w = w; + this->h = h; + this->dt = dt; + + // Tools + //this->dg = // TODO + //this->db = // TODO + this->t = 0; + + // Outputs + this->title = "Rippling Cuda"; + + //print(dg, db); + Device::assertDim(dg, db); + } + +Rippling::~Rippling() + { + // rien + } + +/*-------------------------*\ + |* Methode *| + \*-------------------------*/ + +/** + * Override + */ +void Rippling::animationStep() + { + // TODO + } + +/** + * Override + */ +void Rippling::runGPU(uchar4* ptrDevPixels) + { + // TODO lancer le kernel avec <<>> + } + +/*--------------*\ + |* get *| + \*--------------*/ + +/** + * Override + */ +float Rippling::getT(void) + { + return t; + } + +/** + * Override + */ +int Rippling::getW(void) + { + return w; + } + +/** + * Override + */ +int Rippling::getH(void) + { + return h; + } + +/** + * Override + */ +string Rippling::getTitle(void) + { + return title; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.h new file mode 100755 index 0000000..0eb853e --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.h @@ -0,0 +1,72 @@ +#ifndef RIPPLING_H_ +#define RIPPLING_H_ + +#include "cudaTools.h" +#include "Animable_I.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Rippling: public Animable_I + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Rippling(int w, int h, float dt = 2 * PI / 10); + virtual ~Rippling(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + virtual void runGPU(uchar4* ptrDevPixels); + virtual void animationStep(void); + + virtual float getT(void); + virtual int getW(void); + virtual int getH(void); + + virtual string getTitle(void); + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int w; + int h; + float dt; + + // Tools + dim3 dg; + dim3 db; + float t; + + //Outputs + string title; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/provider/RipplingProvider.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/provider/RipplingProvider.cpp new file mode 100755 index 0000000..772073f --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/provider/RipplingProvider.cpp @@ -0,0 +1,53 @@ +#include "RipplingProvider.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +Rippling* RipplingProvider::createMOO() + { + float dt = 1; + + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + return new Rippling(dw, dh, dt); + } + + Image* RipplingProvider::createGL(void) + { + return new Image(createMOO()); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/provider/RipplingProvider.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/provider/RipplingProvider.h new file mode 100755 index 0000000..7774169 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/provider/RipplingProvider.h @@ -0,0 +1,29 @@ +#ifndef RIPPLING_PROVIDER_H_ +#define RIPPLING_PROVIDER_H_ + +#include "Rippling.h" +#include "Image.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class RipplingProvider + { + public: + + static Rippling* createMOO(void); + static Image* createGL(void); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainFreeGL.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainFreeGL.cpp new file mode 100755 index 0000000..2e54bef --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainFreeGL.cpp @@ -0,0 +1,58 @@ +#include +#include +#include + +#include "Device.h" +#include "cudaTools.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern int rippling0FreeGL(int itmax); // bas technique + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainFreeGL(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainFreeGL(void) + { + cout << "\n[FPS] : Free GL, please wait ..." << endl; + + rippling0FreeGL(1000); // bad technique + + // TODO : add other tp here ... + + return EXIT_SUCCESS; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainGL.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainGL.cpp new file mode 100755 index 0000000..44ee751 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/mainGL.cpp @@ -0,0 +1,77 @@ +#include +#include +#include + +#include "GLUTImageViewers.h" + +#include "Device.h" +#include "cudaTools.h" + +#include "Rippling0Provider.h" +#include "RipplingProvider.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainGL(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainGL(void) + { + Rippling0Image* ptrRippling0 = Rippling0Provider::createGL(); + Image* ptrRippling = RipplingProvider::createGL(); + // TODO : Insert autres Images ... + + bool isAnimation = true; + bool isSelection = true; + + GLUTImageViewers rippling0Viewer(ptrRippling0, isAnimation, isSelection, 0, 0); + GLUTImageViewers ripplingViewer(ptrRippling, isAnimation, isSelection, 10, 10); + // TODO : Insert here autres ImageViewers ... + + GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte + + // destruction + { + delete ptrRippling0; + delete ptrRippling; + + ptrRippling0 = NULL; + ptrRippling = NULL; + } + + return EXIT_SUCCESS; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/main.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/main.cpp new file mode 100755 index 0000000..397a133 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/main.cpp @@ -0,0 +1,117 @@ +#include +#include +#include + +#include "cudaTools.h" +#include "Device.h" +#include "cudaTools.h" +#include "GLUTImageViewers.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern int mainGL(void); +extern int mainFreeGL(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static int start(void); +static void initCuda(int deviceId); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv) + { + cout << "main" << endl; + + if (Device::isCuda()) + { + GLUTImageViewers::init(argc, argv); + + //Device::printAll(); + Device::printAllSimple(); + + // Server Cuda1: in [0,5] + // Server Cuda2: in [0,2] + int deviceId = 0; + + int isOk = start(); + + //cudaDeviceReset causes the driver to clean up all state. + // While not mandatory in normal operation, it is good practice. + HANDLE_ERROR(cudaDeviceReset()); + + return isOk; + } + else + { + return EXIT_FAILURE; + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void initCuda(int deviceId) + { + // Check deviceId area + int nbDevice = Device::getDeviceCount(); + assert(deviceId >= 0 && deviceId < nbDevice); + + // Choose current device (state of host-thread) + HANDLE_ERROR(cudaSetDevice(deviceId)); + + // Enable Interoperabilité OpenGL: + // - Create a cuda specifique contexte, shared between Cuda and GL + // - To be called before first call to kernel + // - cudaSetDevice ou cudaGLSetGLDevice are mutualy exclusive + HANDLE_ERROR(cudaGLSetGLDevice(deviceId)); + + // It can be usefull to preload driver, by example to practice benchmarking! (sometimes slow under linux) + Device::loadCudaDriver(deviceId); + // Device::loadCudaDriverAll();// Force driver to be load for all GPU + } + +int start(void) + { + Device::printCurrent(); + + bool IS_GL = true; + + if (IS_GL) + { + return mainGL(); // Bloquant, Tant qu'une fenetre est ouverte + } + else + { + return mainFreeGL(); + } + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/.project b/WCudaMSE/Student_OMP/.project new file mode 100755 index 0000000..5eb3d1a --- /dev/null +++ b/WCudaMSE/Student_OMP/.project @@ -0,0 +1,79 @@ + + + Student_OMP + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f visual.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Student_OMP/TestALL_HTML.html b/WCudaMSE/Student_OMP/TestALL_HTML.html new file mode 100755 index 0000000..780b24b --- /dev/null +++ b/WCudaMSE/Student_OMP/TestALL_HTML.html @@ -0,0 +1,351 @@ + + + + + + + Unit Tests Results + + + + + + +

Unit Tests Results

+ +
+Designed by CppTest +
+
+ +

Summary

+ + + + + + + + + + + + + +
TestsErrorsSuccessTime (s)
10820%0.000000
+
+ +

Test suites

+ + + + + + + + + + + + + + + + + + + + + + +
NameTestsErrorsSuccessTime (s)
TestHelloJunit20100%0.000000
TestPiJunit880%0.000000
+
+ +

Suite: TestHelloJunit

+ + + + + + + + + + + + + + + + + + + +
NameErrorsSuccessTime (s)
testHelloOMP10true0.000000
testHelloOMP20true0.000000
+

Back to top +

+

Suite: TestPiJunit

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameErrorsSuccessTime (s)
testSequentiel1false0.000000
testEntrelacerPromotionTab1false0.000000
testEntrelacerAtomic1false0.000000
testEntrelacerCritical1false0.000000
testAtomic1false0.000000
testCritical1false0.000000
testPromotionTab1false0.000000
testForReduction1false0.000000
+

Back to top +

+
+ +

Test results

+

TestPiJunit::testSequentiel

+ + + + + + + + + + + + + +
TestTestPiJunit::testSequentiel
Filesrc/cpp/test/junit/cpp/02_TestPiJunit.cpp:44
MessageisPiSequentiel_OK(n)==true
+

Back to TestPiJunit +

+

TestPiJunit::testEntrelacerPromotionTab

+ + + + + + + + + + + + + +
TestTestPiJunit::testEntrelacerPromotionTab
Filesrc/cpp/test/junit/cpp/02_TestPiJunit.cpp:49
MessageisPiOMPEntrelacerPromotionTab_Ok(n)==true
+

Back to TestPiJunit +

+

TestPiJunit::testEntrelacerAtomic

+ + + + + + + + + + + + + +
TestTestPiJunit::testEntrelacerAtomic
Filesrc/cpp/test/junit/cpp/02_TestPiJunit.cpp:54
MessageisPiOMPEntrelacerAtomic_Ok(n)==true
+

Back to TestPiJunit +

+

TestPiJunit::testEntrelacerCritical

+ + + + + + + + + + + + + +
TestTestPiJunit::testEntrelacerCritical
Filesrc/cpp/test/junit/cpp/02_TestPiJunit.cpp:59
MessageisPiOMPEntrelacerCritical_Ok(n)==true
+

Back to TestPiJunit +

+

TestPiJunit::testAtomic

+ + + + + + + + + + + + + +
TestTestPiJunit::testAtomic
Filesrc/cpp/test/junit/cpp/02_TestPiJunit.cpp:69
MessageisPiOMPforAtomic_Ok(n)==true
+

Back to TestPiJunit +

+

TestPiJunit::testCritical

+ + + + + + + + + + + + + +
TestTestPiJunit::testCritical
Filesrc/cpp/test/junit/cpp/02_TestPiJunit.cpp:64
MessageisPiOMPforCritical_Ok(n)==true
+

Back to TestPiJunit +

+

TestPiJunit::testPromotionTab

+ + + + + + + + + + + + + +
TestTestPiJunit::testPromotionTab
Filesrc/cpp/test/junit/cpp/02_TestPiJunit.cpp:74
MessageisPiOMPforPromotionTab_Ok(n)==true
+

Back to TestPiJunit +

+

TestPiJunit::testForReduction

+ + + + + + + + + + + + + +
TestTestPiJunit::testForReduction
Filesrc/cpp/test/junit/cpp/02_TestPiJunit.cpp:79
MessageisPiOMPforReduction_Ok(n)==true
+

Back to TestPiJunit +

+
+ + +

+ + Valid XHTML 1.0 Strict + +

+ + diff --git a/WCudaMSE/Student_OMP/dataProject.mk b/WCudaMSE/Student_OMP/dataProject.mk new file mode 100755 index 0000000..e0db3b4 --- /dev/null +++ b/WCudaMSE/Student_OMP/dataProject.mk @@ -0,0 +1,74 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Student_OMP + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_OMP/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + +include $(API)/openmp.mk +include $(API)/cppTest.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Student_OMP/src/cpp/core/mainCore.cpp b/WCudaMSE/Student_OMP/src/cpp/core/mainCore.cpp new file mode 100755 index 0000000..7769a53 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/mainCore.cpp @@ -0,0 +1,63 @@ +#include +#include +#include "Chronos.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool usePI(void); +extern bool useHello(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore(void) + { + bool isOk = true; + Chronos chrono; + chrono.start(); + + isOk &= useHello(); + isOk &= usePI(); + + cout << "\n-------------------------------------------------" << endl; + cout << "End Main : isOk = " << isOk << endl; + + chrono.stop(); + chrono.print("\nTime Total : "); + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/01_hello/01_helloOMP.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/01_hello/01_helloOMP.cpp new file mode 100755 index 0000000..b4b2e49 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/01_hello/01_helloOMP.cpp @@ -0,0 +1,58 @@ +#include +#include +#include "omp.h" +#include "OmpTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloOMP1(void) + { + cout << endl << "[HelloOMP 1]" << endl; + + // OMP (facultatif) + const int NB_THREADS = OmpTools::setAndGetNaturalGranularity(); + cout << "\n[HELLO] nbThread = " << NB_THREADS << endl; + +#pragma omp parallel + { + int tid = OmpTools::getTid(); + + //cout << "tid=" << tid << endl; // ligne couper + printf("tid=%i\n", tid); //ligne non couper + } + } + +void helloOMP2(void) + { + cout << endl << "[HelloOMP 2]" << endl; + + // OMP (facultatif) + const int NB_THREADS = OmpTools::setAndGetNaturalGranularity(); + cout << "\n[CBI] nbThread = " << NB_THREADS << endl; + + int n = 20; +#pragma omp parallel for + for (int i = 1; i <= n; i++) + { + //cout << "HelloOMP(" << i << ")" << endl; // ligne couper + printf("HelloOMP(%i)\n", i); // ligne non couper + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/01_hello/useHello.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/01_hello/useHello.cpp new file mode 100755 index 0000000..3df532e --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/01_hello/useHello.cpp @@ -0,0 +1,53 @@ +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void helloOMP1(void); +extern void helloOMP2(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool useHello(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool useHello(void) + { + cout << endl << "[HelloOMP]" << endl; + + helloOMP1(); + helloOMP2(); + + return true; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.cpp new file mode 100755 index 0000000..41a02f6 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.cpp @@ -0,0 +1,51 @@ +#include "00_pi_tools.h" +#include +#include "Chronos.h" +#include "MathTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +double fpi(double x) + { + return 4 / (1 + x * x); + } + +bool isAlgoPI_OK(AlgoPI algoPI, int n, string title) + { + cout << endl << "[" << title << " running ...]" << endl; + cout << "n=" << n << endl; + + Chronos chrono; + double piHat = algoPI(n); + chrono.stop(); + + cout.precision(8); + cout << "Pi hat = " << piHat << endl; + cout << "Pi true = " << PI << endl; + + bool isOk = MathTools::isEquals(piHat, PI, 1e-6); + cout << "isOk = " << isOk << endl; + + cout.precision(3); + chrono.print("time : "); + + return isOk; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.h b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.h new file mode 100755 index 0000000..d975793 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.h @@ -0,0 +1,28 @@ +#ifndef PI_TOOLS_H_ +#define PI_TOOLS_H_ + +#include + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +// ptr fonction de type double xxx(int n) +// ou xxx sera une methode de calcul de pi +typedef double (*AlgoPI)(int); + +/*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + +double fpi(double x); +bool isAlgoPI_OK(AlgoPI algoPI, int n, string title); + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/01_pi_sequentiel.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/01_pi_sequentiel.cpp new file mode 100755 index 0000000..5978a09 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/01_pi_sequentiel.cpp @@ -0,0 +1,59 @@ +#include "00_pi_tools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiSequentiel_OK(int n); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static double piSequentiel(int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiSequentiel_OK(int n) + { + return isAlgoPI_OK(piSequentiel, n, "Pi Sequentiel"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +double piSequentiel(int n) + { + double sum = 0; + double xi; + const double DX = 1.0/(double)n; + + for (int i = 0; i < n; i++) + { + xi = i*DX; + sum += fpi(xi); + } + + return sum * DX; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/02_pi_entrelacer_promotionTab.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/02_pi_entrelacer_promotionTab.cpp new file mode 100755 index 0000000..db48e25 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/02_pi_entrelacer_promotionTab.cpp @@ -0,0 +1,81 @@ +#include +#include "00_pi_tools.h" +#include "OmpTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPEntrelacerPromotionTab_Ok(int n); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static double piOMPEntrelacerPromotionTab(int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPEntrelacerPromotionTab_Ok(int n) + { + return isAlgoPI_OK(piOMPEntrelacerPromotionTab, n, "Pi OMP Entrelacer promotionTab"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * pattern cuda : excellent! + */ +double piOMPEntrelacerPromotionTab(int n) + { + const int NB_THREAD = OmpTools::setAndGetNaturalGranularity(); + + double* tabSums = new double[NB_THREAD]; + + const double DX = 1.0/(double)n; + + #pragma omp parallel + { + double xs; + const int TID = OmpTools::getTid(); + int s = TID; + + while (s < n) + { + xs = s * DX; + tabSums[TID] += fpi(xs); + + s += NB_THREAD; + } + } + + double sum = 0; + for (int i = 0; i < NB_THREAD; i++) + sum += tabSums[i]; + + delete[] tabSums; + + return sum * DX; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/03_pi_entrelacer_critique.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/03_pi_entrelacer_critique.cpp new file mode 100755 index 0000000..4304325 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/03_pi_entrelacer_critique.cpp @@ -0,0 +1,73 @@ +#include +#include "00_pi_tools.h" +#include "OmpTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPEntrelacerCritical_Ok(int n); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static double piOMPEntrelacerCritical(int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPEntrelacerCritical_Ok(int n) + { + return isAlgoPI_OK(piOMPEntrelacerCritical, n, "Pi OMP Entrelacer critical"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +double piOMPEntrelacerCritical(int n) + { + const int NB_THREAD = OmpTools::setAndGetNaturalGranularity(); + const double DX = 1.0/(double)n; + double sum = 0; + + #pragma omp parallel + { + double xs; + double sumLocalThread = 0; + const int TID = OmpTools::getTid(); + int s = TID; + + while (s < n) + { + xs = s * DX; + sumLocalThread += fpi(xs); + s += NB_THREAD; + } + + #pragma omp critical(sum_fpi) + sum += sumLocalThread; + + } + + return sum * DX; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/04_pi_entrelacer_atomic.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/04_pi_entrelacer_atomic.cpp new file mode 100755 index 0000000..00df8bd --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/04_pi_entrelacer_atomic.cpp @@ -0,0 +1,77 @@ +#include +#include "00_pi_tools.h" +#include "OmpTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPEntrelacerAtomic_Ok(int n); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static double piOMPEntrelacerAtomic(int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPEntrelacerAtomic_Ok(int n) + { + return isAlgoPI_OK(piOMPEntrelacerAtomic, n, "Pi OMP Entrelacer atomic"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * Bonne performance, si! + */ +double piOMPEntrelacerAtomic(int n) + { + const int NB_THREAD = OmpTools::setAndGetNaturalGranularity(); + const double DX = 1.0/(double)n; + double sum = 0; + + #pragma omp parallel + { + double xs; + double sumLocalThread = 0; + const int TID = OmpTools::getTid(); + int s = TID; + + while (s < n) + { + xs = s * DX; + sumLocalThread += fpi(xs); + s += NB_THREAD; + } + + #pragma omp atomic + sum += sumLocalThread; + + } + + return sum * DX; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/05_pi_for_critical.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/05_pi_for_critical.cpp new file mode 100755 index 0000000..6ada9e5 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/05_pi_for_critical.cpp @@ -0,0 +1,67 @@ +#include +#include "00_pi_tools.h" +#include "OmpTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPforCritical_Ok(int n); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static double piOMPforCritique(int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPforCritical_Ok(int n) + { + return isAlgoPI_OK(piOMPforCritique, n, "Pi OMP for critique"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * synchronisation couteuse! + */ +double piOMPforCritique(int n) + { + double sum = 0; + double xi; + const double DX = 1.0/(double)n; + + #pragma omp parralel for private(xi) + for (int i = 0; i < n; i++) + { + xi = i*DX; + #pragma omp critical(sum_fpi) + sum += fpi(xi); + } + + return sum * DX; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/06_pi_for_atomic.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/06_pi_for_atomic.cpp new file mode 100755 index 0000000..ca8878b --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/06_pi_for_atomic.cpp @@ -0,0 +1,67 @@ +#include +#include "00_pi_tools.h" +#include "OmpTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPforAtomic_Ok(int n); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static double piOMPforAtomic(int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPforAtomic_Ok(int n) + { + return isAlgoPI_OK(piOMPforAtomic, n, "Pi OMP for atomic"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * synchronisation couteuse! + */ +double piOMPforAtomic(int n) + { + double sum = 0; + double xi; + const double DX = 1.0/(double)n; + + #pragma omp parralel for private(xi) + for (int i = 0; i < n; i++) + { + xi = i*DX; + #pragma omp atomic + sum += fpi(xi); // Uniquement l'operateur += est atomi, 'fpi' est exécuté en parralèle. + } + + return sum * DX; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/07_pi_for_promotionTab.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/07_pi_for_promotionTab.cpp new file mode 100755 index 0000000..8240aa3 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/07_pi_for_promotionTab.cpp @@ -0,0 +1,80 @@ +#include +#include "00_pi_tools.h" +#include "MathTools.h" +#include "OmpTools.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPforPromotionTab_Ok(int n); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static double piOMPforPromotionTab(int n); +static void syntaxeSimplifier(double* tabSumThread,int n); +static void syntaxeFull(double* tabSumThread,int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPforPromotionTab_Ok(int n) + { + return isAlgoPI_OK(piOMPforPromotionTab, n, "Pi OMP for promotion tab"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * De-synchronisation avec PromotionTab + */ +double piOMPforPromotionTab(int n) + { + double xi; + const int NB_THREAD = OmpTools::setAndGetNaturalGranularity(); + const double DX = 1.0/(double)n; + + double sums[NB_THREAD]; + memset(sums, 0, sizeof(sums)); // TODO + + #pragma omp parallel for private(xi) + for (int i = 0; i < n; i++) + { + const int TID = OmpTools::getTid(); + xi = i * DX; + sums[TID] += fpi(xi); + } + + double sum = 0; + for (int i = 0; i < NB_THREAD; i++) + sum += sums[i]; + + return sum * DX; + } + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/08_pi_for_reduction.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/08_pi_for_reduction.cpp new file mode 100755 index 0000000..544224f --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/08_pi_for_reduction.cpp @@ -0,0 +1,70 @@ +#include +#include "00_pi_tools.h" +#include "OmpTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPforReduction_Ok(int n); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static double piOMPforReduction(int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool isPiOMPforReduction_Ok(int n) + { + return isAlgoPI_OK(piOMPforReduction, n, "Pi OMP for reduction-integrer"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * pattern omp usefull : idem desyncronisation-promotionTab ,mais avec syntaxe plus courte! + * Si on enleve le pragma, le code est le meme que le sequentiel! + */ +double piOMPforReduction(int n) + { + double sum = 0; + double xi; + const double DX = 1.0/(double)n; + +#pragma omp parallel for private(xi) reduction(+:sum) + for (int i = 0; i < n; i++) + { + xi = i*DX; + sum += fpi(xi); + } + + return sum * DX; + } + + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/usePI.cpp b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/usePI.cpp new file mode 100755 index 0000000..da9ffe6 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/usePI.cpp @@ -0,0 +1,70 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool isPiSequentiel_OK(int n); +extern bool isPiOMPEntrelacerPromotionTab_Ok(int n); +extern bool isPiOMPEntrelacerCritical_Ok(int n); +extern bool isPiOMPEntrelacerAtomic_Ok(int n); +extern bool isPiOMPforCritical_Ok(int n); +extern bool isPiOMPforAtomic_Ok(int n); +extern bool isPiOMPforPromotionTab_Ok(int n); +extern bool isPiOMPforReduction_Ok(int n); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool usePI(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool usePI(void) + { + cout << endl << "[PI]" << endl; + + int n = INT_MAX / 10; + + bool isOk = true; + isOk &= isPiSequentiel_OK(n); + isOk &= isPiOMPEntrelacerPromotionTab_Ok(n); + isOk &= isPiOMPEntrelacerCritical_Ok(n); + isOk &= isPiOMPEntrelacerAtomic_Ok(n); + isOk &= isPiOMPforCritical_Ok(n); + isOk &= isPiOMPforAtomic_Ok(n); + isOk &= isPiOMPforPromotionTab_Ok(n); + isOk &= isPiOMPforReduction_Ok(n); + + return isOk; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/test/mainTest.cpp b/WCudaMSE/Student_OMP/src/cpp/test/mainTest.cpp new file mode 100755 index 0000000..44e59ae --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/test/mainTest.cpp @@ -0,0 +1,68 @@ +#include +#include + +#include "cppTest+.h" + +#include "TestHello.h" +#include "TestPi.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainTest(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static bool testALL(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainTest(void) + { + bool isOk = testALL(); + + cout << "\n-------------------------------------------------" << endl; + cout << "End Main : isOk = " << isOk << endl; + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +bool testALL(void) + { + Test::Suite testSuite; + + testSuite.add(std::auto_ptr < Test::Suite > (new TestHello())); + testSuite.add(std::auto_ptr < Test::Suite > (new TestPi())); + + return runTestHtml("TestALL_HTML", testSuite); + //return runTestConsole("TestALL_Console", testSuite); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/test/unit/01_Test_Hello/TestHello.cpp b/WCudaMSE/Student_OMP/src/cpp/test/unit/01_Test_Hello/TestHello.cpp new file mode 100755 index 0000000..7e1bd61 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/test/unit/01_Test_Hello/TestHello.cpp @@ -0,0 +1,38 @@ +#include "TestHello.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void helloOMP1(void); +extern void helloOMP2(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +TestHello::TestHello(void) + { + TEST_ADD(TestHello::testHelloOMP1); + TEST_ADD(TestHello::testHelloOMP2); + } + +void TestHello::testHelloOMP1(void) + { + helloOMP1(); + } + +void TestHello::testHelloOMP2(void) + { + helloOMP2(); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/test/unit/01_Test_Hello/TestHello.h b/WCudaMSE/Student_OMP/src/cpp/test/unit/01_Test_Hello/TestHello.h new file mode 100755 index 0000000..6882d91 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/test/unit/01_Test_Hello/TestHello.h @@ -0,0 +1,28 @@ +#ifndef TEST_HELLO_OMP_H +#define TEST_HELLO_OMP_H + +#include "cpptest.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +class TestHello: public Test::Suite + { + public: + + TestHello(void); + + private: + + void testHelloOMP1(void); + void testHelloOMP2(void); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/test/unit/02_Test_Pi/TestPi.cpp b/WCudaMSE/Student_OMP/src/cpp/test/unit/02_Test_Pi/TestPi.cpp new file mode 100755 index 0000000..7b23fd9 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/test/unit/02_Test_Pi/TestPi.cpp @@ -0,0 +1,85 @@ +#include "TestPi.h" +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool isPiSequentiel_OK(int n); +extern bool isPiOMPEntrelacerPromotionTab_Ok(int n); +extern bool isPiOMPEntrelacerCritical_Ok(int n); +extern bool isPiOMPEntrelacerAtomic_Ok(int n); +extern bool isPiOMPforCritical_Ok(int n); +extern bool isPiOMPforAtomic_Ok(int n); +extern bool isPiOMPforPromotionTab_Ok(int n); +extern bool isPiOMPforReduction_Ok(int n); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + + +TestPi::TestPi(void) + { + this->n=INT_MAX/10; + + TEST_ADD(TestPi::testSequentiel); + + TEST_ADD(TestPi::testEntrelacerPromotionTab); + TEST_ADD(TestPi::testEntrelacerAtomic); + TEST_ADD(TestPi::testEntrelacerCritical); + + TEST_ADD(TestPi::testAtomic); + TEST_ADD(TestPi::testCritical); + TEST_ADD(TestPi::testPromotionTab); + TEST_ADD(TestPi::testForReduction); + } + +void TestPi::testSequentiel(void) + { + TEST_ASSERT(isPiSequentiel_OK(n)==true); + } + +void TestPi::testEntrelacerPromotionTab(void) + { + TEST_ASSERT(isPiOMPEntrelacerPromotionTab_Ok(n)==true); + } + +void TestPi::testEntrelacerAtomic(void) + { + TEST_ASSERT(isPiOMPEntrelacerAtomic_Ok(n)==true); + } + +void TestPi::testEntrelacerCritical(void) + { + TEST_ASSERT(isPiOMPEntrelacerCritical_Ok(n)==true); + } + +void TestPi::testCritical(void) + { + TEST_ASSERT(isPiOMPforCritical_Ok(n)==true); + } + +void TestPi::testAtomic(void) + { + TEST_ASSERT(isPiOMPforAtomic_Ok(n)==true); + } + +void TestPi::testPromotionTab(void) + { + TEST_ASSERT(isPiOMPforPromotionTab_Ok(n)==true); + } + +void TestPi::testForReduction(void) + { + TEST_ASSERT(isPiOMPforReduction_Ok(n)==true); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/cpp/test/unit/02_Test_Pi/TestPi.h b/WCudaMSE/Student_OMP/src/cpp/test/unit/02_Test_Pi/TestPi.h new file mode 100755 index 0000000..f9f0f4f --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/test/unit/02_Test_Pi/TestPi.h @@ -0,0 +1,39 @@ +#ifndef TEST_PI_H +#define TEST_PI_H + +#include "cpptest.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + + +class TestPi: public Test::Suite + { + public: + + TestPi(void); + + private: + + void testSequentiel(void); + void testEntrelacerPromotionTab(void); + void testEntrelacerAtomic(void); + void testEntrelacerCritical(void); + void testCritical(void); + void testAtomic(void); + void testPromotionTab(void); + void testForReduction(void); + + private: + + int n; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP/src/main.cpp b/WCudaMSE/Student_OMP/src/main.cpp new file mode 100755 index 0000000..10e4e3d --- /dev/null +++ b/WCudaMSE/Student_OMP/src/main.cpp @@ -0,0 +1,55 @@ +#include +#include +#include "LimitsTools.h" + + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern int mainCore(void); +extern int mainTest(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + cout << "main" << endl; + + LimitsTools::rappelTypeSize(); + + const bool IS_TEST = false; + return IS_TEST ? mainTest() : mainCore(); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP_Image/.project b/WCudaMSE/Student_OMP_Image/.project new file mode 100755 index 0000000..c2f653c --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/.project @@ -0,0 +1,79 @@ + + + Student_OMP_Image + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f visual.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Student_OMP_Image/dataProject.mk b/WCudaMSE/Student_OMP_Image/dataProject.mk new file mode 100755 index 0000000..223f75b --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/dataProject.mk @@ -0,0 +1,77 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Student_OMP_Image + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_OMP/src/core +SRC_AUX+= ../BilatTools_OpenCV/src/core +SRC_AUX+= ../BilatTools_Cuda_smart_switch/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + +include ${API}/bilat_Image_FreeGlut.mk +include $(API)/openmp.mk +include ${API}/opencv.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+=CBI_NO_CUDA + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/a_image/RipplingImage.cpp b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/a_image/RipplingImage.cpp new file mode 100755 index 0000000..4afae0f --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/a_image/RipplingImage.cpp @@ -0,0 +1,104 @@ +#include +#include +#include +#include + +#include "MathTools.h" +#include "RipplingImage.h" +#include "StringTools.h" +#include "OmpTools.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +RipplingImage::RipplingImage(unsigned int w, unsigned int h, float dt) : + ImageMOOs_A(w, h) + { + assert(w==h); // Image carrer + + this->ptrRipplingMOO=new RipplingMOO(w,h,dt); + } + +RipplingImage::~RipplingImage(void) + { + delete ptrRipplingMOO; + } + +/*--------------------------------------*\ + |* Override *| + \*-------------------------------------*/ + +/** + * Override + * call periodicly by the api + */ +void RipplingImage::fillImageGL(uchar4* ptrTabPixels, int w, int h) + { + ptrRipplingMOO->process(ptrTabPixels,w,h); + } + +/** + * Override + * call periodicly by the api + */ +void RipplingImage::animationStep(bool& isNeedUpdateView) + { + ptrRipplingMOO->animationStep(); + } + +/** + * Override + * call periodicly by the api + */ +void RipplingImage::paintPrimitives(Graphic2Ds& graphic2D) + { + const Font_A* ptrFont = graphic2D.getFont(TIMES_ROMAN_24); + + float r = 1; + float g = 0; + float b = 0; + graphic2D.setColorRGB(r, g, b); + + // Top + { + float t=ptrRipplingMOO->getT(); + + string message = "It's up to you! t= " + StringTools::toString(t); + graphic2D.drawTitleTop(message, ptrFont); + } + + // Bottom + { + graphic2D.drawTitleBottom("Rippling OMP", ptrFont); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/a_image/RipplingImage.h b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/a_image/RipplingImage.h new file mode 100755 index 0000000..1bfd143 --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/a_image/RipplingImage.h @@ -0,0 +1,68 @@ +#ifndef RIPPLING_IMAGE_H_ +#define RIPPLING_IMAGE_H_ + +#include "ImageMOOs_A.h" +#include "RipplingMOO.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class RipplingImage: public ImageMOOs_A + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + RipplingImage(unsigned int w, unsigned int h, float dt = 1); + virtual ~RipplingImage(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + protected: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override, call periodicly by the api + */ + virtual void fillImageGL(uchar4* ptrTabPixels, int w, int h); + + /** + * Override, call periodicly by the api + */ + virtual void animationStep(bool& isNeedUpdateView); + + /** + * Override, call periodicly by the api + */ + virtual void paintPrimitives(Graphic2Ds& graphic2D); + + + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Tools + RipplingMOO* ptrRipplingMOO; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.cpp b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.cpp new file mode 100755 index 0000000..94d1656 --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.cpp @@ -0,0 +1,100 @@ +#include +#include + +#include "RipplingMOO.h" +#include "OmpTools.h" + +#include "RipplingMath.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +RipplingMOO::RipplingMOO(unsigned int w, unsigned int h, float dt) + { + this->t=0; + this->dt=dt; + } + +RipplingMOO::~RipplingMOO(void) + { + // rien + } + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void RipplingMOO::process(uchar4* ptrTabPixels, int w, int h) + { + if (isEntrelacement) + { + entrelacementOMP(ptrTabPixels); // Plus lent + } + else + { + forAutoOMP(ptrTabPixels); // Plus rapide + } + + isEntrelacement=!isEntrelacement;// Pour tester que les deux implementations fonctionnent + } + + +void RipplingMOO::animationStep() + { + t+=dt; + } + +/*--------------*\ + |* get *| + \*-------------*/ + +float RipplingMOO::getT() + { + return t; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * Code entrainement Cuda + */ +void RipplingMOO::entrelacementOMP(uchar4* ptrTabPixels) + { + // TODO + } + +/** + * Code naturel et direct OMP + */ +void RipplingMOO::forAutoOMP(uchar4* ptrTabPixels) + { + // TODO + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.h b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.h new file mode 100755 index 0000000..6e26b26 --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/b_moo/RipplingMOO.h @@ -0,0 +1,60 @@ +#ifndef RIPPLING_MOO_H_ +#define RIPPLING_MOO_H_ + +#include "cudaType.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class RipplingMOO + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + RipplingMOO(unsigned int w, unsigned int h, float dt); + virtual ~RipplingMOO(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + void process(uchar4* ptrTabPixels, int w, int h); + void animationStep(); + float getT(); + + private: + + void entrelacementOMP(uchar4* ptrTabPixels); // Code entrainement Cuda + void forAutoOMP(uchar4* ptrTabPixels); // Code naturel et direct OMP, plus performsnt + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Inputs + double dt; + + // Tools + double t; + bool isEntrelacement; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/c_math/RipplingMath.h b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/c_math/RipplingMath.h new file mode 100755 index 0000000..e57ccbe --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/c_math/RipplingMath.h @@ -0,0 +1,75 @@ +#ifndef RIPPLING_MATH_H_ +#define RIPPLING_MATH_H_ + +#include +using namespace std; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Dans un header only pour preparer la version cuda + */ +class RipplingMath + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + RipplingMath(unsigned int w, unsigned int h)) + { + this->dim2 = w / 2; + } + + virtual ~RipplingMath(void) + { + //rien + } + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + void colorIJ(uchar4* ptrColor, int i, int j, float t) + { + // TODO + math::sin(9.1); +asda + double a { 4 / 3 }; + } + + private: + + void dxy(int i, int j, float* ptrResult) // par exmple + { + //TODO + } + + private: + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Tools + double dim2; //=dim/2 + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/d_provider/RipplingProvider.cpp b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/d_provider/RipplingProvider.cpp new file mode 100755 index 0000000..a1fabe3 --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/d_provider/RipplingProvider.cpp @@ -0,0 +1,49 @@ +#include "RipplingProvider.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +RipplingImage* RipplingProvider::create() + { + float dt = 1; + + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + return new RipplingImage(dw, dh, dt); + } + + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/d_provider/RipplingProvider.h b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/d_provider/RipplingProvider.h new file mode 100755 index 0000000..07b3b30 --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/d_provider/RipplingProvider.h @@ -0,0 +1,27 @@ +#ifndef RIPPLING_PROVIDER_H_ +#define RIPPLING_PROVIDER_H_ + +#include "RipplingImage.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class RipplingProvider + { + public: + + static RipplingImage* create(void); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Student_OMP_Image/src/main.cpp b/WCudaMSE/Student_OMP_Image/src/main.cpp new file mode 100755 index 0000000..35cc2b0 --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/main.cpp @@ -0,0 +1,77 @@ +#include + +#include "MathTools.h" +#include "GLUTImageViewers.h" + +#include "RipplingProvider.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static int run(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv) + { + cout << "main" << endl; + + GLUTImageViewers::init(argc, argv); // call once + + return run(); // Bloquant, Tant qu'une fenetre est ouverte + } + +int run(void) + { + bool isAnimation = true; + bool isSelectionEnable = false; + + RipplingImage* ptrRippling = RipplingProvider::create(); + + GLUTImageViewers ripplingViewer(ptrRippling, isAnimation, isSelectionEnable, 20, 20); + // Insert here other viewers ... + + GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte + + // destruction + { + delete ptrRippling; + + ptrRippling = NULL; + } + + return EXIT_SUCCESS; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Boost/.project b/WCudaMSE/Tuto_Boost/.project new file mode 100755 index 0000000..6a3a897 --- /dev/null +++ b/WCudaMSE/Tuto_Boost/.project @@ -0,0 +1,79 @@ + + + Tuto_Boost + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f mingw.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Tuto_Boost/dataProject.mk b/WCudaMSE/Tuto_Boost/dataProject.mk new file mode 100755 index 0000000..ad9ebd2 --- /dev/null +++ b/WCudaMSE/Tuto_Boost/dataProject.mk @@ -0,0 +1,80 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Tuto_Boost + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# ARGS # +################# + +#ARGS+= --help +ARGS+= --a=9.99 +ARGS+= --b=8.88 + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# +# Mimimum : empty + +include $(API)/boost.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Tuto_Boost/intelLinux.mk b/WCudaMSE/Tuto_Boost/intelLinux.mk new file mode 100755 index 0000000..41c181f --- /dev/null +++ b/WCudaMSE/Tuto_Boost/intelLinux.mk @@ -0,0 +1,20 @@ +# Version : 0.0.1 + +############################################### +# Intel # +############################################### + +# Optimisation: +# CXXFLAGS+= -parallel #: auto paralelisation sequentiel code +# Strategie: +# -parallel est activer par default, car gain enorme de performance! +# Bug: +# Pour projet "trop simple" pose problleme au linkage : "undefined reference to `__kmpc_begin'" +# Observer avec (par exemple) : icpc (ICC) 14.0.1 20131008 +# Solution: + +CXXFLAGS_EXCLUDE+= -parallel + +############################################### +# End # +############################################### diff --git a/WCudaMSE/Tuto_Boost/src/cpp/core/options/useOptions.cpp b/WCudaMSE/Tuto_Boost/src/cpp/core/options/useOptions.cpp new file mode 100755 index 0000000..cb56ee5 --- /dev/null +++ b/WCudaMSE/Tuto_Boost/src/cpp/core/options/useOptions.cpp @@ -0,0 +1,98 @@ +#include +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +using std::cout; +using std::endl; + +namespace po = boost::program_options; + +using po::options_description; +using po::value; +using po::variables_map; +using po::store; +using po::parse_command_line; +using po::notify; + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool useOption(int argc, char** argv); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static bool use(double a, double b); +static bool help(const options_description& description); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * http://www.boost.org/doc/libs/1_55_0/doc/html/program_options/tutorial.html#idp163291912 + */ +bool useOption(int argc, char** argv) + { + double a; + double b; + + options_description description("Allowed options"); + description.add_options() + ("help", "produce help message") + ("a", value(&a)->default_value(3.14), "explain here what is a ... Example: --a=2.22") + ("b", value(&b)->default_value(1.11), "explain here what is b ... Example: --a=3.33"); + + variables_map mapVariableValue; + store(parse_command_line(argc, argv, description), mapVariableValue); + notify(mapVariableValue); + + if (mapVariableValue.count("help")) + { + return help(description); + } + else + { + return use(a, b); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +bool use(double a, double b) + { + cout << "[Use Option] : " << endl << endl; + + cout << "a= " << a << endl; + cout << "b= " << b << endl; + cout << endl; + + return true; + } + +bool help(const options_description& description) + { + cout << "[Help] " << endl< +//#include // include with c++11 (#CXXFLAGS+= -std=c++0x) + +using std::cout; +using std::endl; + +#include +#include + +using boost::thread; +using boost::posix_time::seconds; +using boost::this_thread::sleep; +using boost::this_thread::get_id; + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloThread_Procedure(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static void runnable(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +// http://antonym.org/2009/05/threading-with-boost---part-i-creating-threads.html + +void helloThread_Procedure(void) + { + cout << "\nthread : procedure : start" << endl; + + thread threadRunnable(runnable); + + cout << "Waiting for thread ..." << endl; + + threadRunnable.join(); + + cout << "thread : procedure : end " << endl; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void runnable(void) + { + cout << "runnable : start" << endl; + cout<<"Hello from thread : id : "< +#include + + +using std::cout; +using std::endl; + +using boost::thread; +using boost::chrono::milliseconds; +using boost::this_thread::sleep_for; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloThread_ProcedureArgs(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static void runnable(float x); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloThread_ProcedureArgs(void) + { + cout << "\nthread : procedure args : start" << endl; + + float x = 3.14; + thread threadRunnable(runnable, x); // x sera passer à runnable + + cout << "Waiting for thread ..." << endl; + + threadRunnable.join(); + + cout << "thread : procedure args : end" << endl; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void runnable(float x) + { + cout << "runnable : start" << endl; + cout << "x = " << x << endl; + + // Pretend to do something useful... + { + sleep_for(milliseconds(2000)); // from version 1.53 only + } + + cout << "runnable: end" << endl; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Boost/src/cpp/core/thread/03_thread_objet.cpp b/WCudaMSE/Tuto_Boost/src/cpp/core/thread/03_thread_objet.cpp new file mode 100755 index 0000000..3575e5a --- /dev/null +++ b/WCudaMSE/Tuto_Boost/src/cpp/core/thread/03_thread_objet.cpp @@ -0,0 +1,68 @@ +#include +#include +#include +#include "Runnable.h" + + +using std::cout; +using std::endl; + +using boost::thread; +using boost::ref; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloThread_Objet(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloThread_Objet(void) + { + int x = 10; + int y = 100; + Runnable runnable(x, y); + + cout << "\nthread : objet : start" << endl; + + // A very important consideration when using functors with boost threads is that the thread constructor takes the functor parameter by value !! + // boost::thread threadRunnable(runnable); + + // Solution: Here runnable is passed by reference (not a copy) + thread threadRunnable(ref(runnable)); // use foncteur runnable() of Runnable + + cout << "Waiting for thread ..." << endl; + + threadRunnable.join(); + cout << "[outside thread] : " << x << " + " << y << " = " << runnable.getResult() << endl; // give bad result if runnable is passed by value to boost::thread + + cout << "thread : objet : end" << endl; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Boost/src/cpp/core/thread/04_thread_objet_methode.cpp b/WCudaMSE/Tuto_Boost/src/cpp/core/thread/04_thread_objet_methode.cpp new file mode 100755 index 0000000..b25af82 --- /dev/null +++ b/WCudaMSE/Tuto_Boost/src/cpp/core/thread/04_thread_objet_methode.cpp @@ -0,0 +1,67 @@ +#include +#include "Runnable.h" + +#include +#include + + + +using std::cout; +using std::endl; + +using boost::thread; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloThread_Methode(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloThread_Methode(void) + { + int x = 10; + int y = 100; + Runnable runnable(x, y); + + cout << "\nthread : methode : start" << endl; + + // arg1 : adresse de la methode run de la classe Runnable + // arg2 : adresse de l'objet sur lequel aller chercher la metode run + thread threadRunnable(&Runnable::run, &runnable); + + cout << "Waiting for thread ..." << endl; + + threadRunnable.join(); + cout << "thread : methode : end" << endl; + + cout << "[outside thread] : " << x << " + " << y << " = " << runnable.getResult() << endl; // give bad result cause runnable instance is passed by value to boost::thread + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Boost/src/cpp/core/thread/Runnable.h b/WCudaMSE/Tuto_Boost/src/cpp/core/thread/Runnable.h new file mode 100755 index 0000000..241db4d --- /dev/null +++ b/WCudaMSE/Tuto_Boost/src/cpp/core/thread/Runnable.h @@ -0,0 +1,91 @@ +#ifndef RUNNABLE_H_ +#define RUNNABLE_H_ + +#include +#include +#include + +using std::cout; +using std::endl; + +using boost::posix_time::seconds; +using boost::this_thread::sleep; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Runnable + { + public: + + Runnable(int a, int b) + { + // inputs + this->a = a; + this->b = b; + + // ouputs + this->result = -1; + } + + virtual ~Runnable(void) + { + // rien + } + + /** + * Foncteur + */ + void operator()() + { + cout << "runnable : foncteur : start" << endl; + work(); + cout << "runnable : foncteur : end" << endl; + } + + void run(void) + { + cout << "runnable : methode : start" << endl; + work(); + cout << "runnable : methode : end" << endl; + } + + int getResult(void) + { + return this->result; + } + + private: + + /** + * common to work and operator() + */ + void work(void) + { + + this->result = a + b; + cout << "[inside thread] : " << a << " + " << b << " = " << result << endl; + // Pretend to do something useful... + { + seconds workTime(3); + sleep(workTime); + } + } + + private: + + int a; + int b; + int result; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Boost/src/cpp/core/thread/useThread.cpp b/WCudaMSE/Tuto_Boost/src/cpp/core/thread/useThread.cpp new file mode 100755 index 0000000..a20943b --- /dev/null +++ b/WCudaMSE/Tuto_Boost/src/cpp/core/thread/useThread.cpp @@ -0,0 +1,57 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void helloThread_Procedure(void); +extern void helloThread_ProcedureArgs(void); +extern void helloThread_Objet(void); +extern void helloThread_Methode(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool useThread(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +bool useThread(void) + { + cout<<"[Use Thread] : "< +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +using std::cout; +using std::endl; + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern bool useThread(void); +extern bool useOption(int argc, char** argv); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv) + { + bool isOk = true; + + isOk &= useOption(argc, argv); + isOk &= useThread(); + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_CppTest/.project b/WCudaMSE/Tuto_CppTest/.project new file mode 100755 index 0000000..c1ae904 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/.project @@ -0,0 +1,79 @@ + + + Tuto_CppTest + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f mingw.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Tuto_CppTest/TestALL_HTML.html b/WCudaMSE/Tuto_CppTest/TestALL_HTML.html new file mode 100755 index 0000000..a182ef4 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/TestALL_HTML.html @@ -0,0 +1,176 @@ + + + + + + + Unit Tests Results + + + + + + +

Unit Tests Results

+ +
+Designed by CppTest +
+
+ +

Summary

+ + + + + + + + + + + + + +
TestsErrorsSuccessTime (s)
40100%0.000000
+
+ +

Test suites

+ + + + + + + + + + + + + + + + + + + + + + +
NameTestsErrorsSuccessTime (s)
TestScalarJunit20100%0.000000
TestIntegerJunit20100%0.000000
+
+ +

Suite: TestScalarJunit

+ + + + + + + + + + + + + + + + + + + +
NameErrorsSuccessTime (s)
testAdd0true0.000000
testFois0true0.000000
+

Back to top +

+

Suite: TestIntegerJunit

+ + + + + + + + + + + + + + + + + + + +
NameErrorsSuccessTime (s)
testAdd0true0.000000
testFois0true0.000000
+

Back to top +

+
+ + +

+ + Valid XHTML 1.0 Strict + +

+ + diff --git a/WCudaMSE/Tuto_CppTest/dataProject.mk b/WCudaMSE/Tuto_CppTest/dataProject.mk new file mode 100755 index 0000000..1ed7222 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/dataProject.mk @@ -0,0 +1,72 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Tuto_CPPTest + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +#SRC_AUX+= + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# +# Mimimum : empty + +include $(API)/cppTest.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Tuto_CppTest/intelLinux.mk b/WCudaMSE/Tuto_CppTest/intelLinux.mk new file mode 100755 index 0000000..41c181f --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/intelLinux.mk @@ -0,0 +1,20 @@ +# Version : 0.0.1 + +############################################### +# Intel # +############################################### + +# Optimisation: +# CXXFLAGS+= -parallel #: auto paralelisation sequentiel code +# Strategie: +# -parallel est activer par default, car gain enorme de performance! +# Bug: +# Pour projet "trop simple" pose problleme au linkage : "undefined reference to `__kmpc_begin'" +# Observer avec (par exemple) : icpc (ICC) 14.0.1 20131008 +# Solution: + +CXXFLAGS_EXCLUDE+= -parallel + +############################################### +# End # +############################################### diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/core/mainCore.cpp b/WCudaMSE/Tuto_CppTest/src/cpp/core/mainCore.cpp new file mode 100755 index 0000000..f1c808e --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/core/mainCore.cpp @@ -0,0 +1,56 @@ +#include +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void helloCPP(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static void work(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainCore(void) + { + work(); + + return EXIT_SUCCESS; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void work(void) + { + helloCPP(); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/hello.cpp b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/hello.cpp new file mode 100755 index 0000000..e9e05fc --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/hello.cpp @@ -0,0 +1,22 @@ +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void helloCPP(void) + { + cout << "Hello CPP" << endl; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/integer/integer.cpp b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/integer/integer.cpp new file mode 100755 index 0000000..1277d67 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/integer/integer.cpp @@ -0,0 +1,24 @@ +#include "integer.h" + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int plus(int x1, int x2) + { + return x1 + x2; + } + +int fois(int x1, int x2) + { + return x1 * x2; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/integer/integer.h b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/integer/integer.h new file mode 100755 index 0000000..0a2e190 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/integer/integer.h @@ -0,0 +1,13 @@ +#ifndef INTEGER_H +#define INTEGER_H + +int plus(int x1,int x2); +int fois(int x1,int x2); + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + + diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.cpp b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.cpp new file mode 100755 index 0000000..aef2b22 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.cpp @@ -0,0 +1,24 @@ +#include "scalar.h" + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +double sum(double x1, double x2) + { + return x1 + x2; + } + +double fois(double x1, double x2) + { + return x1 * x2; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.h b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.h new file mode 100755 index 0000000..26aed9a --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/core/standard/scalar/scalar.h @@ -0,0 +1,13 @@ +#ifndef SCALAR_H +#define SCALAR_H + +double sum(double x1,double x2); +double fois(double x1,double x2); + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + + diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/test/junit/TestIntegerJunit.h b/WCudaMSE/Tuto_CppTest/src/cpp/test/junit/TestIntegerJunit.h new file mode 100755 index 0000000..d1d647a --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/test/junit/TestIntegerJunit.h @@ -0,0 +1,44 @@ +#ifndef TEST_INTEGER_JUNIT_H +#define TEST_INTEGER_JUNIT_H + +#include "cpptest.h" +#include "integer.h" + +class TestIntegerJunit: public Test::Suite + { +public: + + TestIntegerJunit(void) + { + TEST_ADD(TestIntegerJunit::testAdd); + TEST_ADD(TestIntegerJunit::testFois); + } + +private: + + void testAdd(void) + { + int a = 2; + int b = 3; + + TEST_ASSERT(plus(a, b) == 5); + TEST_ASSERT(plus(-a, b) == 1); + } + + void testFois(void) + { + int a = 2; + int b = 3; + + TEST_ASSERT(fois(a, b) == 6); + TEST_ASSERT(fois(-a, b) == -6); + } + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + + diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/test/junit/TestScalarJunit.h b/WCudaMSE/Tuto_CppTest/src/cpp/test/junit/TestScalarJunit.h new file mode 100755 index 0000000..24db636 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/test/junit/TestScalarJunit.h @@ -0,0 +1,40 @@ +#ifndef TEST_SCALAR_JUNIT_H +#define TEST_SCALAR_JUNIT_H + +#include "cpptest.h" +#include "scalar.h" + + + +class TestScalarJunit: public Test::Suite + { + public: + + TestScalarJunit(void) + { + TEST_ADD(TestScalarJunit::testAdd); + TEST_ADD(TestScalarJunit::testFois); + } + + private: + + void testAdd(void) + { + TEST_ASSERT(sum(2,3)==5); + TEST_ASSERT(sum(-2,3)==1.0); + } + + void testFois(void) + { + TEST_ASSERT(fois(2,3)==6); + TEST_ASSERT(fois(-2,3)==-6); + } + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + + diff --git a/WCudaMSE/Tuto_CppTest/src/cpp/test/mainTest.cpp b/WCudaMSE/Tuto_CppTest/src/cpp/test/mainTest.cpp new file mode 100755 index 0000000..5fac621 --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/cpp/test/mainTest.cpp @@ -0,0 +1,81 @@ +#include +#include +#include + +#include "cppTest+.h" + +#include "TestScalarJunit.h" +#include "TestIntegerJunit.h" + +using std::cout; +using std::endl; +using std::string; +using std::ofstream; +using std::auto_ptr; + +using Test::Suite; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +// Already in cppTest+.h +//extern bool runTestConsole(string titre, Test::Suite& test); +//extern bool runTestHtml(string titre, Test::Suite& test); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static bool testInteger(void); +static bool testALL(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainTest(void) + { + // bool isOk = testInteger(); + bool isOk = testALL(); + + cout << "\nisOK = " << isOk << endl; + + return isOk ? EXIT_SUCCESS : EXIT_FAILURE; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +bool testALL() + { + Suite testSuite; + + testSuite.add(auto_ptr(new TestScalarJunit())); + testSuite.add(auto_ptr(new TestIntegerJunit())); + + return runTestHtml("TestALL_HTML", testSuite); + //return runTestConsole("TestALL_Console", testSuite); + } + +bool testInteger(void) + { + TestIntegerJunit* ptrTest = new TestIntegerJunit(); + + //return runTestHtml("TestIntegerJunit", *ptrTest); + return runTestConsole("TestIntegerJunit", *ptrTest); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_CppTest/src/main.cpp b/WCudaMSE/Tuto_CppTest/src/main.cpp new file mode 100755 index 0000000..d11820f --- /dev/null +++ b/WCudaMSE/Tuto_CppTest/src/main.cpp @@ -0,0 +1,30 @@ +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern int mainCore(void); +extern int mainTest(void); + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + //return mainCore(); + return mainTest(); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Doxy/.project b/WCudaMSE/Tuto_Doxy/.project new file mode 100755 index 0000000..53d841e --- /dev/null +++ b/WCudaMSE/Tuto_Doxy/.project @@ -0,0 +1,27 @@ + + + Tuto_Doxy + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Tuto_Doxy/dataProject.mk b/WCudaMSE/Tuto_Doxy/dataProject.mk new file mode 100755 index 0000000..aced3d3 --- /dev/null +++ b/WCudaMSE/Tuto_Doxy/dataProject.mk @@ -0,0 +1,70 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Tuto_Doxygen + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Tuto_Doxy/intelLinux.mk b/WCudaMSE/Tuto_Doxy/intelLinux.mk new file mode 100755 index 0000000..41c181f --- /dev/null +++ b/WCudaMSE/Tuto_Doxy/intelLinux.mk @@ -0,0 +1,20 @@ +# Version : 0.0.1 + +############################################### +# Intel # +############################################### + +# Optimisation: +# CXXFLAGS+= -parallel #: auto paralelisation sequentiel code +# Strategie: +# -parallel est activer par default, car gain enorme de performance! +# Bug: +# Pour projet "trop simple" pose problleme au linkage : "undefined reference to `__kmpc_begin'" +# Observer avec (par exemple) : icpc (ICC) 14.0.1 20131008 +# Solution: + +CXXFLAGS_EXCLUDE+= -parallel + +############################################### +# End # +############################################### diff --git a/WCudaMSE/Tuto_Doxy/src/cpp/core/Animals.cpp b/WCudaMSE/Tuto_Doxy/src/cpp/core/Animals.cpp new file mode 100755 index 0000000..d8cdab4 --- /dev/null +++ b/WCudaMSE/Tuto_Doxy/src/cpp/core/Animals.cpp @@ -0,0 +1,45 @@ +#include "Animals.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +Animals::Animals(int poids) + { + this->poids = poids; + } + +Animals::~Animals() + { + // rien + } + +int Animals::getPoids() + { + return poids; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Doxy/src/cpp/core/Cat.cpp b/WCudaMSE/Tuto_Doxy/src/cpp/core/Cat.cpp new file mode 100755 index 0000000..6eee0a0 --- /dev/null +++ b/WCudaMSE/Tuto_Doxy/src/cpp/core/Cat.cpp @@ -0,0 +1,52 @@ +#include + +#include "Cat.h" + +using std::cout; +using std::endl; + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +Cat::Cat(int poids) : + Animals(poids) + { + //not appear in doxy doc + } + +Cat::~Cat() + { + ///With tripe ///, comment appear in doxy doc + } + +void Cat::eat() + { + cout<<"Fish"< + * Doxygen and graphviz are already installed on Cuda1 and Cuda2. + * Doxygen is the software to generate the documentation. Graphviz the soft to generate the UML graph and it is optional. + * + * If you want to install it on Ubuntu: + * sudo apt-get install doxygen + * sudo apt-get isntall graphviz + * + * You can find on internet installers for Windows! + * + * + * @section Usage + * Doxygen is a javadoc syntax like. Look into the project to understand how to comment methods, variables, class, files, etc. + * + * You can parametrize the output with the makefile BUILDER/makefile/public/doc/doxygen.mk.
+ * It contains some of the parameters that you can change. + * + * For the general documentation, you can use html markup language. + * + * + * + * + * + *
Inside a table + * 2nd cell + *
+ * + * + * @section Compilation + * You can also include image in the documentation. + * + * + * + * @section Reference + * You can find more about doxygen on this website: http://www.stack.nl/~dimitri/doxygen/manual/docblocks.html + */ + + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Doxy/src/header/Animals.h b/WCudaMSE/Tuto_Doxy/src/header/Animals.h new file mode 100755 index 0000000..379376c --- /dev/null +++ b/WCudaMSE/Tuto_Doxy/src/header/Animals.h @@ -0,0 +1,60 @@ +#ifndef ANIMAL_H_ +#define ANIMAL_H_ + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * @class Animals + * @brief Represent the ensemble of Animals + * + *
+ * Here you can write the full documentation of teh class Animal.
+ * It's up to you!
+ * 
+ * + * http://en.wikipedia.org + */ +class Animals + { + public: + + /** + * @param poids in kg + */ + Animals(int poids); + + /** + * Destructor exist in C++, we are not in java! + */ + virtual ~Animals(); + + /** + *
+	 * Virtual method to eat.
+	 * Animal need to eat for live!
+	 * 
+ */ + virtual void eat()=0; + + /** + * Get the poids of the car + * @return weight in kg + */ + int getPoids(); + + + private: + int poids; /// + * Here you can write the full documentation of teh class Animal. + * It's up to you! + * + * + * http://en.wikipedia.org + */ +class Cat: public Animals + { + public: + + /** + * Create a Cat + * @param poids in kg + */ + Cat(int poids); + + /** + * Destructor + */ + virtual ~Cat(); + + /** + * Override the virtual pure methode eat of Animal + */ + void eat(); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Doxy/src/main.cpp b/WCudaMSE/Tuto_Doxy/src/main.cpp new file mode 100755 index 0000000..46158d8 --- /dev/null +++ b/WCudaMSE/Tuto_Doxy/src/main.cpp @@ -0,0 +1,49 @@ +#include +#include + +#include "Cat.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + cout << "Doxygene projetTuto" << endl; + + Cat cat(10); + cout<<"cat poids = "< + + Tuto_Image + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f visual.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Tuto_Image/dataProject.mk b/WCudaMSE/Tuto_Image/dataProject.mk new file mode 100755 index 0000000..d2f6b2b --- /dev/null +++ b/WCudaMSE/Tuto_Image/dataProject.mk @@ -0,0 +1,74 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Tuto_Image + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_OMP/src/core +SRC_AUX+= ../BilatTools_Cuda_smart_switch/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + +include ${API}/bilat_Image_FreeGlut.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+=CBI_NO_CUDA + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/a_image/VagueImage.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/a_image/VagueImage.cpp new file mode 100755 index 0000000..e65e31f --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/a_image/VagueImage.cpp @@ -0,0 +1,103 @@ +#include +#include +#include +#include + +#include "VagueImage.h" +#include "MathTools.h" +#include "StringTools.h" +#include "OmpTools.h" +#include "IndiceTools.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +VagueImage::VagueImage(unsigned int w, unsigned int h, float dt) : + ImageMOOs_A(w, h) + { + this->ptrVagueMOO=new VagueMOO(w,h,dt); + } + +VagueImage::~VagueImage(void) + { + delete ptrVagueMOO; + } + +/*--------------------------------------*\ + |* Override *| + \*-------------------------------------*/ + +/** + * Override : call periodicly by the api + */ +void VagueImage::fillImageGL(uchar4* ptrTabPixels, int w, int h) + { + ptrVagueMOO->process(ptrTabPixels,w,h); + } + +/** + * Override : call periodicly by the api + */ +void VagueImage::animationStep(bool& isNeedUpdateView) + { + ptrVagueMOO->animationStep(); + } + +/** + * Override call periodicly by the api + */ +void VagueImage::paintPrimitives(Graphic2Ds& graphic2D) + { + const Font_A* ptrFont = graphic2D.getFont(TIMES_ROMAN_24); + + float r = 1; + float g = 0; + float b = 0; + graphic2D.setColorRGB(r, g, b); + + // Top + { + float t=ptrVagueMOO->getT(); + float dt=ptrVagueMOO->getDT(); + + string message = "t= " + StringTools::toString(t) + " dt=" + StringTools::toString(dt); + graphic2D.drawTitleTop(message, ptrFont); + } + + // Bottom + { + graphic2D.drawTitleBottom("API Image : Vague OMP", ptrFont); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/a_image/VagueImage.h b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/a_image/VagueImage.h new file mode 100755 index 0000000..af8ee29 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/a_image/VagueImage.h @@ -0,0 +1,73 @@ +#ifndef VAGUE_IMAGE_H_ +#define VAGUE_IMAGE_H_ + +#include "ImageMOOs_A.h" +#include "VagueMOO.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class VagueImage: public ImageMOOs_A + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + VagueImage(unsigned int w, unsigned int h, float dt); + virtual ~VagueImage(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + protected: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override, call periodicly by the api + */ + virtual void fillImageGL(uchar4* ptrDevImageGL, int w, int h); + + /** + * Override, call periodicly by the api + */ + virtual void animationStep(bool& isNeedUpdateView); + + /** + * Override, call periodicly by the api + */ + virtual void paintPrimitives(Graphic2Ds& graphic2D); + + /*----------------*\ + |* Private *| + \*---------------*/ + + private: + + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Tools + VagueMOO* ptrVagueMOO; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + /*----------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/b_moo/VagueMOO.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/b_moo/VagueMOO.cpp new file mode 100755 index 0000000..7a1e633 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/b_moo/VagueMOO.cpp @@ -0,0 +1,150 @@ +#include +#include +#include + +#include "VagueMOO.h" +#include "VagueMath.h" + +#include "OmpTools.h" +#include "IndiceTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +VagueMOO::VagueMOO(unsigned int w, unsigned int h, float dt) + { + // Input + this->dt = dt; + this->w=w; + + + // Tools + this->t = 0; + this->isEntrelacement=true; + + + // OMP (facultatif) + const int NB_THREADS = OmpTools::setAndGetNaturalGranularity(); + cout << "\n[VAGUE] nbThread = " << NB_THREADS << endl; + } + +VagueMOO::~VagueMOO(void) + { + // rien + } + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void VagueMOO::process(uchar4* ptrTabPixels, int w, int h) + { + if (isEntrelacement) + { + entrelacementOMP(ptrTabPixels, w, h); // Plus lent + } + else + { + forAutoOMP(ptrTabPixels, w, h); // Plus rapide + } + + isEntrelacement = !isEntrelacement; // Pour tester que les deux implementations fonctionnent + } + +void VagueMOO::animationStep() + { + t+=dt; + } + +/*--------------*\ + |* get *| + \*-------------*/ + +float VagueMOO::getT() + { + return t; + } + +float VagueMOO::getDT() + { + return dt; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * Code naturel et direct OMP + */ +void VagueMOO::forAutoOMP(uchar4* ptrTabPixels, int w, int h) + { + VagueMath vagueMath(w,h); // ici pour preparer cuda + +#pragma omp parallel for + for (int i = 0; i < h; i++) + { + for (int j = 0; j < w; j++) + { + // int s = i * W + j; + int s = IndiceTools::toS(w, i, j); // i[0,H[ j[0,W[ --> s[0,W*H[ + + vagueMath.colorIJ(&ptrTabPixels[s], i, j,t); + } + } + } + +/** + * Code entrainement Cuda + */ +void VagueMOO::entrelacementOMP(uchar4* ptrTabPixels, int w, int h) + { + VagueMath vagueMath(w,h); // ici pour preparer cuda + + const int WH = w * h; + + +#pragma omp parallel + { + const int NB_THREAD = OmpTools::getNbThread();// dans region parallel + const int TID = OmpTools::getTid(); + int s = TID; // in [0,... + + int i; + int j; + while (s < WH) + { + IndiceTools::toIJ(s, w, &i, &j); // s[0,W*H[ --> i[0,H[ j[0,W[ + + vagueMath.colorIJ(&ptrTabPixels[s], i, j,t); + + s += NB_THREAD; + } + } + } + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/b_moo/VagueMOO.h b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/b_moo/VagueMOO.h new file mode 100755 index 0000000..b0b862a --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/b_moo/VagueMOO.h @@ -0,0 +1,63 @@ +#ifndef VAGUE_MOO_H_ +#define VAGUE_MOO_H_ + +#include "cudaType.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class VagueMOO + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + VagueMOO(unsigned int w, unsigned int h, float dt); + virtual ~VagueMOO(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + void process(uchar4* ptrTabPixels, int w, int h); + void animationStep(); + float getT(); + float getDT(); + + private: + + // Balayage image + void entrelacementOMP(uchar4* ptrTabPixels,int w, int h); + void forAutoOMP(uchar4* ptrTabPixels,int w, int h); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Inputs + double dt; + unsigned char w; + + // Tools + double t; + bool isEntrelacement; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + /*----------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/c_math/VagueMath.h b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/c_math/VagueMath.h new file mode 100755 index 0000000..aabd5dd --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/c_math/VagueMath.h @@ -0,0 +1,89 @@ +#ifndef VAGUE_MATH_H_ +#define VAGUE_MATH_H_ + +#include "cudaType.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Dans un header only pour preparer la version cuda + */ +class VagueMath + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + VagueMath(unsigned int w, unsigned int h) + { + this->factor = 4 * PI / (float) w; + } + + virtual ~VagueMath(void) + { + //rien + } + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + /** + * i in [0,h[ + * j in [0,w[ + * code commun � + * entrelacementOMP + * forAutoOMP + */ + void colorIJ(uchar4* ptrColorIJ, int i, int j, int t) + { + unsigned char levelGris; + + f(levelGris,i, j, t); // update levelGris + + ptrColorIJ->x = levelGris; + ptrColorIJ->y = levelGris; + ptrColorIJ->z = levelGris; + + ptrColorIJ->w = 255; // opaque + } + + private: + + void f( unsigned char& levelGris,int i, int j, float t) + { + // example1 + // levelGris = 255 * fabs(sin(t)); // same color for all the image (Hello image) + + // Example2 + levelGris = 255 * fabs(sin(i * factor + t)); + } + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Inputs + float factor; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + /*----------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/d_provider/VagueProvider.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/d_provider/VagueProvider.cpp new file mode 100755 index 0000000..074e5f7 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/d_provider/VagueProvider.cpp @@ -0,0 +1,49 @@ +#include "VagueProvider.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +VagueImage* VagueProvider::create(void) + { + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + float dt = 2 * PI / 200; // animation para + + return new VagueImage(dw, dh, dt); + } + + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/d_provider/VagueProvider.h b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/d_provider/VagueProvider.h new file mode 100755 index 0000000..f642e22 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/01_Vague/d_provider/VagueProvider.h @@ -0,0 +1,27 @@ +#ifndef VAGUE_PROVIDER_H_ +#define VAGUE_PROVIDER_H_ + +#include "VagueImage.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class VagueProvider + { + public: + + static VagueImage* create(void); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.cpp new file mode 100755 index 0000000..a3373d9 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.cpp @@ -0,0 +1,110 @@ +#include +#include + +#include "DamierImage.h" +#include "StringTools.h" +#include "OmpTools.h" +#include "MathTools.h" +#include "IndiceTools.h" +#include "ColorTools.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * DomaineMaths(0, 0, 2 * PI, 2 * PI) : par exemple, why not celui là! + */ +DamierImage::DamierImage(unsigned int w, unsigned int h, float dt, int n) : + ImageFonctionelMOOs_A(w, h, DomaineMath(0, 0, 2 * PI, 2 * PI)) + { + //Tools + this->ptrDamierMOO=new DamierMOO(w,h,dt,n); + + setEnableDomaineOverlay(true); + } + +DamierImage::~DamierImage(void) + { + delete ptrDamierMOO; + } + +/*--------------------------------------*\ + |* Override *| + \*-------------------------------------*/ + +/** + * Override + * Called automatically by the API + */ +void DamierImage::fillImageGL(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath) + { + ptrDamierMOO->process(ptrTabPixels, w, h,domaineMath); + } + +/** + * Override + * call periodicly by the api + */ +void DamierImage::animationStep(bool& isNeedUpdateView) + { + ptrDamierMOO->animationStep(); + } + +/** + * Override + * call periodicly by the api + */ +void DamierImage::paintPrimitives(Graphic2Ds& graphic2D) + { + const Font_A* ptrFont = graphic2D.getFont(TIMES_ROMAN_24); + + float r = 0; + float g = 0; + float b = 0; + graphic2D.setColorRGB(r, g, b); + + // Top + { + float t=ptrDamierMOO->getT(); + int n=ptrDamierMOO->getN(); + + string message = "t = " + StringTools::toString(t) + " n = " + StringTools::toString(n); + graphic2D.drawTitleTop(message, ptrFont); + } + + // Bottom + { + graphic2D.drawTitleBottom("[API Image Fonctionelle] : Damier zoomable OMP", ptrFont); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.h b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.h new file mode 100755 index 0000000..146b871 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.h @@ -0,0 +1,68 @@ +#ifndef DAMIER_IMAGE_H_ +#define DAMIER_IMAGE_H_ + +#include "ImageFonctionelMOOs_A.h" +#include "DamierMOO.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class DamierImage: public ImageFonctionelMOOs_A + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + DamierImage(unsigned int w, unsigned int h, float dt, int n); + virtual ~DamierImage(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + protected: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override, call periodicly by the api + */ + virtual void fillImageGL(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath); + + /** + * Override, call periodicly by the api + */ + virtual void animationStep(bool& isNeedUpdateView); + + /** + * Override, call periodicly by the api + */ + virtual void paintPrimitives(Graphic2Ds& graphic2D); + + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + protected: + + // Tools + DamierMOO* ptrDamierMOO; + + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.cpp new file mode 100755 index 0000000..53cd5cf --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.cpp @@ -0,0 +1,183 @@ +#include +#include + +#include "DamierMOO.h" + +#include "OmpTools.h" +#include "MathTools.h" + +#include "IndiceTools.h" + + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * variateurT: fait varier t in [0,2pi] par increment de dt, + * d'abord de mani�re croissante jusqua 2PI, puis de maniere decroissante jusqua 0, puis en boucle a l'infini selon ce procede + */ +DamierMOO::DamierMOO(unsigned int w, unsigned int h, float dt, int n):variateurT(IntervalF(0, 2 * PI), dt) + { + // Inputs + this->n =n; + this->w=w; + this->h=h; + + //Tools + this->isEntrelacement=true; + + // OMP (facultatif) + const int NB_THREADS = OmpTools::setAndGetNaturalGranularity(); + cout << "\n[DAMIER] nbThread = " << NB_THREADS << endl;; + } + +DamierMOO::~DamierMOO(void) + { + // rien + } + +/*--------------------------------------*\ + |* Override *| + \*-------------------------------------*/ + +void DamierMOO::process(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath) + { + if (isEntrelacement) + { + entrelacementOMP(ptrTabPixels,w,h,domaineMath); // Plus lent + } + else + { + forAutoOMP(ptrTabPixels,w,h,domaineMath); // Plus rapide + } + + isEntrelacement=!isEntrelacement; // Pour tester que les deux implementations fonctionnent + } + +void DamierMOO::animationStep() + { + variateurT.varierAndGet(); + } + +/*--------------*\ + |* get *| + \*-------------*/ + +int DamierMOO::getN() + { + return n; + } + +float DamierMOO::getT() + { + return variateurT.get(); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + +/** + * Code naturel et direct OMP + */ +void DamierMOO::forAutoOMP(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath) + { + DamierMath damierMath(n); // ici pour preparer cuda + +#pragma omp parallel for + for (int i = 0; i < h; i++) + { + for (int j = 0; j < w; j++) + { + //int s = i * W + j; + int s=IndiceTools::toS(w,i,j);// i[0,H[ j[0,W[ --> s[0,W*H[ + + workPixel(&ptrTabPixels[s],i, j,s, domaineMath,&damierMath); + } + } + } + +/** + * Code entrainement Cuda + */ +void DamierMOO::entrelacementOMP(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath) + { + DamierMath damierMath(n); // ici pour preparer cuda + + const int WH=w*h; + + + +#pragma omp parallel + { + const int NB_THREAD = OmpTools::getNbThread(); // dans region parallel + + const int TID = OmpTools::getTid(); + int s = TID; // in [0,... + + int i; + int j; + while (s < WH) + { + IndiceTools::toIJ(s,w,&i,&j); // s[0,W*H[ --> i[0,H[ j[0,W[ + + workPixel(&ptrTabPixels[s],i, j,s, domaineMath,&damierMath); + + s += NB_THREAD; + } + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/** + * i in [1,h] + * j in [1,w] + * code commun � + * entrelacementOMP + * forAutoOMP + */ +void DamierMOO::workPixel(uchar4* ptrColorIJ,int i, int j,int s, const DomaineMath& domaineMath,DamierMath* ptrDamierMath) + { + DamierMath damierMath(n); // ici pour preparer cuda + + // (i,j) domaine ecran dans N2 + // (x,y) domaine math dans R2 + + double x; + double y; + + domaineMath.toXY(i, j, &x, &y); // fill (x,y) from (i,j) + + float t=variateurT.get(); + ptrDamierMath->colorXY(ptrColorIJ,x, y, domaineMath,t); // in [01] + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.h b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.h new file mode 100755 index 0000000..df015d9 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.h @@ -0,0 +1,70 @@ +#ifndef DAMIER_MOO_H_ +#define DAMIER_MOO_H_ + +#include "cudaType.h" + +#include "VariateurF.h" +#include "DomaineMath.h" +#include "DamierMath.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class DamierMOO + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + DamierMOO(unsigned int w, unsigned int h, float dt, int n); + virtual ~DamierMOO(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + void process(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath); + + int getN(); + float getT(); + + void animationStep(); + + private: + + void forAutoOMP(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath); + void entrelacementOMP(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath); + + void workPixel(uchar4* ptrColorIJ,int i, int j,int s, const DomaineMath& domaineMath,DamierMath* ptrDamierMath); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + protected: + + // Inputs + int n; + unsigned int w; + unsigned int h; + + // Tools + VariateurF variateurT; // fait varier para animation t + bool isEntrelacement; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/c_math/DamierMath.h b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/c_math/DamierMath.h new file mode 100755 index 0000000..1b68e84 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/c_math/DamierMath.h @@ -0,0 +1,85 @@ +#ifndef DAMIER_MATH_H_ +#define DAMIER_MATH_H_ + +#include "CalibreurF.h" +#include "ColorTools.h" +#include + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Dans un header only pour preparer la version cuda + */ +class DamierMath + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + /** + * calibreurColor : transformation affine entre [-1,1] (l'output de f(x,y)) et [0,1] (le spectre hsb) + */ + DamierMath(int n) : + calibreur(IntervalF(-1, 1), IntervalF(0, 1)) + { + this->n = n; + } + + virtual ~DamierMath(void) + { + // rien + } + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + void colorXY(uchar4* ptrColor, double x, double y, const DomaineMath& domaineMath, double t) + { + float z = f(x, y, t); + + calibreur.calibrer(z); + float hue01 = z; + + ColorTools::HSB_TO_RVB(hue01, ptrColor); // update color + + ptrColor->w = 255; // opaque + } + + private: + + double f(double x, double y, double t) + { + return sin(x * n + t) * cos(y * n + t); // t para animation + } + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + protected: + + // Inputs + int n; + + // Tools + CalibreurF calibreur; + + } +; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/d_provider/DamierProvider.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/d_provider/DamierProvider.cpp new file mode 100755 index 0000000..95a047d --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/d_provider/DamierProvider.cpp @@ -0,0 +1,50 @@ +#include "DamierProvider.h" +#include "MathTools.h" +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +DamierImage* DamierProvider::create(void) + { + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + int n = 2; + + // animation para + float dt = 2 * PI / 400; + + return new DamierImage(dw, dh, dt, n); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/d_provider/DamierProvider.h b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/d_provider/DamierProvider.h new file mode 100755 index 0000000..a88fb7c --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/d_provider/DamierProvider.h @@ -0,0 +1,27 @@ +#ifndef DAMIER_PROVIDER_H_ +#define DAMIER_PROVIDER_H_ + +#include "DamierImage.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class DamierProvider + { + public: + + static DamierImage* create(void); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/image/EventImage.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/image/EventImage.cpp new file mode 100755 index 0000000..f6eb327 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/image/EventImage.cpp @@ -0,0 +1,100 @@ +#include + +#include "EventImage.h" + + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +EventImage::EventImage(unsigned int w, unsigned int h) : + ImageMOOs_A(w, h) + { + control(); + } + +EventImage::~EventImage(void) + { + delete ptrKeyListener; + delete ptrMouseListener; + } + +/*--------------------------------------*\ + |* Override *| + \*-------------------------------------*/ + + +/** + * Override + * call periodicly by the api + */ +void EventImage::fillImageGL(uchar4* ptrTabPixels, int w, int h) + { + // vide + } + +/** + * Override + * call periodicly by the api + */ +void EventImage::animationStep(bool& isNeedUpdateView) + { + // rien + } + +/** + * Override + * call periodicly by the api + */ +void EventImage::paintPrimitives(Graphic2Ds& graphic2D) + { + const Font_A* ptrFont = graphic2D.getFont(TIMES_ROMAN_24); + + float r = 1; + float g = 0; + float b = 0; + graphic2D.setColorRGB(r, g, b); + + // Bottom + { + graphic2D.drawTitleBottom("API Image : Click on the windows, and look message in the console", ptrFont); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void EventImage::control(void) + { + this->ptrKeyListener = new SimpleKeyListener(); + this->ptrMouseListener = new SimpleMouseListener(); + + setKeyListener(ptrKeyListener); + setMouseListener(ptrMouseListener); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/image/EventImage.h b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/image/EventImage.h new file mode 100755 index 0000000..6b51c89 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/image/EventImage.h @@ -0,0 +1,77 @@ +#ifndef EVENT_IMAGE_H_ +#define EVENT_IMAGE_H_ + +#include "ImageMOOs_A.h" +#include "MathTools.h" +#include "SimpleKeyListener.h" +#include "SimpleMouseListener.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class EventImage: public ImageMOOs_A + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + EventImage(unsigned int w, unsigned int h); + virtual ~EventImage(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + protected: + + /*--------------------------------------*\ + |* Override *| + \*-------------------------------------*/ + + /** + * Override, call periodicly by the api + */ + virtual void fillImageGL(uchar4* ptrTabPixels, int w, int h); + + /** + * Override, call periodicly by the api + */ + virtual void animationStep(bool& isNeedUpdateView); + + /** + * Override, call by the api at each "draw" + */ + virtual void paintPrimitives(Graphic2Ds& graphic2D); + + private: + + void control(void); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Inputs + double dt; + + // Tools + double t; + SimpleKeyListener* ptrKeyListener; + SimpleMouseListener* ptrMouseListener; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + /*----------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/key/SimpleKeyListener.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/key/SimpleKeyListener.cpp new file mode 100755 index 0000000..b738487 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/key/SimpleKeyListener.cpp @@ -0,0 +1,54 @@ +#include + +#include "SimpleKeyListener.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------------*\ +|* Constructor *| + \*----------------------*/ + +SimpleKeyListener::SimpleKeyListener() + { + //rien + } + +SimpleKeyListener::~SimpleKeyListener() + { + //rien + } + +/*-----------------------*\ +|* Methode *| + \*----------------------*/ + +void SimpleKeyListener::onKeyPressed(const KeyEvent &event) + { + if (event.isSpecial()) + { + cout << "Special Key Pressed " << event.getSpecialKey() << endl; + } + else + { + cout << "KeyPressed = " << event.getKey() << endl; + } + + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/key/SimpleKeyListener.h b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/key/SimpleKeyListener.h new file mode 100755 index 0000000..5953f31 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/key/SimpleKeyListener.h @@ -0,0 +1,45 @@ +#ifndef SIMPLE_KEY_LISTENER_H +#define SIMPLE_KEY_LISTENER_H + +#include "KeyListener_I.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class SimpleKeyListener: public KeyListener_I + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + SimpleKeyListener(); + virtual ~SimpleKeyListener(); + + public: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + void onKeyPressed(const KeyEvent& event); // override + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/mouse/SimpleMouseListener.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/mouse/SimpleMouseListener.cpp new file mode 100755 index 0000000..7dbda07 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/03_Event/listener/mouse/SimpleMouseListener.cpp @@ -0,0 +1,73 @@ +#include + +#include "SimpleMouseListener.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------------*\ +|* Constructor *| + \*----------------------*/ + +SimpleMouseListener::SimpleMouseListener() + { + //rien + } + +SimpleMouseListener::~SimpleMouseListener() + { + //rien + } + +/*-----------------------*\ +|* Methode *| + \*----------------------*/ + +void SimpleMouseListener::onMouseMoved(const MouseEvent& event) + { + cout<<"[MouseMoved] : "; + printXY(event); + } + +void SimpleMouseListener::onMousePressed(const MouseEvent& event) + { + cout<<"[MousePressed] : button="< +#include + +#include "MyDisplayable.h" + +using std::cout; +using std::endl; + + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*----------------------*\ +|* Constructeur *| + \*---------------------*/ + +MyDisplayable::MyDisplayable():variateur(IntervalF(0 ,1), 0.01) + { + animationStep(); + } + +MyDisplayable::~MyDisplayable() + { + // rien + } + +/*----------------------*\ +|* Methodes *| + \*---------------------*/ + +/*-----------*\ +|* Override *| + \*----------*/ + +/** + * Override + */ +void MyDisplayable::reshape(Panel_A &panel, int w, int h) + { + glViewport(0, 0, w, h); + + //Projection + glMatrixMode (GL_PROJECTION); + glLoadIdentity(); + double fovy = 45; + if (h <= 0) + { + h = 1; + } + double ratio = w / h; + + gluPerspective(fovy, ratio, 1, 10); + + //Camera + glMatrixMode (GL_MODELVIEW); + glLoadIdentity(); + gluLookAt(0, 0, 3, 0, 0, 0, 0, 1, 0); + } + +/** + * Override + * + * Animation: + * Pour une animation, en fenetrage glut, il faut deriver de + * + * GLUTWindow + * + * Puis redéfinir IdlFunc, et faire un repaint dedans + */ +void MyDisplayable::display(Panel_A &panel) + { + glEnable (GL_DEPTH_TEST); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + + glPushMatrix(); + + animationStep(); + drawScene3D(); + + glPopMatrix(); + glFinish(); + } + +/** + * Override + */ +void MyDisplayable::init(Panel_A &panel) + { + // Create OpenGL resources here (Textures,VBO,PBO,Shaders...) + } + +/** + * Override + */ +void MyDisplayable::release(Panel_A &panel) + { + //Freen OpenGL resources here! + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void MyDisplayable::drawScene3D() + { + glBegin (GL_TRIANGLES); + + glColor3f(1, 0, 0); + glVertex3f(-1, -1, 0); + glColor3f(0, 1, 0); + glVertex3f(1, -1, 0); + glColor3f(0, 0, 1); + glVertex3f(0, py, 0); + + glEnd(); + } + +void MyDisplayable::animationStep() + { + py=variateur.varierAndGet(); + + // cout<<"[MyDisplayable] : py = "< + * Quoi : Code OpenGL standard (une scene 3D par exemple + * But : Utiliser l'api Imgage et du code OpenGL standard, par exemple dans 2 fen�tre diff�rents + * Technique : Utiliser les viewers de l'api image qui se charge du fen�trage (freeglut, x11, qt, ...) + * Consequence : Pas de trace de freeglut par exemple + * En particulier, pas de trace de idel de freeglut qui s'occupe des animations + * + */ +class MyDisplayable: public Displayable_A + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + MyDisplayable(); + virtual ~MyDisplayable(); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + /** + * Override + */ + void init(Panel_A &panel); + + /** + * Override + */ + void reshape(Panel_A &panel, int w, int h); + + /** + * Override + */ + void display(Panel_A &panel); + + /** + * Override + */ + void release(Panel_A &panel); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + void drawScene3D(); + void animationStep(); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Tools + float py; // para animation + VariateurF variateur; // pour animation + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.cpp b/WCudaMSE/Tuto_Image/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.cpp new file mode 100755 index 0000000..4e07e55 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.cpp @@ -0,0 +1,43 @@ +#include "MyDisplayableProvider.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +Displayable_A* MyDisplayableProvider::createGL() + { + return new MyDisplayable(); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.h b/WCudaMSE/Tuto_Image/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.h new file mode 100755 index 0000000..f56ec15 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.h @@ -0,0 +1,28 @@ +#ifndef MY_DISPLAYABLE_PROVIDER_H_ +#define MY_DISPLAYABLE_PROVIDER_H_ + +#include "MyDisplayable.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class MyDisplayableProvider + { + public: + + static Displayable_A* createGL(void); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image/src/cpp/main.cpp b/WCudaMSE/Tuto_Image/src/cpp/main.cpp new file mode 100755 index 0000000..3323c34 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/main.cpp @@ -0,0 +1,95 @@ +#include + +#include "GLUTImageViewers.h" + +#include "VagueProvider.h" +#include "DamierProvider.h" +#include "EventProvider.h" + +#include "MyDisplayableProvider.h" +#include "MyGLUTWindow.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static int mainGL(void); + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv) + { + cout << "main" << endl; + + GLUTImageViewers::init(argc, argv); // call once + + return mainGL(); // Bloquant, Tant qu'une fenetre est ouverte + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +int mainGL(void) + { + bool isAnimation = true; + bool isSelectionEnable = true; + + VagueImage* ptrVague = VagueProvider::create(); + DamierImage* ptrDamier = DamierProvider::create(); + EventImage* ptrEvent = EventProvider::create(); + + // ImageViewer + GLUTImageViewers vagueViewer(ptrVague, isAnimation, false, 0, 0); + GLUTImageViewers damierViewer(ptrDamier, isAnimation, isSelectionEnable, 40, 40); + GLUTImageViewers eventViewer(ptrEvent, isAnimation, false, 80, 80); + // Insert here other ImageViewer ... + + // OpenGLViewer (Advanced) + Displayable_A* ptrMyDisplayable = MyDisplayableProvider::createGL(); + MyGLUTWindow myGlutWindow(ptrMyDisplayable, "Triangle OpenGL Custom Displayable", 600, 600, 100, 100); // scene OpenGL // (w,h,px,py) + + GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte + + // destruction + { + delete ptrVague; + delete ptrDamier; + delete ptrEvent; + + ptrVague = nullptr; + ptrDamier = nullptr; + ptrEvent = nullptr; + } + + return EXIT_SUCCESS; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/.project b/WCudaMSE/Tuto_Image_Cuda/.project new file mode 100755 index 0000000..fc36601 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/.project @@ -0,0 +1,79 @@ + + + Tuto_Image_Cuda + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f cudaWin.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Tuto_Image_Cuda/cudaLinux.mk b/WCudaMSE/Tuto_Image_Cuda/cudaLinux.mk new file mode 100755 index 0000000..9d18821 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/cudaLinux.mk @@ -0,0 +1,45 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Notes +# +# (N1) Les options de compilation sont souvent les memes d'un projet à l'autre. +# Ces options communes à tout le workspace se trouve daan la partie public du projet BUILDER. +# +# (N2) Vous pouvez redefinir ou surcharger ces options dans ce present .mk pour customizer un projet spécifique. +# +# (N3) Pour modifier la configuration de tous vos projets, modifier directement les .mk generiques dans le BUILDER +# + +############################################### +# Cuda Visual # +############################################### + +######################## +# public # +######################## + +######### +# visual# +######### + +CXXFLAGS+= +CXXLDFLAGS+= + +######### +# nvcc # +######### + +#NVCCFLAGS+= --ptxas-options=-v +NVCCLDFLAGS+= + +######### +# plus # +######### + +CODE_DEFINE_VARIABLES+= + +############################################### +# End # +############################################### + diff --git a/WCudaMSE/Tuto_Image_Cuda/cudaVisual.mk b/WCudaMSE/Tuto_Image_Cuda/cudaVisual.mk new file mode 100755 index 0000000..ad909cc --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/cudaVisual.mk @@ -0,0 +1,44 @@ +# Version : 0.0.1 +# Author : Cedric.Bilat@he-arc.ch +# +# Notes +# +# (N1) Les options de compilation sont souvent les memes d'un projet à l'autre. +# Ces options communes à tout le workspace se trouve daan la partie public du projet BUILDER. +# +# (N2) Vous pouvez redefinir ou surcharger ces options dans ce present .mk pour customizer un projet spécifique. +# +# (N3) Pour modifier la configuration de tous vos projets, modifier directement les .mk generiques dans le BUILDER +# + +############################################### +# Cuda Visual # +############################################### + +######################## +# public # +######################## + +######### +# visual# +######### + +CXXFLAGS+= +CXXLDFLAGS+= + +######### +# nvcc # +######### + +#NVCCFLAGS+= --ptxas-options=-v +NVCCLDFLAGS+= + +######### +# plus # +######### + +CODE_DEFINE_VARIABLES+= + +############################################### +# End # +############################################### diff --git a/WCudaMSE/Tuto_Image_Cuda/dataProject.mk b/WCudaMSE/Tuto_Image_Cuda/dataProject.mk new file mode 100755 index 0000000..dc48a9b --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/dataProject.mk @@ -0,0 +1,76 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Tuto_Image_Cuda + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_Cuda/src/core +SRC_AUX+= ../BilatTools_Cuda_Image/src/core +SRC_AUX+= ../BilatTools_Cuda_smart_switch/src/core + + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# Usage : -include $(API)/XXX.mk +# Mimimum : empty + +include $(API_CUDA)/bilat_Image_FreeGlut_Cuda.mk + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/01_imageAPI/Vague0Image.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/01_imageAPI/Vague0Image.cpp new file mode 100755 index 0000000..c91d361 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/01_imageAPI/Vague0Image.cpp @@ -0,0 +1,110 @@ +#include +#include +#include + +#include "MathTools.h" +#include "Vague0Image.h" +#include "StringTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void launchKernelVague0(uchar4* ptrDevPixels, int w, int h, float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +Vague0Image::Vague0Image(unsigned int w, unsigned int h, float dt) : + ImageMOOs_A(w, h) + { + assert(getW() == getH()); // image carrer + + // Input + this->dt = dt; + + // Tools + this->t = 0; + } + +Vague0Image::~Vague0Image(void) + { + // rien + } + +/*--------------------------------------*\ + |* Override *| + \*-------------------------------------*/ + +/** + * Override + * Call automaticly by the api + */ +void Vague0Image::animationStep(bool& isNeedUpdateView) + { + this->t += dt; + isNeedUpdateView = true; // true par default + } + +/** + * Override + * Call automaticly by the api + */ +void Vague0Image::fillImageGL(uchar4* ptrDevImageGL, int w, int h) + { + launchKernelVague0(ptrDevImageGL, w, h, t); + } + +/** + * Override + * Call automaticly by the api + */ +void Vague0Image::paintPrimitives(Graphic2Ds& graphic2D) + { + const Font_A* ptrFont = graphic2D.getFont(TIMES_ROMAN_24); + + float r = 1; + float g = 0; + float b = 0; + + graphic2D.setColorRGB(r, g, b); + + // top + { + string message = "t = " + StringTools::toString(t); + graphic2D.drawTitleTop(message, ptrFont); + } + + // bottom + { + graphic2D.drawTitleBottom("[API Image Cuda] : VagueImage warmup CUDA", ptrFont); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/01_imageAPI/Vague0Image.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/01_imageAPI/Vague0Image.h new file mode 100755 index 0000000..dba0119 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/01_imageAPI/Vague0Image.h @@ -0,0 +1,66 @@ +#ifndef VAGUE_0_IMAGE_H_ +#define VAGUE_0_IMAGE_H_ + +#include "ImageMOOs_A.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Vague0Image: public ImageMOOs_A + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + Vague0Image(unsigned int w, unsigned int h, float dt = 2 * PI / 1000); + virtual ~Vague0Image(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override, call periodicly by the api + */ + virtual void fillImageGL(uchar4* ptrDevImageGL, int w, int h); + + /** + * Override, call periodicly by the api + */ + virtual void animationStep(bool& isNeedUpdateView); + + /** + * Override, call periodicly by the api + */ + virtual void paintPrimitives(Graphic2Ds& graphic2D); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + double dt; + double t; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/02_cuda/vague0.cu b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/02_cuda/vague0.cu new file mode 100755 index 0000000..0f55f38 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/02_cuda/vague0.cu @@ -0,0 +1,86 @@ +#include +#include + +#include "Indice2D.h" +#include "IndiceTools.h" +#include "cudaTools.h" +#include "Device.h" + +#include "Vague0Math.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static __global__ void vague0(uchar4* ptrDevPixels,int w, int h,float t); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void launchKernelVague0(uchar4* ptrDevPixels, int w, int h, float t) + { + dim3 dg = dim3(8, 8, 1); // disons, a optimiser !! + dim3 db = dim3(16, 16, 1); // disons, a optimiser !! + + //Device::print(dg, db); + Device::checkDimError(dg,db); + + vague0<<>>(ptrDevPixels,w,h,t); + Device::checkKernelError("vague0"); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +__global__ void vague0(uchar4* ptrDevPixels, int w, int h, float t) + { + Vague0Math vague0Math = Vague0Math(w, h); + + const int TID = Indice2D::tid(); + const int NB_THREAD = Indice2D::nbThread(); + + const int WH=w*h; + + uchar4 color; + + int pixelI; + int pixelJ; + + int s = TID; + while (s < WH) + { + IndiceTools::toIJ(s, w, &pixelI, &pixelJ); // update (pixelI, pixelJ) + + vague0Math.colorIJ(&color,pixelI, pixelJ, t); // update color + ptrDevPixels[s] = color; + + s += NB_THREAD; + } + } + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/03_math/Vague0Math.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/03_math/Vague0Math.h new file mode 100755 index 0000000..83eedf3 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/03_math/Vague0Math.h @@ -0,0 +1,83 @@ +#ifndef VAGUE_0_MATH_ +#define VAGUE_0_MATH_ + +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Vague0Math + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + __device__ Vague0Math(int w, int h) + { + this->factor = 4 * PI / (float) w; + } + + __device__ Vague0Math(const Vague0Math& source) + { + // rien + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * x=pixelI + * y=pixelJ + */ + __device__ + void colorIJ(uchar4* ptrColor, int i, int j, float t) + { + unsigned char levelGris; + + f(levelGris,i, j, t); // update levelGris + + ptrColor->x = levelGris; + ptrColor->y = levelGris; + ptrColor->z = levelGris; + + ptrColor->w = 255; // opaque + } + + private: + + __device__ + void f(unsigned char& levelGris,int i, int j, float t) + { + // Example1 + //unsigned char levelGris= 255 * abs(sin(t)); // same color for all the image (Hello image) + + // Example2 + levelGris = 255 * fabs(sin(i * factor + t)); + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + float factor; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/Vague0Provider.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/Vague0Provider.h new file mode 100755 index 0000000..e9b6fc1 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/Vague0Provider.h @@ -0,0 +1,35 @@ +#ifndef VAGUE_0L_PROVIDER_H_ +#define VAGUE_0L_PROVIDER_H_ + +#include "Vague0Image.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Vague0Provider + { + public: + + static Vague0Image* createGL(void) + { + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + float dt = 2 * PI / 1000; // animation para + + return new Vague0Image(dw, dh, dt); + } + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/vague0FreeGL.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/vague0FreeGL.cpp new file mode 100755 index 0000000..907c40b --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/00_Vague_warmup/vague0FreeGL.cpp @@ -0,0 +1,88 @@ +#include + +#include "cudaTools.h" +#include "Device.h" +#include "MathTools.h" + +#include "Chronos.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void launchKernelVague0(uchar4* ptrDevPixels, int w, int h, float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int vague0FreeGL(int itmax=1000); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Hyp: itmax suffisamment grand pour que timeElapse soit significatif + */ +int vague0FreeGL(int itmax) + { + cout<<"\n[Vague0] : FreeGL running ..."<factor = 4 * PI / (float) w; + } + + __device__ VagueMath(const VagueMath& source) + { + // rien + } + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * x=pixelI + * y=pixelJ + */ + __device__ + void colorIJ(uchar4* ptrColor, int i, int j, float t) + { + unsigned char levelGris; + + f(levelGris, i, j, t); // update levelGris + + ptrColor->x = levelGris; + ptrColor->y = levelGris; + ptrColor->z = levelGris; + + ptrColor->w = 255; // opaque + } + + private: + + __device__ + void f(unsigned char& levelGris, int i, int j, float t) + { + // Example1 + //unsigned char levelGris= 255 * abs(sin(t)); // same color for all the image (Hello image) + + // Example2 + levelGris = 255 * fabs(sin(i * factor + t)); + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + double factor; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.cu b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.cu new file mode 100755 index 0000000..db72268 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.cu @@ -0,0 +1,133 @@ +#include +#include + +#include "Vague.h" +#include "Device.h" +#include "MathTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern __global__ void vague(uchar4* ptrDevPixels,int w, int h,float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-------------------------*\ + |* Constructeur *| + \*-------------------------*/ + +Vague::Vague(int w, int h,float dt) + { + // Inputs + this->w = w; + this->h = h; + this->dt=dt; + + // Tools + this->dg = dim3(8, 8, 1); // disons a optimiser + this->db = dim3(16, 16, 1); // disons a optimiser + this->t=0; + + //Outputs + this->title="[API Image Cuda] : Vague CUDA"; + + // Check: + //print(dg, db); + Device::assertDim(dg, db); + assert(w== h); + + cout << endl<<"[CBI] Vague dt =" << dt; + } + +Vague::~Vague() + { + // rien + } + +/*-------------------------*\ + |* Methode *| + \*-------------------------*/ + +/** + * Override + * Call periodicly by the API + */ +void Vague::animationStep() + { + t+=dt; + } + +/** + * Override + */ +void Vague::runGPU(uchar4* ptrDevPixels) + { + vague<<>>(ptrDevPixels,w,h,t); + } + +/*--------------*\ + |* get *| + \*--------------*/ + +/** + * Override + */ +float Vague::getT(void) + { + return t; + } + +/** + * Override + */ +int Vague::getW(void) + { + return w; + } + +/** + * Override + */ +int Vague::getH(void) + { + return h; + } + +/** + * Override + */ +string Vague::getTitle(void) + { + return title; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.h new file mode 100755 index 0000000..b2f2acd --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.h @@ -0,0 +1,75 @@ +#ifndef VAGUE_H_ +#define VAGUE_H_ + +#include "cudaTools.h" +#include "Animable_I.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Vague: public Animable_I + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Vague(int w, int h, float dt = 2 * PI / 1000); + virtual ~Vague(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override + * Call periodicly by the API + */ + virtual void animationStep(void); + + virtual void runGPU(uchar4* ptrDevPixels); // Override + + virtual float getT(void); // Override + virtual int getW(void); // Override + virtual int getH(void); // Override + + virtual string getTitle(void); // Override + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int w; + int h; + float dt; + + // Tools + dim3 dg; + dim3 db; + float t; + + //Outputs + string title; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/provider/VagueProvider.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/provider/VagueProvider.cpp new file mode 100755 index 0000000..46deca5 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/provider/VagueProvider.cpp @@ -0,0 +1,53 @@ +#include "VagueProvider.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +Vague* VagueProvider::create() + { + float dt = 2*PI/1000; + + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + return new Vague(dw, dh, dt); + } + + Image* VagueProvider::createGL(void) + { + return new Image(create()); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/provider/VagueProvider.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/provider/VagueProvider.h new file mode 100755 index 0000000..ebe9857 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/provider/VagueProvider.h @@ -0,0 +1,30 @@ +#ifndef VAGUE_PROVIDER_H_ +#define VAGUE_PROVIDER_H_ + +#include "Vague.h" +#include "Image.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class VagueProvider + { + public: + + static Vague* create(void); + static Image* createGL(void); + + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/device/damierDevice.cu b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/device/damierDevice.cu new file mode 100755 index 0000000..e25d726 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/device/damierDevice.cu @@ -0,0 +1,80 @@ +#include "Indice2D.h" +#include "IndiceTools.h" +#include "DomaineMath.h" +#include "cudaTools.h" +#include "Device.h" +#include "DamierMath.h" + + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +__global__ void damier(uchar4* ptrDevPixels,int w, int h,DomaineMath domaineMath, int n,float t); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +__global__ void damier(uchar4* ptrDevPixels, int w, int h, DomaineMath domaineMath, int n, float t) + { + DamierMath damierMath = DamierMath(n); + + const int TID = Indice2D::tid(); + const int NB_THREAD = Indice2D::nbThread(); + + const int WH=w*h; + + uchar4 color; + + double x; + double y; + + int pixelI; + int pixelJ; + + int s = TID; + while (s < WH) + { + IndiceTools::toIJ(s, w, &pixelI, &pixelJ); // update (pixelI, pixelJ) + + // (i,j) domaine ecran + // (x,y) domaine math + domaineMath.toXY(pixelI, pixelJ, &x, &y); // (i,j) -> (x,y) + + damierMath.colorXY(&color,x, y,t); // update color + + ptrDevPixels[s] = color; + + s += NB_THREAD; + } + + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/device/math/DamierMath.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/device/math/DamierMath.h new file mode 100755 index 0000000..30a6c62 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/device/math/DamierMath.h @@ -0,0 +1,92 @@ +#ifndef DAMIER_MATH_H_ +#define DAMIER_MATH_H_ + +#include + +#include "CalibreurF.h" +#include "ColorTools.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + +class DamierMath + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + __device__ + DamierMath(int n):calibreur(IntervalF(-1, 1), IntervalF(0, 1)) + { + this->n = n; + } + + // constructeur copie automatique car pas pointeur dans + // DamierMath + // calibreur + // IntervalF + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * x=pixelI + * y=pixelJ + */ + __device__ + void colorXY(uchar4* ptrColor,float x, float y,float t) + { + float z = f(x, y,t); + + calibreur.calibrer(z); + float hue01 = z; + + ColorTools::HSB_TO_RVB(hue01,ptrColor); // update color + + ptrColor->w = 255; // opaque + } + + private: + + __device__ + float f(float x, float y,float t) + { + return sin(x * n + t) * cos(y * n + t); + } + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Input + int n; + + // Tools + CalibreurF calibreur; + + }; + + + +#endif + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.cu b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.cu new file mode 100755 index 0000000..52ba530 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.cu @@ -0,0 +1,136 @@ +#include + +#include "Damier.h" +#include "Device.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +__global__ void damier(uchar4* ptrDevPixels, int w, int h, DomaineMath domaineMath, int n, float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-------------------------*\ + |* Constructeur *| + \*-------------------------*/ + +Damier::Damier(int w, int h, float dt, int n) : + variateurAnimation(IntervalF(0, 2 * PI), dt) + { + // Inputs + this->w = w; + this->h = h; + this->n = n; + + // Tools + this->dg = dim3(8, 8, 1); // disons a optimiser + this->db = dim3(16, 16, 1); // disons a optimiser + this->t = 0; + ptrDomaineMathInit=new DomaineMath(0,0,2*PI,2*PI); + + //Outputs + this->title = "[API Image Fonctionelle] : Damier zoomable CUDA"; + + // Check: + //print(dg, db); + Device::assertDim(dg, db); + assert(w == h); + } + +Damier::~Damier() + { + delete ptrDomaineMathInit; + } + +/*-------------------------*\ + |* Methode *| + \*-------------------------*/ + +/** + * Override + */ +void Damier::animationStep() + { + this->t = variateurAnimation.varierAndGet(); // in [0,2pi] + } + +/** + * Override + */ +void Damier::runGPU(uchar4* ptrDevPixels, const DomaineMath& domaineMath) + { + damier<<>>(ptrDevPixels,w,h,domaineMath,n,t); + } + +/*--------------*\ + |* get *| + \*--------------*/ + +/** + * Override + */ +DomaineMath* Damier::getDomaineMathInit(void) + { + return ptrDomaineMathInit; + } + +/** + * Override + */ +float Damier::getT(void) + { + return t; + } + +/** + * Override + */ +int Damier::getW(void) + { + return w; + } + +/** + * Override + */ +int Damier::getH(void) + { + return h; + } + +/** + * Override + */ +string Damier::getTitle(void) + { + return title; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.h new file mode 100755 index 0000000..deff214 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.h @@ -0,0 +1,84 @@ +#ifndef DAMIER_H_ +#define HELLO_FONCTIONEL_H_ + +#include "cudaTools.h" +#include "AnimableFonctionel_I.h" +#include "MathTools.h" +#include "VariateurF.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Damier: public AnimableFonctionel_I + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Damier(int w, int h, float dt, int n); + virtual ~Damier(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + + /** + * Override + * Call periodicly by the API + */ + virtual void animationStep(void); + + void runGPU(uchar4* ptrDevPixels, const DomaineMath& domaineMath); // Override + + /** + * Para animation + */ + float getT(void); // Override + int getW(void); // Override + int getH(void); // Override + DomaineMath* getDomaineMathInit(void); // Override + string getTitle(void); // Override + + + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int w; + int h; + int n; + + // Tools + dim3 dg; + dim3 db; + float t; // para animation + VariateurF variateurAnimation; // varier t + DomaineMath* ptrDomaineMathInit; + + //Outputs + string title; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/provider/DamierProvider.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/provider/DamierProvider.cpp new file mode 100755 index 0000000..9510e62 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/provider/DamierProvider.cpp @@ -0,0 +1,56 @@ +#include "DamierProvider.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +Damier* DamierProvider::create() + { + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + float dt = 2 * PI / 8000; + int n = 2; + + return new Damier(dw, dh, dt, n); + } + +ImageFonctionel* DamierProvider::createGL(void) + { + ColorRGB_01* ptrColorTitre=new ColorRGB_01(0,0,0); + + return new ImageFonctionel(create(),ptrColorTitre); // both ptr destroy by destructor of ImageFonctionel + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/provider/DamierProvider.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/provider/DamierProvider.h new file mode 100755 index 0000000..35fed26 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/provider/DamierProvider.h @@ -0,0 +1,30 @@ +#ifndef DAMIER_PROVIDER_H_ +#define DAMIER_PROVIDER_H_ + +#include "Damier.h" +#include "ImageFonctionel.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class DamierProvider + { + public: + + static Damier* create(void); + static ImageFonctionel* createGL(void); + + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/EventImage.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/EventImage.cpp new file mode 100755 index 0000000..63f164b --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/EventImage.cpp @@ -0,0 +1,59 @@ +#include + +#include "EventImage.h" +#include "SimpleKeyListener.h" +#include "SimpleMouseListener.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +EventImage::EventImage(Event* ptrEvent) : + ImageFonctionel(ptrEvent) + { + control(); + } + +EventImage::~EventImage(void) + { + delete ptrKeyListener; + delete ptrMouseListener; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void EventImage::control(void) + { + this->ptrKeyListener = new SimpleKeyListener(); + this->ptrMouseListener = new SimpleMouseListener(); + + setKeyListener(ptrKeyListener); + setMouseListener(ptrMouseListener); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/EventImage.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/EventImage.h new file mode 100755 index 0000000..2239bf6 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/EventImage.h @@ -0,0 +1,55 @@ +#ifndef EVENT_IMAGE_H_ +#define EVENT_IMAGE_H_ + +#include "Event.h" +#include "ImageFonctionel.h" +#include "SimpleKeyListener.h" +#include "SimpleMouseListener.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class EventImage: public ImageFonctionel + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + + EventImage(Event* ptrEvent); + + + virtual ~EventImage(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + private: + + void control(void); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Tools + SimpleKeyListener* ptrKeyListener; + SimpleMouseListener* ptrMouseListener; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/key/SimpleKeyListener.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/key/SimpleKeyListener.cpp new file mode 100755 index 0000000..b738487 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/key/SimpleKeyListener.cpp @@ -0,0 +1,54 @@ +#include + +#include "SimpleKeyListener.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------------*\ +|* Constructor *| + \*----------------------*/ + +SimpleKeyListener::SimpleKeyListener() + { + //rien + } + +SimpleKeyListener::~SimpleKeyListener() + { + //rien + } + +/*-----------------------*\ +|* Methode *| + \*----------------------*/ + +void SimpleKeyListener::onKeyPressed(const KeyEvent &event) + { + if (event.isSpecial()) + { + cout << "Special Key Pressed " << event.getSpecialKey() << endl; + } + else + { + cout << "KeyPressed = " << event.getKey() << endl; + } + + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/key/SimpleKeyListener.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/key/SimpleKeyListener.h new file mode 100755 index 0000000..5953f31 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/key/SimpleKeyListener.h @@ -0,0 +1,45 @@ +#ifndef SIMPLE_KEY_LISTENER_H +#define SIMPLE_KEY_LISTENER_H + +#include "KeyListener_I.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class SimpleKeyListener: public KeyListener_I + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + SimpleKeyListener(); + virtual ~SimpleKeyListener(); + + public: + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + void onKeyPressed(const KeyEvent& event); // override + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/mouse/SimpleMouseListener.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/mouse/SimpleMouseListener.cpp new file mode 100755 index 0000000..7dbda07 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/gl/listener/mouse/SimpleMouseListener.cpp @@ -0,0 +1,73 @@ +#include + +#include "SimpleMouseListener.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------------*\ +|* Constructor *| + \*----------------------*/ + +SimpleMouseListener::SimpleMouseListener() + { + //rien + } + +SimpleMouseListener::~SimpleMouseListener() + { + //rien + } + +/*-----------------------*\ +|* Methode *| + \*----------------------*/ + +void SimpleMouseListener::onMouseMoved(const MouseEvent& event) + { + cout<<"[MouseMoved] : "; + printXY(event); + } + +void SimpleMouseListener::onMousePressed(const MouseEvent& event) + { + cout<<"[MousePressed] : button="< +#include + +#include "Event.h" +#include "Device.h" +#include "MathTools.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern __global__ void event(uchar4* ptrDevPixels,int w, int h,DomaineMath domaineMath,float t); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-------------------------*\ + |* Constructeur *| + \*-------------------------*/ + +Event::Event(int w, int h, float dt) + { + // Inputs + this->w = w; + this->h = h; + + // Tools + this->dg = dim3(8, 8, 1); // disons a optimiser + this->db = dim3(16, 16, 1); // disons a optimiser + this->t = 0; + ptrDomaineMathInit = new DomaineMath(0, 0, 10, 10); + + //Outputs + this->title = "[API Image Cuda] : Event Window, try to clik on the window, and look console"; + + // Check: + //print(dg, db); + Device::assertDim(dg, db); + + } + +Event::~Event() + { + // rien + } + +/*-------------------------*\ + |* Methode *| + \*-------------------------*/ + +/** + * Override + */ +void Event::animationStep() + { + // rien + } + +/** + * Override + */ +void Event::runGPU(uchar4* ptrDevPixels, const DomaineMath& domaineMath) + { + event<<>>(ptrDevPixels,w,h,domaineMath,t); + } + +/*--------------*\ + |* get *| + \*--------------*/ + + +/** + * Override + */ +DomaineMath* Event::getDomaineMathInit(void) + { + return ptrDomaineMathInit; + } + +/** + * Override + */ +float Event::getT(void) + { + return t; + } + +/** + * Override + */ +int Event::getW(void) + { + return w; + } + +/** + * Override + */ +int Event::getH(void) + { + return h; + } + +/** + * Override + */ +string Event::getTitle(void) + { + return title; + } + + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/moo/host/Event.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/moo/host/Event.h new file mode 100755 index 0000000..2298e09 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/moo/host/Event.h @@ -0,0 +1,70 @@ +#ifndef EVENT_H_ +#define EVENT_H_ + +#include "cudaTools.h" +#include "AnimableFonctionel_I.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Event: public AnimableFonctionel_I + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Event(int w,int h,float dt= 2*PI/1000); + virtual ~Event(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void runGPU(uchar4* ptrDevPixels,const DomaineMath& domaineMath); // Override + void animationStep(void); // Overrideb + + float getT(void);// Override + int getW(void);// Override + int getH(void);// Override + DomaineMath* getDomaineMathInit(void);// Override + string getTitle(void);// Override + + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int w; + int h; + float dt; + + // Tools + dim3 dg; + dim3 db; + float t; + DomaineMath* ptrDomaineMathInit; + + //Outputs + string title; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/provider/EventProvider.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/provider/EventProvider.cpp new file mode 100755 index 0000000..d26a2e8 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/provider/EventProvider.cpp @@ -0,0 +1,51 @@ +#include "EventProvider.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +Event* EventProvider::create() + { + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + return new Event(dw, dh); + } + +EventImage* EventProvider::createGL(void) + { + return new EventImage(create()); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/provider/EventProvider.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/provider/EventProvider.h new file mode 100755 index 0000000..092a3d3 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/provider/EventProvider.h @@ -0,0 +1,29 @@ +#ifndef EVENT_PROVIDER_H_ +#define EVENT_PROVIDER_H_ + +#include "Event.h" +#include "EventImage.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class EventProvider + { + public: + + static Event* create(void); + static EventImage* createGL(void); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/glut/MyGLUTWindow.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/glut/MyGLUTWindow.cpp new file mode 100755 index 0000000..527bee2 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/glut/MyGLUTWindow.cpp @@ -0,0 +1,41 @@ +#include "MyGLUTWindow.h" + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ +|* Constructor *| + \*-------------------------------------*/ + +MyGLUTWindow::MyGLUTWindow(Displayable_A* ptrDisplayable, string title, int width, int height, int pxFrame, int pyFrame) : + GLUTWindow(ptrDisplayable, title, width, height, pxFrame, pyFrame) + { + + } + +/*--------------------------------------*\ +|* Destructor *| + \*-------------------------------------*/ + +MyGLUTWindow::~MyGLUTWindow() + { + //Rien + } + +/*--------------------------------------*\ +|* Surcharge *| + \*-------------------------------------*/ + +/** + * Override pour animation, appeler repaint + */ +void MyGLUTWindow::idleFunc() + { + repaint(); + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/glut/MyGLUTWindow.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/glut/MyGLUTWindow.h new file mode 100755 index 0000000..f1efa40 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/glut/MyGLUTWindow.h @@ -0,0 +1,44 @@ +#ifndef MYGLUTWINDOW_H_ +#define MYGLUTWINDOW_H_ + +#include "GLUTWindow.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class MyGLUTWindow: public GLUTWindow + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + MyGLUTWindow(Displayable_A* ptrDisplayable, string title, int width, int height, int pxFrame = 0, int pyFrame = 0); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~MyGLUTWindow(); + + /*--------------------------------------*\ + |* Surcharge *| + \*-------------------------------------*/ + + /** + * Override pour animation, appeler repaint + */ + virtual void idleFunc(); + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/opengl/MyDisplayable.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/opengl/MyDisplayable.cpp new file mode 100755 index 0000000..73e45e6 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/opengl/MyDisplayable.cpp @@ -0,0 +1,135 @@ +#include +#include + +#include "MyDisplayable.h" + +using std::cout; +using std::endl; + + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*----------------------*\ +|* Constructeur *| + \*---------------------*/ + +MyDisplayable::MyDisplayable():variateur(IntervalF(0 ,1), 0.01) + { + animationStep(); + } + +MyDisplayable::~MyDisplayable() + { + // rien + } + +/*----------------------*\ +|* Methodes *| + \*---------------------*/ + +/*-----------*\ +|* Override *| + \*----------*/ + +/** + * Override + */ +void MyDisplayable::reshape(Panel_A &panel, int w, int h) + { + glViewport(0, 0, w, h); + + //Projection + glMatrixMode (GL_PROJECTION); + glLoadIdentity(); + double fovy = 45; + if (h <= 0) + { + h = 1; + } + double ratio = w / h; + + gluPerspective(fovy, ratio, 1, 10); + + //Camera + glMatrixMode (GL_MODELVIEW); + glLoadIdentity(); + gluLookAt(0, 0, 3, 0, 0, 0, 0, 1, 0); + } + +/** + * Override + * + * Animation: + * Pour une animation, en fenetrage glut, il faut deriver de + * + * GLUTWindow + * + * Puis redéfinir IdlFunc, et faire un repaint dedans + */ +void MyDisplayable::display(Panel_A &panel) + { + glEnable (GL_DEPTH_TEST); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + + glPushMatrix(); + + animationStep(); + drawScene3D(); + + glPopMatrix(); + glFinish(); + } + +/** + * Override + */ +void MyDisplayable::init(Panel_A &panel) + { + // Create OpenGL resources here (Textures,VBO,PBO,Shaders...) + } + +/** + * Override + */ +void MyDisplayable::release(Panel_A &panel) + { + //Freen OpenGL resources here! + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void MyDisplayable::drawScene3D() + { + glBegin (GL_TRIANGLES); + + glColor3f(1, 0, 0); + glVertex3f(-1, -1, 0); + glColor3f(0, 1, 0); + glVertex3f(1, -1, 0); + glColor3f(0, 0, 1); + glVertex3f(0, py, 0); + + glEnd(); + } + +void MyDisplayable::animationStep() + { + py=variateur.varierAndGet(); + + // cout<<"[MyDisplayable] : py = "< + * Quoi : Code OpenGL standard (une scene 3D par exemple + * But : Utiliser l'api Imgage et du code OpenGL standard, par exemple dans 2 fen�tre diff�rents + * Technique : Utiliser les viewers de l'api image qui se charge du fen�trage (freeglut, x11, qt, ...) + * Consequence : Pas de trace de freeglut par exemple + * En particulier, pas de trace de idel de freeglut qui s'occupe des animations + * + */ +class MyDisplayable: public Displayable_A + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + MyDisplayable(); + virtual ~MyDisplayable(); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + /** + * Override + */ + void init(Panel_A &panel); + + /** + * Override + */ + void reshape(Panel_A &panel, int w, int h); + + /** + * Override + */ + void display(Panel_A &panel); + + /** + * Override + */ + void release(Panel_A &panel); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + void drawScene3D(); + void animationStep(); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Tools + float py; // para animation + VariateurF variateur; // pour animation + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.cpp new file mode 100755 index 0000000..4e07e55 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.cpp @@ -0,0 +1,43 @@ +#include "MyDisplayableProvider.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*-----------------*\ + |* static *| + \*----------------*/ + +Displayable_A* MyDisplayableProvider::createGL() + { + return new MyDisplayable(); + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.h new file mode 100755 index 0000000..f56ec15 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/04_OpenGL_pure/provider/MyDisplayableProvider.h @@ -0,0 +1,28 @@ +#ifndef MY_DISPLAYABLE_PROVIDER_H_ +#define MY_DISPLAYABLE_PROVIDER_H_ + +#include "MyDisplayable.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class MyDisplayableProvider + { + public: + + static Displayable_A* createGL(void); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/mainFreeGL.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/mainFreeGL.cpp new file mode 100755 index 0000000..deedda1 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/mainFreeGL.cpp @@ -0,0 +1,66 @@ +#include +#include + +#include "AnimateurFreeGL.h" +#include "AnimateurFonctionelFreeGL.h" + +#include "VagueProvider.h" +#include "DamierProvider.h" +#include "EventProvider.h" + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern int vague0FreeGL(int itmax); // bad technique + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainFreeGL(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainFreeGL(void) + { + cout << "\n[FPS] : Free GL, please wait ..." << endl; + + vague0FreeGL(1000); // bad technique + + Vague* ptrVague = VagueProvider::create(); // good technique + Damier* ptrDamier = DamierProvider::create(); + Event* ptrEvent = EventProvider::create(); + + AnimateurFreeGL vagueFreeGL(ptrVague); + AnimateurFonctionelFreeGL damierFreeGL(ptrDamier); + AnimateurFonctionelFreeGL eventFreeGL(ptrEvent); + + return EXIT_SUCCESS; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/mainGL.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/mainGL.cpp new file mode 100755 index 0000000..a103aa8 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/mainGL.cpp @@ -0,0 +1,100 @@ +#include +#include +#include + +#include "GLUTImageViewers_GPU.h" + + +#include "Device.h" +#include "cudaTools.h" + +#include "Vague0Provider.h" +#include "VagueProvider.h" +#include "DamierProvider.h" +#include "EventProvider.h" +#include "MyDisplayableProvider.h" +#include "MyGLUTWindow.h" + +using std::cout; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainGL(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int mainGL(void) + { + Vague0Image* ptrVague0=Vague0Provider::createGL(); //bad technique + + Image* ptrVague=VagueProvider::createGL(); + ImageFonctionel* ptrDamier=DamierProvider::createGL(); + ImageFonctionel* ptrEvent=EventProvider::createGL(); + Displayable_A* ptrMyDisplayable=MyDisplayableProvider::createGL(); + + bool isAnimation = true; + bool isSelection = true; + + // ImageViewer + GLUTImageViewers vague0Viewer(ptrVague0, isAnimation, false, 0, 0); + GLUTImageViewers vagueViewer(ptrVague, isAnimation, false, 25,25); + GLUTImageViewers damierlViewer(ptrDamier, isAnimation, isSelection, 50, 50); + GLUTImageViewers eventViewer(ptrEvent, isAnimation, isSelection, 75, 75); + // Insert here other ImageViewer ... + + // OpenGLViewer + MyGLUTWindow myGlutWindow(ptrMyDisplayable,"Triangle OpenGL, Custom Displayable",600,600,100,100);// scene OpenGL // (w,h,px,py) + + GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte + + // destruction + { + delete ptrVague0; + delete ptrVague; + delete ptrDamier; + delete ptrEvent; + delete ptrMyDisplayable; + + ptrVague0 = NULL; + ptrVague=NULL; + ptrDamier = NULL; + ptrEvent = NULL; + ptrMyDisplayable = NULL; + } + + return EXIT_SUCCESS; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + + + + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/main.cpp b/WCudaMSE/Tuto_Image_Cuda/src/cpp/main.cpp new file mode 100755 index 0000000..9d091e1 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/main.cpp @@ -0,0 +1,113 @@ +#include +#include + +#include "cudaTools.h" +#include "Device.h" +#include "cudaTools.h" +#include "GLUTImageViewers_GPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern int mainGL(void); +extern int mainFreeGL(void); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static int start(void); +static void initCuda(int deviceId); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(int argc, char** argv) + { + if (Device::isCuda()) + { + gpu::GLUTImageViewers::init(argc, argv); + + // Device::printAll(); + Device::printAllSimple(); + + // Server Cuda1: in [0,5] + // Server Cuda2: in [0,2] + int deviceId = 0; + + initCuda(deviceId); + + int isOk = start(); + + //cudaDeviceReset causes the driver to clean up all state. + // While not mandatory in normal operation, it is good practice. + HANDLE_ERROR(cudaDeviceReset()); + + return isOk; + } + else + { + return EXIT_FAILURE; + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +void initCuda(int deviceId) + { + // Check deviceId area + int nbDevice = Device::getDeviceCount(); + assert(deviceId >= 0 && deviceId < nbDevice); + + // Choose current device (state of host-thread) + HANDLE_ERROR(cudaSetDevice(deviceId)); + + // Enable Interoperabilité OpenGL: + // - Create a cuda specifique contexte, shared between Cuda and GL + // - To be called before first call to kernel + // - cudaSetDevice ou cudaGLSetGLDevice are mutualy exclusive + HANDLE_ERROR(cudaGLSetGLDevice(deviceId)); + + // It can be usefull to preload driver, by example to practice benchmarking! (sometimes slow under linux) + Device::loadCudaDriver(deviceId); + // Device::loadCudaDriverAll();// Force driver to be load for all GPU + } + +int start(void) + { + Device::printCurrent(); + + bool IS_GL = true; + + if (IS_GL) + { + return mainGL(); // Bloquant, Tant qu'une fenetre est ouverte + } + else + { + return mainFreeGL(); + } + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_NameSpaces/.project b/WCudaMSE/Tuto_NameSpaces/.project new file mode 100755 index 0000000..bd30822 --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/.project @@ -0,0 +1,79 @@ + + + Tuto_NameSpaces + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f mingw.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Tuto_NameSpaces/dataProject.mk b/WCudaMSE/Tuto_NameSpaces/dataProject.mk new file mode 100755 index 0000000..1d49ffe --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/dataProject.mk @@ -0,0 +1,71 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Tuto_NameSpace + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# +# Mimimum : empty + + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+= + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Tuto_NameSpaces/src/cpp/core/main.cpp b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/main.cpp new file mode 100755 index 0000000..32b757f --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/main.cpp @@ -0,0 +1,52 @@ +#include +# + +// http://www.tutorialspoint.com/cplusplus/cpp_namespaces.htm +// http://www.c4learn.com/cplusplus/cpp-namespace-creation/ +// http://fr.openclassrooms.com/informatique/cours/les-espaces-de-noms-namespace + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern void useNameSpaceProcedure(); +extern void useNameSpaceObject(); + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + useNameSpaceProcedure(); + useNameSpaceObject(); + + return EXIT_SUCCESS; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/01_procedures/useNameSapceProcedures.cpp b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/01_procedures/useNameSapceProcedures.cpp new file mode 100755 index 0000000..6e1b8b2 --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/01_procedures/useNameSapceProcedures.cpp @@ -0,0 +1,75 @@ +#include + +using std::cout; +using std::endl; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void useNameSpaceProcedure(); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +namespace v1 + { + static int V = 1; + + static float value(); + } + +namespace v2 + { + static int V = 2; + + static float value(); + } + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +void useNameSpaceProcedure() + { + cout << endl<<"[Using Namespaces with procedures] :" << endl<name=name; + } + +bd::Personnage::~Personnage() + { + //Nothing + } + +/*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + +string bd::Personnage::getName() const + { + return this->name; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/bd/PersonnageBD.h b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/bd/PersonnageBD.h new file mode 100755 index 0000000..edd6359 --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/bd/PersonnageBD.h @@ -0,0 +1,57 @@ +#ifndef PERSONNAGE_BD_H_ +#define PERSONNAGE_BD_H_ + +#include "Invention.h" +#include + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace bd + { + /** + * Note : bd::Personnage peut deriver de Cartoon qui lui n'est pas dans un namespace + */ + class Personnage: public Invention + { + + /*-------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Personnage(string name,string inventeur); + + virtual ~Personnage(); + + /*-------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + string getName() const; + + /*-------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + //Input + string name; + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/film/PersonnageFilm.cpp b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/film/PersonnageFilm.cpp new file mode 100755 index 0000000..af4c9d2 --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/film/PersonnageFilm.cpp @@ -0,0 +1,54 @@ +#include "PersonnageFilm.h" + +/** + * voir bd,tele pour une autre technique + */ +using namespace film; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + +Personnage::Personnage(string name) : name(name) + { + //Nothing + } + +Personnage::~Personnage() + { + //Nothing + } + +/*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + +string Personnage::getName() const + { + return this->name; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + diff --git a/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/film/PersonnageFilm.h b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/film/PersonnageFilm.h new file mode 100755 index 0000000..f090f16 --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/film/PersonnageFilm.h @@ -0,0 +1,56 @@ +#ifndef PERSONNAGE_FILM_H_ +#define PERSONNAGE_FILM_H_ + +#include + +using std::string; + +// les noms des namespace peuvent être assigner grace a un define, mais pas forcément +#define NS_FILM film + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace NS_FILM + { + class Personnage + { + + /*-------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Personnage(string name); + + virtual ~Personnage(); + + /*-------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + string getName() const; + + /*-------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + //Input + string name; + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/tele/PersonnageTele.cpp b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/tele/PersonnageTele.cpp new file mode 100755 index 0000000..f90a0a6 --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/tele/PersonnageTele.cpp @@ -0,0 +1,56 @@ +#include "PersonnageTele.h" + +/** + * voir bd,film pour une autre technique + */ +namespace tele + { + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + +Personnage::Personnage(string name) : name(name) + { + //Nothing + } + +Personnage::~Personnage() + { + //Nothing + } + +/*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + +string Personnage::getName() const + { + return this->name; + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ + } + diff --git a/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/tele/PersonnageTele.h b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/tele/PersonnageTele.h new file mode 100755 index 0000000..a5e43d8 --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/tele/PersonnageTele.h @@ -0,0 +1,53 @@ +#ifndef PERSONNAGE_TELE_H_ +#define PERSONNAGE_TELE_H_ + +#include + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace tele + { + class Personnage + { + + /*-------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Personnage(string name); + + virtual ~Personnage(); + + /*-------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + string getName() const; + + /*-------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + //Input + string name; + }; + } +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ diff --git a/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/useNameSpaceObject.cpp b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/useNameSpaceObject.cpp new file mode 100755 index 0000000..cacfc8e --- /dev/null +++ b/WCudaMSE/Tuto_NameSpaces/src/cpp/core/namespace/02_classes/useNameSpaceObject.cpp @@ -0,0 +1,65 @@ +#include "PersonnageBD.h" +#include "PersonnageFilm.h" +#include "PersonnageTele.h" + +#include +using std::cout; +using std::endl; + + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + + + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Dans les trois namespace: + * bd + * film + * tele + * + * La classe est la meme, ie Personnage! + * Le namespace permet d'éviter des conflits de nom. + * + * Attention: + * Contrairement à java, le nom des fichiers (.cpp, .h) ne peut lui être trois fois le meme. + * Il doit etre obligatoirement etre different: + * + * PersonnageBD.h PersonnageBD.cpp + * PersonnageFilm PersonnageFilm + * PersonnageTele PersonnageTele + * + */ +void useNameSpaceObject() + { + cout<< endl<<"[Using Namespaces with Object] :"< + + Tuto_OpenCV + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + -f mingw.mk + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + false + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/WCudaMSE/Tuto_OpenCV/dataProject.mk b/WCudaMSE/Tuto_OpenCV/dataProject.mk new file mode 100755 index 0000000..9563875 --- /dev/null +++ b/WCudaMSE/Tuto_OpenCV/dataProject.mk @@ -0,0 +1,75 @@ +# Version 0.0.2 +# Cedric.Bilat@he-arc.ch +# +# Notes: +# +# (N1) This configuration file is compiler-free. +# +# (N2) Go in xxx.mk if you whish customize a specific compiler (where xxx= gcc, xxx = visual, ...). +# +# Conseils: +# +# (C1) In the below definition of variables, never let a space at the end!!! +# +# (C2) When you overrid a varaible "XXX+= YYY" be careful to let a space after the symbol "=" +# + +################################################# +# Project Configurator # +################################################# + +############################## +# Basic # +############################## + +#Name target (without extension) + +TARGET_NAME:=Tuto_OpenCV + +#Target type: +# EXE +# SHARED_LIB +# STATIC_LIB + +TARGET_MODE:=EXE + +################# +# src aux # +################# + +# Expand the src folder. +# Tip : All files (.cpp, .h .lib, ...) will be considered recursively ! +# Mimimum : empty + +SRC_AUX+= ../BilatTools_CPP/src/core +SRC_AUX+= ../BilatTools_OpenCV/src +SRC_AUX+= ../BilatTools_Cuda_smart_switch/src/core + +################# +# API Ext # +################# + +# Define preconfigured extern API +# Tip : See ../PRODUCTION/....../api for available preconfigured api (Boost, openCV, cppTest, ...) +# Note : apiXXX.mk define +# .h for compil-time +# .so .lib for link-time +# but nothing usefull for runtime +# +# Mimimum : empty + +include $(API)/opencv.mk +include $(API)/openmp.mk #for linux + +############################# +# Advanced # +############################# + +# Define compilation variable +# Note : Same as -DXXX (on command line) or #define XXX (in .ccp code) +# Mimimum : empty +CODE_DEFINE_VARIABLES+=CBI_NO_CUDA + +################################################# +# End # +################################################# diff --git a/WCudaMSE/Tuto_OpenCV/src/cpp/main.cpp b/WCudaMSE/Tuto_OpenCV/src/cpp/main.cpp new file mode 100755 index 0000000..10cb1f7 --- /dev/null +++ b/WCudaMSE/Tuto_OpenCV/src/cpp/main.cpp @@ -0,0 +1,129 @@ +#include + +#include "CaptureVideo.h" +#include "CaptureCamera.h" +#include "Capture_A.h" +#include "SequenceViewerCV.h" + +using std::cout; +using std::cin; +using std::cerr; +using std::endl; +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Imported *| + \*-------------------------------------*/ + +extern int tuto(string nameVideo); + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +static int useVideo(void); +static int useCamera(void); +static int show(Capture_A* ptrCaptureur); +static string getVideoName(void); + +/*----------------------------------------------------------------------*\ + |* Implementation *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +int main(void) + { + cout << "main" << endl; + + //return tuto(getVideoName()); // debug + + bool isUseVideo = true; + if (isUseVideo) + { + tuto(getVideoName()); // debug + return useVideo(); + } + else + { + return useCamera(); + } + } + +/*--------------------------------------*\ + |* Private *| + \*-------------------------------------*/ + +int useVideo(void) + { + cout << "use video" << endl; + + string title = "Tuto Video"; + string videoName = getVideoName(); + CaptureVideo captureur(getVideoName(), title); + + if (captureur.isOpened()) + { + return show(&captureur); // bloquant + } + else + { + cerr << "\n[CBI] : Failed to open : " << videoName << endl; + return EXIT_FAILURE; + } + } + +string getVideoName(void) + { +#ifdef _WIN32 + // Work + // string nameVideo ="Q:\\neilPryde.avi"; + // string nameVideo = "C:\\Users\\cedric.bilat\\Desktop\\neilPryde.avi"; // ok + string nameVideo="C:\\Users\\cedric.bilat\\Desktop\\nasaFHD_short.avi"; //ok + + // Home + // string nameVideo = "C:\\Users\\bilat\\Desktop\\neilPryde.avi"; // ok + //string nameVideo="C:\\Users\\bilat\\Desktop\\nasaFHD_short.avi";// ok +#else + //string nameVideo = "/media/Data/Video//neilPryde.avi"; // ok + string nameVideo = "/media/Data/Video/nasaFHD_short.avi"; // ok +#endif + + return nameVideo; + } + +int useCamera(void) + { + int idCamera = 0; + string title = "Tuto Camera"; + + // CaptureCamera captureur(idCamera, title,320,160); + CaptureCamera captureur(idCamera, title); + + if (captureur.isOpened()) + { + return show(&captureur); + } + else + { + return EXIT_FAILURE; + } + } + +int show(Capture_A* ptrCaptureur) + { + SequenceVieverCV sequenceViever(ptrCaptureur); + sequenceViever.run(); // bloquant + return EXIT_SUCCESS; + } + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +