raylib_api.lua 223 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279
  1. return {
  2. defines = {
  3. {
  4. name = "RAYLIB_H",
  5. type = "GUARD",
  6. value = "",
  7. description = ""
  8. },
  9. {
  10. name = "RAYLIB_VERSION_MAJOR",
  11. type = "INT",
  12. value = 5,
  13. description = ""
  14. },
  15. {
  16. name = "RAYLIB_VERSION_MINOR",
  17. type = "INT",
  18. value = 5,
  19. description = ""
  20. },
  21. {
  22. name = "RAYLIB_VERSION_PATCH",
  23. type = "INT",
  24. value = 0,
  25. description = ""
  26. },
  27. {
  28. name = "RAYLIB_VERSION",
  29. type = "STRING",
  30. value = "5.5",
  31. description = ""
  32. },
  33. {
  34. name = "__declspec(x)",
  35. type = "MACRO",
  36. value = "__attribute__((x))",
  37. description = ""
  38. },
  39. {
  40. name = "RLAPI",
  41. type = "UNKNOWN",
  42. value = "__declspec(dllexport)",
  43. description = "We are building the library as a Win32 shared library (.dll)"
  44. },
  45. {
  46. name = "PI",
  47. type = "FLOAT",
  48. value = 3.14159265358979323846,
  49. description = ""
  50. },
  51. {
  52. name = "DEG2RAD",
  53. type = "FLOAT_MATH",
  54. value = "(PI/180.0f)",
  55. description = ""
  56. },
  57. {
  58. name = "RAD2DEG",
  59. type = "FLOAT_MATH",
  60. value = "(180.0f/PI)",
  61. description = ""
  62. },
  63. {
  64. name = "RL_MALLOC(sz)",
  65. type = "MACRO",
  66. value = "malloc(sz)",
  67. description = ""
  68. },
  69. {
  70. name = "RL_CALLOC(n,sz)",
  71. type = "MACRO",
  72. value = "calloc(n,sz)",
  73. description = ""
  74. },
  75. {
  76. name = "RL_REALLOC(ptr,sz)",
  77. type = "MACRO",
  78. value = "realloc(ptr,sz)",
  79. description = ""
  80. },
  81. {
  82. name = "RL_FREE(ptr)",
  83. type = "MACRO",
  84. value = "free(ptr)",
  85. description = ""
  86. },
  87. {
  88. name = "CLITERAL(type)",
  89. type = "MACRO",
  90. value = "type",
  91. description = ""
  92. },
  93. {
  94. name = "RL_COLOR_TYPE",
  95. type = "GUARD",
  96. value = "",
  97. description = ""
  98. },
  99. {
  100. name = "RL_RECTANGLE_TYPE",
  101. type = "GUARD",
  102. value = "",
  103. description = ""
  104. },
  105. {
  106. name = "RL_VECTOR2_TYPE",
  107. type = "GUARD",
  108. value = "",
  109. description = ""
  110. },
  111. {
  112. name = "RL_VECTOR3_TYPE",
  113. type = "GUARD",
  114. value = "",
  115. description = ""
  116. },
  117. {
  118. name = "RL_VECTOR4_TYPE",
  119. type = "GUARD",
  120. value = "",
  121. description = ""
  122. },
  123. {
  124. name = "RL_QUATERNION_TYPE",
  125. type = "GUARD",
  126. value = "",
  127. description = ""
  128. },
  129. {
  130. name = "RL_MATRIX_TYPE",
  131. type = "GUARD",
  132. value = "",
  133. description = ""
  134. },
  135. {
  136. name = "LIGHTGRAY",
  137. type = "COLOR",
  138. value = "CLITERAL(Color){ 200, 200, 200, 255 }",
  139. description = "Light Gray"
  140. },
  141. {
  142. name = "GRAY",
  143. type = "COLOR",
  144. value = "CLITERAL(Color){ 130, 130, 130, 255 }",
  145. description = "Gray"
  146. },
  147. {
  148. name = "DARKGRAY",
  149. type = "COLOR",
  150. value = "CLITERAL(Color){ 80, 80, 80, 255 }",
  151. description = "Dark Gray"
  152. },
  153. {
  154. name = "YELLOW",
  155. type = "COLOR",
  156. value = "CLITERAL(Color){ 253, 249, 0, 255 }",
  157. description = "Yellow"
  158. },
  159. {
  160. name = "GOLD",
  161. type = "COLOR",
  162. value = "CLITERAL(Color){ 255, 203, 0, 255 }",
  163. description = "Gold"
  164. },
  165. {
  166. name = "ORANGE",
  167. type = "COLOR",
  168. value = "CLITERAL(Color){ 255, 161, 0, 255 }",
  169. description = "Orange"
  170. },
  171. {
  172. name = "PINK",
  173. type = "COLOR",
  174. value = "CLITERAL(Color){ 255, 109, 194, 255 }",
  175. description = "Pink"
  176. },
  177. {
  178. name = "RED",
  179. type = "COLOR",
  180. value = "CLITERAL(Color){ 230, 41, 55, 255 }",
  181. description = "Red"
  182. },
  183. {
  184. name = "MAROON",
  185. type = "COLOR",
  186. value = "CLITERAL(Color){ 190, 33, 55, 255 }",
  187. description = "Maroon"
  188. },
  189. {
  190. name = "GREEN",
  191. type = "COLOR",
  192. value = "CLITERAL(Color){ 0, 228, 48, 255 }",
  193. description = "Green"
  194. },
  195. {
  196. name = "LIME",
  197. type = "COLOR",
  198. value = "CLITERAL(Color){ 0, 158, 47, 255 }",
  199. description = "Lime"
  200. },
  201. {
  202. name = "DARKGREEN",
  203. type = "COLOR",
  204. value = "CLITERAL(Color){ 0, 117, 44, 255 }",
  205. description = "Dark Green"
  206. },
  207. {
  208. name = "SKYBLUE",
  209. type = "COLOR",
  210. value = "CLITERAL(Color){ 102, 191, 255, 255 }",
  211. description = "Sky Blue"
  212. },
  213. {
  214. name = "BLUE",
  215. type = "COLOR",
  216. value = "CLITERAL(Color){ 0, 121, 241, 255 }",
  217. description = "Blue"
  218. },
  219. {
  220. name = "DARKBLUE",
  221. type = "COLOR",
  222. value = "CLITERAL(Color){ 0, 82, 172, 255 }",
  223. description = "Dark Blue"
  224. },
  225. {
  226. name = "PURPLE",
  227. type = "COLOR",
  228. value = "CLITERAL(Color){ 200, 122, 255, 255 }",
  229. description = "Purple"
  230. },
  231. {
  232. name = "VIOLET",
  233. type = "COLOR",
  234. value = "CLITERAL(Color){ 135, 60, 190, 255 }",
  235. description = "Violet"
  236. },
  237. {
  238. name = "DARKPURPLE",
  239. type = "COLOR",
  240. value = "CLITERAL(Color){ 112, 31, 126, 255 }",
  241. description = "Dark Purple"
  242. },
  243. {
  244. name = "BEIGE",
  245. type = "COLOR",
  246. value = "CLITERAL(Color){ 211, 176, 131, 255 }",
  247. description = "Beige"
  248. },
  249. {
  250. name = "BROWN",
  251. type = "COLOR",
  252. value = "CLITERAL(Color){ 127, 106, 79, 255 }",
  253. description = "Brown"
  254. },
  255. {
  256. name = "DARKBROWN",
  257. type = "COLOR",
  258. value = "CLITERAL(Color){ 76, 63, 47, 255 }",
  259. description = "Dark Brown"
  260. },
  261. {
  262. name = "WHITE",
  263. type = "COLOR",
  264. value = "CLITERAL(Color){ 255, 255, 255, 255 }",
  265. description = "White"
  266. },
  267. {
  268. name = "BLACK",
  269. type = "COLOR",
  270. value = "CLITERAL(Color){ 0, 0, 0, 255 }",
  271. description = "Black"
  272. },
  273. {
  274. name = "BLANK",
  275. type = "COLOR",
  276. value = "CLITERAL(Color){ 0, 0, 0, 0 }",
  277. description = "Blank (Transparent)"
  278. },
  279. {
  280. name = "MAGENTA",
  281. type = "COLOR",
  282. value = "CLITERAL(Color){ 255, 0, 255, 255 }",
  283. description = "Magenta"
  284. },
  285. {
  286. name = "RAYWHITE",
  287. type = "COLOR",
  288. value = "CLITERAL(Color){ 245, 245, 245, 255 }",
  289. description = "My own White (raylib logo)"
  290. },
  291. {
  292. name = "RL_BOOL_TYPE",
  293. type = "GUARD",
  294. value = "",
  295. description = ""
  296. },
  297. {
  298. name = "MOUSE_LEFT_BUTTON",
  299. type = "UNKNOWN",
  300. value = "MOUSE_BUTTON_LEFT",
  301. description = ""
  302. },
  303. {
  304. name = "MOUSE_RIGHT_BUTTON",
  305. type = "UNKNOWN",
  306. value = "MOUSE_BUTTON_RIGHT",
  307. description = ""
  308. },
  309. {
  310. name = "MOUSE_MIDDLE_BUTTON",
  311. type = "UNKNOWN",
  312. value = "MOUSE_BUTTON_MIDDLE",
  313. description = ""
  314. },
  315. {
  316. name = "MATERIAL_MAP_DIFFUSE",
  317. type = "UNKNOWN",
  318. value = "MATERIAL_MAP_ALBEDO",
  319. description = ""
  320. },
  321. {
  322. name = "MATERIAL_MAP_SPECULAR",
  323. type = "UNKNOWN",
  324. value = "MATERIAL_MAP_METALNESS",
  325. description = ""
  326. },
  327. {
  328. name = "SHADER_LOC_MAP_DIFFUSE",
  329. type = "UNKNOWN",
  330. value = "SHADER_LOC_MAP_ALBEDO",
  331. description = ""
  332. },
  333. {
  334. name = "SHADER_LOC_MAP_SPECULAR",
  335. type = "UNKNOWN",
  336. value = "SHADER_LOC_MAP_METALNESS",
  337. description = ""
  338. },
  339. {
  340. name = "GetMouseRay",
  341. type = "UNKNOWN",
  342. value = "GetScreenToWorldRay",
  343. description = "Compatibility hack for previous raylib versions"
  344. }
  345. },
  346. structs = {
  347. {
  348. name = "Vector2",
  349. description = "Vector2, 2 components",
  350. fields = {
  351. {
  352. type = "float",
  353. name = "x",
  354. description = "Vector x component"
  355. },
  356. {
  357. type = "float",
  358. name = "y",
  359. description = "Vector y component"
  360. }
  361. }
  362. },
  363. {
  364. name = "Vector3",
  365. description = "Vector3, 3 components",
  366. fields = {
  367. {
  368. type = "float",
  369. name = "x",
  370. description = "Vector x component"
  371. },
  372. {
  373. type = "float",
  374. name = "y",
  375. description = "Vector y component"
  376. },
  377. {
  378. type = "float",
  379. name = "z",
  380. description = "Vector z component"
  381. }
  382. }
  383. },
  384. {
  385. name = "Vector4",
  386. description = "Vector4, 4 components",
  387. fields = {
  388. {
  389. type = "float",
  390. name = "x",
  391. description = "Vector x component"
  392. },
  393. {
  394. type = "float",
  395. name = "y",
  396. description = "Vector y component"
  397. },
  398. {
  399. type = "float",
  400. name = "z",
  401. description = "Vector z component"
  402. },
  403. {
  404. type = "float",
  405. name = "w",
  406. description = "Vector w component"
  407. }
  408. }
  409. },
  410. {
  411. name = "Matrix",
  412. description = "Matrix, 4x4 components, column major, OpenGL style, right-handed",
  413. fields = {
  414. {
  415. type = "float",
  416. name = "m0",
  417. description = "Matrix first row (4 components)"
  418. },
  419. {
  420. type = "float",
  421. name = "m4",
  422. description = "Matrix first row (4 components)"
  423. },
  424. {
  425. type = "float",
  426. name = "m8",
  427. description = "Matrix first row (4 components)"
  428. },
  429. {
  430. type = "float",
  431. name = "m12",
  432. description = "Matrix first row (4 components)"
  433. },
  434. {
  435. type = "float",
  436. name = "m1",
  437. description = "Matrix second row (4 components)"
  438. },
  439. {
  440. type = "float",
  441. name = "m5",
  442. description = "Matrix second row (4 components)"
  443. },
  444. {
  445. type = "float",
  446. name = "m9",
  447. description = "Matrix second row (4 components)"
  448. },
  449. {
  450. type = "float",
  451. name = "m13",
  452. description = "Matrix second row (4 components)"
  453. },
  454. {
  455. type = "float",
  456. name = "m2",
  457. description = "Matrix third row (4 components)"
  458. },
  459. {
  460. type = "float",
  461. name = "m6",
  462. description = "Matrix third row (4 components)"
  463. },
  464. {
  465. type = "float",
  466. name = "m10",
  467. description = "Matrix third row (4 components)"
  468. },
  469. {
  470. type = "float",
  471. name = "m14",
  472. description = "Matrix third row (4 components)"
  473. },
  474. {
  475. type = "float",
  476. name = "m3",
  477. description = "Matrix fourth row (4 components)"
  478. },
  479. {
  480. type = "float",
  481. name = "m7",
  482. description = "Matrix fourth row (4 components)"
  483. },
  484. {
  485. type = "float",
  486. name = "m11",
  487. description = "Matrix fourth row (4 components)"
  488. },
  489. {
  490. type = "float",
  491. name = "m15",
  492. description = "Matrix fourth row (4 components)"
  493. }
  494. }
  495. },
  496. {
  497. name = "Color",
  498. description = "Color, 4 components, R8G8B8A8 (32bit)",
  499. fields = {
  500. {
  501. type = "unsigned char",
  502. name = "r",
  503. description = "Color red value"
  504. },
  505. {
  506. type = "unsigned char",
  507. name = "g",
  508. description = "Color green value"
  509. },
  510. {
  511. type = "unsigned char",
  512. name = "b",
  513. description = "Color blue value"
  514. },
  515. {
  516. type = "unsigned char",
  517. name = "a",
  518. description = "Color alpha value"
  519. }
  520. }
  521. },
  522. {
  523. name = "Rectangle",
  524. description = "Rectangle, 4 components",
  525. fields = {
  526. {
  527. type = "float",
  528. name = "x",
  529. description = "Rectangle top-left corner position x"
  530. },
  531. {
  532. type = "float",
  533. name = "y",
  534. description = "Rectangle top-left corner position y"
  535. },
  536. {
  537. type = "float",
  538. name = "width",
  539. description = "Rectangle width"
  540. },
  541. {
  542. type = "float",
  543. name = "height",
  544. description = "Rectangle height"
  545. }
  546. }
  547. },
  548. {
  549. name = "Image",
  550. description = "Image, pixel data stored in CPU memory (RAM)",
  551. fields = {
  552. {
  553. type = "void *",
  554. name = "data",
  555. description = "Image raw data"
  556. },
  557. {
  558. type = "int",
  559. name = "width",
  560. description = "Image base width"
  561. },
  562. {
  563. type = "int",
  564. name = "height",
  565. description = "Image base height"
  566. },
  567. {
  568. type = "int",
  569. name = "mipmaps",
  570. description = "Mipmap levels, 1 by default"
  571. },
  572. {
  573. type = "int",
  574. name = "format",
  575. description = "Data format (PixelFormat type)"
  576. }
  577. }
  578. },
  579. {
  580. name = "Texture",
  581. description = "Texture, tex data stored in GPU memory (VRAM)",
  582. fields = {
  583. {
  584. type = "unsigned int",
  585. name = "id",
  586. description = "OpenGL texture id"
  587. },
  588. {
  589. type = "int",
  590. name = "width",
  591. description = "Texture base width"
  592. },
  593. {
  594. type = "int",
  595. name = "height",
  596. description = "Texture base height"
  597. },
  598. {
  599. type = "int",
  600. name = "mipmaps",
  601. description = "Mipmap levels, 1 by default"
  602. },
  603. {
  604. type = "int",
  605. name = "format",
  606. description = "Data format (PixelFormat type)"
  607. }
  608. }
  609. },
  610. {
  611. name = "RenderTexture",
  612. description = "RenderTexture, fbo for texture rendering",
  613. fields = {
  614. {
  615. type = "unsigned int",
  616. name = "id",
  617. description = "OpenGL framebuffer object id"
  618. },
  619. {
  620. type = "Texture",
  621. name = "texture",
  622. description = "Color buffer attachment texture"
  623. },
  624. {
  625. type = "Texture",
  626. name = "depth",
  627. description = "Depth buffer attachment texture"
  628. }
  629. }
  630. },
  631. {
  632. name = "NPatchInfo",
  633. description = "NPatchInfo, n-patch layout info",
  634. fields = {
  635. {
  636. type = "Rectangle",
  637. name = "source",
  638. description = "Texture source rectangle"
  639. },
  640. {
  641. type = "int",
  642. name = "left",
  643. description = "Left border offset"
  644. },
  645. {
  646. type = "int",
  647. name = "top",
  648. description = "Top border offset"
  649. },
  650. {
  651. type = "int",
  652. name = "right",
  653. description = "Right border offset"
  654. },
  655. {
  656. type = "int",
  657. name = "bottom",
  658. description = "Bottom border offset"
  659. },
  660. {
  661. type = "int",
  662. name = "layout",
  663. description = "Layout of the n-patch: 3x3, 1x3 or 3x1"
  664. }
  665. }
  666. },
  667. {
  668. name = "GlyphInfo",
  669. description = "GlyphInfo, font characters glyphs info",
  670. fields = {
  671. {
  672. type = "int",
  673. name = "value",
  674. description = "Character value (Unicode)"
  675. },
  676. {
  677. type = "int",
  678. name = "offsetX",
  679. description = "Character offset X when drawing"
  680. },
  681. {
  682. type = "int",
  683. name = "offsetY",
  684. description = "Character offset Y when drawing"
  685. },
  686. {
  687. type = "int",
  688. name = "advanceX",
  689. description = "Character advance position X"
  690. },
  691. {
  692. type = "Image",
  693. name = "image",
  694. description = "Character image data"
  695. }
  696. }
  697. },
  698. {
  699. name = "Font",
  700. description = "Font, font texture and GlyphInfo array data",
  701. fields = {
  702. {
  703. type = "int",
  704. name = "baseSize",
  705. description = "Base size (default chars height)"
  706. },
  707. {
  708. type = "int",
  709. name = "glyphCount",
  710. description = "Number of glyph characters"
  711. },
  712. {
  713. type = "int",
  714. name = "glyphPadding",
  715. description = "Padding around the glyph characters"
  716. },
  717. {
  718. type = "Texture2D",
  719. name = "texture",
  720. description = "Texture atlas containing the glyphs"
  721. },
  722. {
  723. type = "Rectangle *",
  724. name = "recs",
  725. description = "Rectangles in texture for the glyphs"
  726. },
  727. {
  728. type = "GlyphInfo *",
  729. name = "glyphs",
  730. description = "Glyphs info data"
  731. }
  732. }
  733. },
  734. {
  735. name = "Camera3D",
  736. description = "Camera, defines position/orientation in 3d space",
  737. fields = {
  738. {
  739. type = "Vector3",
  740. name = "position",
  741. description = "Camera position"
  742. },
  743. {
  744. type = "Vector3",
  745. name = "target",
  746. description = "Camera target it looks-at"
  747. },
  748. {
  749. type = "Vector3",
  750. name = "up",
  751. description = "Camera up vector (rotation over its axis)"
  752. },
  753. {
  754. type = "float",
  755. name = "fovy",
  756. description = "Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic"
  757. },
  758. {
  759. type = "int",
  760. name = "projection",
  761. description = "Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC"
  762. }
  763. }
  764. },
  765. {
  766. name = "Camera2D",
  767. description = "Camera2D, defines position/orientation in 2d space",
  768. fields = {
  769. {
  770. type = "Vector2",
  771. name = "offset",
  772. description = "Camera offset (displacement from target)"
  773. },
  774. {
  775. type = "Vector2",
  776. name = "target",
  777. description = "Camera target (rotation and zoom origin)"
  778. },
  779. {
  780. type = "float",
  781. name = "rotation",
  782. description = "Camera rotation in degrees"
  783. },
  784. {
  785. type = "float",
  786. name = "zoom",
  787. description = "Camera zoom (scaling), should be 1.0f by default"
  788. }
  789. }
  790. },
  791. {
  792. name = "Mesh",
  793. description = "Mesh, vertex data and vao/vbo",
  794. fields = {
  795. {
  796. type = "int",
  797. name = "vertexCount",
  798. description = "Number of vertices stored in arrays"
  799. },
  800. {
  801. type = "int",
  802. name = "triangleCount",
  803. description = "Number of triangles stored (indexed or not)"
  804. },
  805. {
  806. type = "float *",
  807. name = "vertices",
  808. description = "Vertex position (XYZ - 3 components per vertex) (shader-location = 0)"
  809. },
  810. {
  811. type = "float *",
  812. name = "texcoords",
  813. description = "Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)"
  814. },
  815. {
  816. type = "float *",
  817. name = "texcoords2",
  818. description = "Vertex texture second coordinates (UV - 2 components per vertex) (shader-location = 5)"
  819. },
  820. {
  821. type = "float *",
  822. name = "normals",
  823. description = "Vertex normals (XYZ - 3 components per vertex) (shader-location = 2)"
  824. },
  825. {
  826. type = "float *",
  827. name = "tangents",
  828. description = "Vertex tangents (XYZW - 4 components per vertex) (shader-location = 4)"
  829. },
  830. {
  831. type = "unsigned char *",
  832. name = "colors",
  833. description = "Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)"
  834. },
  835. {
  836. type = "unsigned short *",
  837. name = "indices",
  838. description = "Vertex indices (in case vertex data comes indexed)"
  839. },
  840. {
  841. type = "float *",
  842. name = "animVertices",
  843. description = "Animated vertex positions (after bones transformations)"
  844. },
  845. {
  846. type = "float *",
  847. name = "animNormals",
  848. description = "Animated normals (after bones transformations)"
  849. },
  850. {
  851. type = "unsigned char *",
  852. name = "boneIds",
  853. description = "Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning) (shader-location = 6)"
  854. },
  855. {
  856. type = "float *",
  857. name = "boneWeights",
  858. description = "Vertex bone weight, up to 4 bones influence by vertex (skinning) (shader-location = 7)"
  859. },
  860. {
  861. type = "Matrix *",
  862. name = "boneMatrices",
  863. description = "Bones animated transformation matrices"
  864. },
  865. {
  866. type = "int",
  867. name = "boneCount",
  868. description = "Number of bones"
  869. },
  870. {
  871. type = "unsigned int",
  872. name = "vaoId",
  873. description = "OpenGL Vertex Array Object id"
  874. },
  875. {
  876. type = "unsigned int *",
  877. name = "vboId",
  878. description = "OpenGL Vertex Buffer Objects id (default vertex data)"
  879. }
  880. }
  881. },
  882. {
  883. name = "Shader",
  884. description = "Shader",
  885. fields = {
  886. {
  887. type = "unsigned int",
  888. name = "id",
  889. description = "Shader program id"
  890. },
  891. {
  892. type = "int *",
  893. name = "locs",
  894. description = "Shader locations array (RL_MAX_SHADER_LOCATIONS)"
  895. }
  896. }
  897. },
  898. {
  899. name = "MaterialMap",
  900. description = "MaterialMap",
  901. fields = {
  902. {
  903. type = "Texture2D",
  904. name = "texture",
  905. description = "Material map texture"
  906. },
  907. {
  908. type = "Color",
  909. name = "color",
  910. description = "Material map color"
  911. },
  912. {
  913. type = "float",
  914. name = "value",
  915. description = "Material map value"
  916. }
  917. }
  918. },
  919. {
  920. name = "Material",
  921. description = "Material, includes shader and maps",
  922. fields = {
  923. {
  924. type = "Shader",
  925. name = "shader",
  926. description = "Material shader"
  927. },
  928. {
  929. type = "MaterialMap *",
  930. name = "maps",
  931. description = "Material maps array (MAX_MATERIAL_MAPS)"
  932. },
  933. {
  934. type = "float[4]",
  935. name = "params",
  936. description = "Material generic parameters (if required)"
  937. }
  938. }
  939. },
  940. {
  941. name = "Transform",
  942. description = "Transform, vertex transformation data",
  943. fields = {
  944. {
  945. type = "Vector3",
  946. name = "translation",
  947. description = "Translation"
  948. },
  949. {
  950. type = "Quaternion",
  951. name = "rotation",
  952. description = "Rotation"
  953. },
  954. {
  955. type = "Vector3",
  956. name = "scale",
  957. description = "Scale"
  958. }
  959. }
  960. },
  961. {
  962. name = "BoneInfo",
  963. description = "Bone, skeletal animation bone",
  964. fields = {
  965. {
  966. type = "char[32]",
  967. name = "name",
  968. description = "Bone name"
  969. },
  970. {
  971. type = "int",
  972. name = "parent",
  973. description = "Bone parent"
  974. }
  975. }
  976. },
  977. {
  978. name = "Model",
  979. description = "Model, meshes, materials and animation data",
  980. fields = {
  981. {
  982. type = "Matrix",
  983. name = "transform",
  984. description = "Local transform matrix"
  985. },
  986. {
  987. type = "int",
  988. name = "meshCount",
  989. description = "Number of meshes"
  990. },
  991. {
  992. type = "int",
  993. name = "materialCount",
  994. description = "Number of materials"
  995. },
  996. {
  997. type = "Mesh *",
  998. name = "meshes",
  999. description = "Meshes array"
  1000. },
  1001. {
  1002. type = "Material *",
  1003. name = "materials",
  1004. description = "Materials array"
  1005. },
  1006. {
  1007. type = "int *",
  1008. name = "meshMaterial",
  1009. description = "Mesh material number"
  1010. },
  1011. {
  1012. type = "int",
  1013. name = "boneCount",
  1014. description = "Number of bones"
  1015. },
  1016. {
  1017. type = "BoneInfo *",
  1018. name = "bones",
  1019. description = "Bones information (skeleton)"
  1020. },
  1021. {
  1022. type = "Transform *",
  1023. name = "bindPose",
  1024. description = "Bones base transformation (pose)"
  1025. }
  1026. }
  1027. },
  1028. {
  1029. name = "ModelAnimation",
  1030. description = "ModelAnimation",
  1031. fields = {
  1032. {
  1033. type = "int",
  1034. name = "boneCount",
  1035. description = "Number of bones"
  1036. },
  1037. {
  1038. type = "int",
  1039. name = "frameCount",
  1040. description = "Number of animation frames"
  1041. },
  1042. {
  1043. type = "BoneInfo *",
  1044. name = "bones",
  1045. description = "Bones information (skeleton)"
  1046. },
  1047. {
  1048. type = "Transform **",
  1049. name = "framePoses",
  1050. description = "Poses array by frame"
  1051. },
  1052. {
  1053. type = "char[32]",
  1054. name = "name",
  1055. description = "Animation name"
  1056. }
  1057. }
  1058. },
  1059. {
  1060. name = "Ray",
  1061. description = "Ray, ray for raycasting",
  1062. fields = {
  1063. {
  1064. type = "Vector3",
  1065. name = "position",
  1066. description = "Ray position (origin)"
  1067. },
  1068. {
  1069. type = "Vector3",
  1070. name = "direction",
  1071. description = "Ray direction (normalized)"
  1072. }
  1073. }
  1074. },
  1075. {
  1076. name = "RayCollision",
  1077. description = "RayCollision, ray hit information",
  1078. fields = {
  1079. {
  1080. type = "bool",
  1081. name = "hit",
  1082. description = "Did the ray hit something?"
  1083. },
  1084. {
  1085. type = "float",
  1086. name = "distance",
  1087. description = "Distance to the nearest hit"
  1088. },
  1089. {
  1090. type = "Vector3",
  1091. name = "point",
  1092. description = "Point of the nearest hit"
  1093. },
  1094. {
  1095. type = "Vector3",
  1096. name = "normal",
  1097. description = "Surface normal of hit"
  1098. }
  1099. }
  1100. },
  1101. {
  1102. name = "BoundingBox",
  1103. description = "BoundingBox",
  1104. fields = {
  1105. {
  1106. type = "Vector3",
  1107. name = "min",
  1108. description = "Minimum vertex box-corner"
  1109. },
  1110. {
  1111. type = "Vector3",
  1112. name = "max",
  1113. description = "Maximum vertex box-corner"
  1114. }
  1115. }
  1116. },
  1117. {
  1118. name = "Wave",
  1119. description = "Wave, audio wave data",
  1120. fields = {
  1121. {
  1122. type = "unsigned int",
  1123. name = "frameCount",
  1124. description = "Total number of frames (considering channels)"
  1125. },
  1126. {
  1127. type = "unsigned int",
  1128. name = "sampleRate",
  1129. description = "Frequency (samples per second)"
  1130. },
  1131. {
  1132. type = "unsigned int",
  1133. name = "sampleSize",
  1134. description = "Bit depth (bits per sample): 8, 16, 32 (24 not supported)"
  1135. },
  1136. {
  1137. type = "unsigned int",
  1138. name = "channels",
  1139. description = "Number of channels (1-mono, 2-stereo, ...)"
  1140. },
  1141. {
  1142. type = "void *",
  1143. name = "data",
  1144. description = "Buffer data pointer"
  1145. }
  1146. }
  1147. },
  1148. {
  1149. name = "AudioStream",
  1150. description = "AudioStream, custom audio stream",
  1151. fields = {
  1152. {
  1153. type = "rAudioBuffer *",
  1154. name = "buffer",
  1155. description = "Pointer to internal data used by the audio system"
  1156. },
  1157. {
  1158. type = "rAudioProcessor *",
  1159. name = "processor",
  1160. description = "Pointer to internal data processor, useful for audio effects"
  1161. },
  1162. {
  1163. type = "unsigned int",
  1164. name = "sampleRate",
  1165. description = "Frequency (samples per second)"
  1166. },
  1167. {
  1168. type = "unsigned int",
  1169. name = "sampleSize",
  1170. description = "Bit depth (bits per sample): 8, 16, 32 (24 not supported)"
  1171. },
  1172. {
  1173. type = "unsigned int",
  1174. name = "channels",
  1175. description = "Number of channels (1-mono, 2-stereo, ...)"
  1176. }
  1177. }
  1178. },
  1179. {
  1180. name = "Sound",
  1181. description = "Sound",
  1182. fields = {
  1183. {
  1184. type = "AudioStream",
  1185. name = "stream",
  1186. description = "Audio stream"
  1187. },
  1188. {
  1189. type = "unsigned int",
  1190. name = "frameCount",
  1191. description = "Total number of frames (considering channels)"
  1192. }
  1193. }
  1194. },
  1195. {
  1196. name = "Music",
  1197. description = "Music, audio stream, anything longer than ~10 seconds should be streamed",
  1198. fields = {
  1199. {
  1200. type = "AudioStream",
  1201. name = "stream",
  1202. description = "Audio stream"
  1203. },
  1204. {
  1205. type = "unsigned int",
  1206. name = "frameCount",
  1207. description = "Total number of frames (considering channels)"
  1208. },
  1209. {
  1210. type = "bool",
  1211. name = "looping",
  1212. description = "Music looping enable"
  1213. },
  1214. {
  1215. type = "int",
  1216. name = "ctxType",
  1217. description = "Type of music context (audio filetype)"
  1218. },
  1219. {
  1220. type = "void *",
  1221. name = "ctxData",
  1222. description = "Audio context data, depends on type"
  1223. }
  1224. }
  1225. },
  1226. {
  1227. name = "VrDeviceInfo",
  1228. description = "VrDeviceInfo, Head-Mounted-Display device parameters",
  1229. fields = {
  1230. {
  1231. type = "int",
  1232. name = "hResolution",
  1233. description = "Horizontal resolution in pixels"
  1234. },
  1235. {
  1236. type = "int",
  1237. name = "vResolution",
  1238. description = "Vertical resolution in pixels"
  1239. },
  1240. {
  1241. type = "float",
  1242. name = "hScreenSize",
  1243. description = "Horizontal size in meters"
  1244. },
  1245. {
  1246. type = "float",
  1247. name = "vScreenSize",
  1248. description = "Vertical size in meters"
  1249. },
  1250. {
  1251. type = "float",
  1252. name = "eyeToScreenDistance",
  1253. description = "Distance between eye and display in meters"
  1254. },
  1255. {
  1256. type = "float",
  1257. name = "lensSeparationDistance",
  1258. description = "Lens separation distance in meters"
  1259. },
  1260. {
  1261. type = "float",
  1262. name = "interpupillaryDistance",
  1263. description = "IPD (distance between pupils) in meters"
  1264. },
  1265. {
  1266. type = "float[4]",
  1267. name = "lensDistortionValues",
  1268. description = "Lens distortion constant parameters"
  1269. },
  1270. {
  1271. type = "float[4]",
  1272. name = "chromaAbCorrection",
  1273. description = "Chromatic aberration correction parameters"
  1274. }
  1275. }
  1276. },
  1277. {
  1278. name = "VrStereoConfig",
  1279. description = "VrStereoConfig, VR stereo rendering configuration for simulator",
  1280. fields = {
  1281. {
  1282. type = "Matrix[2]",
  1283. name = "projection",
  1284. description = "VR projection matrices (per eye)"
  1285. },
  1286. {
  1287. type = "Matrix[2]",
  1288. name = "viewOffset",
  1289. description = "VR view offset matrices (per eye)"
  1290. },
  1291. {
  1292. type = "float[2]",
  1293. name = "leftLensCenter",
  1294. description = "VR left lens center"
  1295. },
  1296. {
  1297. type = "float[2]",
  1298. name = "rightLensCenter",
  1299. description = "VR right lens center"
  1300. },
  1301. {
  1302. type = "float[2]",
  1303. name = "leftScreenCenter",
  1304. description = "VR left screen center"
  1305. },
  1306. {
  1307. type = "float[2]",
  1308. name = "rightScreenCenter",
  1309. description = "VR right screen center"
  1310. },
  1311. {
  1312. type = "float[2]",
  1313. name = "scale",
  1314. description = "VR distortion scale"
  1315. },
  1316. {
  1317. type = "float[2]",
  1318. name = "scaleIn",
  1319. description = "VR distortion scale in"
  1320. }
  1321. }
  1322. },
  1323. {
  1324. name = "FilePathList",
  1325. description = "File path list",
  1326. fields = {
  1327. {
  1328. type = "unsigned int",
  1329. name = "capacity",
  1330. description = "Filepaths max entries"
  1331. },
  1332. {
  1333. type = "unsigned int",
  1334. name = "count",
  1335. description = "Filepaths entries count"
  1336. },
  1337. {
  1338. type = "char **",
  1339. name = "paths",
  1340. description = "Filepaths entries"
  1341. }
  1342. }
  1343. },
  1344. {
  1345. name = "AutomationEvent",
  1346. description = "Automation event",
  1347. fields = {
  1348. {
  1349. type = "unsigned int",
  1350. name = "frame",
  1351. description = "Event frame"
  1352. },
  1353. {
  1354. type = "unsigned int",
  1355. name = "type",
  1356. description = "Event type (AutomationEventType)"
  1357. },
  1358. {
  1359. type = "int[4]",
  1360. name = "params",
  1361. description = "Event parameters (if required)"
  1362. }
  1363. }
  1364. },
  1365. {
  1366. name = "AutomationEventList",
  1367. description = "Automation event list",
  1368. fields = {
  1369. {
  1370. type = "unsigned int",
  1371. name = "capacity",
  1372. description = "Events max entries (MAX_AUTOMATION_EVENTS)"
  1373. },
  1374. {
  1375. type = "unsigned int",
  1376. name = "count",
  1377. description = "Events entries count"
  1378. },
  1379. {
  1380. type = "AutomationEvent *",
  1381. name = "events",
  1382. description = "Events entries"
  1383. }
  1384. }
  1385. }
  1386. },
  1387. aliases = {
  1388. {
  1389. type = "Vector4",
  1390. name = "Quaternion",
  1391. description = "Quaternion, 4 components (Vector4 alias)"
  1392. },
  1393. {
  1394. type = "Texture",
  1395. name = "Texture2D",
  1396. description = "Texture2D, same as Texture"
  1397. },
  1398. {
  1399. type = "Texture",
  1400. name = "TextureCubemap",
  1401. description = "TextureCubemap, same as Texture"
  1402. },
  1403. {
  1404. type = "RenderTexture",
  1405. name = "RenderTexture2D",
  1406. description = "RenderTexture2D, same as RenderTexture"
  1407. },
  1408. {
  1409. type = "Camera3D",
  1410. name = "Camera",
  1411. description = "Camera type fallback, defaults to Camera3D"
  1412. }
  1413. },
  1414. enums = {
  1415. {
  1416. name = "ConfigFlags",
  1417. description = "System/Window config flags",
  1418. values = {
  1419. {
  1420. name = "FLAG_VSYNC_HINT",
  1421. value = 64,
  1422. description = "Set to try enabling V-Sync on GPU"
  1423. },
  1424. {
  1425. name = "FLAG_FULLSCREEN_MODE",
  1426. value = 2,
  1427. description = "Set to run program in fullscreen"
  1428. },
  1429. {
  1430. name = "FLAG_WINDOW_RESIZABLE",
  1431. value = 4,
  1432. description = "Set to allow resizable window"
  1433. },
  1434. {
  1435. name = "FLAG_WINDOW_UNDECORATED",
  1436. value = 8,
  1437. description = "Set to disable window decoration (frame and buttons)"
  1438. },
  1439. {
  1440. name = "FLAG_WINDOW_HIDDEN",
  1441. value = 128,
  1442. description = "Set to hide window"
  1443. },
  1444. {
  1445. name = "FLAG_WINDOW_MINIMIZED",
  1446. value = 512,
  1447. description = "Set to minimize window (iconify)"
  1448. },
  1449. {
  1450. name = "FLAG_WINDOW_MAXIMIZED",
  1451. value = 1024,
  1452. description = "Set to maximize window (expanded to monitor)"
  1453. },
  1454. {
  1455. name = "FLAG_WINDOW_UNFOCUSED",
  1456. value = 2048,
  1457. description = "Set to window non focused"
  1458. },
  1459. {
  1460. name = "FLAG_WINDOW_TOPMOST",
  1461. value = 4096,
  1462. description = "Set to window always on top"
  1463. },
  1464. {
  1465. name = "FLAG_WINDOW_ALWAYS_RUN",
  1466. value = 256,
  1467. description = "Set to allow windows running while minimized"
  1468. },
  1469. {
  1470. name = "FLAG_WINDOW_TRANSPARENT",
  1471. value = 16,
  1472. description = "Set to allow transparent framebuffer"
  1473. },
  1474. {
  1475. name = "FLAG_WINDOW_HIGHDPI",
  1476. value = 8192,
  1477. description = "Set to support HighDPI"
  1478. },
  1479. {
  1480. name = "FLAG_WINDOW_MOUSE_PASSTHROUGH",
  1481. value = 16384,
  1482. description = "Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED"
  1483. },
  1484. {
  1485. name = "FLAG_BORDERLESS_WINDOWED_MODE",
  1486. value = 32768,
  1487. description = "Set to run program in borderless windowed mode"
  1488. },
  1489. {
  1490. name = "FLAG_MSAA_4X_HINT",
  1491. value = 32,
  1492. description = "Set to try enabling MSAA 4X"
  1493. },
  1494. {
  1495. name = "FLAG_INTERLACED_HINT",
  1496. value = 65536,
  1497. description = "Set to try enabling interlaced video format (for V3D)"
  1498. }
  1499. }
  1500. },
  1501. {
  1502. name = "TraceLogLevel",
  1503. description = "Trace log level",
  1504. values = {
  1505. {
  1506. name = "LOG_ALL",
  1507. value = 0,
  1508. description = "Display all logs"
  1509. },
  1510. {
  1511. name = "LOG_TRACE",
  1512. value = 1,
  1513. description = "Trace logging, intended for internal use only"
  1514. },
  1515. {
  1516. name = "LOG_DEBUG",
  1517. value = 2,
  1518. description = "Debug logging, used for internal debugging, it should be disabled on release builds"
  1519. },
  1520. {
  1521. name = "LOG_INFO",
  1522. value = 3,
  1523. description = "Info logging, used for program execution info"
  1524. },
  1525. {
  1526. name = "LOG_WARNING",
  1527. value = 4,
  1528. description = "Warning logging, used on recoverable failures"
  1529. },
  1530. {
  1531. name = "LOG_ERROR",
  1532. value = 5,
  1533. description = "Error logging, used on unrecoverable failures"
  1534. },
  1535. {
  1536. name = "LOG_FATAL",
  1537. value = 6,
  1538. description = "Fatal logging, used to abort program: exit(EXIT_FAILURE)"
  1539. },
  1540. {
  1541. name = "LOG_NONE",
  1542. value = 7,
  1543. description = "Disable logging"
  1544. }
  1545. }
  1546. },
  1547. {
  1548. name = "KeyboardKey",
  1549. description = "Keyboard keys (US keyboard layout)",
  1550. values = {
  1551. {
  1552. name = "KEY_NULL",
  1553. value = 0,
  1554. description = "Key: NULL, used for no key pressed"
  1555. },
  1556. {
  1557. name = "KEY_APOSTROPHE",
  1558. value = 39,
  1559. description = "Key: '"
  1560. },
  1561. {
  1562. name = "KEY_COMMA",
  1563. value = 44,
  1564. description = "Key: ,"
  1565. },
  1566. {
  1567. name = "KEY_MINUS",
  1568. value = 45,
  1569. description = "Key: -"
  1570. },
  1571. {
  1572. name = "KEY_PERIOD",
  1573. value = 46,
  1574. description = "Key: ."
  1575. },
  1576. {
  1577. name = "KEY_SLASH",
  1578. value = 47,
  1579. description = "Key: /"
  1580. },
  1581. {
  1582. name = "KEY_ZERO",
  1583. value = 48,
  1584. description = "Key: 0"
  1585. },
  1586. {
  1587. name = "KEY_ONE",
  1588. value = 49,
  1589. description = "Key: 1"
  1590. },
  1591. {
  1592. name = "KEY_TWO",
  1593. value = 50,
  1594. description = "Key: 2"
  1595. },
  1596. {
  1597. name = "KEY_THREE",
  1598. value = 51,
  1599. description = "Key: 3"
  1600. },
  1601. {
  1602. name = "KEY_FOUR",
  1603. value = 52,
  1604. description = "Key: 4"
  1605. },
  1606. {
  1607. name = "KEY_FIVE",
  1608. value = 53,
  1609. description = "Key: 5"
  1610. },
  1611. {
  1612. name = "KEY_SIX",
  1613. value = 54,
  1614. description = "Key: 6"
  1615. },
  1616. {
  1617. name = "KEY_SEVEN",
  1618. value = 55,
  1619. description = "Key: 7"
  1620. },
  1621. {
  1622. name = "KEY_EIGHT",
  1623. value = 56,
  1624. description = "Key: 8"
  1625. },
  1626. {
  1627. name = "KEY_NINE",
  1628. value = 57,
  1629. description = "Key: 9"
  1630. },
  1631. {
  1632. name = "KEY_SEMICOLON",
  1633. value = 59,
  1634. description = "Key: ;"
  1635. },
  1636. {
  1637. name = "KEY_EQUAL",
  1638. value = 61,
  1639. description = "Key: ="
  1640. },
  1641. {
  1642. name = "KEY_A",
  1643. value = 65,
  1644. description = "Key: A | a"
  1645. },
  1646. {
  1647. name = "KEY_B",
  1648. value = 66,
  1649. description = "Key: B | b"
  1650. },
  1651. {
  1652. name = "KEY_C",
  1653. value = 67,
  1654. description = "Key: C | c"
  1655. },
  1656. {
  1657. name = "KEY_D",
  1658. value = 68,
  1659. description = "Key: D | d"
  1660. },
  1661. {
  1662. name = "KEY_E",
  1663. value = 69,
  1664. description = "Key: E | e"
  1665. },
  1666. {
  1667. name = "KEY_F",
  1668. value = 70,
  1669. description = "Key: F | f"
  1670. },
  1671. {
  1672. name = "KEY_G",
  1673. value = 71,
  1674. description = "Key: G | g"
  1675. },
  1676. {
  1677. name = "KEY_H",
  1678. value = 72,
  1679. description = "Key: H | h"
  1680. },
  1681. {
  1682. name = "KEY_I",
  1683. value = 73,
  1684. description = "Key: I | i"
  1685. },
  1686. {
  1687. name = "KEY_J",
  1688. value = 74,
  1689. description = "Key: J | j"
  1690. },
  1691. {
  1692. name = "KEY_K",
  1693. value = 75,
  1694. description = "Key: K | k"
  1695. },
  1696. {
  1697. name = "KEY_L",
  1698. value = 76,
  1699. description = "Key: L | l"
  1700. },
  1701. {
  1702. name = "KEY_M",
  1703. value = 77,
  1704. description = "Key: M | m"
  1705. },
  1706. {
  1707. name = "KEY_N",
  1708. value = 78,
  1709. description = "Key: N | n"
  1710. },
  1711. {
  1712. name = "KEY_O",
  1713. value = 79,
  1714. description = "Key: O | o"
  1715. },
  1716. {
  1717. name = "KEY_P",
  1718. value = 80,
  1719. description = "Key: P | p"
  1720. },
  1721. {
  1722. name = "KEY_Q",
  1723. value = 81,
  1724. description = "Key: Q | q"
  1725. },
  1726. {
  1727. name = "KEY_R",
  1728. value = 82,
  1729. description = "Key: R | r"
  1730. },
  1731. {
  1732. name = "KEY_S",
  1733. value = 83,
  1734. description = "Key: S | s"
  1735. },
  1736. {
  1737. name = "KEY_T",
  1738. value = 84,
  1739. description = "Key: T | t"
  1740. },
  1741. {
  1742. name = "KEY_U",
  1743. value = 85,
  1744. description = "Key: U | u"
  1745. },
  1746. {
  1747. name = "KEY_V",
  1748. value = 86,
  1749. description = "Key: V | v"
  1750. },
  1751. {
  1752. name = "KEY_W",
  1753. value = 87,
  1754. description = "Key: W | w"
  1755. },
  1756. {
  1757. name = "KEY_X",
  1758. value = 88,
  1759. description = "Key: X | x"
  1760. },
  1761. {
  1762. name = "KEY_Y",
  1763. value = 89,
  1764. description = "Key: Y | y"
  1765. },
  1766. {
  1767. name = "KEY_Z",
  1768. value = 90,
  1769. description = "Key: Z | z"
  1770. },
  1771. {
  1772. name = "KEY_LEFT_BRACKET",
  1773. value = 91,
  1774. description = "Key: ["
  1775. },
  1776. {
  1777. name = "KEY_BACKSLASH",
  1778. value = 92,
  1779. description = "Key: '\\'"
  1780. },
  1781. {
  1782. name = "KEY_RIGHT_BRACKET",
  1783. value = 93,
  1784. description = "Key: ]"
  1785. },
  1786. {
  1787. name = "KEY_GRAVE",
  1788. value = 96,
  1789. description = "Key: `"
  1790. },
  1791. {
  1792. name = "KEY_SPACE",
  1793. value = 32,
  1794. description = "Key: Space"
  1795. },
  1796. {
  1797. name = "KEY_ESCAPE",
  1798. value = 256,
  1799. description = "Key: Esc"
  1800. },
  1801. {
  1802. name = "KEY_ENTER",
  1803. value = 257,
  1804. description = "Key: Enter"
  1805. },
  1806. {
  1807. name = "KEY_TAB",
  1808. value = 258,
  1809. description = "Key: Tab"
  1810. },
  1811. {
  1812. name = "KEY_BACKSPACE",
  1813. value = 259,
  1814. description = "Key: Backspace"
  1815. },
  1816. {
  1817. name = "KEY_INSERT",
  1818. value = 260,
  1819. description = "Key: Ins"
  1820. },
  1821. {
  1822. name = "KEY_DELETE",
  1823. value = 261,
  1824. description = "Key: Del"
  1825. },
  1826. {
  1827. name = "KEY_RIGHT",
  1828. value = 262,
  1829. description = "Key: Cursor right"
  1830. },
  1831. {
  1832. name = "KEY_LEFT",
  1833. value = 263,
  1834. description = "Key: Cursor left"
  1835. },
  1836. {
  1837. name = "KEY_DOWN",
  1838. value = 264,
  1839. description = "Key: Cursor down"
  1840. },
  1841. {
  1842. name = "KEY_UP",
  1843. value = 265,
  1844. description = "Key: Cursor up"
  1845. },
  1846. {
  1847. name = "KEY_PAGE_UP",
  1848. value = 266,
  1849. description = "Key: Page up"
  1850. },
  1851. {
  1852. name = "KEY_PAGE_DOWN",
  1853. value = 267,
  1854. description = "Key: Page down"
  1855. },
  1856. {
  1857. name = "KEY_HOME",
  1858. value = 268,
  1859. description = "Key: Home"
  1860. },
  1861. {
  1862. name = "KEY_END",
  1863. value = 269,
  1864. description = "Key: End"
  1865. },
  1866. {
  1867. name = "KEY_CAPS_LOCK",
  1868. value = 280,
  1869. description = "Key: Caps lock"
  1870. },
  1871. {
  1872. name = "KEY_SCROLL_LOCK",
  1873. value = 281,
  1874. description = "Key: Scroll down"
  1875. },
  1876. {
  1877. name = "KEY_NUM_LOCK",
  1878. value = 282,
  1879. description = "Key: Num lock"
  1880. },
  1881. {
  1882. name = "KEY_PRINT_SCREEN",
  1883. value = 283,
  1884. description = "Key: Print screen"
  1885. },
  1886. {
  1887. name = "KEY_PAUSE",
  1888. value = 284,
  1889. description = "Key: Pause"
  1890. },
  1891. {
  1892. name = "KEY_F1",
  1893. value = 290,
  1894. description = "Key: F1"
  1895. },
  1896. {
  1897. name = "KEY_F2",
  1898. value = 291,
  1899. description = "Key: F2"
  1900. },
  1901. {
  1902. name = "KEY_F3",
  1903. value = 292,
  1904. description = "Key: F3"
  1905. },
  1906. {
  1907. name = "KEY_F4",
  1908. value = 293,
  1909. description = "Key: F4"
  1910. },
  1911. {
  1912. name = "KEY_F5",
  1913. value = 294,
  1914. description = "Key: F5"
  1915. },
  1916. {
  1917. name = "KEY_F6",
  1918. value = 295,
  1919. description = "Key: F6"
  1920. },
  1921. {
  1922. name = "KEY_F7",
  1923. value = 296,
  1924. description = "Key: F7"
  1925. },
  1926. {
  1927. name = "KEY_F8",
  1928. value = 297,
  1929. description = "Key: F8"
  1930. },
  1931. {
  1932. name = "KEY_F9",
  1933. value = 298,
  1934. description = "Key: F9"
  1935. },
  1936. {
  1937. name = "KEY_F10",
  1938. value = 299,
  1939. description = "Key: F10"
  1940. },
  1941. {
  1942. name = "KEY_F11",
  1943. value = 300,
  1944. description = "Key: F11"
  1945. },
  1946. {
  1947. name = "KEY_F12",
  1948. value = 301,
  1949. description = "Key: F12"
  1950. },
  1951. {
  1952. name = "KEY_LEFT_SHIFT",
  1953. value = 340,
  1954. description = "Key: Shift left"
  1955. },
  1956. {
  1957. name = "KEY_LEFT_CONTROL",
  1958. value = 341,
  1959. description = "Key: Control left"
  1960. },
  1961. {
  1962. name = "KEY_LEFT_ALT",
  1963. value = 342,
  1964. description = "Key: Alt left"
  1965. },
  1966. {
  1967. name = "KEY_LEFT_SUPER",
  1968. value = 343,
  1969. description = "Key: Super left"
  1970. },
  1971. {
  1972. name = "KEY_RIGHT_SHIFT",
  1973. value = 344,
  1974. description = "Key: Shift right"
  1975. },
  1976. {
  1977. name = "KEY_RIGHT_CONTROL",
  1978. value = 345,
  1979. description = "Key: Control right"
  1980. },
  1981. {
  1982. name = "KEY_RIGHT_ALT",
  1983. value = 346,
  1984. description = "Key: Alt right"
  1985. },
  1986. {
  1987. name = "KEY_RIGHT_SUPER",
  1988. value = 347,
  1989. description = "Key: Super right"
  1990. },
  1991. {
  1992. name = "KEY_KB_MENU",
  1993. value = 348,
  1994. description = "Key: KB menu"
  1995. },
  1996. {
  1997. name = "KEY_KP_0",
  1998. value = 320,
  1999. description = "Key: Keypad 0"
  2000. },
  2001. {
  2002. name = "KEY_KP_1",
  2003. value = 321,
  2004. description = "Key: Keypad 1"
  2005. },
  2006. {
  2007. name = "KEY_KP_2",
  2008. value = 322,
  2009. description = "Key: Keypad 2"
  2010. },
  2011. {
  2012. name = "KEY_KP_3",
  2013. value = 323,
  2014. description = "Key: Keypad 3"
  2015. },
  2016. {
  2017. name = "KEY_KP_4",
  2018. value = 324,
  2019. description = "Key: Keypad 4"
  2020. },
  2021. {
  2022. name = "KEY_KP_5",
  2023. value = 325,
  2024. description = "Key: Keypad 5"
  2025. },
  2026. {
  2027. name = "KEY_KP_6",
  2028. value = 326,
  2029. description = "Key: Keypad 6"
  2030. },
  2031. {
  2032. name = "KEY_KP_7",
  2033. value = 327,
  2034. description = "Key: Keypad 7"
  2035. },
  2036. {
  2037. name = "KEY_KP_8",
  2038. value = 328,
  2039. description = "Key: Keypad 8"
  2040. },
  2041. {
  2042. name = "KEY_KP_9",
  2043. value = 329,
  2044. description = "Key: Keypad 9"
  2045. },
  2046. {
  2047. name = "KEY_KP_DECIMAL",
  2048. value = 330,
  2049. description = "Key: Keypad ."
  2050. },
  2051. {
  2052. name = "KEY_KP_DIVIDE",
  2053. value = 331,
  2054. description = "Key: Keypad /"
  2055. },
  2056. {
  2057. name = "KEY_KP_MULTIPLY",
  2058. value = 332,
  2059. description = "Key: Keypad *"
  2060. },
  2061. {
  2062. name = "KEY_KP_SUBTRACT",
  2063. value = 333,
  2064. description = "Key: Keypad -"
  2065. },
  2066. {
  2067. name = "KEY_KP_ADD",
  2068. value = 334,
  2069. description = "Key: Keypad +"
  2070. },
  2071. {
  2072. name = "KEY_KP_ENTER",
  2073. value = 335,
  2074. description = "Key: Keypad Enter"
  2075. },
  2076. {
  2077. name = "KEY_KP_EQUAL",
  2078. value = 336,
  2079. description = "Key: Keypad ="
  2080. },
  2081. {
  2082. name = "KEY_BACK",
  2083. value = 4,
  2084. description = "Key: Android back button"
  2085. },
  2086. {
  2087. name = "KEY_MENU",
  2088. value = 5,
  2089. description = "Key: Android menu button"
  2090. },
  2091. {
  2092. name = "KEY_VOLUME_UP",
  2093. value = 24,
  2094. description = "Key: Android volume up button"
  2095. },
  2096. {
  2097. name = "KEY_VOLUME_DOWN",
  2098. value = 25,
  2099. description = "Key: Android volume down button"
  2100. }
  2101. }
  2102. },
  2103. {
  2104. name = "MouseButton",
  2105. description = "Mouse buttons",
  2106. values = {
  2107. {
  2108. name = "MOUSE_BUTTON_LEFT",
  2109. value = 0,
  2110. description = "Mouse button left"
  2111. },
  2112. {
  2113. name = "MOUSE_BUTTON_RIGHT",
  2114. value = 1,
  2115. description = "Mouse button right"
  2116. },
  2117. {
  2118. name = "MOUSE_BUTTON_MIDDLE",
  2119. value = 2,
  2120. description = "Mouse button middle (pressed wheel)"
  2121. },
  2122. {
  2123. name = "MOUSE_BUTTON_SIDE",
  2124. value = 3,
  2125. description = "Mouse button side (advanced mouse device)"
  2126. },
  2127. {
  2128. name = "MOUSE_BUTTON_EXTRA",
  2129. value = 4,
  2130. description = "Mouse button extra (advanced mouse device)"
  2131. },
  2132. {
  2133. name = "MOUSE_BUTTON_FORWARD",
  2134. value = 5,
  2135. description = "Mouse button forward (advanced mouse device)"
  2136. },
  2137. {
  2138. name = "MOUSE_BUTTON_BACK",
  2139. value = 6,
  2140. description = "Mouse button back (advanced mouse device)"
  2141. }
  2142. }
  2143. },
  2144. {
  2145. name = "MouseCursor",
  2146. description = "Mouse cursor",
  2147. values = {
  2148. {
  2149. name = "MOUSE_CURSOR_DEFAULT",
  2150. value = 0,
  2151. description = "Default pointer shape"
  2152. },
  2153. {
  2154. name = "MOUSE_CURSOR_ARROW",
  2155. value = 1,
  2156. description = "Arrow shape"
  2157. },
  2158. {
  2159. name = "MOUSE_CURSOR_IBEAM",
  2160. value = 2,
  2161. description = "Text writing cursor shape"
  2162. },
  2163. {
  2164. name = "MOUSE_CURSOR_CROSSHAIR",
  2165. value = 3,
  2166. description = "Cross shape"
  2167. },
  2168. {
  2169. name = "MOUSE_CURSOR_POINTING_HAND",
  2170. value = 4,
  2171. description = "Pointing hand cursor"
  2172. },
  2173. {
  2174. name = "MOUSE_CURSOR_RESIZE_EW",
  2175. value = 5,
  2176. description = "Horizontal resize/move arrow shape"
  2177. },
  2178. {
  2179. name = "MOUSE_CURSOR_RESIZE_NS",
  2180. value = 6,
  2181. description = "Vertical resize/move arrow shape"
  2182. },
  2183. {
  2184. name = "MOUSE_CURSOR_RESIZE_NWSE",
  2185. value = 7,
  2186. description = "Top-left to bottom-right diagonal resize/move arrow shape"
  2187. },
  2188. {
  2189. name = "MOUSE_CURSOR_RESIZE_NESW",
  2190. value = 8,
  2191. description = "The top-right to bottom-left diagonal resize/move arrow shape"
  2192. },
  2193. {
  2194. name = "MOUSE_CURSOR_RESIZE_ALL",
  2195. value = 9,
  2196. description = "The omnidirectional resize/move cursor shape"
  2197. },
  2198. {
  2199. name = "MOUSE_CURSOR_NOT_ALLOWED",
  2200. value = 10,
  2201. description = "The operation-not-allowed shape"
  2202. }
  2203. }
  2204. },
  2205. {
  2206. name = "GamepadButton",
  2207. description = "Gamepad buttons",
  2208. values = {
  2209. {
  2210. name = "GAMEPAD_BUTTON_UNKNOWN",
  2211. value = 0,
  2212. description = "Unknown button, just for error checking"
  2213. },
  2214. {
  2215. name = "GAMEPAD_BUTTON_LEFT_FACE_UP",
  2216. value = 1,
  2217. description = "Gamepad left DPAD up button"
  2218. },
  2219. {
  2220. name = "GAMEPAD_BUTTON_LEFT_FACE_RIGHT",
  2221. value = 2,
  2222. description = "Gamepad left DPAD right button"
  2223. },
  2224. {
  2225. name = "GAMEPAD_BUTTON_LEFT_FACE_DOWN",
  2226. value = 3,
  2227. description = "Gamepad left DPAD down button"
  2228. },
  2229. {
  2230. name = "GAMEPAD_BUTTON_LEFT_FACE_LEFT",
  2231. value = 4,
  2232. description = "Gamepad left DPAD left button"
  2233. },
  2234. {
  2235. name = "GAMEPAD_BUTTON_RIGHT_FACE_UP",
  2236. value = 5,
  2237. description = "Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)"
  2238. },
  2239. {
  2240. name = "GAMEPAD_BUTTON_RIGHT_FACE_RIGHT",
  2241. value = 6,
  2242. description = "Gamepad right button right (i.e. PS3: Circle, Xbox: B)"
  2243. },
  2244. {
  2245. name = "GAMEPAD_BUTTON_RIGHT_FACE_DOWN",
  2246. value = 7,
  2247. description = "Gamepad right button down (i.e. PS3: Cross, Xbox: A)"
  2248. },
  2249. {
  2250. name = "GAMEPAD_BUTTON_RIGHT_FACE_LEFT",
  2251. value = 8,
  2252. description = "Gamepad right button left (i.e. PS3: Square, Xbox: X)"
  2253. },
  2254. {
  2255. name = "GAMEPAD_BUTTON_LEFT_TRIGGER_1",
  2256. value = 9,
  2257. description = "Gamepad top/back trigger left (first), it could be a trailing button"
  2258. },
  2259. {
  2260. name = "GAMEPAD_BUTTON_LEFT_TRIGGER_2",
  2261. value = 10,
  2262. description = "Gamepad top/back trigger left (second), it could be a trailing button"
  2263. },
  2264. {
  2265. name = "GAMEPAD_BUTTON_RIGHT_TRIGGER_1",
  2266. value = 11,
  2267. description = "Gamepad top/back trigger right (first), it could be a trailing button"
  2268. },
  2269. {
  2270. name = "GAMEPAD_BUTTON_RIGHT_TRIGGER_2",
  2271. value = 12,
  2272. description = "Gamepad top/back trigger right (second), it could be a trailing button"
  2273. },
  2274. {
  2275. name = "GAMEPAD_BUTTON_MIDDLE_LEFT",
  2276. value = 13,
  2277. description = "Gamepad center buttons, left one (i.e. PS3: Select)"
  2278. },
  2279. {
  2280. name = "GAMEPAD_BUTTON_MIDDLE",
  2281. value = 14,
  2282. description = "Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)"
  2283. },
  2284. {
  2285. name = "GAMEPAD_BUTTON_MIDDLE_RIGHT",
  2286. value = 15,
  2287. description = "Gamepad center buttons, right one (i.e. PS3: Start)"
  2288. },
  2289. {
  2290. name = "GAMEPAD_BUTTON_LEFT_THUMB",
  2291. value = 16,
  2292. description = "Gamepad joystick pressed button left"
  2293. },
  2294. {
  2295. name = "GAMEPAD_BUTTON_RIGHT_THUMB",
  2296. value = 17,
  2297. description = "Gamepad joystick pressed button right"
  2298. }
  2299. }
  2300. },
  2301. {
  2302. name = "GamepadAxis",
  2303. description = "Gamepad axis",
  2304. values = {
  2305. {
  2306. name = "GAMEPAD_AXIS_LEFT_X",
  2307. value = 0,
  2308. description = "Gamepad left stick X axis"
  2309. },
  2310. {
  2311. name = "GAMEPAD_AXIS_LEFT_Y",
  2312. value = 1,
  2313. description = "Gamepad left stick Y axis"
  2314. },
  2315. {
  2316. name = "GAMEPAD_AXIS_RIGHT_X",
  2317. value = 2,
  2318. description = "Gamepad right stick X axis"
  2319. },
  2320. {
  2321. name = "GAMEPAD_AXIS_RIGHT_Y",
  2322. value = 3,
  2323. description = "Gamepad right stick Y axis"
  2324. },
  2325. {
  2326. name = "GAMEPAD_AXIS_LEFT_TRIGGER",
  2327. value = 4,
  2328. description = "Gamepad back trigger left, pressure level: [1..-1]"
  2329. },
  2330. {
  2331. name = "GAMEPAD_AXIS_RIGHT_TRIGGER",
  2332. value = 5,
  2333. description = "Gamepad back trigger right, pressure level: [1..-1]"
  2334. }
  2335. }
  2336. },
  2337. {
  2338. name = "MaterialMapIndex",
  2339. description = "Material map index",
  2340. values = {
  2341. {
  2342. name = "MATERIAL_MAP_ALBEDO",
  2343. value = 0,
  2344. description = "Albedo material (same as: MATERIAL_MAP_DIFFUSE)"
  2345. },
  2346. {
  2347. name = "MATERIAL_MAP_METALNESS",
  2348. value = 1,
  2349. description = "Metalness material (same as: MATERIAL_MAP_SPECULAR)"
  2350. },
  2351. {
  2352. name = "MATERIAL_MAP_NORMAL",
  2353. value = 2,
  2354. description = "Normal material"
  2355. },
  2356. {
  2357. name = "MATERIAL_MAP_ROUGHNESS",
  2358. value = 3,
  2359. description = "Roughness material"
  2360. },
  2361. {
  2362. name = "MATERIAL_MAP_OCCLUSION",
  2363. value = 4,
  2364. description = "Ambient occlusion material"
  2365. },
  2366. {
  2367. name = "MATERIAL_MAP_EMISSION",
  2368. value = 5,
  2369. description = "Emission material"
  2370. },
  2371. {
  2372. name = "MATERIAL_MAP_HEIGHT",
  2373. value = 6,
  2374. description = "Heightmap material"
  2375. },
  2376. {
  2377. name = "MATERIAL_MAP_CUBEMAP",
  2378. value = 7,
  2379. description = "Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP)"
  2380. },
  2381. {
  2382. name = "MATERIAL_MAP_IRRADIANCE",
  2383. value = 8,
  2384. description = "Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP)"
  2385. },
  2386. {
  2387. name = "MATERIAL_MAP_PREFILTER",
  2388. value = 9,
  2389. description = "Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP)"
  2390. },
  2391. {
  2392. name = "MATERIAL_MAP_BRDF",
  2393. value = 10,
  2394. description = "Brdf material"
  2395. }
  2396. }
  2397. },
  2398. {
  2399. name = "ShaderLocationIndex",
  2400. description = "Shader location index",
  2401. values = {
  2402. {
  2403. name = "SHADER_LOC_VERTEX_POSITION",
  2404. value = 0,
  2405. description = "Shader location: vertex attribute: position"
  2406. },
  2407. {
  2408. name = "SHADER_LOC_VERTEX_TEXCOORD01",
  2409. value = 1,
  2410. description = "Shader location: vertex attribute: texcoord01"
  2411. },
  2412. {
  2413. name = "SHADER_LOC_VERTEX_TEXCOORD02",
  2414. value = 2,
  2415. description = "Shader location: vertex attribute: texcoord02"
  2416. },
  2417. {
  2418. name = "SHADER_LOC_VERTEX_NORMAL",
  2419. value = 3,
  2420. description = "Shader location: vertex attribute: normal"
  2421. },
  2422. {
  2423. name = "SHADER_LOC_VERTEX_TANGENT",
  2424. value = 4,
  2425. description = "Shader location: vertex attribute: tangent"
  2426. },
  2427. {
  2428. name = "SHADER_LOC_VERTEX_COLOR",
  2429. value = 5,
  2430. description = "Shader location: vertex attribute: color"
  2431. },
  2432. {
  2433. name = "SHADER_LOC_MATRIX_MVP",
  2434. value = 6,
  2435. description = "Shader location: matrix uniform: model-view-projection"
  2436. },
  2437. {
  2438. name = "SHADER_LOC_MATRIX_VIEW",
  2439. value = 7,
  2440. description = "Shader location: matrix uniform: view (camera transform)"
  2441. },
  2442. {
  2443. name = "SHADER_LOC_MATRIX_PROJECTION",
  2444. value = 8,
  2445. description = "Shader location: matrix uniform: projection"
  2446. },
  2447. {
  2448. name = "SHADER_LOC_MATRIX_MODEL",
  2449. value = 9,
  2450. description = "Shader location: matrix uniform: model (transform)"
  2451. },
  2452. {
  2453. name = "SHADER_LOC_MATRIX_NORMAL",
  2454. value = 10,
  2455. description = "Shader location: matrix uniform: normal"
  2456. },
  2457. {
  2458. name = "SHADER_LOC_VECTOR_VIEW",
  2459. value = 11,
  2460. description = "Shader location: vector uniform: view"
  2461. },
  2462. {
  2463. name = "SHADER_LOC_COLOR_DIFFUSE",
  2464. value = 12,
  2465. description = "Shader location: vector uniform: diffuse color"
  2466. },
  2467. {
  2468. name = "SHADER_LOC_COLOR_SPECULAR",
  2469. value = 13,
  2470. description = "Shader location: vector uniform: specular color"
  2471. },
  2472. {
  2473. name = "SHADER_LOC_COLOR_AMBIENT",
  2474. value = 14,
  2475. description = "Shader location: vector uniform: ambient color"
  2476. },
  2477. {
  2478. name = "SHADER_LOC_MAP_ALBEDO",
  2479. value = 15,
  2480. description = "Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)"
  2481. },
  2482. {
  2483. name = "SHADER_LOC_MAP_METALNESS",
  2484. value = 16,
  2485. description = "Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)"
  2486. },
  2487. {
  2488. name = "SHADER_LOC_MAP_NORMAL",
  2489. value = 17,
  2490. description = "Shader location: sampler2d texture: normal"
  2491. },
  2492. {
  2493. name = "SHADER_LOC_MAP_ROUGHNESS",
  2494. value = 18,
  2495. description = "Shader location: sampler2d texture: roughness"
  2496. },
  2497. {
  2498. name = "SHADER_LOC_MAP_OCCLUSION",
  2499. value = 19,
  2500. description = "Shader location: sampler2d texture: occlusion"
  2501. },
  2502. {
  2503. name = "SHADER_LOC_MAP_EMISSION",
  2504. value = 20,
  2505. description = "Shader location: sampler2d texture: emission"
  2506. },
  2507. {
  2508. name = "SHADER_LOC_MAP_HEIGHT",
  2509. value = 21,
  2510. description = "Shader location: sampler2d texture: height"
  2511. },
  2512. {
  2513. name = "SHADER_LOC_MAP_CUBEMAP",
  2514. value = 22,
  2515. description = "Shader location: samplerCube texture: cubemap"
  2516. },
  2517. {
  2518. name = "SHADER_LOC_MAP_IRRADIANCE",
  2519. value = 23,
  2520. description = "Shader location: samplerCube texture: irradiance"
  2521. },
  2522. {
  2523. name = "SHADER_LOC_MAP_PREFILTER",
  2524. value = 24,
  2525. description = "Shader location: samplerCube texture: prefilter"
  2526. },
  2527. {
  2528. name = "SHADER_LOC_MAP_BRDF",
  2529. value = 25,
  2530. description = "Shader location: sampler2d texture: brdf"
  2531. },
  2532. {
  2533. name = "SHADER_LOC_VERTEX_BONEIDS",
  2534. value = 26,
  2535. description = "Shader location: vertex attribute: boneIds"
  2536. },
  2537. {
  2538. name = "SHADER_LOC_VERTEX_BONEWEIGHTS",
  2539. value = 27,
  2540. description = "Shader location: vertex attribute: boneWeights"
  2541. },
  2542. {
  2543. name = "SHADER_LOC_BONE_MATRICES",
  2544. value = 28,
  2545. description = "Shader location: array of matrices uniform: boneMatrices"
  2546. }
  2547. }
  2548. },
  2549. {
  2550. name = "ShaderUniformDataType",
  2551. description = "Shader uniform data type",
  2552. values = {
  2553. {
  2554. name = "SHADER_UNIFORM_FLOAT",
  2555. value = 0,
  2556. description = "Shader uniform type: float"
  2557. },
  2558. {
  2559. name = "SHADER_UNIFORM_VEC2",
  2560. value = 1,
  2561. description = "Shader uniform type: vec2 (2 float)"
  2562. },
  2563. {
  2564. name = "SHADER_UNIFORM_VEC3",
  2565. value = 2,
  2566. description = "Shader uniform type: vec3 (3 float)"
  2567. },
  2568. {
  2569. name = "SHADER_UNIFORM_VEC4",
  2570. value = 3,
  2571. description = "Shader uniform type: vec4 (4 float)"
  2572. },
  2573. {
  2574. name = "SHADER_UNIFORM_INT",
  2575. value = 4,
  2576. description = "Shader uniform type: int"
  2577. },
  2578. {
  2579. name = "SHADER_UNIFORM_IVEC2",
  2580. value = 5,
  2581. description = "Shader uniform type: ivec2 (2 int)"
  2582. },
  2583. {
  2584. name = "SHADER_UNIFORM_IVEC3",
  2585. value = 6,
  2586. description = "Shader uniform type: ivec3 (3 int)"
  2587. },
  2588. {
  2589. name = "SHADER_UNIFORM_IVEC4",
  2590. value = 7,
  2591. description = "Shader uniform type: ivec4 (4 int)"
  2592. },
  2593. {
  2594. name = "SHADER_UNIFORM_SAMPLER2D",
  2595. value = 8,
  2596. description = "Shader uniform type: sampler2d"
  2597. }
  2598. }
  2599. },
  2600. {
  2601. name = "ShaderAttributeDataType",
  2602. description = "Shader attribute data types",
  2603. values = {
  2604. {
  2605. name = "SHADER_ATTRIB_FLOAT",
  2606. value = 0,
  2607. description = "Shader attribute type: float"
  2608. },
  2609. {
  2610. name = "SHADER_ATTRIB_VEC2",
  2611. value = 1,
  2612. description = "Shader attribute type: vec2 (2 float)"
  2613. },
  2614. {
  2615. name = "SHADER_ATTRIB_VEC3",
  2616. value = 2,
  2617. description = "Shader attribute type: vec3 (3 float)"
  2618. },
  2619. {
  2620. name = "SHADER_ATTRIB_VEC4",
  2621. value = 3,
  2622. description = "Shader attribute type: vec4 (4 float)"
  2623. }
  2624. }
  2625. },
  2626. {
  2627. name = "PixelFormat",
  2628. description = "Pixel formats",
  2629. values = {
  2630. {
  2631. name = "PIXELFORMAT_UNCOMPRESSED_GRAYSCALE",
  2632. value = 1,
  2633. description = "8 bit per pixel (no alpha)"
  2634. },
  2635. {
  2636. name = "PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA",
  2637. value = 2,
  2638. description = "8*2 bpp (2 channels)"
  2639. },
  2640. {
  2641. name = "PIXELFORMAT_UNCOMPRESSED_R5G6B5",
  2642. value = 3,
  2643. description = "16 bpp"
  2644. },
  2645. {
  2646. name = "PIXELFORMAT_UNCOMPRESSED_R8G8B8",
  2647. value = 4,
  2648. description = "24 bpp"
  2649. },
  2650. {
  2651. name = "PIXELFORMAT_UNCOMPRESSED_R5G5B5A1",
  2652. value = 5,
  2653. description = "16 bpp (1 bit alpha)"
  2654. },
  2655. {
  2656. name = "PIXELFORMAT_UNCOMPRESSED_R4G4B4A4",
  2657. value = 6,
  2658. description = "16 bpp (4 bit alpha)"
  2659. },
  2660. {
  2661. name = "PIXELFORMAT_UNCOMPRESSED_R8G8B8A8",
  2662. value = 7,
  2663. description = "32 bpp"
  2664. },
  2665. {
  2666. name = "PIXELFORMAT_UNCOMPRESSED_R32",
  2667. value = 8,
  2668. description = "32 bpp (1 channel - float)"
  2669. },
  2670. {
  2671. name = "PIXELFORMAT_UNCOMPRESSED_R32G32B32",
  2672. value = 9,
  2673. description = "32*3 bpp (3 channels - float)"
  2674. },
  2675. {
  2676. name = "PIXELFORMAT_UNCOMPRESSED_R32G32B32A32",
  2677. value = 10,
  2678. description = "32*4 bpp (4 channels - float)"
  2679. },
  2680. {
  2681. name = "PIXELFORMAT_UNCOMPRESSED_R16",
  2682. value = 11,
  2683. description = "16 bpp (1 channel - half float)"
  2684. },
  2685. {
  2686. name = "PIXELFORMAT_UNCOMPRESSED_R16G16B16",
  2687. value = 12,
  2688. description = "16*3 bpp (3 channels - half float)"
  2689. },
  2690. {
  2691. name = "PIXELFORMAT_UNCOMPRESSED_R16G16B16A16",
  2692. value = 13,
  2693. description = "16*4 bpp (4 channels - half float)"
  2694. },
  2695. {
  2696. name = "PIXELFORMAT_COMPRESSED_DXT1_RGB",
  2697. value = 14,
  2698. description = "4 bpp (no alpha)"
  2699. },
  2700. {
  2701. name = "PIXELFORMAT_COMPRESSED_DXT1_RGBA",
  2702. value = 15,
  2703. description = "4 bpp (1 bit alpha)"
  2704. },
  2705. {
  2706. name = "PIXELFORMAT_COMPRESSED_DXT3_RGBA",
  2707. value = 16,
  2708. description = "8 bpp"
  2709. },
  2710. {
  2711. name = "PIXELFORMAT_COMPRESSED_DXT5_RGBA",
  2712. value = 17,
  2713. description = "8 bpp"
  2714. },
  2715. {
  2716. name = "PIXELFORMAT_COMPRESSED_ETC1_RGB",
  2717. value = 18,
  2718. description = "4 bpp"
  2719. },
  2720. {
  2721. name = "PIXELFORMAT_COMPRESSED_ETC2_RGB",
  2722. value = 19,
  2723. description = "4 bpp"
  2724. },
  2725. {
  2726. name = "PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA",
  2727. value = 20,
  2728. description = "8 bpp"
  2729. },
  2730. {
  2731. name = "PIXELFORMAT_COMPRESSED_PVRT_RGB",
  2732. value = 21,
  2733. description = "4 bpp"
  2734. },
  2735. {
  2736. name = "PIXELFORMAT_COMPRESSED_PVRT_RGBA",
  2737. value = 22,
  2738. description = "4 bpp"
  2739. },
  2740. {
  2741. name = "PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA",
  2742. value = 23,
  2743. description = "8 bpp"
  2744. },
  2745. {
  2746. name = "PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA",
  2747. value = 24,
  2748. description = "2 bpp"
  2749. }
  2750. }
  2751. },
  2752. {
  2753. name = "TextureFilter",
  2754. description = "Texture parameters: filter mode",
  2755. values = {
  2756. {
  2757. name = "TEXTURE_FILTER_POINT",
  2758. value = 0,
  2759. description = "No filter, just pixel approximation"
  2760. },
  2761. {
  2762. name = "TEXTURE_FILTER_BILINEAR",
  2763. value = 1,
  2764. description = "Linear filtering"
  2765. },
  2766. {
  2767. name = "TEXTURE_FILTER_TRILINEAR",
  2768. value = 2,
  2769. description = "Trilinear filtering (linear with mipmaps)"
  2770. },
  2771. {
  2772. name = "TEXTURE_FILTER_ANISOTROPIC_4X",
  2773. value = 3,
  2774. description = "Anisotropic filtering 4x"
  2775. },
  2776. {
  2777. name = "TEXTURE_FILTER_ANISOTROPIC_8X",
  2778. value = 4,
  2779. description = "Anisotropic filtering 8x"
  2780. },
  2781. {
  2782. name = "TEXTURE_FILTER_ANISOTROPIC_16X",
  2783. value = 5,
  2784. description = "Anisotropic filtering 16x"
  2785. }
  2786. }
  2787. },
  2788. {
  2789. name = "TextureWrap",
  2790. description = "Texture parameters: wrap mode",
  2791. values = {
  2792. {
  2793. name = "TEXTURE_WRAP_REPEAT",
  2794. value = 0,
  2795. description = "Repeats texture in tiled mode"
  2796. },
  2797. {
  2798. name = "TEXTURE_WRAP_CLAMP",
  2799. value = 1,
  2800. description = "Clamps texture to edge pixel in tiled mode"
  2801. },
  2802. {
  2803. name = "TEXTURE_WRAP_MIRROR_REPEAT",
  2804. value = 2,
  2805. description = "Mirrors and repeats the texture in tiled mode"
  2806. },
  2807. {
  2808. name = "TEXTURE_WRAP_MIRROR_CLAMP",
  2809. value = 3,
  2810. description = "Mirrors and clamps to border the texture in tiled mode"
  2811. }
  2812. }
  2813. },
  2814. {
  2815. name = "CubemapLayout",
  2816. description = "Cubemap layouts",
  2817. values = {
  2818. {
  2819. name = "CUBEMAP_LAYOUT_AUTO_DETECT",
  2820. value = 0,
  2821. description = "Automatically detect layout type"
  2822. },
  2823. {
  2824. name = "CUBEMAP_LAYOUT_LINE_VERTICAL",
  2825. value = 1,
  2826. description = "Layout is defined by a vertical line with faces"
  2827. },
  2828. {
  2829. name = "CUBEMAP_LAYOUT_LINE_HORIZONTAL",
  2830. value = 2,
  2831. description = "Layout is defined by a horizontal line with faces"
  2832. },
  2833. {
  2834. name = "CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR",
  2835. value = 3,
  2836. description = "Layout is defined by a 3x4 cross with cubemap faces"
  2837. },
  2838. {
  2839. name = "CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE",
  2840. value = 4,
  2841. description = "Layout is defined by a 4x3 cross with cubemap faces"
  2842. }
  2843. }
  2844. },
  2845. {
  2846. name = "FontType",
  2847. description = "Font type, defines generation method",
  2848. values = {
  2849. {
  2850. name = "FONT_DEFAULT",
  2851. value = 0,
  2852. description = "Default font generation, anti-aliased"
  2853. },
  2854. {
  2855. name = "FONT_BITMAP",
  2856. value = 1,
  2857. description = "Bitmap font generation, no anti-aliasing"
  2858. },
  2859. {
  2860. name = "FONT_SDF",
  2861. value = 2,
  2862. description = "SDF font generation, requires external shader"
  2863. }
  2864. }
  2865. },
  2866. {
  2867. name = "BlendMode",
  2868. description = "Color blending modes (pre-defined)",
  2869. values = {
  2870. {
  2871. name = "BLEND_ALPHA",
  2872. value = 0,
  2873. description = "Blend textures considering alpha (default)"
  2874. },
  2875. {
  2876. name = "BLEND_ADDITIVE",
  2877. value = 1,
  2878. description = "Blend textures adding colors"
  2879. },
  2880. {
  2881. name = "BLEND_MULTIPLIED",
  2882. value = 2,
  2883. description = "Blend textures multiplying colors"
  2884. },
  2885. {
  2886. name = "BLEND_ADD_COLORS",
  2887. value = 3,
  2888. description = "Blend textures adding colors (alternative)"
  2889. },
  2890. {
  2891. name = "BLEND_SUBTRACT_COLORS",
  2892. value = 4,
  2893. description = "Blend textures subtracting colors (alternative)"
  2894. },
  2895. {
  2896. name = "BLEND_ALPHA_PREMULTIPLY",
  2897. value = 5,
  2898. description = "Blend premultiplied textures considering alpha"
  2899. },
  2900. {
  2901. name = "BLEND_CUSTOM",
  2902. value = 6,
  2903. description = "Blend textures using custom src/dst factors (use rlSetBlendFactors())"
  2904. },
  2905. {
  2906. name = "BLEND_CUSTOM_SEPARATE",
  2907. value = 7,
  2908. description = "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())"
  2909. }
  2910. }
  2911. },
  2912. {
  2913. name = "Gesture",
  2914. description = "Gesture",
  2915. values = {
  2916. {
  2917. name = "GESTURE_NONE",
  2918. value = 0,
  2919. description = "No gesture"
  2920. },
  2921. {
  2922. name = "GESTURE_TAP",
  2923. value = 1,
  2924. description = "Tap gesture"
  2925. },
  2926. {
  2927. name = "GESTURE_DOUBLETAP",
  2928. value = 2,
  2929. description = "Double tap gesture"
  2930. },
  2931. {
  2932. name = "GESTURE_HOLD",
  2933. value = 4,
  2934. description = "Hold gesture"
  2935. },
  2936. {
  2937. name = "GESTURE_DRAG",
  2938. value = 8,
  2939. description = "Drag gesture"
  2940. },
  2941. {
  2942. name = "GESTURE_SWIPE_RIGHT",
  2943. value = 16,
  2944. description = "Swipe right gesture"
  2945. },
  2946. {
  2947. name = "GESTURE_SWIPE_LEFT",
  2948. value = 32,
  2949. description = "Swipe left gesture"
  2950. },
  2951. {
  2952. name = "GESTURE_SWIPE_UP",
  2953. value = 64,
  2954. description = "Swipe up gesture"
  2955. },
  2956. {
  2957. name = "GESTURE_SWIPE_DOWN",
  2958. value = 128,
  2959. description = "Swipe down gesture"
  2960. },
  2961. {
  2962. name = "GESTURE_PINCH_IN",
  2963. value = 256,
  2964. description = "Pinch in gesture"
  2965. },
  2966. {
  2967. name = "GESTURE_PINCH_OUT",
  2968. value = 512,
  2969. description = "Pinch out gesture"
  2970. }
  2971. }
  2972. },
  2973. {
  2974. name = "CameraMode",
  2975. description = "Camera system modes",
  2976. values = {
  2977. {
  2978. name = "CAMERA_CUSTOM",
  2979. value = 0,
  2980. description = "Camera custom, controlled by user (UpdateCamera() does nothing)"
  2981. },
  2982. {
  2983. name = "CAMERA_FREE",
  2984. value = 1,
  2985. description = "Camera free mode"
  2986. },
  2987. {
  2988. name = "CAMERA_ORBITAL",
  2989. value = 2,
  2990. description = "Camera orbital, around target, zoom supported"
  2991. },
  2992. {
  2993. name = "CAMERA_FIRST_PERSON",
  2994. value = 3,
  2995. description = "Camera first person"
  2996. },
  2997. {
  2998. name = "CAMERA_THIRD_PERSON",
  2999. value = 4,
  3000. description = "Camera third person"
  3001. }
  3002. }
  3003. },
  3004. {
  3005. name = "CameraProjection",
  3006. description = "Camera projection",
  3007. values = {
  3008. {
  3009. name = "CAMERA_PERSPECTIVE",
  3010. value = 0,
  3011. description = "Perspective projection"
  3012. },
  3013. {
  3014. name = "CAMERA_ORTHOGRAPHIC",
  3015. value = 1,
  3016. description = "Orthographic projection"
  3017. }
  3018. }
  3019. },
  3020. {
  3021. name = "NPatchLayout",
  3022. description = "N-patch layout",
  3023. values = {
  3024. {
  3025. name = "NPATCH_NINE_PATCH",
  3026. value = 0,
  3027. description = "Npatch layout: 3x3 tiles"
  3028. },
  3029. {
  3030. name = "NPATCH_THREE_PATCH_VERTICAL",
  3031. value = 1,
  3032. description = "Npatch layout: 1x3 tiles"
  3033. },
  3034. {
  3035. name = "NPATCH_THREE_PATCH_HORIZONTAL",
  3036. value = 2,
  3037. description = "Npatch layout: 3x1 tiles"
  3038. }
  3039. }
  3040. }
  3041. },
  3042. callbacks = {
  3043. {
  3044. name = "TraceLogCallback",
  3045. description = "Logging: Redirect trace log messages",
  3046. returnType = "void",
  3047. params = {
  3048. {type = "int", name = "logLevel"},
  3049. {type = "const char *", name = "text"},
  3050. {type = "va_list", name = "args"}
  3051. }
  3052. },
  3053. {
  3054. name = "LoadFileDataCallback",
  3055. description = "FileIO: Load binary data",
  3056. returnType = "unsigned char *",
  3057. params = {
  3058. {type = "const char *", name = "fileName"},
  3059. {type = "int *", name = "dataSize"}
  3060. }
  3061. },
  3062. {
  3063. name = "SaveFileDataCallback",
  3064. description = "FileIO: Save binary data",
  3065. returnType = "bool",
  3066. params = {
  3067. {type = "const char *", name = "fileName"},
  3068. {type = "void *", name = "data"},
  3069. {type = "int", name = "dataSize"}
  3070. }
  3071. },
  3072. {
  3073. name = "LoadFileTextCallback",
  3074. description = "FileIO: Load text data",
  3075. returnType = "char *",
  3076. params = {
  3077. {type = "const char *", name = "fileName"}
  3078. }
  3079. },
  3080. {
  3081. name = "SaveFileTextCallback",
  3082. description = "FileIO: Save text data",
  3083. returnType = "bool",
  3084. params = {
  3085. {type = "const char *", name = "fileName"},
  3086. {type = "char *", name = "text"}
  3087. }
  3088. },
  3089. {
  3090. name = "AudioCallback",
  3091. description = "",
  3092. returnType = "void",
  3093. params = {
  3094. {type = "void *", name = "bufferData"},
  3095. {type = "unsigned int", name = "frames"}
  3096. }
  3097. }
  3098. },
  3099. functions = {
  3100. {
  3101. name = "InitWindow",
  3102. description = "Initialize window and OpenGL context",
  3103. returnType = "void",
  3104. params = {
  3105. {type = "int", name = "width"},
  3106. {type = "int", name = "height"},
  3107. {type = "const char *", name = "title"}
  3108. }
  3109. },
  3110. {
  3111. name = "CloseWindow",
  3112. description = "Close window and unload OpenGL context",
  3113. returnType = "void"
  3114. },
  3115. {
  3116. name = "WindowShouldClose",
  3117. description = "Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)",
  3118. returnType = "bool"
  3119. },
  3120. {
  3121. name = "IsWindowReady",
  3122. description = "Check if window has been initialized successfully",
  3123. returnType = "bool"
  3124. },
  3125. {
  3126. name = "IsWindowFullscreen",
  3127. description = "Check if window is currently fullscreen",
  3128. returnType = "bool"
  3129. },
  3130. {
  3131. name = "IsWindowHidden",
  3132. description = "Check if window is currently hidden",
  3133. returnType = "bool"
  3134. },
  3135. {
  3136. name = "IsWindowMinimized",
  3137. description = "Check if window is currently minimized",
  3138. returnType = "bool"
  3139. },
  3140. {
  3141. name = "IsWindowMaximized",
  3142. description = "Check if window is currently maximized",
  3143. returnType = "bool"
  3144. },
  3145. {
  3146. name = "IsWindowFocused",
  3147. description = "Check if window is currently focused",
  3148. returnType = "bool"
  3149. },
  3150. {
  3151. name = "IsWindowResized",
  3152. description = "Check if window has been resized last frame",
  3153. returnType = "bool"
  3154. },
  3155. {
  3156. name = "IsWindowState",
  3157. description = "Check if one specific window flag is enabled",
  3158. returnType = "bool",
  3159. params = {
  3160. {type = "unsigned int", name = "flag"}
  3161. }
  3162. },
  3163. {
  3164. name = "SetWindowState",
  3165. description = "Set window configuration state using flags",
  3166. returnType = "void",
  3167. params = {
  3168. {type = "unsigned int", name = "flags"}
  3169. }
  3170. },
  3171. {
  3172. name = "ClearWindowState",
  3173. description = "Clear window configuration state flags",
  3174. returnType = "void",
  3175. params = {
  3176. {type = "unsigned int", name = "flags"}
  3177. }
  3178. },
  3179. {
  3180. name = "ToggleFullscreen",
  3181. description = "Toggle window state: fullscreen/windowed, resizes monitor to match window resolution",
  3182. returnType = "void"
  3183. },
  3184. {
  3185. name = "ToggleBorderlessWindowed",
  3186. description = "Toggle window state: borderless windowed, resizes window to match monitor resolution",
  3187. returnType = "void"
  3188. },
  3189. {
  3190. name = "MaximizeWindow",
  3191. description = "Set window state: maximized, if resizable",
  3192. returnType = "void"
  3193. },
  3194. {
  3195. name = "MinimizeWindow",
  3196. description = "Set window state: minimized, if resizable",
  3197. returnType = "void"
  3198. },
  3199. {
  3200. name = "RestoreWindow",
  3201. description = "Set window state: not minimized/maximized",
  3202. returnType = "void"
  3203. },
  3204. {
  3205. name = "SetWindowIcon",
  3206. description = "Set icon for window (single image, RGBA 32bit)",
  3207. returnType = "void",
  3208. params = {
  3209. {type = "Image", name = "image"}
  3210. }
  3211. },
  3212. {
  3213. name = "SetWindowIcons",
  3214. description = "Set icon for window (multiple images, RGBA 32bit)",
  3215. returnType = "void",
  3216. params = {
  3217. {type = "Image *", name = "images"},
  3218. {type = "int", name = "count"}
  3219. }
  3220. },
  3221. {
  3222. name = "SetWindowTitle",
  3223. description = "Set title for window",
  3224. returnType = "void",
  3225. params = {
  3226. {type = "const char *", name = "title"}
  3227. }
  3228. },
  3229. {
  3230. name = "SetWindowPosition",
  3231. description = "Set window position on screen",
  3232. returnType = "void",
  3233. params = {
  3234. {type = "int", name = "x"},
  3235. {type = "int", name = "y"}
  3236. }
  3237. },
  3238. {
  3239. name = "SetWindowMonitor",
  3240. description = "Set monitor for the current window",
  3241. returnType = "void",
  3242. params = {
  3243. {type = "int", name = "monitor"}
  3244. }
  3245. },
  3246. {
  3247. name = "SetWindowMinSize",
  3248. description = "Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)",
  3249. returnType = "void",
  3250. params = {
  3251. {type = "int", name = "width"},
  3252. {type = "int", name = "height"}
  3253. }
  3254. },
  3255. {
  3256. name = "SetWindowMaxSize",
  3257. description = "Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)",
  3258. returnType = "void",
  3259. params = {
  3260. {type = "int", name = "width"},
  3261. {type = "int", name = "height"}
  3262. }
  3263. },
  3264. {
  3265. name = "SetWindowSize",
  3266. description = "Set window dimensions",
  3267. returnType = "void",
  3268. params = {
  3269. {type = "int", name = "width"},
  3270. {type = "int", name = "height"}
  3271. }
  3272. },
  3273. {
  3274. name = "SetWindowOpacity",
  3275. description = "Set window opacity [0.0f..1.0f]",
  3276. returnType = "void",
  3277. params = {
  3278. {type = "float", name = "opacity"}
  3279. }
  3280. },
  3281. {
  3282. name = "SetWindowFocused",
  3283. description = "Set window focused",
  3284. returnType = "void"
  3285. },
  3286. {
  3287. name = "GetWindowHandle",
  3288. description = "Get native window handle",
  3289. returnType = "void *"
  3290. },
  3291. {
  3292. name = "GetScreenWidth",
  3293. description = "Get current screen width",
  3294. returnType = "int"
  3295. },
  3296. {
  3297. name = "GetScreenHeight",
  3298. description = "Get current screen height",
  3299. returnType = "int"
  3300. },
  3301. {
  3302. name = "GetRenderWidth",
  3303. description = "Get current render width (it considers HiDPI)",
  3304. returnType = "int"
  3305. },
  3306. {
  3307. name = "GetRenderHeight",
  3308. description = "Get current render height (it considers HiDPI)",
  3309. returnType = "int"
  3310. },
  3311. {
  3312. name = "GetMonitorCount",
  3313. description = "Get number of connected monitors",
  3314. returnType = "int"
  3315. },
  3316. {
  3317. name = "GetCurrentMonitor",
  3318. description = "Get current monitor where window is placed",
  3319. returnType = "int"
  3320. },
  3321. {
  3322. name = "GetMonitorPosition",
  3323. description = "Get specified monitor position",
  3324. returnType = "Vector2",
  3325. params = {
  3326. {type = "int", name = "monitor"}
  3327. }
  3328. },
  3329. {
  3330. name = "GetMonitorWidth",
  3331. description = "Get specified monitor width (current video mode used by monitor)",
  3332. returnType = "int",
  3333. params = {
  3334. {type = "int", name = "monitor"}
  3335. }
  3336. },
  3337. {
  3338. name = "GetMonitorHeight",
  3339. description = "Get specified monitor height (current video mode used by monitor)",
  3340. returnType = "int",
  3341. params = {
  3342. {type = "int", name = "monitor"}
  3343. }
  3344. },
  3345. {
  3346. name = "GetMonitorPhysicalWidth",
  3347. description = "Get specified monitor physical width in millimetres",
  3348. returnType = "int",
  3349. params = {
  3350. {type = "int", name = "monitor"}
  3351. }
  3352. },
  3353. {
  3354. name = "GetMonitorPhysicalHeight",
  3355. description = "Get specified monitor physical height in millimetres",
  3356. returnType = "int",
  3357. params = {
  3358. {type = "int", name = "monitor"}
  3359. }
  3360. },
  3361. {
  3362. name = "GetMonitorRefreshRate",
  3363. description = "Get specified monitor refresh rate",
  3364. returnType = "int",
  3365. params = {
  3366. {type = "int", name = "monitor"}
  3367. }
  3368. },
  3369. {
  3370. name = "GetWindowPosition",
  3371. description = "Get window position XY on monitor",
  3372. returnType = "Vector2"
  3373. },
  3374. {
  3375. name = "GetWindowScaleDPI",
  3376. description = "Get window scale DPI factor",
  3377. returnType = "Vector2"
  3378. },
  3379. {
  3380. name = "GetMonitorName",
  3381. description = "Get the human-readable, UTF-8 encoded name of the specified monitor",
  3382. returnType = "const char *",
  3383. params = {
  3384. {type = "int", name = "monitor"}
  3385. }
  3386. },
  3387. {
  3388. name = "SetClipboardText",
  3389. description = "Set clipboard text content",
  3390. returnType = "void",
  3391. params = {
  3392. {type = "const char *", name = "text"}
  3393. }
  3394. },
  3395. {
  3396. name = "GetClipboardText",
  3397. description = "Get clipboard text content",
  3398. returnType = "const char *"
  3399. },
  3400. {
  3401. name = "GetClipboardImage",
  3402. description = "Get clipboard image",
  3403. returnType = "Image"
  3404. },
  3405. {
  3406. name = "EnableEventWaiting",
  3407. description = "Enable waiting for events on EndDrawing(), no automatic event polling",
  3408. returnType = "void"
  3409. },
  3410. {
  3411. name = "DisableEventWaiting",
  3412. description = "Disable waiting for events on EndDrawing(), automatic events polling",
  3413. returnType = "void"
  3414. },
  3415. {
  3416. name = "ShowCursor",
  3417. description = "Shows cursor",
  3418. returnType = "void"
  3419. },
  3420. {
  3421. name = "HideCursor",
  3422. description = "Hides cursor",
  3423. returnType = "void"
  3424. },
  3425. {
  3426. name = "IsCursorHidden",
  3427. description = "Check if cursor is not visible",
  3428. returnType = "bool"
  3429. },
  3430. {
  3431. name = "EnableCursor",
  3432. description = "Enables cursor (unlock cursor)",
  3433. returnType = "void"
  3434. },
  3435. {
  3436. name = "DisableCursor",
  3437. description = "Disables cursor (lock cursor)",
  3438. returnType = "void"
  3439. },
  3440. {
  3441. name = "IsCursorOnScreen",
  3442. description = "Check if cursor is on the screen",
  3443. returnType = "bool"
  3444. },
  3445. {
  3446. name = "ClearBackground",
  3447. description = "Set background color (framebuffer clear color)",
  3448. returnType = "void",
  3449. params = {
  3450. {type = "Color", name = "color"}
  3451. }
  3452. },
  3453. {
  3454. name = "BeginDrawing",
  3455. description = "Setup canvas (framebuffer) to start drawing",
  3456. returnType = "void"
  3457. },
  3458. {
  3459. name = "EndDrawing",
  3460. description = "End canvas drawing and swap buffers (double buffering)",
  3461. returnType = "void"
  3462. },
  3463. {
  3464. name = "BeginMode2D",
  3465. description = "Begin 2D mode with custom camera (2D)",
  3466. returnType = "void",
  3467. params = {
  3468. {type = "Camera2D", name = "camera"}
  3469. }
  3470. },
  3471. {
  3472. name = "EndMode2D",
  3473. description = "Ends 2D mode with custom camera",
  3474. returnType = "void"
  3475. },
  3476. {
  3477. name = "BeginMode3D",
  3478. description = "Begin 3D mode with custom camera (3D)",
  3479. returnType = "void",
  3480. params = {
  3481. {type = "Camera3D", name = "camera"}
  3482. }
  3483. },
  3484. {
  3485. name = "EndMode3D",
  3486. description = "Ends 3D mode and returns to default 2D orthographic mode",
  3487. returnType = "void"
  3488. },
  3489. {
  3490. name = "BeginTextureMode",
  3491. description = "Begin drawing to render texture",
  3492. returnType = "void",
  3493. params = {
  3494. {type = "RenderTexture2D", name = "target"}
  3495. }
  3496. },
  3497. {
  3498. name = "EndTextureMode",
  3499. description = "Ends drawing to render texture",
  3500. returnType = "void"
  3501. },
  3502. {
  3503. name = "BeginShaderMode",
  3504. description = "Begin custom shader drawing",
  3505. returnType = "void",
  3506. params = {
  3507. {type = "Shader", name = "shader"}
  3508. }
  3509. },
  3510. {
  3511. name = "EndShaderMode",
  3512. description = "End custom shader drawing (use default shader)",
  3513. returnType = "void"
  3514. },
  3515. {
  3516. name = "BeginBlendMode",
  3517. description = "Begin blending mode (alpha, additive, multiplied, subtract, custom)",
  3518. returnType = "void",
  3519. params = {
  3520. {type = "int", name = "mode"}
  3521. }
  3522. },
  3523. {
  3524. name = "EndBlendMode",
  3525. description = "End blending mode (reset to default: alpha blending)",
  3526. returnType = "void"
  3527. },
  3528. {
  3529. name = "BeginScissorMode",
  3530. description = "Begin scissor mode (define screen area for following drawing)",
  3531. returnType = "void",
  3532. params = {
  3533. {type = "int", name = "x"},
  3534. {type = "int", name = "y"},
  3535. {type = "int", name = "width"},
  3536. {type = "int", name = "height"}
  3537. }
  3538. },
  3539. {
  3540. name = "EndScissorMode",
  3541. description = "End scissor mode",
  3542. returnType = "void"
  3543. },
  3544. {
  3545. name = "BeginVrStereoMode",
  3546. description = "Begin stereo rendering (requires VR simulator)",
  3547. returnType = "void",
  3548. params = {
  3549. {type = "VrStereoConfig", name = "config"}
  3550. }
  3551. },
  3552. {
  3553. name = "EndVrStereoMode",
  3554. description = "End stereo rendering (requires VR simulator)",
  3555. returnType = "void"
  3556. },
  3557. {
  3558. name = "LoadVrStereoConfig",
  3559. description = "Load VR stereo config for VR simulator device parameters",
  3560. returnType = "VrStereoConfig",
  3561. params = {
  3562. {type = "VrDeviceInfo", name = "device"}
  3563. }
  3564. },
  3565. {
  3566. name = "UnloadVrStereoConfig",
  3567. description = "Unload VR stereo config",
  3568. returnType = "void",
  3569. params = {
  3570. {type = "VrStereoConfig", name = "config"}
  3571. }
  3572. },
  3573. {
  3574. name = "LoadShader",
  3575. description = "Load shader from files and bind default locations",
  3576. returnType = "Shader",
  3577. params = {
  3578. {type = "const char *", name = "vsFileName"},
  3579. {type = "const char *", name = "fsFileName"}
  3580. }
  3581. },
  3582. {
  3583. name = "LoadShaderFromMemory",
  3584. description = "Load shader from code strings and bind default locations",
  3585. returnType = "Shader",
  3586. params = {
  3587. {type = "const char *", name = "vsCode"},
  3588. {type = "const char *", name = "fsCode"}
  3589. }
  3590. },
  3591. {
  3592. name = "IsShaderValid",
  3593. description = "Check if a shader is valid (loaded on GPU)",
  3594. returnType = "bool",
  3595. params = {
  3596. {type = "Shader", name = "shader"}
  3597. }
  3598. },
  3599. {
  3600. name = "GetShaderLocation",
  3601. description = "Get shader uniform location",
  3602. returnType = "int",
  3603. params = {
  3604. {type = "Shader", name = "shader"},
  3605. {type = "const char *", name = "uniformName"}
  3606. }
  3607. },
  3608. {
  3609. name = "GetShaderLocationAttrib",
  3610. description = "Get shader attribute location",
  3611. returnType = "int",
  3612. params = {
  3613. {type = "Shader", name = "shader"},
  3614. {type = "const char *", name = "attribName"}
  3615. }
  3616. },
  3617. {
  3618. name = "SetShaderValue",
  3619. description = "Set shader uniform value",
  3620. returnType = "void",
  3621. params = {
  3622. {type = "Shader", name = "shader"},
  3623. {type = "int", name = "locIndex"},
  3624. {type = "const void *", name = "value"},
  3625. {type = "int", name = "uniformType"}
  3626. }
  3627. },
  3628. {
  3629. name = "SetShaderValueV",
  3630. description = "Set shader uniform value vector",
  3631. returnType = "void",
  3632. params = {
  3633. {type = "Shader", name = "shader"},
  3634. {type = "int", name = "locIndex"},
  3635. {type = "const void *", name = "value"},
  3636. {type = "int", name = "uniformType"},
  3637. {type = "int", name = "count"}
  3638. }
  3639. },
  3640. {
  3641. name = "SetShaderValueMatrix",
  3642. description = "Set shader uniform value (matrix 4x4)",
  3643. returnType = "void",
  3644. params = {
  3645. {type = "Shader", name = "shader"},
  3646. {type = "int", name = "locIndex"},
  3647. {type = "Matrix", name = "mat"}
  3648. }
  3649. },
  3650. {
  3651. name = "SetShaderValueTexture",
  3652. description = "Set shader uniform value for texture (sampler2d)",
  3653. returnType = "void",
  3654. params = {
  3655. {type = "Shader", name = "shader"},
  3656. {type = "int", name = "locIndex"},
  3657. {type = "Texture2D", name = "texture"}
  3658. }
  3659. },
  3660. {
  3661. name = "UnloadShader",
  3662. description = "Unload shader from GPU memory (VRAM)",
  3663. returnType = "void",
  3664. params = {
  3665. {type = "Shader", name = "shader"}
  3666. }
  3667. },
  3668. {
  3669. name = "GetScreenToWorldRay",
  3670. description = "Get a ray trace from screen position (i.e mouse)",
  3671. returnType = "Ray",
  3672. params = {
  3673. {type = "Vector2", name = "position"},
  3674. {type = "Camera", name = "camera"}
  3675. }
  3676. },
  3677. {
  3678. name = "GetScreenToWorldRayEx",
  3679. description = "Get a ray trace from screen position (i.e mouse) in a viewport",
  3680. returnType = "Ray",
  3681. params = {
  3682. {type = "Vector2", name = "position"},
  3683. {type = "Camera", name = "camera"},
  3684. {type = "int", name = "width"},
  3685. {type = "int", name = "height"}
  3686. }
  3687. },
  3688. {
  3689. name = "GetWorldToScreen",
  3690. description = "Get the screen space position for a 3d world space position",
  3691. returnType = "Vector2",
  3692. params = {
  3693. {type = "Vector3", name = "position"},
  3694. {type = "Camera", name = "camera"}
  3695. }
  3696. },
  3697. {
  3698. name = "GetWorldToScreenEx",
  3699. description = "Get size position for a 3d world space position",
  3700. returnType = "Vector2",
  3701. params = {
  3702. {type = "Vector3", name = "position"},
  3703. {type = "Camera", name = "camera"},
  3704. {type = "int", name = "width"},
  3705. {type = "int", name = "height"}
  3706. }
  3707. },
  3708. {
  3709. name = "GetWorldToScreen2D",
  3710. description = "Get the screen space position for a 2d camera world space position",
  3711. returnType = "Vector2",
  3712. params = {
  3713. {type = "Vector2", name = "position"},
  3714. {type = "Camera2D", name = "camera"}
  3715. }
  3716. },
  3717. {
  3718. name = "GetScreenToWorld2D",
  3719. description = "Get the world space position for a 2d camera screen space position",
  3720. returnType = "Vector2",
  3721. params = {
  3722. {type = "Vector2", name = "position"},
  3723. {type = "Camera2D", name = "camera"}
  3724. }
  3725. },
  3726. {
  3727. name = "GetCameraMatrix",
  3728. description = "Get camera transform matrix (view matrix)",
  3729. returnType = "Matrix",
  3730. params = {
  3731. {type = "Camera", name = "camera"}
  3732. }
  3733. },
  3734. {
  3735. name = "GetCameraMatrix2D",
  3736. description = "Get camera 2d transform matrix",
  3737. returnType = "Matrix",
  3738. params = {
  3739. {type = "Camera2D", name = "camera"}
  3740. }
  3741. },
  3742. {
  3743. name = "SetTargetFPS",
  3744. description = "Set target FPS (maximum)",
  3745. returnType = "void",
  3746. params = {
  3747. {type = "int", name = "fps"}
  3748. }
  3749. },
  3750. {
  3751. name = "GetFrameTime",
  3752. description = "Get time in seconds for last frame drawn (delta time)",
  3753. returnType = "float"
  3754. },
  3755. {
  3756. name = "GetTime",
  3757. description = "Get elapsed time in seconds since InitWindow()",
  3758. returnType = "double"
  3759. },
  3760. {
  3761. name = "GetFPS",
  3762. description = "Get current FPS",
  3763. returnType = "int"
  3764. },
  3765. {
  3766. name = "SwapScreenBuffer",
  3767. description = "Swap back buffer with front buffer (screen drawing)",
  3768. returnType = "void"
  3769. },
  3770. {
  3771. name = "PollInputEvents",
  3772. description = "Register all input events",
  3773. returnType = "void"
  3774. },
  3775. {
  3776. name = "WaitTime",
  3777. description = "Wait for some time (halt program execution)",
  3778. returnType = "void",
  3779. params = {
  3780. {type = "double", name = "seconds"}
  3781. }
  3782. },
  3783. {
  3784. name = "SetRandomSeed",
  3785. description = "Set the seed for the random number generator",
  3786. returnType = "void",
  3787. params = {
  3788. {type = "unsigned int", name = "seed"}
  3789. }
  3790. },
  3791. {
  3792. name = "GetRandomValue",
  3793. description = "Get a random value between min and max (both included)",
  3794. returnType = "int",
  3795. params = {
  3796. {type = "int", name = "min"},
  3797. {type = "int", name = "max"}
  3798. }
  3799. },
  3800. {
  3801. name = "LoadRandomSequence",
  3802. description = "Load random values sequence, no values repeated",
  3803. returnType = "int *",
  3804. params = {
  3805. {type = "unsigned int", name = "count"},
  3806. {type = "int", name = "min"},
  3807. {type = "int", name = "max"}
  3808. }
  3809. },
  3810. {
  3811. name = "UnloadRandomSequence",
  3812. description = "Unload random values sequence",
  3813. returnType = "void",
  3814. params = {
  3815. {type = "int *", name = "sequence"}
  3816. }
  3817. },
  3818. {
  3819. name = "TakeScreenshot",
  3820. description = "Takes a screenshot of current screen (filename extension defines format)",
  3821. returnType = "void",
  3822. params = {
  3823. {type = "const char *", name = "fileName"}
  3824. }
  3825. },
  3826. {
  3827. name = "SetConfigFlags",
  3828. description = "Setup init configuration flags (view FLAGS)",
  3829. returnType = "void",
  3830. params = {
  3831. {type = "unsigned int", name = "flags"}
  3832. }
  3833. },
  3834. {
  3835. name = "OpenURL",
  3836. description = "Open URL with default system browser (if available)",
  3837. returnType = "void",
  3838. params = {
  3839. {type = "const char *", name = "url"}
  3840. }
  3841. },
  3842. {
  3843. name = "TraceLog",
  3844. description = "Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)",
  3845. returnType = "void",
  3846. params = {
  3847. {type = "int", name = "logLevel"},
  3848. {type = "const char *", name = "text"},
  3849. {type = "...", name = "args"}
  3850. }
  3851. },
  3852. {
  3853. name = "SetTraceLogLevel",
  3854. description = "Set the current threshold (minimum) log level",
  3855. returnType = "void",
  3856. params = {
  3857. {type = "int", name = "logLevel"}
  3858. }
  3859. },
  3860. {
  3861. name = "MemAlloc",
  3862. description = "Internal memory allocator",
  3863. returnType = "void *",
  3864. params = {
  3865. {type = "unsigned int", name = "size"}
  3866. }
  3867. },
  3868. {
  3869. name = "MemRealloc",
  3870. description = "Internal memory reallocator",
  3871. returnType = "void *",
  3872. params = {
  3873. {type = "void *", name = "ptr"},
  3874. {type = "unsigned int", name = "size"}
  3875. }
  3876. },
  3877. {
  3878. name = "MemFree",
  3879. description = "Internal memory free",
  3880. returnType = "void",
  3881. params = {
  3882. {type = "void *", name = "ptr"}
  3883. }
  3884. },
  3885. {
  3886. name = "SetTraceLogCallback",
  3887. description = "Set custom trace log",
  3888. returnType = "void",
  3889. params = {
  3890. {type = "TraceLogCallback", name = "callback"}
  3891. }
  3892. },
  3893. {
  3894. name = "SetLoadFileDataCallback",
  3895. description = "Set custom file binary data loader",
  3896. returnType = "void",
  3897. params = {
  3898. {type = "LoadFileDataCallback", name = "callback"}
  3899. }
  3900. },
  3901. {
  3902. name = "SetSaveFileDataCallback",
  3903. description = "Set custom file binary data saver",
  3904. returnType = "void",
  3905. params = {
  3906. {type = "SaveFileDataCallback", name = "callback"}
  3907. }
  3908. },
  3909. {
  3910. name = "SetLoadFileTextCallback",
  3911. description = "Set custom file text data loader",
  3912. returnType = "void",
  3913. params = {
  3914. {type = "LoadFileTextCallback", name = "callback"}
  3915. }
  3916. },
  3917. {
  3918. name = "SetSaveFileTextCallback",
  3919. description = "Set custom file text data saver",
  3920. returnType = "void",
  3921. params = {
  3922. {type = "SaveFileTextCallback", name = "callback"}
  3923. }
  3924. },
  3925. {
  3926. name = "LoadFileData",
  3927. description = "Load file data as byte array (read)",
  3928. returnType = "unsigned char *",
  3929. params = {
  3930. {type = "const char *", name = "fileName"},
  3931. {type = "int *", name = "dataSize"}
  3932. }
  3933. },
  3934. {
  3935. name = "UnloadFileData",
  3936. description = "Unload file data allocated by LoadFileData()",
  3937. returnType = "void",
  3938. params = {
  3939. {type = "unsigned char *", name = "data"}
  3940. }
  3941. },
  3942. {
  3943. name = "SaveFileData",
  3944. description = "Save data to file from byte array (write), returns true on success",
  3945. returnType = "bool",
  3946. params = {
  3947. {type = "const char *", name = "fileName"},
  3948. {type = "void *", name = "data"},
  3949. {type = "int", name = "dataSize"}
  3950. }
  3951. },
  3952. {
  3953. name = "ExportDataAsCode",
  3954. description = "Export data to code (.h), returns true on success",
  3955. returnType = "bool",
  3956. params = {
  3957. {type = "const unsigned char *", name = "data"},
  3958. {type = "int", name = "dataSize"},
  3959. {type = "const char *", name = "fileName"}
  3960. }
  3961. },
  3962. {
  3963. name = "LoadFileText",
  3964. description = "Load text data from file (read), returns a '\\0' terminated string",
  3965. returnType = "char *",
  3966. params = {
  3967. {type = "const char *", name = "fileName"}
  3968. }
  3969. },
  3970. {
  3971. name = "UnloadFileText",
  3972. description = "Unload file text data allocated by LoadFileText()",
  3973. returnType = "void",
  3974. params = {
  3975. {type = "char *", name = "text"}
  3976. }
  3977. },
  3978. {
  3979. name = "SaveFileText",
  3980. description = "Save text data to file (write), string must be '\\0' terminated, returns true on success",
  3981. returnType = "bool",
  3982. params = {
  3983. {type = "const char *", name = "fileName"},
  3984. {type = "char *", name = "text"}
  3985. }
  3986. },
  3987. {
  3988. name = "FileExists",
  3989. description = "Check if file exists",
  3990. returnType = "bool",
  3991. params = {
  3992. {type = "const char *", name = "fileName"}
  3993. }
  3994. },
  3995. {
  3996. name = "DirectoryExists",
  3997. description = "Check if a directory path exists",
  3998. returnType = "bool",
  3999. params = {
  4000. {type = "const char *", name = "dirPath"}
  4001. }
  4002. },
  4003. {
  4004. name = "IsFileExtension",
  4005. description = "Check file extension (including point: .png, .wav)",
  4006. returnType = "bool",
  4007. params = {
  4008. {type = "const char *", name = "fileName"},
  4009. {type = "const char *", name = "ext"}
  4010. }
  4011. },
  4012. {
  4013. name = "GetFileLength",
  4014. description = "Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)",
  4015. returnType = "int",
  4016. params = {
  4017. {type = "const char *", name = "fileName"}
  4018. }
  4019. },
  4020. {
  4021. name = "GetFileExtension",
  4022. description = "Get pointer to extension for a filename string (includes dot: '.png')",
  4023. returnType = "const char *",
  4024. params = {
  4025. {type = "const char *", name = "fileName"}
  4026. }
  4027. },
  4028. {
  4029. name = "GetFileName",
  4030. description = "Get pointer to filename for a path string",
  4031. returnType = "const char *",
  4032. params = {
  4033. {type = "const char *", name = "filePath"}
  4034. }
  4035. },
  4036. {
  4037. name = "GetFileNameWithoutExt",
  4038. description = "Get filename string without extension (uses static string)",
  4039. returnType = "const char *",
  4040. params = {
  4041. {type = "const char *", name = "filePath"}
  4042. }
  4043. },
  4044. {
  4045. name = "GetDirectoryPath",
  4046. description = "Get full path for a given fileName with path (uses static string)",
  4047. returnType = "const char *",
  4048. params = {
  4049. {type = "const char *", name = "filePath"}
  4050. }
  4051. },
  4052. {
  4053. name = "GetPrevDirectoryPath",
  4054. description = "Get previous directory path for a given path (uses static string)",
  4055. returnType = "const char *",
  4056. params = {
  4057. {type = "const char *", name = "dirPath"}
  4058. }
  4059. },
  4060. {
  4061. name = "GetWorkingDirectory",
  4062. description = "Get current working directory (uses static string)",
  4063. returnType = "const char *"
  4064. },
  4065. {
  4066. name = "GetApplicationDirectory",
  4067. description = "Get the directory of the running application (uses static string)",
  4068. returnType = "const char *"
  4069. },
  4070. {
  4071. name = "MakeDirectory",
  4072. description = "Create directories (including full path requested), returns 0 on success",
  4073. returnType = "int",
  4074. params = {
  4075. {type = "const char *", name = "dirPath"}
  4076. }
  4077. },
  4078. {
  4079. name = "ChangeDirectory",
  4080. description = "Change working directory, return true on success",
  4081. returnType = "bool",
  4082. params = {
  4083. {type = "const char *", name = "dir"}
  4084. }
  4085. },
  4086. {
  4087. name = "IsPathFile",
  4088. description = "Check if a given path is a file or a directory",
  4089. returnType = "bool",
  4090. params = {
  4091. {type = "const char *", name = "path"}
  4092. }
  4093. },
  4094. {
  4095. name = "IsFileNameValid",
  4096. description = "Check if fileName is valid for the platform/OS",
  4097. returnType = "bool",
  4098. params = {
  4099. {type = "const char *", name = "fileName"}
  4100. }
  4101. },
  4102. {
  4103. name = "LoadDirectoryFiles",
  4104. description = "Load directory filepaths",
  4105. returnType = "FilePathList",
  4106. params = {
  4107. {type = "const char *", name = "dirPath"}
  4108. }
  4109. },
  4110. {
  4111. name = "LoadDirectoryFilesEx",
  4112. description = "Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result",
  4113. returnType = "FilePathList",
  4114. params = {
  4115. {type = "const char *", name = "basePath"},
  4116. {type = "const char *", name = "filter"},
  4117. {type = "bool", name = "scanSubdirs"}
  4118. }
  4119. },
  4120. {
  4121. name = "UnloadDirectoryFiles",
  4122. description = "Unload filepaths",
  4123. returnType = "void",
  4124. params = {
  4125. {type = "FilePathList", name = "files"}
  4126. }
  4127. },
  4128. {
  4129. name = "IsFileDropped",
  4130. description = "Check if a file has been dropped into window",
  4131. returnType = "bool"
  4132. },
  4133. {
  4134. name = "LoadDroppedFiles",
  4135. description = "Load dropped filepaths",
  4136. returnType = "FilePathList"
  4137. },
  4138. {
  4139. name = "UnloadDroppedFiles",
  4140. description = "Unload dropped filepaths",
  4141. returnType = "void",
  4142. params = {
  4143. {type = "FilePathList", name = "files"}
  4144. }
  4145. },
  4146. {
  4147. name = "GetFileModTime",
  4148. description = "Get file modification time (last write time)",
  4149. returnType = "long",
  4150. params = {
  4151. {type = "const char *", name = "fileName"}
  4152. }
  4153. },
  4154. {
  4155. name = "CompressData",
  4156. description = "Compress data (DEFLATE algorithm), memory must be MemFree()",
  4157. returnType = "unsigned char *",
  4158. params = {
  4159. {type = "const unsigned char *", name = "data"},
  4160. {type = "int", name = "dataSize"},
  4161. {type = "int *", name = "compDataSize"}
  4162. }
  4163. },
  4164. {
  4165. name = "DecompressData",
  4166. description = "Decompress data (DEFLATE algorithm), memory must be MemFree()",
  4167. returnType = "unsigned char *",
  4168. params = {
  4169. {type = "const unsigned char *", name = "compData"},
  4170. {type = "int", name = "compDataSize"},
  4171. {type = "int *", name = "dataSize"}
  4172. }
  4173. },
  4174. {
  4175. name = "EncodeDataBase64",
  4176. description = "Encode data to Base64 string, memory must be MemFree()",
  4177. returnType = "char *",
  4178. params = {
  4179. {type = "const unsigned char *", name = "data"},
  4180. {type = "int", name = "dataSize"},
  4181. {type = "int *", name = "outputSize"}
  4182. }
  4183. },
  4184. {
  4185. name = "DecodeDataBase64",
  4186. description = "Decode Base64 string data, memory must be MemFree()",
  4187. returnType = "unsigned char *",
  4188. params = {
  4189. {type = "const unsigned char *", name = "data"},
  4190. {type = "int *", name = "outputSize"}
  4191. }
  4192. },
  4193. {
  4194. name = "ComputeCRC32",
  4195. description = "Compute CRC32 hash code",
  4196. returnType = "unsigned int",
  4197. params = {
  4198. {type = "unsigned char *", name = "data"},
  4199. {type = "int", name = "dataSize"}
  4200. }
  4201. },
  4202. {
  4203. name = "ComputeMD5",
  4204. description = "Compute MD5 hash code, returns static int[4] (16 bytes)",
  4205. returnType = "unsigned int *",
  4206. params = {
  4207. {type = "unsigned char *", name = "data"},
  4208. {type = "int", name = "dataSize"}
  4209. }
  4210. },
  4211. {
  4212. name = "ComputeSHA1",
  4213. description = "Compute SHA1 hash code, returns static int[5] (20 bytes)",
  4214. returnType = "unsigned int *",
  4215. params = {
  4216. {type = "unsigned char *", name = "data"},
  4217. {type = "int", name = "dataSize"}
  4218. }
  4219. },
  4220. {
  4221. name = "LoadAutomationEventList",
  4222. description = "Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS",
  4223. returnType = "AutomationEventList",
  4224. params = {
  4225. {type = "const char *", name = "fileName"}
  4226. }
  4227. },
  4228. {
  4229. name = "UnloadAutomationEventList",
  4230. description = "Unload automation events list from file",
  4231. returnType = "void",
  4232. params = {
  4233. {type = "AutomationEventList", name = "list"}
  4234. }
  4235. },
  4236. {
  4237. name = "ExportAutomationEventList",
  4238. description = "Export automation events list as text file",
  4239. returnType = "bool",
  4240. params = {
  4241. {type = "AutomationEventList", name = "list"},
  4242. {type = "const char *", name = "fileName"}
  4243. }
  4244. },
  4245. {
  4246. name = "SetAutomationEventList",
  4247. description = "Set automation event list to record to",
  4248. returnType = "void",
  4249. params = {
  4250. {type = "AutomationEventList *", name = "list"}
  4251. }
  4252. },
  4253. {
  4254. name = "SetAutomationEventBaseFrame",
  4255. description = "Set automation event internal base frame to start recording",
  4256. returnType = "void",
  4257. params = {
  4258. {type = "int", name = "frame"}
  4259. }
  4260. },
  4261. {
  4262. name = "StartAutomationEventRecording",
  4263. description = "Start recording automation events (AutomationEventList must be set)",
  4264. returnType = "void"
  4265. },
  4266. {
  4267. name = "StopAutomationEventRecording",
  4268. description = "Stop recording automation events",
  4269. returnType = "void"
  4270. },
  4271. {
  4272. name = "PlayAutomationEvent",
  4273. description = "Play a recorded automation event",
  4274. returnType = "void",
  4275. params = {
  4276. {type = "AutomationEvent", name = "event"}
  4277. }
  4278. },
  4279. {
  4280. name = "IsKeyPressed",
  4281. description = "Check if a key has been pressed once",
  4282. returnType = "bool",
  4283. params = {
  4284. {type = "int", name = "key"}
  4285. }
  4286. },
  4287. {
  4288. name = "IsKeyPressedRepeat",
  4289. description = "Check if a key has been pressed again",
  4290. returnType = "bool",
  4291. params = {
  4292. {type = "int", name = "key"}
  4293. }
  4294. },
  4295. {
  4296. name = "IsKeyDown",
  4297. description = "Check if a key is being pressed",
  4298. returnType = "bool",
  4299. params = {
  4300. {type = "int", name = "key"}
  4301. }
  4302. },
  4303. {
  4304. name = "IsKeyReleased",
  4305. description = "Check if a key has been released once",
  4306. returnType = "bool",
  4307. params = {
  4308. {type = "int", name = "key"}
  4309. }
  4310. },
  4311. {
  4312. name = "IsKeyUp",
  4313. description = "Check if a key is NOT being pressed",
  4314. returnType = "bool",
  4315. params = {
  4316. {type = "int", name = "key"}
  4317. }
  4318. },
  4319. {
  4320. name = "GetKeyPressed",
  4321. description = "Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty",
  4322. returnType = "int"
  4323. },
  4324. {
  4325. name = "GetCharPressed",
  4326. description = "Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty",
  4327. returnType = "int"
  4328. },
  4329. {
  4330. name = "SetExitKey",
  4331. description = "Set a custom key to exit program (default is ESC)",
  4332. returnType = "void",
  4333. params = {
  4334. {type = "int", name = "key"}
  4335. }
  4336. },
  4337. {
  4338. name = "IsGamepadAvailable",
  4339. description = "Check if a gamepad is available",
  4340. returnType = "bool",
  4341. params = {
  4342. {type = "int", name = "gamepad"}
  4343. }
  4344. },
  4345. {
  4346. name = "GetGamepadName",
  4347. description = "Get gamepad internal name id",
  4348. returnType = "const char *",
  4349. params = {
  4350. {type = "int", name = "gamepad"}
  4351. }
  4352. },
  4353. {
  4354. name = "IsGamepadButtonPressed",
  4355. description = "Check if a gamepad button has been pressed once",
  4356. returnType = "bool",
  4357. params = {
  4358. {type = "int", name = "gamepad"},
  4359. {type = "int", name = "button"}
  4360. }
  4361. },
  4362. {
  4363. name = "IsGamepadButtonDown",
  4364. description = "Check if a gamepad button is being pressed",
  4365. returnType = "bool",
  4366. params = {
  4367. {type = "int", name = "gamepad"},
  4368. {type = "int", name = "button"}
  4369. }
  4370. },
  4371. {
  4372. name = "IsGamepadButtonReleased",
  4373. description = "Check if a gamepad button has been released once",
  4374. returnType = "bool",
  4375. params = {
  4376. {type = "int", name = "gamepad"},
  4377. {type = "int", name = "button"}
  4378. }
  4379. },
  4380. {
  4381. name = "IsGamepadButtonUp",
  4382. description = "Check if a gamepad button is NOT being pressed",
  4383. returnType = "bool",
  4384. params = {
  4385. {type = "int", name = "gamepad"},
  4386. {type = "int", name = "button"}
  4387. }
  4388. },
  4389. {
  4390. name = "GetGamepadButtonPressed",
  4391. description = "Get the last gamepad button pressed",
  4392. returnType = "int"
  4393. },
  4394. {
  4395. name = "GetGamepadAxisCount",
  4396. description = "Get gamepad axis count for a gamepad",
  4397. returnType = "int",
  4398. params = {
  4399. {type = "int", name = "gamepad"}
  4400. }
  4401. },
  4402. {
  4403. name = "GetGamepadAxisMovement",
  4404. description = "Get axis movement value for a gamepad axis",
  4405. returnType = "float",
  4406. params = {
  4407. {type = "int", name = "gamepad"},
  4408. {type = "int", name = "axis"}
  4409. }
  4410. },
  4411. {
  4412. name = "SetGamepadMappings",
  4413. description = "Set internal gamepad mappings (SDL_GameControllerDB)",
  4414. returnType = "int",
  4415. params = {
  4416. {type = "const char *", name = "mappings"}
  4417. }
  4418. },
  4419. {
  4420. name = "SetGamepadVibration",
  4421. description = "Set gamepad vibration for both motors (duration in seconds)",
  4422. returnType = "void",
  4423. params = {
  4424. {type = "int", name = "gamepad"},
  4425. {type = "float", name = "leftMotor"},
  4426. {type = "float", name = "rightMotor"},
  4427. {type = "float", name = "duration"}
  4428. }
  4429. },
  4430. {
  4431. name = "IsMouseButtonPressed",
  4432. description = "Check if a mouse button has been pressed once",
  4433. returnType = "bool",
  4434. params = {
  4435. {type = "int", name = "button"}
  4436. }
  4437. },
  4438. {
  4439. name = "IsMouseButtonDown",
  4440. description = "Check if a mouse button is being pressed",
  4441. returnType = "bool",
  4442. params = {
  4443. {type = "int", name = "button"}
  4444. }
  4445. },
  4446. {
  4447. name = "IsMouseButtonReleased",
  4448. description = "Check if a mouse button has been released once",
  4449. returnType = "bool",
  4450. params = {
  4451. {type = "int", name = "button"}
  4452. }
  4453. },
  4454. {
  4455. name = "IsMouseButtonUp",
  4456. description = "Check if a mouse button is NOT being pressed",
  4457. returnType = "bool",
  4458. params = {
  4459. {type = "int", name = "button"}
  4460. }
  4461. },
  4462. {
  4463. name = "GetMouseX",
  4464. description = "Get mouse position X",
  4465. returnType = "int"
  4466. },
  4467. {
  4468. name = "GetMouseY",
  4469. description = "Get mouse position Y",
  4470. returnType = "int"
  4471. },
  4472. {
  4473. name = "GetMousePosition",
  4474. description = "Get mouse position XY",
  4475. returnType = "Vector2"
  4476. },
  4477. {
  4478. name = "GetMouseDelta",
  4479. description = "Get mouse delta between frames",
  4480. returnType = "Vector2"
  4481. },
  4482. {
  4483. name = "SetMousePosition",
  4484. description = "Set mouse position XY",
  4485. returnType = "void",
  4486. params = {
  4487. {type = "int", name = "x"},
  4488. {type = "int", name = "y"}
  4489. }
  4490. },
  4491. {
  4492. name = "SetMouseOffset",
  4493. description = "Set mouse offset",
  4494. returnType = "void",
  4495. params = {
  4496. {type = "int", name = "offsetX"},
  4497. {type = "int", name = "offsetY"}
  4498. }
  4499. },
  4500. {
  4501. name = "SetMouseScale",
  4502. description = "Set mouse scaling",
  4503. returnType = "void",
  4504. params = {
  4505. {type = "float", name = "scaleX"},
  4506. {type = "float", name = "scaleY"}
  4507. }
  4508. },
  4509. {
  4510. name = "GetMouseWheelMove",
  4511. description = "Get mouse wheel movement for X or Y, whichever is larger",
  4512. returnType = "float"
  4513. },
  4514. {
  4515. name = "GetMouseWheelMoveV",
  4516. description = "Get mouse wheel movement for both X and Y",
  4517. returnType = "Vector2"
  4518. },
  4519. {
  4520. name = "SetMouseCursor",
  4521. description = "Set mouse cursor",
  4522. returnType = "void",
  4523. params = {
  4524. {type = "int", name = "cursor"}
  4525. }
  4526. },
  4527. {
  4528. name = "GetTouchX",
  4529. description = "Get touch position X for touch point 0 (relative to screen size)",
  4530. returnType = "int"
  4531. },
  4532. {
  4533. name = "GetTouchY",
  4534. description = "Get touch position Y for touch point 0 (relative to screen size)",
  4535. returnType = "int"
  4536. },
  4537. {
  4538. name = "GetTouchPosition",
  4539. description = "Get touch position XY for a touch point index (relative to screen size)",
  4540. returnType = "Vector2",
  4541. params = {
  4542. {type = "int", name = "index"}
  4543. }
  4544. },
  4545. {
  4546. name = "GetTouchPointId",
  4547. description = "Get touch point identifier for given index",
  4548. returnType = "int",
  4549. params = {
  4550. {type = "int", name = "index"}
  4551. }
  4552. },
  4553. {
  4554. name = "GetTouchPointCount",
  4555. description = "Get number of touch points",
  4556. returnType = "int"
  4557. },
  4558. {
  4559. name = "SetGesturesEnabled",
  4560. description = "Enable a set of gestures using flags",
  4561. returnType = "void",
  4562. params = {
  4563. {type = "unsigned int", name = "flags"}
  4564. }
  4565. },
  4566. {
  4567. name = "IsGestureDetected",
  4568. description = "Check if a gesture have been detected",
  4569. returnType = "bool",
  4570. params = {
  4571. {type = "unsigned int", name = "gesture"}
  4572. }
  4573. },
  4574. {
  4575. name = "GetGestureDetected",
  4576. description = "Get latest detected gesture",
  4577. returnType = "int"
  4578. },
  4579. {
  4580. name = "GetGestureHoldDuration",
  4581. description = "Get gesture hold time in seconds",
  4582. returnType = "float"
  4583. },
  4584. {
  4585. name = "GetGestureDragVector",
  4586. description = "Get gesture drag vector",
  4587. returnType = "Vector2"
  4588. },
  4589. {
  4590. name = "GetGestureDragAngle",
  4591. description = "Get gesture drag angle",
  4592. returnType = "float"
  4593. },
  4594. {
  4595. name = "GetGesturePinchVector",
  4596. description = "Get gesture pinch delta",
  4597. returnType = "Vector2"
  4598. },
  4599. {
  4600. name = "GetGesturePinchAngle",
  4601. description = "Get gesture pinch angle",
  4602. returnType = "float"
  4603. },
  4604. {
  4605. name = "UpdateCamera",
  4606. description = "Update camera position for selected mode",
  4607. returnType = "void",
  4608. params = {
  4609. {type = "Camera *", name = "camera"},
  4610. {type = "int", name = "mode"}
  4611. }
  4612. },
  4613. {
  4614. name = "UpdateCameraPro",
  4615. description = "Update camera movement/rotation",
  4616. returnType = "void",
  4617. params = {
  4618. {type = "Camera *", name = "camera"},
  4619. {type = "Vector3", name = "movement"},
  4620. {type = "Vector3", name = "rotation"},
  4621. {type = "float", name = "zoom"}
  4622. }
  4623. },
  4624. {
  4625. name = "SetShapesTexture",
  4626. description = "Set texture and rectangle to be used on shapes drawing",
  4627. returnType = "void",
  4628. params = {
  4629. {type = "Texture2D", name = "texture"},
  4630. {type = "Rectangle", name = "source"}
  4631. }
  4632. },
  4633. {
  4634. name = "GetShapesTexture",
  4635. description = "Get texture that is used for shapes drawing",
  4636. returnType = "Texture2D"
  4637. },
  4638. {
  4639. name = "GetShapesTextureRectangle",
  4640. description = "Get texture source rectangle that is used for shapes drawing",
  4641. returnType = "Rectangle"
  4642. },
  4643. {
  4644. name = "DrawPixel",
  4645. description = "Draw a pixel using geometry [Can be slow, use with care]",
  4646. returnType = "void",
  4647. params = {
  4648. {type = "int", name = "posX"},
  4649. {type = "int", name = "posY"},
  4650. {type = "Color", name = "color"}
  4651. }
  4652. },
  4653. {
  4654. name = "DrawPixelV",
  4655. description = "Draw a pixel using geometry (Vector version) [Can be slow, use with care]",
  4656. returnType = "void",
  4657. params = {
  4658. {type = "Vector2", name = "position"},
  4659. {type = "Color", name = "color"}
  4660. }
  4661. },
  4662. {
  4663. name = "DrawLine",
  4664. description = "Draw a line",
  4665. returnType = "void",
  4666. params = {
  4667. {type = "int", name = "startPosX"},
  4668. {type = "int", name = "startPosY"},
  4669. {type = "int", name = "endPosX"},
  4670. {type = "int", name = "endPosY"},
  4671. {type = "Color", name = "color"}
  4672. }
  4673. },
  4674. {
  4675. name = "DrawLineV",
  4676. description = "Draw a line (using gl lines)",
  4677. returnType = "void",
  4678. params = {
  4679. {type = "Vector2", name = "startPos"},
  4680. {type = "Vector2", name = "endPos"},
  4681. {type = "Color", name = "color"}
  4682. }
  4683. },
  4684. {
  4685. name = "DrawLineEx",
  4686. description = "Draw a line (using triangles/quads)",
  4687. returnType = "void",
  4688. params = {
  4689. {type = "Vector2", name = "startPos"},
  4690. {type = "Vector2", name = "endPos"},
  4691. {type = "float", name = "thick"},
  4692. {type = "Color", name = "color"}
  4693. }
  4694. },
  4695. {
  4696. name = "DrawLineStrip",
  4697. description = "Draw lines sequence (using gl lines)",
  4698. returnType = "void",
  4699. params = {
  4700. {type = "const Vector2 *", name = "points"},
  4701. {type = "int", name = "pointCount"},
  4702. {type = "Color", name = "color"}
  4703. }
  4704. },
  4705. {
  4706. name = "DrawLineBezier",
  4707. description = "Draw line segment cubic-bezier in-out interpolation",
  4708. returnType = "void",
  4709. params = {
  4710. {type = "Vector2", name = "startPos"},
  4711. {type = "Vector2", name = "endPos"},
  4712. {type = "float", name = "thick"},
  4713. {type = "Color", name = "color"}
  4714. }
  4715. },
  4716. {
  4717. name = "DrawCircle",
  4718. description = "Draw a color-filled circle",
  4719. returnType = "void",
  4720. params = {
  4721. {type = "int", name = "centerX"},
  4722. {type = "int", name = "centerY"},
  4723. {type = "float", name = "radius"},
  4724. {type = "Color", name = "color"}
  4725. }
  4726. },
  4727. {
  4728. name = "DrawCircleSector",
  4729. description = "Draw a piece of a circle",
  4730. returnType = "void",
  4731. params = {
  4732. {type = "Vector2", name = "center"},
  4733. {type = "float", name = "radius"},
  4734. {type = "float", name = "startAngle"},
  4735. {type = "float", name = "endAngle"},
  4736. {type = "int", name = "segments"},
  4737. {type = "Color", name = "color"}
  4738. }
  4739. },
  4740. {
  4741. name = "DrawCircleSectorLines",
  4742. description = "Draw circle sector outline",
  4743. returnType = "void",
  4744. params = {
  4745. {type = "Vector2", name = "center"},
  4746. {type = "float", name = "radius"},
  4747. {type = "float", name = "startAngle"},
  4748. {type = "float", name = "endAngle"},
  4749. {type = "int", name = "segments"},
  4750. {type = "Color", name = "color"}
  4751. }
  4752. },
  4753. {
  4754. name = "DrawCircleGradient",
  4755. description = "Draw a gradient-filled circle",
  4756. returnType = "void",
  4757. params = {
  4758. {type = "int", name = "centerX"},
  4759. {type = "int", name = "centerY"},
  4760. {type = "float", name = "radius"},
  4761. {type = "Color", name = "inner"},
  4762. {type = "Color", name = "outer"}
  4763. }
  4764. },
  4765. {
  4766. name = "DrawCircleV",
  4767. description = "Draw a color-filled circle (Vector version)",
  4768. returnType = "void",
  4769. params = {
  4770. {type = "Vector2", name = "center"},
  4771. {type = "float", name = "radius"},
  4772. {type = "Color", name = "color"}
  4773. }
  4774. },
  4775. {
  4776. name = "DrawCircleLines",
  4777. description = "Draw circle outline",
  4778. returnType = "void",
  4779. params = {
  4780. {type = "int", name = "centerX"},
  4781. {type = "int", name = "centerY"},
  4782. {type = "float", name = "radius"},
  4783. {type = "Color", name = "color"}
  4784. }
  4785. },
  4786. {
  4787. name = "DrawCircleLinesV",
  4788. description = "Draw circle outline (Vector version)",
  4789. returnType = "void",
  4790. params = {
  4791. {type = "Vector2", name = "center"},
  4792. {type = "float", name = "radius"},
  4793. {type = "Color", name = "color"}
  4794. }
  4795. },
  4796. {
  4797. name = "DrawEllipse",
  4798. description = "Draw ellipse",
  4799. returnType = "void",
  4800. params = {
  4801. {type = "int", name = "centerX"},
  4802. {type = "int", name = "centerY"},
  4803. {type = "float", name = "radiusH"},
  4804. {type = "float", name = "radiusV"},
  4805. {type = "Color", name = "color"}
  4806. }
  4807. },
  4808. {
  4809. name = "DrawEllipseLines",
  4810. description = "Draw ellipse outline",
  4811. returnType = "void",
  4812. params = {
  4813. {type = "int", name = "centerX"},
  4814. {type = "int", name = "centerY"},
  4815. {type = "float", name = "radiusH"},
  4816. {type = "float", name = "radiusV"},
  4817. {type = "Color", name = "color"}
  4818. }
  4819. },
  4820. {
  4821. name = "DrawRing",
  4822. description = "Draw ring",
  4823. returnType = "void",
  4824. params = {
  4825. {type = "Vector2", name = "center"},
  4826. {type = "float", name = "innerRadius"},
  4827. {type = "float", name = "outerRadius"},
  4828. {type = "float", name = "startAngle"},
  4829. {type = "float", name = "endAngle"},
  4830. {type = "int", name = "segments"},
  4831. {type = "Color", name = "color"}
  4832. }
  4833. },
  4834. {
  4835. name = "DrawRingLines",
  4836. description = "Draw ring outline",
  4837. returnType = "void",
  4838. params = {
  4839. {type = "Vector2", name = "center"},
  4840. {type = "float", name = "innerRadius"},
  4841. {type = "float", name = "outerRadius"},
  4842. {type = "float", name = "startAngle"},
  4843. {type = "float", name = "endAngle"},
  4844. {type = "int", name = "segments"},
  4845. {type = "Color", name = "color"}
  4846. }
  4847. },
  4848. {
  4849. name = "DrawRectangle",
  4850. description = "Draw a color-filled rectangle",
  4851. returnType = "void",
  4852. params = {
  4853. {type = "int", name = "posX"},
  4854. {type = "int", name = "posY"},
  4855. {type = "int", name = "width"},
  4856. {type = "int", name = "height"},
  4857. {type = "Color", name = "color"}
  4858. }
  4859. },
  4860. {
  4861. name = "DrawRectangleV",
  4862. description = "Draw a color-filled rectangle (Vector version)",
  4863. returnType = "void",
  4864. params = {
  4865. {type = "Vector2", name = "position"},
  4866. {type = "Vector2", name = "size"},
  4867. {type = "Color", name = "color"}
  4868. }
  4869. },
  4870. {
  4871. name = "DrawRectangleRec",
  4872. description = "Draw a color-filled rectangle",
  4873. returnType = "void",
  4874. params = {
  4875. {type = "Rectangle", name = "rec"},
  4876. {type = "Color", name = "color"}
  4877. }
  4878. },
  4879. {
  4880. name = "DrawRectanglePro",
  4881. description = "Draw a color-filled rectangle with pro parameters",
  4882. returnType = "void",
  4883. params = {
  4884. {type = "Rectangle", name = "rec"},
  4885. {type = "Vector2", name = "origin"},
  4886. {type = "float", name = "rotation"},
  4887. {type = "Color", name = "color"}
  4888. }
  4889. },
  4890. {
  4891. name = "DrawRectangleGradientV",
  4892. description = "Draw a vertical-gradient-filled rectangle",
  4893. returnType = "void",
  4894. params = {
  4895. {type = "int", name = "posX"},
  4896. {type = "int", name = "posY"},
  4897. {type = "int", name = "width"},
  4898. {type = "int", name = "height"},
  4899. {type = "Color", name = "top"},
  4900. {type = "Color", name = "bottom"}
  4901. }
  4902. },
  4903. {
  4904. name = "DrawRectangleGradientH",
  4905. description = "Draw a horizontal-gradient-filled rectangle",
  4906. returnType = "void",
  4907. params = {
  4908. {type = "int", name = "posX"},
  4909. {type = "int", name = "posY"},
  4910. {type = "int", name = "width"},
  4911. {type = "int", name = "height"},
  4912. {type = "Color", name = "left"},
  4913. {type = "Color", name = "right"}
  4914. }
  4915. },
  4916. {
  4917. name = "DrawRectangleGradientEx",
  4918. description = "Draw a gradient-filled rectangle with custom vertex colors",
  4919. returnType = "void",
  4920. params = {
  4921. {type = "Rectangle", name = "rec"},
  4922. {type = "Color", name = "topLeft"},
  4923. {type = "Color", name = "bottomLeft"},
  4924. {type = "Color", name = "topRight"},
  4925. {type = "Color", name = "bottomRight"}
  4926. }
  4927. },
  4928. {
  4929. name = "DrawRectangleLines",
  4930. description = "Draw rectangle outline",
  4931. returnType = "void",
  4932. params = {
  4933. {type = "int", name = "posX"},
  4934. {type = "int", name = "posY"},
  4935. {type = "int", name = "width"},
  4936. {type = "int", name = "height"},
  4937. {type = "Color", name = "color"}
  4938. }
  4939. },
  4940. {
  4941. name = "DrawRectangleLinesEx",
  4942. description = "Draw rectangle outline with extended parameters",
  4943. returnType = "void",
  4944. params = {
  4945. {type = "Rectangle", name = "rec"},
  4946. {type = "float", name = "lineThick"},
  4947. {type = "Color", name = "color"}
  4948. }
  4949. },
  4950. {
  4951. name = "DrawRectangleRounded",
  4952. description = "Draw rectangle with rounded edges",
  4953. returnType = "void",
  4954. params = {
  4955. {type = "Rectangle", name = "rec"},
  4956. {type = "float", name = "roundness"},
  4957. {type = "int", name = "segments"},
  4958. {type = "Color", name = "color"}
  4959. }
  4960. },
  4961. {
  4962. name = "DrawRectangleRoundedLines",
  4963. description = "Draw rectangle lines with rounded edges",
  4964. returnType = "void",
  4965. params = {
  4966. {type = "Rectangle", name = "rec"},
  4967. {type = "float", name = "roundness"},
  4968. {type = "int", name = "segments"},
  4969. {type = "Color", name = "color"}
  4970. }
  4971. },
  4972. {
  4973. name = "DrawRectangleRoundedLinesEx",
  4974. description = "Draw rectangle with rounded edges outline",
  4975. returnType = "void",
  4976. params = {
  4977. {type = "Rectangle", name = "rec"},
  4978. {type = "float", name = "roundness"},
  4979. {type = "int", name = "segments"},
  4980. {type = "float", name = "lineThick"},
  4981. {type = "Color", name = "color"}
  4982. }
  4983. },
  4984. {
  4985. name = "DrawTriangle",
  4986. description = "Draw a color-filled triangle (vertex in counter-clockwise order!)",
  4987. returnType = "void",
  4988. params = {
  4989. {type = "Vector2", name = "v1"},
  4990. {type = "Vector2", name = "v2"},
  4991. {type = "Vector2", name = "v3"},
  4992. {type = "Color", name = "color"}
  4993. }
  4994. },
  4995. {
  4996. name = "DrawTriangleLines",
  4997. description = "Draw triangle outline (vertex in counter-clockwise order!)",
  4998. returnType = "void",
  4999. params = {
  5000. {type = "Vector2", name = "v1"},
  5001. {type = "Vector2", name = "v2"},
  5002. {type = "Vector2", name = "v3"},
  5003. {type = "Color", name = "color"}
  5004. }
  5005. },
  5006. {
  5007. name = "DrawTriangleFan",
  5008. description = "Draw a triangle fan defined by points (first vertex is the center)",
  5009. returnType = "void",
  5010. params = {
  5011. {type = "const Vector2 *", name = "points"},
  5012. {type = "int", name = "pointCount"},
  5013. {type = "Color", name = "color"}
  5014. }
  5015. },
  5016. {
  5017. name = "DrawTriangleStrip",
  5018. description = "Draw a triangle strip defined by points",
  5019. returnType = "void",
  5020. params = {
  5021. {type = "const Vector2 *", name = "points"},
  5022. {type = "int", name = "pointCount"},
  5023. {type = "Color", name = "color"}
  5024. }
  5025. },
  5026. {
  5027. name = "DrawPoly",
  5028. description = "Draw a regular polygon (Vector version)",
  5029. returnType = "void",
  5030. params = {
  5031. {type = "Vector2", name = "center"},
  5032. {type = "int", name = "sides"},
  5033. {type = "float", name = "radius"},
  5034. {type = "float", name = "rotation"},
  5035. {type = "Color", name = "color"}
  5036. }
  5037. },
  5038. {
  5039. name = "DrawPolyLines",
  5040. description = "Draw a polygon outline of n sides",
  5041. returnType = "void",
  5042. params = {
  5043. {type = "Vector2", name = "center"},
  5044. {type = "int", name = "sides"},
  5045. {type = "float", name = "radius"},
  5046. {type = "float", name = "rotation"},
  5047. {type = "Color", name = "color"}
  5048. }
  5049. },
  5050. {
  5051. name = "DrawPolyLinesEx",
  5052. description = "Draw a polygon outline of n sides with extended parameters",
  5053. returnType = "void",
  5054. params = {
  5055. {type = "Vector2", name = "center"},
  5056. {type = "int", name = "sides"},
  5057. {type = "float", name = "radius"},
  5058. {type = "float", name = "rotation"},
  5059. {type = "float", name = "lineThick"},
  5060. {type = "Color", name = "color"}
  5061. }
  5062. },
  5063. {
  5064. name = "DrawSplineLinear",
  5065. description = "Draw spline: Linear, minimum 2 points",
  5066. returnType = "void",
  5067. params = {
  5068. {type = "const Vector2 *", name = "points"},
  5069. {type = "int", name = "pointCount"},
  5070. {type = "float", name = "thick"},
  5071. {type = "Color", name = "color"}
  5072. }
  5073. },
  5074. {
  5075. name = "DrawSplineBasis",
  5076. description = "Draw spline: B-Spline, minimum 4 points",
  5077. returnType = "void",
  5078. params = {
  5079. {type = "const Vector2 *", name = "points"},
  5080. {type = "int", name = "pointCount"},
  5081. {type = "float", name = "thick"},
  5082. {type = "Color", name = "color"}
  5083. }
  5084. },
  5085. {
  5086. name = "DrawSplineCatmullRom",
  5087. description = "Draw spline: Catmull-Rom, minimum 4 points",
  5088. returnType = "void",
  5089. params = {
  5090. {type = "const Vector2 *", name = "points"},
  5091. {type = "int", name = "pointCount"},
  5092. {type = "float", name = "thick"},
  5093. {type = "Color", name = "color"}
  5094. }
  5095. },
  5096. {
  5097. name = "DrawSplineBezierQuadratic",
  5098. description = "Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]",
  5099. returnType = "void",
  5100. params = {
  5101. {type = "const Vector2 *", name = "points"},
  5102. {type = "int", name = "pointCount"},
  5103. {type = "float", name = "thick"},
  5104. {type = "Color", name = "color"}
  5105. }
  5106. },
  5107. {
  5108. name = "DrawSplineBezierCubic",
  5109. description = "Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]",
  5110. returnType = "void",
  5111. params = {
  5112. {type = "const Vector2 *", name = "points"},
  5113. {type = "int", name = "pointCount"},
  5114. {type = "float", name = "thick"},
  5115. {type = "Color", name = "color"}
  5116. }
  5117. },
  5118. {
  5119. name = "DrawSplineSegmentLinear",
  5120. description = "Draw spline segment: Linear, 2 points",
  5121. returnType = "void",
  5122. params = {
  5123. {type = "Vector2", name = "p1"},
  5124. {type = "Vector2", name = "p2"},
  5125. {type = "float", name = "thick"},
  5126. {type = "Color", name = "color"}
  5127. }
  5128. },
  5129. {
  5130. name = "DrawSplineSegmentBasis",
  5131. description = "Draw spline segment: B-Spline, 4 points",
  5132. returnType = "void",
  5133. params = {
  5134. {type = "Vector2", name = "p1"},
  5135. {type = "Vector2", name = "p2"},
  5136. {type = "Vector2", name = "p3"},
  5137. {type = "Vector2", name = "p4"},
  5138. {type = "float", name = "thick"},
  5139. {type = "Color", name = "color"}
  5140. }
  5141. },
  5142. {
  5143. name = "DrawSplineSegmentCatmullRom",
  5144. description = "Draw spline segment: Catmull-Rom, 4 points",
  5145. returnType = "void",
  5146. params = {
  5147. {type = "Vector2", name = "p1"},
  5148. {type = "Vector2", name = "p2"},
  5149. {type = "Vector2", name = "p3"},
  5150. {type = "Vector2", name = "p4"},
  5151. {type = "float", name = "thick"},
  5152. {type = "Color", name = "color"}
  5153. }
  5154. },
  5155. {
  5156. name = "DrawSplineSegmentBezierQuadratic",
  5157. description = "Draw spline segment: Quadratic Bezier, 2 points, 1 control point",
  5158. returnType = "void",
  5159. params = {
  5160. {type = "Vector2", name = "p1"},
  5161. {type = "Vector2", name = "c2"},
  5162. {type = "Vector2", name = "p3"},
  5163. {type = "float", name = "thick"},
  5164. {type = "Color", name = "color"}
  5165. }
  5166. },
  5167. {
  5168. name = "DrawSplineSegmentBezierCubic",
  5169. description = "Draw spline segment: Cubic Bezier, 2 points, 2 control points",
  5170. returnType = "void",
  5171. params = {
  5172. {type = "Vector2", name = "p1"},
  5173. {type = "Vector2", name = "c2"},
  5174. {type = "Vector2", name = "c3"},
  5175. {type = "Vector2", name = "p4"},
  5176. {type = "float", name = "thick"},
  5177. {type = "Color", name = "color"}
  5178. }
  5179. },
  5180. {
  5181. name = "GetSplinePointLinear",
  5182. description = "Get (evaluate) spline point: Linear",
  5183. returnType = "Vector2",
  5184. params = {
  5185. {type = "Vector2", name = "startPos"},
  5186. {type = "Vector2", name = "endPos"},
  5187. {type = "float", name = "t"}
  5188. }
  5189. },
  5190. {
  5191. name = "GetSplinePointBasis",
  5192. description = "Get (evaluate) spline point: B-Spline",
  5193. returnType = "Vector2",
  5194. params = {
  5195. {type = "Vector2", name = "p1"},
  5196. {type = "Vector2", name = "p2"},
  5197. {type = "Vector2", name = "p3"},
  5198. {type = "Vector2", name = "p4"},
  5199. {type = "float", name = "t"}
  5200. }
  5201. },
  5202. {
  5203. name = "GetSplinePointCatmullRom",
  5204. description = "Get (evaluate) spline point: Catmull-Rom",
  5205. returnType = "Vector2",
  5206. params = {
  5207. {type = "Vector2", name = "p1"},
  5208. {type = "Vector2", name = "p2"},
  5209. {type = "Vector2", name = "p3"},
  5210. {type = "Vector2", name = "p4"},
  5211. {type = "float", name = "t"}
  5212. }
  5213. },
  5214. {
  5215. name = "GetSplinePointBezierQuad",
  5216. description = "Get (evaluate) spline point: Quadratic Bezier",
  5217. returnType = "Vector2",
  5218. params = {
  5219. {type = "Vector2", name = "p1"},
  5220. {type = "Vector2", name = "c2"},
  5221. {type = "Vector2", name = "p3"},
  5222. {type = "float", name = "t"}
  5223. }
  5224. },
  5225. {
  5226. name = "GetSplinePointBezierCubic",
  5227. description = "Get (evaluate) spline point: Cubic Bezier",
  5228. returnType = "Vector2",
  5229. params = {
  5230. {type = "Vector2", name = "p1"},
  5231. {type = "Vector2", name = "c2"},
  5232. {type = "Vector2", name = "c3"},
  5233. {type = "Vector2", name = "p4"},
  5234. {type = "float", name = "t"}
  5235. }
  5236. },
  5237. {
  5238. name = "CheckCollisionRecs",
  5239. description = "Check collision between two rectangles",
  5240. returnType = "bool",
  5241. params = {
  5242. {type = "Rectangle", name = "rec1"},
  5243. {type = "Rectangle", name = "rec2"}
  5244. }
  5245. },
  5246. {
  5247. name = "CheckCollisionCircles",
  5248. description = "Check collision between two circles",
  5249. returnType = "bool",
  5250. params = {
  5251. {type = "Vector2", name = "center1"},
  5252. {type = "float", name = "radius1"},
  5253. {type = "Vector2", name = "center2"},
  5254. {type = "float", name = "radius2"}
  5255. }
  5256. },
  5257. {
  5258. name = "CheckCollisionCircleRec",
  5259. description = "Check collision between circle and rectangle",
  5260. returnType = "bool",
  5261. params = {
  5262. {type = "Vector2", name = "center"},
  5263. {type = "float", name = "radius"},
  5264. {type = "Rectangle", name = "rec"}
  5265. }
  5266. },
  5267. {
  5268. name = "CheckCollisionCircleLine",
  5269. description = "Check if circle collides with a line created betweeen two points [p1] and [p2]",
  5270. returnType = "bool",
  5271. params = {
  5272. {type = "Vector2", name = "center"},
  5273. {type = "float", name = "radius"},
  5274. {type = "Vector2", name = "p1"},
  5275. {type = "Vector2", name = "p2"}
  5276. }
  5277. },
  5278. {
  5279. name = "CheckCollisionPointRec",
  5280. description = "Check if point is inside rectangle",
  5281. returnType = "bool",
  5282. params = {
  5283. {type = "Vector2", name = "point"},
  5284. {type = "Rectangle", name = "rec"}
  5285. }
  5286. },
  5287. {
  5288. name = "CheckCollisionPointCircle",
  5289. description = "Check if point is inside circle",
  5290. returnType = "bool",
  5291. params = {
  5292. {type = "Vector2", name = "point"},
  5293. {type = "Vector2", name = "center"},
  5294. {type = "float", name = "radius"}
  5295. }
  5296. },
  5297. {
  5298. name = "CheckCollisionPointTriangle",
  5299. description = "Check if point is inside a triangle",
  5300. returnType = "bool",
  5301. params = {
  5302. {type = "Vector2", name = "point"},
  5303. {type = "Vector2", name = "p1"},
  5304. {type = "Vector2", name = "p2"},
  5305. {type = "Vector2", name = "p3"}
  5306. }
  5307. },
  5308. {
  5309. name = "CheckCollisionPointLine",
  5310. description = "Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]",
  5311. returnType = "bool",
  5312. params = {
  5313. {type = "Vector2", name = "point"},
  5314. {type = "Vector2", name = "p1"},
  5315. {type = "Vector2", name = "p2"},
  5316. {type = "int", name = "threshold"}
  5317. }
  5318. },
  5319. {
  5320. name = "CheckCollisionPointPoly",
  5321. description = "Check if point is within a polygon described by array of vertices",
  5322. returnType = "bool",
  5323. params = {
  5324. {type = "Vector2", name = "point"},
  5325. {type = "const Vector2 *", name = "points"},
  5326. {type = "int", name = "pointCount"}
  5327. }
  5328. },
  5329. {
  5330. name = "CheckCollisionLines",
  5331. description = "Check the collision between two lines defined by two points each, returns collision point by reference",
  5332. returnType = "bool",
  5333. params = {
  5334. {type = "Vector2", name = "startPos1"},
  5335. {type = "Vector2", name = "endPos1"},
  5336. {type = "Vector2", name = "startPos2"},
  5337. {type = "Vector2", name = "endPos2"},
  5338. {type = "Vector2 *", name = "collisionPoint"}
  5339. }
  5340. },
  5341. {
  5342. name = "GetCollisionRec",
  5343. description = "Get collision rectangle for two rectangles collision",
  5344. returnType = "Rectangle",
  5345. params = {
  5346. {type = "Rectangle", name = "rec1"},
  5347. {type = "Rectangle", name = "rec2"}
  5348. }
  5349. },
  5350. {
  5351. name = "LoadImage",
  5352. description = "Load image from file into CPU memory (RAM)",
  5353. returnType = "Image",
  5354. params = {
  5355. {type = "const char *", name = "fileName"}
  5356. }
  5357. },
  5358. {
  5359. name = "LoadImageRaw",
  5360. description = "Load image from RAW file data",
  5361. returnType = "Image",
  5362. params = {
  5363. {type = "const char *", name = "fileName"},
  5364. {type = "int", name = "width"},
  5365. {type = "int", name = "height"},
  5366. {type = "int", name = "format"},
  5367. {type = "int", name = "headerSize"}
  5368. }
  5369. },
  5370. {
  5371. name = "LoadImageAnim",
  5372. description = "Load image sequence from file (frames appended to image.data)",
  5373. returnType = "Image",
  5374. params = {
  5375. {type = "const char *", name = "fileName"},
  5376. {type = "int *", name = "frames"}
  5377. }
  5378. },
  5379. {
  5380. name = "LoadImageAnimFromMemory",
  5381. description = "Load image sequence from memory buffer",
  5382. returnType = "Image",
  5383. params = {
  5384. {type = "const char *", name = "fileType"},
  5385. {type = "const unsigned char *", name = "fileData"},
  5386. {type = "int", name = "dataSize"},
  5387. {type = "int *", name = "frames"}
  5388. }
  5389. },
  5390. {
  5391. name = "LoadImageFromMemory",
  5392. description = "Load image from memory buffer, fileType refers to extension: i.e. '.png'",
  5393. returnType = "Image",
  5394. params = {
  5395. {type = "const char *", name = "fileType"},
  5396. {type = "const unsigned char *", name = "fileData"},
  5397. {type = "int", name = "dataSize"}
  5398. }
  5399. },
  5400. {
  5401. name = "LoadImageFromTexture",
  5402. description = "Load image from GPU texture data",
  5403. returnType = "Image",
  5404. params = {
  5405. {type = "Texture2D", name = "texture"}
  5406. }
  5407. },
  5408. {
  5409. name = "LoadImageFromScreen",
  5410. description = "Load image from screen buffer and (screenshot)",
  5411. returnType = "Image"
  5412. },
  5413. {
  5414. name = "IsImageValid",
  5415. description = "Check if an image is valid (data and parameters)",
  5416. returnType = "bool",
  5417. params = {
  5418. {type = "Image", name = "image"}
  5419. }
  5420. },
  5421. {
  5422. name = "UnloadImage",
  5423. description = "Unload image from CPU memory (RAM)",
  5424. returnType = "void",
  5425. params = {
  5426. {type = "Image", name = "image"}
  5427. }
  5428. },
  5429. {
  5430. name = "ExportImage",
  5431. description = "Export image data to file, returns true on success",
  5432. returnType = "bool",
  5433. params = {
  5434. {type = "Image", name = "image"},
  5435. {type = "const char *", name = "fileName"}
  5436. }
  5437. },
  5438. {
  5439. name = "ExportImageToMemory",
  5440. description = "Export image to memory buffer",
  5441. returnType = "unsigned char *",
  5442. params = {
  5443. {type = "Image", name = "image"},
  5444. {type = "const char *", name = "fileType"},
  5445. {type = "int *", name = "fileSize"}
  5446. }
  5447. },
  5448. {
  5449. name = "ExportImageAsCode",
  5450. description = "Export image as code file defining an array of bytes, returns true on success",
  5451. returnType = "bool",
  5452. params = {
  5453. {type = "Image", name = "image"},
  5454. {type = "const char *", name = "fileName"}
  5455. }
  5456. },
  5457. {
  5458. name = "GenImageColor",
  5459. description = "Generate image: plain color",
  5460. returnType = "Image",
  5461. params = {
  5462. {type = "int", name = "width"},
  5463. {type = "int", name = "height"},
  5464. {type = "Color", name = "color"}
  5465. }
  5466. },
  5467. {
  5468. name = "GenImageGradientLinear",
  5469. description = "Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient",
  5470. returnType = "Image",
  5471. params = {
  5472. {type = "int", name = "width"},
  5473. {type = "int", name = "height"},
  5474. {type = "int", name = "direction"},
  5475. {type = "Color", name = "start"},
  5476. {type = "Color", name = "end"}
  5477. }
  5478. },
  5479. {
  5480. name = "GenImageGradientRadial",
  5481. description = "Generate image: radial gradient",
  5482. returnType = "Image",
  5483. params = {
  5484. {type = "int", name = "width"},
  5485. {type = "int", name = "height"},
  5486. {type = "float", name = "density"},
  5487. {type = "Color", name = "inner"},
  5488. {type = "Color", name = "outer"}
  5489. }
  5490. },
  5491. {
  5492. name = "GenImageGradientSquare",
  5493. description = "Generate image: square gradient",
  5494. returnType = "Image",
  5495. params = {
  5496. {type = "int", name = "width"},
  5497. {type = "int", name = "height"},
  5498. {type = "float", name = "density"},
  5499. {type = "Color", name = "inner"},
  5500. {type = "Color", name = "outer"}
  5501. }
  5502. },
  5503. {
  5504. name = "GenImageChecked",
  5505. description = "Generate image: checked",
  5506. returnType = "Image",
  5507. params = {
  5508. {type = "int", name = "width"},
  5509. {type = "int", name = "height"},
  5510. {type = "int", name = "checksX"},
  5511. {type = "int", name = "checksY"},
  5512. {type = "Color", name = "col1"},
  5513. {type = "Color", name = "col2"}
  5514. }
  5515. },
  5516. {
  5517. name = "GenImageWhiteNoise",
  5518. description = "Generate image: white noise",
  5519. returnType = "Image",
  5520. params = {
  5521. {type = "int", name = "width"},
  5522. {type = "int", name = "height"},
  5523. {type = "float", name = "factor"}
  5524. }
  5525. },
  5526. {
  5527. name = "GenImagePerlinNoise",
  5528. description = "Generate image: perlin noise",
  5529. returnType = "Image",
  5530. params = {
  5531. {type = "int", name = "width"},
  5532. {type = "int", name = "height"},
  5533. {type = "int", name = "offsetX"},
  5534. {type = "int", name = "offsetY"},
  5535. {type = "float", name = "scale"}
  5536. }
  5537. },
  5538. {
  5539. name = "GenImageCellular",
  5540. description = "Generate image: cellular algorithm, bigger tileSize means bigger cells",
  5541. returnType = "Image",
  5542. params = {
  5543. {type = "int", name = "width"},
  5544. {type = "int", name = "height"},
  5545. {type = "int", name = "tileSize"}
  5546. }
  5547. },
  5548. {
  5549. name = "GenImageText",
  5550. description = "Generate image: grayscale image from text data",
  5551. returnType = "Image",
  5552. params = {
  5553. {type = "int", name = "width"},
  5554. {type = "int", name = "height"},
  5555. {type = "const char *", name = "text"}
  5556. }
  5557. },
  5558. {
  5559. name = "ImageCopy",
  5560. description = "Create an image duplicate (useful for transformations)",
  5561. returnType = "Image",
  5562. params = {
  5563. {type = "Image", name = "image"}
  5564. }
  5565. },
  5566. {
  5567. name = "ImageFromImage",
  5568. description = "Create an image from another image piece",
  5569. returnType = "Image",
  5570. params = {
  5571. {type = "Image", name = "image"},
  5572. {type = "Rectangle", name = "rec"}
  5573. }
  5574. },
  5575. {
  5576. name = "ImageFromChannel",
  5577. description = "Create an image from a selected channel of another image (GRAYSCALE)",
  5578. returnType = "Image",
  5579. params = {
  5580. {type = "Image", name = "image"},
  5581. {type = "int", name = "selectedChannel"}
  5582. }
  5583. },
  5584. {
  5585. name = "ImageText",
  5586. description = "Create an image from text (default font)",
  5587. returnType = "Image",
  5588. params = {
  5589. {type = "const char *", name = "text"},
  5590. {type = "int", name = "fontSize"},
  5591. {type = "Color", name = "color"}
  5592. }
  5593. },
  5594. {
  5595. name = "ImageTextEx",
  5596. description = "Create an image from text (custom sprite font)",
  5597. returnType = "Image",
  5598. params = {
  5599. {type = "Font", name = "font"},
  5600. {type = "const char *", name = "text"},
  5601. {type = "float", name = "fontSize"},
  5602. {type = "float", name = "spacing"},
  5603. {type = "Color", name = "tint"}
  5604. }
  5605. },
  5606. {
  5607. name = "ImageFormat",
  5608. description = "Convert image data to desired format",
  5609. returnType = "void",
  5610. params = {
  5611. {type = "Image *", name = "image"},
  5612. {type = "int", name = "newFormat"}
  5613. }
  5614. },
  5615. {
  5616. name = "ImageToPOT",
  5617. description = "Convert image to POT (power-of-two)",
  5618. returnType = "void",
  5619. params = {
  5620. {type = "Image *", name = "image"},
  5621. {type = "Color", name = "fill"}
  5622. }
  5623. },
  5624. {
  5625. name = "ImageCrop",
  5626. description = "Crop an image to a defined rectangle",
  5627. returnType = "void",
  5628. params = {
  5629. {type = "Image *", name = "image"},
  5630. {type = "Rectangle", name = "crop"}
  5631. }
  5632. },
  5633. {
  5634. name = "ImageAlphaCrop",
  5635. description = "Crop image depending on alpha value",
  5636. returnType = "void",
  5637. params = {
  5638. {type = "Image *", name = "image"},
  5639. {type = "float", name = "threshold"}
  5640. }
  5641. },
  5642. {
  5643. name = "ImageAlphaClear",
  5644. description = "Clear alpha channel to desired color",
  5645. returnType = "void",
  5646. params = {
  5647. {type = "Image *", name = "image"},
  5648. {type = "Color", name = "color"},
  5649. {type = "float", name = "threshold"}
  5650. }
  5651. },
  5652. {
  5653. name = "ImageAlphaMask",
  5654. description = "Apply alpha mask to image",
  5655. returnType = "void",
  5656. params = {
  5657. {type = "Image *", name = "image"},
  5658. {type = "Image", name = "alphaMask"}
  5659. }
  5660. },
  5661. {
  5662. name = "ImageAlphaPremultiply",
  5663. description = "Premultiply alpha channel",
  5664. returnType = "void",
  5665. params = {
  5666. {type = "Image *", name = "image"}
  5667. }
  5668. },
  5669. {
  5670. name = "ImageBlurGaussian",
  5671. description = "Apply Gaussian blur using a box blur approximation",
  5672. returnType = "void",
  5673. params = {
  5674. {type = "Image *", name = "image"},
  5675. {type = "int", name = "blurSize"}
  5676. }
  5677. },
  5678. {
  5679. name = "ImageKernelConvolution",
  5680. description = "Apply custom square convolution kernel to image",
  5681. returnType = "void",
  5682. params = {
  5683. {type = "Image *", name = "image"},
  5684. {type = "const float *", name = "kernel"},
  5685. {type = "int", name = "kernelSize"}
  5686. }
  5687. },
  5688. {
  5689. name = "ImageResize",
  5690. description = "Resize image (Bicubic scaling algorithm)",
  5691. returnType = "void",
  5692. params = {
  5693. {type = "Image *", name = "image"},
  5694. {type = "int", name = "newWidth"},
  5695. {type = "int", name = "newHeight"}
  5696. }
  5697. },
  5698. {
  5699. name = "ImageResizeNN",
  5700. description = "Resize image (Nearest-Neighbor scaling algorithm)",
  5701. returnType = "void",
  5702. params = {
  5703. {type = "Image *", name = "image"},
  5704. {type = "int", name = "newWidth"},
  5705. {type = "int", name = "newHeight"}
  5706. }
  5707. },
  5708. {
  5709. name = "ImageResizeCanvas",
  5710. description = "Resize canvas and fill with color",
  5711. returnType = "void",
  5712. params = {
  5713. {type = "Image *", name = "image"},
  5714. {type = "int", name = "newWidth"},
  5715. {type = "int", name = "newHeight"},
  5716. {type = "int", name = "offsetX"},
  5717. {type = "int", name = "offsetY"},
  5718. {type = "Color", name = "fill"}
  5719. }
  5720. },
  5721. {
  5722. name = "ImageMipmaps",
  5723. description = "Compute all mipmap levels for a provided image",
  5724. returnType = "void",
  5725. params = {
  5726. {type = "Image *", name = "image"}
  5727. }
  5728. },
  5729. {
  5730. name = "ImageDither",
  5731. description = "Dither image data to 16bpp or lower (Floyd-Steinberg dithering)",
  5732. returnType = "void",
  5733. params = {
  5734. {type = "Image *", name = "image"},
  5735. {type = "int", name = "rBpp"},
  5736. {type = "int", name = "gBpp"},
  5737. {type = "int", name = "bBpp"},
  5738. {type = "int", name = "aBpp"}
  5739. }
  5740. },
  5741. {
  5742. name = "ImageFlipVertical",
  5743. description = "Flip image vertically",
  5744. returnType = "void",
  5745. params = {
  5746. {type = "Image *", name = "image"}
  5747. }
  5748. },
  5749. {
  5750. name = "ImageFlipHorizontal",
  5751. description = "Flip image horizontally",
  5752. returnType = "void",
  5753. params = {
  5754. {type = "Image *", name = "image"}
  5755. }
  5756. },
  5757. {
  5758. name = "ImageRotate",
  5759. description = "Rotate image by input angle in degrees (-359 to 359)",
  5760. returnType = "void",
  5761. params = {
  5762. {type = "Image *", name = "image"},
  5763. {type = "int", name = "degrees"}
  5764. }
  5765. },
  5766. {
  5767. name = "ImageRotateCW",
  5768. description = "Rotate image clockwise 90deg",
  5769. returnType = "void",
  5770. params = {
  5771. {type = "Image *", name = "image"}
  5772. }
  5773. },
  5774. {
  5775. name = "ImageRotateCCW",
  5776. description = "Rotate image counter-clockwise 90deg",
  5777. returnType = "void",
  5778. params = {
  5779. {type = "Image *", name = "image"}
  5780. }
  5781. },
  5782. {
  5783. name = "ImageColorTint",
  5784. description = "Modify image color: tint",
  5785. returnType = "void",
  5786. params = {
  5787. {type = "Image *", name = "image"},
  5788. {type = "Color", name = "color"}
  5789. }
  5790. },
  5791. {
  5792. name = "ImageColorInvert",
  5793. description = "Modify image color: invert",
  5794. returnType = "void",
  5795. params = {
  5796. {type = "Image *", name = "image"}
  5797. }
  5798. },
  5799. {
  5800. name = "ImageColorGrayscale",
  5801. description = "Modify image color: grayscale",
  5802. returnType = "void",
  5803. params = {
  5804. {type = "Image *", name = "image"}
  5805. }
  5806. },
  5807. {
  5808. name = "ImageColorContrast",
  5809. description = "Modify image color: contrast (-100 to 100)",
  5810. returnType = "void",
  5811. params = {
  5812. {type = "Image *", name = "image"},
  5813. {type = "float", name = "contrast"}
  5814. }
  5815. },
  5816. {
  5817. name = "ImageColorBrightness",
  5818. description = "Modify image color: brightness (-255 to 255)",
  5819. returnType = "void",
  5820. params = {
  5821. {type = "Image *", name = "image"},
  5822. {type = "int", name = "brightness"}
  5823. }
  5824. },
  5825. {
  5826. name = "ImageColorReplace",
  5827. description = "Modify image color: replace color",
  5828. returnType = "void",
  5829. params = {
  5830. {type = "Image *", name = "image"},
  5831. {type = "Color", name = "color"},
  5832. {type = "Color", name = "replace"}
  5833. }
  5834. },
  5835. {
  5836. name = "LoadImageColors",
  5837. description = "Load color data from image as a Color array (RGBA - 32bit)",
  5838. returnType = "Color *",
  5839. params = {
  5840. {type = "Image", name = "image"}
  5841. }
  5842. },
  5843. {
  5844. name = "LoadImagePalette",
  5845. description = "Load colors palette from image as a Color array (RGBA - 32bit)",
  5846. returnType = "Color *",
  5847. params = {
  5848. {type = "Image", name = "image"},
  5849. {type = "int", name = "maxPaletteSize"},
  5850. {type = "int *", name = "colorCount"}
  5851. }
  5852. },
  5853. {
  5854. name = "UnloadImageColors",
  5855. description = "Unload color data loaded with LoadImageColors()",
  5856. returnType = "void",
  5857. params = {
  5858. {type = "Color *", name = "colors"}
  5859. }
  5860. },
  5861. {
  5862. name = "UnloadImagePalette",
  5863. description = "Unload colors palette loaded with LoadImagePalette()",
  5864. returnType = "void",
  5865. params = {
  5866. {type = "Color *", name = "colors"}
  5867. }
  5868. },
  5869. {
  5870. name = "GetImageAlphaBorder",
  5871. description = "Get image alpha border rectangle",
  5872. returnType = "Rectangle",
  5873. params = {
  5874. {type = "Image", name = "image"},
  5875. {type = "float", name = "threshold"}
  5876. }
  5877. },
  5878. {
  5879. name = "GetImageColor",
  5880. description = "Get image pixel color at (x, y) position",
  5881. returnType = "Color",
  5882. params = {
  5883. {type = "Image", name = "image"},
  5884. {type = "int", name = "x"},
  5885. {type = "int", name = "y"}
  5886. }
  5887. },
  5888. {
  5889. name = "ImageClearBackground",
  5890. description = "Clear image background with given color",
  5891. returnType = "void",
  5892. params = {
  5893. {type = "Image *", name = "dst"},
  5894. {type = "Color", name = "color"}
  5895. }
  5896. },
  5897. {
  5898. name = "ImageDrawPixel",
  5899. description = "Draw pixel within an image",
  5900. returnType = "void",
  5901. params = {
  5902. {type = "Image *", name = "dst"},
  5903. {type = "int", name = "posX"},
  5904. {type = "int", name = "posY"},
  5905. {type = "Color", name = "color"}
  5906. }
  5907. },
  5908. {
  5909. name = "ImageDrawPixelV",
  5910. description = "Draw pixel within an image (Vector version)",
  5911. returnType = "void",
  5912. params = {
  5913. {type = "Image *", name = "dst"},
  5914. {type = "Vector2", name = "position"},
  5915. {type = "Color", name = "color"}
  5916. }
  5917. },
  5918. {
  5919. name = "ImageDrawLine",
  5920. description = "Draw line within an image",
  5921. returnType = "void",
  5922. params = {
  5923. {type = "Image *", name = "dst"},
  5924. {type = "int", name = "startPosX"},
  5925. {type = "int", name = "startPosY"},
  5926. {type = "int", name = "endPosX"},
  5927. {type = "int", name = "endPosY"},
  5928. {type = "Color", name = "color"}
  5929. }
  5930. },
  5931. {
  5932. name = "ImageDrawLineV",
  5933. description = "Draw line within an image (Vector version)",
  5934. returnType = "void",
  5935. params = {
  5936. {type = "Image *", name = "dst"},
  5937. {type = "Vector2", name = "start"},
  5938. {type = "Vector2", name = "end"},
  5939. {type = "Color", name = "color"}
  5940. }
  5941. },
  5942. {
  5943. name = "ImageDrawLineEx",
  5944. description = "Draw a line defining thickness within an image",
  5945. returnType = "void",
  5946. params = {
  5947. {type = "Image *", name = "dst"},
  5948. {type = "Vector2", name = "start"},
  5949. {type = "Vector2", name = "end"},
  5950. {type = "int", name = "thick"},
  5951. {type = "Color", name = "color"}
  5952. }
  5953. },
  5954. {
  5955. name = "ImageDrawCircle",
  5956. description = "Draw a filled circle within an image",
  5957. returnType = "void",
  5958. params = {
  5959. {type = "Image *", name = "dst"},
  5960. {type = "int", name = "centerX"},
  5961. {type = "int", name = "centerY"},
  5962. {type = "int", name = "radius"},
  5963. {type = "Color", name = "color"}
  5964. }
  5965. },
  5966. {
  5967. name = "ImageDrawCircleV",
  5968. description = "Draw a filled circle within an image (Vector version)",
  5969. returnType = "void",
  5970. params = {
  5971. {type = "Image *", name = "dst"},
  5972. {type = "Vector2", name = "center"},
  5973. {type = "int", name = "radius"},
  5974. {type = "Color", name = "color"}
  5975. }
  5976. },
  5977. {
  5978. name = "ImageDrawCircleLines",
  5979. description = "Draw circle outline within an image",
  5980. returnType = "void",
  5981. params = {
  5982. {type = "Image *", name = "dst"},
  5983. {type = "int", name = "centerX"},
  5984. {type = "int", name = "centerY"},
  5985. {type = "int", name = "radius"},
  5986. {type = "Color", name = "color"}
  5987. }
  5988. },
  5989. {
  5990. name = "ImageDrawCircleLinesV",
  5991. description = "Draw circle outline within an image (Vector version)",
  5992. returnType = "void",
  5993. params = {
  5994. {type = "Image *", name = "dst"},
  5995. {type = "Vector2", name = "center"},
  5996. {type = "int", name = "radius"},
  5997. {type = "Color", name = "color"}
  5998. }
  5999. },
  6000. {
  6001. name = "ImageDrawRectangle",
  6002. description = "Draw rectangle within an image",
  6003. returnType = "void",
  6004. params = {
  6005. {type = "Image *", name = "dst"},
  6006. {type = "int", name = "posX"},
  6007. {type = "int", name = "posY"},
  6008. {type = "int", name = "width"},
  6009. {type = "int", name = "height"},
  6010. {type = "Color", name = "color"}
  6011. }
  6012. },
  6013. {
  6014. name = "ImageDrawRectangleV",
  6015. description = "Draw rectangle within an image (Vector version)",
  6016. returnType = "void",
  6017. params = {
  6018. {type = "Image *", name = "dst"},
  6019. {type = "Vector2", name = "position"},
  6020. {type = "Vector2", name = "size"},
  6021. {type = "Color", name = "color"}
  6022. }
  6023. },
  6024. {
  6025. name = "ImageDrawRectangleRec",
  6026. description = "Draw rectangle within an image",
  6027. returnType = "void",
  6028. params = {
  6029. {type = "Image *", name = "dst"},
  6030. {type = "Rectangle", name = "rec"},
  6031. {type = "Color", name = "color"}
  6032. }
  6033. },
  6034. {
  6035. name = "ImageDrawRectangleLines",
  6036. description = "Draw rectangle lines within an image",
  6037. returnType = "void",
  6038. params = {
  6039. {type = "Image *", name = "dst"},
  6040. {type = "Rectangle", name = "rec"},
  6041. {type = "int", name = "thick"},
  6042. {type = "Color", name = "color"}
  6043. }
  6044. },
  6045. {
  6046. name = "ImageDrawTriangle",
  6047. description = "Draw triangle within an image",
  6048. returnType = "void",
  6049. params = {
  6050. {type = "Image *", name = "dst"},
  6051. {type = "Vector2", name = "v1"},
  6052. {type = "Vector2", name = "v2"},
  6053. {type = "Vector2", name = "v3"},
  6054. {type = "Color", name = "color"}
  6055. }
  6056. },
  6057. {
  6058. name = "ImageDrawTriangleEx",
  6059. description = "Draw triangle with interpolated colors within an image",
  6060. returnType = "void",
  6061. params = {
  6062. {type = "Image *", name = "dst"},
  6063. {type = "Vector2", name = "v1"},
  6064. {type = "Vector2", name = "v2"},
  6065. {type = "Vector2", name = "v3"},
  6066. {type = "Color", name = "c1"},
  6067. {type = "Color", name = "c2"},
  6068. {type = "Color", name = "c3"}
  6069. }
  6070. },
  6071. {
  6072. name = "ImageDrawTriangleLines",
  6073. description = "Draw triangle outline within an image",
  6074. returnType = "void",
  6075. params = {
  6076. {type = "Image *", name = "dst"},
  6077. {type = "Vector2", name = "v1"},
  6078. {type = "Vector2", name = "v2"},
  6079. {type = "Vector2", name = "v3"},
  6080. {type = "Color", name = "color"}
  6081. }
  6082. },
  6083. {
  6084. name = "ImageDrawTriangleFan",
  6085. description = "Draw a triangle fan defined by points within an image (first vertex is the center)",
  6086. returnType = "void",
  6087. params = {
  6088. {type = "Image *", name = "dst"},
  6089. {type = "Vector2 *", name = "points"},
  6090. {type = "int", name = "pointCount"},
  6091. {type = "Color", name = "color"}
  6092. }
  6093. },
  6094. {
  6095. name = "ImageDrawTriangleStrip",
  6096. description = "Draw a triangle strip defined by points within an image",
  6097. returnType = "void",
  6098. params = {
  6099. {type = "Image *", name = "dst"},
  6100. {type = "Vector2 *", name = "points"},
  6101. {type = "int", name = "pointCount"},
  6102. {type = "Color", name = "color"}
  6103. }
  6104. },
  6105. {
  6106. name = "ImageDraw",
  6107. description = "Draw a source image within a destination image (tint applied to source)",
  6108. returnType = "void",
  6109. params = {
  6110. {type = "Image *", name = "dst"},
  6111. {type = "Image", name = "src"},
  6112. {type = "Rectangle", name = "srcRec"},
  6113. {type = "Rectangle", name = "dstRec"},
  6114. {type = "Color", name = "tint"}
  6115. }
  6116. },
  6117. {
  6118. name = "ImageDrawText",
  6119. description = "Draw text (using default font) within an image (destination)",
  6120. returnType = "void",
  6121. params = {
  6122. {type = "Image *", name = "dst"},
  6123. {type = "const char *", name = "text"},
  6124. {type = "int", name = "posX"},
  6125. {type = "int", name = "posY"},
  6126. {type = "int", name = "fontSize"},
  6127. {type = "Color", name = "color"}
  6128. }
  6129. },
  6130. {
  6131. name = "ImageDrawTextEx",
  6132. description = "Draw text (custom sprite font) within an image (destination)",
  6133. returnType = "void",
  6134. params = {
  6135. {type = "Image *", name = "dst"},
  6136. {type = "Font", name = "font"},
  6137. {type = "const char *", name = "text"},
  6138. {type = "Vector2", name = "position"},
  6139. {type = "float", name = "fontSize"},
  6140. {type = "float", name = "spacing"},
  6141. {type = "Color", name = "tint"}
  6142. }
  6143. },
  6144. {
  6145. name = "LoadTexture",
  6146. description = "Load texture from file into GPU memory (VRAM)",
  6147. returnType = "Texture2D",
  6148. params = {
  6149. {type = "const char *", name = "fileName"}
  6150. }
  6151. },
  6152. {
  6153. name = "LoadTextureFromImage",
  6154. description = "Load texture from image data",
  6155. returnType = "Texture2D",
  6156. params = {
  6157. {type = "Image", name = "image"}
  6158. }
  6159. },
  6160. {
  6161. name = "LoadTextureCubemap",
  6162. description = "Load cubemap from image, multiple image cubemap layouts supported",
  6163. returnType = "TextureCubemap",
  6164. params = {
  6165. {type = "Image", name = "image"},
  6166. {type = "int", name = "layout"}
  6167. }
  6168. },
  6169. {
  6170. name = "LoadRenderTexture",
  6171. description = "Load texture for rendering (framebuffer)",
  6172. returnType = "RenderTexture2D",
  6173. params = {
  6174. {type = "int", name = "width"},
  6175. {type = "int", name = "height"}
  6176. }
  6177. },
  6178. {
  6179. name = "IsTextureValid",
  6180. description = "Check if a texture is valid (loaded in GPU)",
  6181. returnType = "bool",
  6182. params = {
  6183. {type = "Texture2D", name = "texture"}
  6184. }
  6185. },
  6186. {
  6187. name = "UnloadTexture",
  6188. description = "Unload texture from GPU memory (VRAM)",
  6189. returnType = "void",
  6190. params = {
  6191. {type = "Texture2D", name = "texture"}
  6192. }
  6193. },
  6194. {
  6195. name = "IsRenderTextureValid",
  6196. description = "Check if a render texture is valid (loaded in GPU)",
  6197. returnType = "bool",
  6198. params = {
  6199. {type = "RenderTexture2D", name = "target"}
  6200. }
  6201. },
  6202. {
  6203. name = "UnloadRenderTexture",
  6204. description = "Unload render texture from GPU memory (VRAM)",
  6205. returnType = "void",
  6206. params = {
  6207. {type = "RenderTexture2D", name = "target"}
  6208. }
  6209. },
  6210. {
  6211. name = "UpdateTexture",
  6212. description = "Update GPU texture with new data",
  6213. returnType = "void",
  6214. params = {
  6215. {type = "Texture2D", name = "texture"},
  6216. {type = "const void *", name = "pixels"}
  6217. }
  6218. },
  6219. {
  6220. name = "UpdateTextureRec",
  6221. description = "Update GPU texture rectangle with new data",
  6222. returnType = "void",
  6223. params = {
  6224. {type = "Texture2D", name = "texture"},
  6225. {type = "Rectangle", name = "rec"},
  6226. {type = "const void *", name = "pixels"}
  6227. }
  6228. },
  6229. {
  6230. name = "GenTextureMipmaps",
  6231. description = "Generate GPU mipmaps for a texture",
  6232. returnType = "void",
  6233. params = {
  6234. {type = "Texture2D *", name = "texture"}
  6235. }
  6236. },
  6237. {
  6238. name = "SetTextureFilter",
  6239. description = "Set texture scaling filter mode",
  6240. returnType = "void",
  6241. params = {
  6242. {type = "Texture2D", name = "texture"},
  6243. {type = "int", name = "filter"}
  6244. }
  6245. },
  6246. {
  6247. name = "SetTextureWrap",
  6248. description = "Set texture wrapping mode",
  6249. returnType = "void",
  6250. params = {
  6251. {type = "Texture2D", name = "texture"},
  6252. {type = "int", name = "wrap"}
  6253. }
  6254. },
  6255. {
  6256. name = "DrawTexture",
  6257. description = "Draw a Texture2D",
  6258. returnType = "void",
  6259. params = {
  6260. {type = "Texture2D", name = "texture"},
  6261. {type = "int", name = "posX"},
  6262. {type = "int", name = "posY"},
  6263. {type = "Color", name = "tint"}
  6264. }
  6265. },
  6266. {
  6267. name = "DrawTextureV",
  6268. description = "Draw a Texture2D with position defined as Vector2",
  6269. returnType = "void",
  6270. params = {
  6271. {type = "Texture2D", name = "texture"},
  6272. {type = "Vector2", name = "position"},
  6273. {type = "Color", name = "tint"}
  6274. }
  6275. },
  6276. {
  6277. name = "DrawTextureEx",
  6278. description = "Draw a Texture2D with extended parameters",
  6279. returnType = "void",
  6280. params = {
  6281. {type = "Texture2D", name = "texture"},
  6282. {type = "Vector2", name = "position"},
  6283. {type = "float", name = "rotation"},
  6284. {type = "float", name = "scale"},
  6285. {type = "Color", name = "tint"}
  6286. }
  6287. },
  6288. {
  6289. name = "DrawTextureRec",
  6290. description = "Draw a part of a texture defined by a rectangle",
  6291. returnType = "void",
  6292. params = {
  6293. {type = "Texture2D", name = "texture"},
  6294. {type = "Rectangle", name = "source"},
  6295. {type = "Vector2", name = "position"},
  6296. {type = "Color", name = "tint"}
  6297. }
  6298. },
  6299. {
  6300. name = "DrawTexturePro",
  6301. description = "Draw a part of a texture defined by a rectangle with 'pro' parameters",
  6302. returnType = "void",
  6303. params = {
  6304. {type = "Texture2D", name = "texture"},
  6305. {type = "Rectangle", name = "source"},
  6306. {type = "Rectangle", name = "dest"},
  6307. {type = "Vector2", name = "origin"},
  6308. {type = "float", name = "rotation"},
  6309. {type = "Color", name = "tint"}
  6310. }
  6311. },
  6312. {
  6313. name = "DrawTextureNPatch",
  6314. description = "Draws a texture (or part of it) that stretches or shrinks nicely",
  6315. returnType = "void",
  6316. params = {
  6317. {type = "Texture2D", name = "texture"},
  6318. {type = "NPatchInfo", name = "nPatchInfo"},
  6319. {type = "Rectangle", name = "dest"},
  6320. {type = "Vector2", name = "origin"},
  6321. {type = "float", name = "rotation"},
  6322. {type = "Color", name = "tint"}
  6323. }
  6324. },
  6325. {
  6326. name = "ColorIsEqual",
  6327. description = "Check if two colors are equal",
  6328. returnType = "bool",
  6329. params = {
  6330. {type = "Color", name = "col1"},
  6331. {type = "Color", name = "col2"}
  6332. }
  6333. },
  6334. {
  6335. name = "Fade",
  6336. description = "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
  6337. returnType = "Color",
  6338. params = {
  6339. {type = "Color", name = "color"},
  6340. {type = "float", name = "alpha"}
  6341. }
  6342. },
  6343. {
  6344. name = "ColorToInt",
  6345. description = "Get hexadecimal value for a Color (0xRRGGBBAA)",
  6346. returnType = "int",
  6347. params = {
  6348. {type = "Color", name = "color"}
  6349. }
  6350. },
  6351. {
  6352. name = "ColorNormalize",
  6353. description = "Get Color normalized as float [0..1]",
  6354. returnType = "Vector4",
  6355. params = {
  6356. {type = "Color", name = "color"}
  6357. }
  6358. },
  6359. {
  6360. name = "ColorFromNormalized",
  6361. description = "Get Color from normalized values [0..1]",
  6362. returnType = "Color",
  6363. params = {
  6364. {type = "Vector4", name = "normalized"}
  6365. }
  6366. },
  6367. {
  6368. name = "ColorToHSV",
  6369. description = "Get HSV values for a Color, hue [0..360], saturation/value [0..1]",
  6370. returnType = "Vector3",
  6371. params = {
  6372. {type = "Color", name = "color"}
  6373. }
  6374. },
  6375. {
  6376. name = "ColorFromHSV",
  6377. description = "Get a Color from HSV values, hue [0..360], saturation/value [0..1]",
  6378. returnType = "Color",
  6379. params = {
  6380. {type = "float", name = "hue"},
  6381. {type = "float", name = "saturation"},
  6382. {type = "float", name = "value"}
  6383. }
  6384. },
  6385. {
  6386. name = "ColorTint",
  6387. description = "Get color multiplied with another color",
  6388. returnType = "Color",
  6389. params = {
  6390. {type = "Color", name = "color"},
  6391. {type = "Color", name = "tint"}
  6392. }
  6393. },
  6394. {
  6395. name = "ColorBrightness",
  6396. description = "Get color with brightness correction, brightness factor goes from -1.0f to 1.0f",
  6397. returnType = "Color",
  6398. params = {
  6399. {type = "Color", name = "color"},
  6400. {type = "float", name = "factor"}
  6401. }
  6402. },
  6403. {
  6404. name = "ColorContrast",
  6405. description = "Get color with contrast correction, contrast values between -1.0f and 1.0f",
  6406. returnType = "Color",
  6407. params = {
  6408. {type = "Color", name = "color"},
  6409. {type = "float", name = "contrast"}
  6410. }
  6411. },
  6412. {
  6413. name = "ColorAlpha",
  6414. description = "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
  6415. returnType = "Color",
  6416. params = {
  6417. {type = "Color", name = "color"},
  6418. {type = "float", name = "alpha"}
  6419. }
  6420. },
  6421. {
  6422. name = "ColorAlphaBlend",
  6423. description = "Get src alpha-blended into dst color with tint",
  6424. returnType = "Color",
  6425. params = {
  6426. {type = "Color", name = "dst"},
  6427. {type = "Color", name = "src"},
  6428. {type = "Color", name = "tint"}
  6429. }
  6430. },
  6431. {
  6432. name = "ColorLerp",
  6433. description = "Get color lerp interpolation between two colors, factor [0.0f..1.0f]",
  6434. returnType = "Color",
  6435. params = {
  6436. {type = "Color", name = "color1"},
  6437. {type = "Color", name = "color2"},
  6438. {type = "float", name = "factor"}
  6439. }
  6440. },
  6441. {
  6442. name = "GetColor",
  6443. description = "Get Color structure from hexadecimal value",
  6444. returnType = "Color",
  6445. params = {
  6446. {type = "unsigned int", name = "hexValue"}
  6447. }
  6448. },
  6449. {
  6450. name = "GetPixelColor",
  6451. description = "Get Color from a source pixel pointer of certain format",
  6452. returnType = "Color",
  6453. params = {
  6454. {type = "void *", name = "srcPtr"},
  6455. {type = "int", name = "format"}
  6456. }
  6457. },
  6458. {
  6459. name = "SetPixelColor",
  6460. description = "Set color formatted into destination pixel pointer",
  6461. returnType = "void",
  6462. params = {
  6463. {type = "void *", name = "dstPtr"},
  6464. {type = "Color", name = "color"},
  6465. {type = "int", name = "format"}
  6466. }
  6467. },
  6468. {
  6469. name = "GetPixelDataSize",
  6470. description = "Get pixel data size in bytes for certain format",
  6471. returnType = "int",
  6472. params = {
  6473. {type = "int", name = "width"},
  6474. {type = "int", name = "height"},
  6475. {type = "int", name = "format"}
  6476. }
  6477. },
  6478. {
  6479. name = "GetFontDefault",
  6480. description = "Get the default Font",
  6481. returnType = "Font"
  6482. },
  6483. {
  6484. name = "LoadFont",
  6485. description = "Load font from file into GPU memory (VRAM)",
  6486. returnType = "Font",
  6487. params = {
  6488. {type = "const char *", name = "fileName"}
  6489. }
  6490. },
  6491. {
  6492. name = "LoadFontEx",
  6493. description = "Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height",
  6494. returnType = "Font",
  6495. params = {
  6496. {type = "const char *", name = "fileName"},
  6497. {type = "int", name = "fontSize"},
  6498. {type = "int *", name = "codepoints"},
  6499. {type = "int", name = "codepointCount"}
  6500. }
  6501. },
  6502. {
  6503. name = "LoadFontFromImage",
  6504. description = "Load font from Image (XNA style)",
  6505. returnType = "Font",
  6506. params = {
  6507. {type = "Image", name = "image"},
  6508. {type = "Color", name = "key"},
  6509. {type = "int", name = "firstChar"}
  6510. }
  6511. },
  6512. {
  6513. name = "LoadFontFromMemory",
  6514. description = "Load font from memory buffer, fileType refers to extension: i.e. '.ttf'",
  6515. returnType = "Font",
  6516. params = {
  6517. {type = "const char *", name = "fileType"},
  6518. {type = "const unsigned char *", name = "fileData"},
  6519. {type = "int", name = "dataSize"},
  6520. {type = "int", name = "fontSize"},
  6521. {type = "int *", name = "codepoints"},
  6522. {type = "int", name = "codepointCount"}
  6523. }
  6524. },
  6525. {
  6526. name = "IsFontValid",
  6527. description = "Check if a font is valid (font data loaded, WARNING: GPU texture not checked)",
  6528. returnType = "bool",
  6529. params = {
  6530. {type = "Font", name = "font"}
  6531. }
  6532. },
  6533. {
  6534. name = "LoadFontData",
  6535. description = "Load font data for further use",
  6536. returnType = "GlyphInfo *",
  6537. params = {
  6538. {type = "const unsigned char *", name = "fileData"},
  6539. {type = "int", name = "dataSize"},
  6540. {type = "int", name = "fontSize"},
  6541. {type = "int *", name = "codepoints"},
  6542. {type = "int", name = "codepointCount"},
  6543. {type = "int", name = "type"}
  6544. }
  6545. },
  6546. {
  6547. name = "GenImageFontAtlas",
  6548. description = "Generate image font atlas using chars info",
  6549. returnType = "Image",
  6550. params = {
  6551. {type = "const GlyphInfo *", name = "glyphs"},
  6552. {type = "Rectangle **", name = "glyphRecs"},
  6553. {type = "int", name = "glyphCount"},
  6554. {type = "int", name = "fontSize"},
  6555. {type = "int", name = "padding"},
  6556. {type = "int", name = "packMethod"}
  6557. }
  6558. },
  6559. {
  6560. name = "UnloadFontData",
  6561. description = "Unload font chars info data (RAM)",
  6562. returnType = "void",
  6563. params = {
  6564. {type = "GlyphInfo *", name = "glyphs"},
  6565. {type = "int", name = "glyphCount"}
  6566. }
  6567. },
  6568. {
  6569. name = "UnloadFont",
  6570. description = "Unload font from GPU memory (VRAM)",
  6571. returnType = "void",
  6572. params = {
  6573. {type = "Font", name = "font"}
  6574. }
  6575. },
  6576. {
  6577. name = "ExportFontAsCode",
  6578. description = "Export font as code file, returns true on success",
  6579. returnType = "bool",
  6580. params = {
  6581. {type = "Font", name = "font"},
  6582. {type = "const char *", name = "fileName"}
  6583. }
  6584. },
  6585. {
  6586. name = "DrawFPS",
  6587. description = "Draw current FPS",
  6588. returnType = "void",
  6589. params = {
  6590. {type = "int", name = "posX"},
  6591. {type = "int", name = "posY"}
  6592. }
  6593. },
  6594. {
  6595. name = "DrawText",
  6596. description = "Draw text (using default font)",
  6597. returnType = "void",
  6598. params = {
  6599. {type = "const char *", name = "text"},
  6600. {type = "int", name = "posX"},
  6601. {type = "int", name = "posY"},
  6602. {type = "int", name = "fontSize"},
  6603. {type = "Color", name = "color"}
  6604. }
  6605. },
  6606. {
  6607. name = "DrawTextEx",
  6608. description = "Draw text using font and additional parameters",
  6609. returnType = "void",
  6610. params = {
  6611. {type = "Font", name = "font"},
  6612. {type = "const char *", name = "text"},
  6613. {type = "Vector2", name = "position"},
  6614. {type = "float", name = "fontSize"},
  6615. {type = "float", name = "spacing"},
  6616. {type = "Color", name = "tint"}
  6617. }
  6618. },
  6619. {
  6620. name = "DrawTextPro",
  6621. description = "Draw text using Font and pro parameters (rotation)",
  6622. returnType = "void",
  6623. params = {
  6624. {type = "Font", name = "font"},
  6625. {type = "const char *", name = "text"},
  6626. {type = "Vector2", name = "position"},
  6627. {type = "Vector2", name = "origin"},
  6628. {type = "float", name = "rotation"},
  6629. {type = "float", name = "fontSize"},
  6630. {type = "float", name = "spacing"},
  6631. {type = "Color", name = "tint"}
  6632. }
  6633. },
  6634. {
  6635. name = "DrawTextCodepoint",
  6636. description = "Draw one character (codepoint)",
  6637. returnType = "void",
  6638. params = {
  6639. {type = "Font", name = "font"},
  6640. {type = "int", name = "codepoint"},
  6641. {type = "Vector2", name = "position"},
  6642. {type = "float", name = "fontSize"},
  6643. {type = "Color", name = "tint"}
  6644. }
  6645. },
  6646. {
  6647. name = "DrawTextCodepoints",
  6648. description = "Draw multiple character (codepoint)",
  6649. returnType = "void",
  6650. params = {
  6651. {type = "Font", name = "font"},
  6652. {type = "const int *", name = "codepoints"},
  6653. {type = "int", name = "codepointCount"},
  6654. {type = "Vector2", name = "position"},
  6655. {type = "float", name = "fontSize"},
  6656. {type = "float", name = "spacing"},
  6657. {type = "Color", name = "tint"}
  6658. }
  6659. },
  6660. {
  6661. name = "SetTextLineSpacing",
  6662. description = "Set vertical line spacing when drawing with line-breaks",
  6663. returnType = "void",
  6664. params = {
  6665. {type = "int", name = "spacing"}
  6666. }
  6667. },
  6668. {
  6669. name = "MeasureText",
  6670. description = "Measure string width for default font",
  6671. returnType = "int",
  6672. params = {
  6673. {type = "const char *", name = "text"},
  6674. {type = "int", name = "fontSize"}
  6675. }
  6676. },
  6677. {
  6678. name = "MeasureTextEx",
  6679. description = "Measure string size for Font",
  6680. returnType = "Vector2",
  6681. params = {
  6682. {type = "Font", name = "font"},
  6683. {type = "const char *", name = "text"},
  6684. {type = "float", name = "fontSize"},
  6685. {type = "float", name = "spacing"}
  6686. }
  6687. },
  6688. {
  6689. name = "GetGlyphIndex",
  6690. description = "Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found",
  6691. returnType = "int",
  6692. params = {
  6693. {type = "Font", name = "font"},
  6694. {type = "int", name = "codepoint"}
  6695. }
  6696. },
  6697. {
  6698. name = "GetGlyphInfo",
  6699. description = "Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found",
  6700. returnType = "GlyphInfo",
  6701. params = {
  6702. {type = "Font", name = "font"},
  6703. {type = "int", name = "codepoint"}
  6704. }
  6705. },
  6706. {
  6707. name = "GetGlyphAtlasRec",
  6708. description = "Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found",
  6709. returnType = "Rectangle",
  6710. params = {
  6711. {type = "Font", name = "font"},
  6712. {type = "int", name = "codepoint"}
  6713. }
  6714. },
  6715. {
  6716. name = "LoadUTF8",
  6717. description = "Load UTF-8 text encoded from codepoints array",
  6718. returnType = "char *",
  6719. params = {
  6720. {type = "const int *", name = "codepoints"},
  6721. {type = "int", name = "length"}
  6722. }
  6723. },
  6724. {
  6725. name = "UnloadUTF8",
  6726. description = "Unload UTF-8 text encoded from codepoints array",
  6727. returnType = "void",
  6728. params = {
  6729. {type = "char *", name = "text"}
  6730. }
  6731. },
  6732. {
  6733. name = "LoadCodepoints",
  6734. description = "Load all codepoints from a UTF-8 text string, codepoints count returned by parameter",
  6735. returnType = "int *",
  6736. params = {
  6737. {type = "const char *", name = "text"},
  6738. {type = "int *", name = "count"}
  6739. }
  6740. },
  6741. {
  6742. name = "UnloadCodepoints",
  6743. description = "Unload codepoints data from memory",
  6744. returnType = "void",
  6745. params = {
  6746. {type = "int *", name = "codepoints"}
  6747. }
  6748. },
  6749. {
  6750. name = "GetCodepointCount",
  6751. description = "Get total number of codepoints in a UTF-8 encoded string",
  6752. returnType = "int",
  6753. params = {
  6754. {type = "const char *", name = "text"}
  6755. }
  6756. },
  6757. {
  6758. name = "GetCodepoint",
  6759. description = "Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
  6760. returnType = "int",
  6761. params = {
  6762. {type = "const char *", name = "text"},
  6763. {type = "int *", name = "codepointSize"}
  6764. }
  6765. },
  6766. {
  6767. name = "GetCodepointNext",
  6768. description = "Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
  6769. returnType = "int",
  6770. params = {
  6771. {type = "const char *", name = "text"},
  6772. {type = "int *", name = "codepointSize"}
  6773. }
  6774. },
  6775. {
  6776. name = "GetCodepointPrevious",
  6777. description = "Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
  6778. returnType = "int",
  6779. params = {
  6780. {type = "const char *", name = "text"},
  6781. {type = "int *", name = "codepointSize"}
  6782. }
  6783. },
  6784. {
  6785. name = "CodepointToUTF8",
  6786. description = "Encode one codepoint into UTF-8 byte array (array length returned as parameter)",
  6787. returnType = "const char *",
  6788. params = {
  6789. {type = "int", name = "codepoint"},
  6790. {type = "int *", name = "utf8Size"}
  6791. }
  6792. },
  6793. {
  6794. name = "TextCopy",
  6795. description = "Copy one string to another, returns bytes copied",
  6796. returnType = "int",
  6797. params = {
  6798. {type = "char *", name = "dst"},
  6799. {type = "const char *", name = "src"}
  6800. }
  6801. },
  6802. {
  6803. name = "TextIsEqual",
  6804. description = "Check if two text string are equal",
  6805. returnType = "bool",
  6806. params = {
  6807. {type = "const char *", name = "text1"},
  6808. {type = "const char *", name = "text2"}
  6809. }
  6810. },
  6811. {
  6812. name = "TextLength",
  6813. description = "Get text length, checks for '\\0' ending",
  6814. returnType = "unsigned int",
  6815. params = {
  6816. {type = "const char *", name = "text"}
  6817. }
  6818. },
  6819. {
  6820. name = "TextFormat",
  6821. description = "Text formatting with variables (sprintf() style)",
  6822. returnType = "const char *",
  6823. params = {
  6824. {type = "const char *", name = "text"},
  6825. {type = "...", name = "args"}
  6826. }
  6827. },
  6828. {
  6829. name = "TextSubtext",
  6830. description = "Get a piece of a text string",
  6831. returnType = "const char *",
  6832. params = {
  6833. {type = "const char *", name = "text"},
  6834. {type = "int", name = "position"},
  6835. {type = "int", name = "length"}
  6836. }
  6837. },
  6838. {
  6839. name = "TextReplace",
  6840. description = "Replace text string (WARNING: memory must be freed!)",
  6841. returnType = "char *",
  6842. params = {
  6843. {type = "const char *", name = "text"},
  6844. {type = "const char *", name = "replace"},
  6845. {type = "const char *", name = "by"}
  6846. }
  6847. },
  6848. {
  6849. name = "TextInsert",
  6850. description = "Insert text in a position (WARNING: memory must be freed!)",
  6851. returnType = "char *",
  6852. params = {
  6853. {type = "const char *", name = "text"},
  6854. {type = "const char *", name = "insert"},
  6855. {type = "int", name = "position"}
  6856. }
  6857. },
  6858. {
  6859. name = "TextJoin",
  6860. description = "Join text strings with delimiter",
  6861. returnType = "const char *",
  6862. params = {
  6863. {type = "const char **", name = "textList"},
  6864. {type = "int", name = "count"},
  6865. {type = "const char *", name = "delimiter"}
  6866. }
  6867. },
  6868. {
  6869. name = "TextSplit",
  6870. description = "Split text into multiple strings",
  6871. returnType = "const char **",
  6872. params = {
  6873. {type = "const char *", name = "text"},
  6874. {type = "char", name = "delimiter"},
  6875. {type = "int *", name = "count"}
  6876. }
  6877. },
  6878. {
  6879. name = "TextAppend",
  6880. description = "Append text at specific position and move cursor!",
  6881. returnType = "void",
  6882. params = {
  6883. {type = "char *", name = "text"},
  6884. {type = "const char *", name = "append"},
  6885. {type = "int *", name = "position"}
  6886. }
  6887. },
  6888. {
  6889. name = "TextFindIndex",
  6890. description = "Find first text occurrence within a string",
  6891. returnType = "int",
  6892. params = {
  6893. {type = "const char *", name = "text"},
  6894. {type = "const char *", name = "find"}
  6895. }
  6896. },
  6897. {
  6898. name = "TextToUpper",
  6899. description = "Get upper case version of provided string",
  6900. returnType = "const char *",
  6901. params = {
  6902. {type = "const char *", name = "text"}
  6903. }
  6904. },
  6905. {
  6906. name = "TextToLower",
  6907. description = "Get lower case version of provided string",
  6908. returnType = "const char *",
  6909. params = {
  6910. {type = "const char *", name = "text"}
  6911. }
  6912. },
  6913. {
  6914. name = "TextToPascal",
  6915. description = "Get Pascal case notation version of provided string",
  6916. returnType = "const char *",
  6917. params = {
  6918. {type = "const char *", name = "text"}
  6919. }
  6920. },
  6921. {
  6922. name = "TextToSnake",
  6923. description = "Get Snake case notation version of provided string",
  6924. returnType = "const char *",
  6925. params = {
  6926. {type = "const char *", name = "text"}
  6927. }
  6928. },
  6929. {
  6930. name = "TextToCamel",
  6931. description = "Get Camel case notation version of provided string",
  6932. returnType = "const char *",
  6933. params = {
  6934. {type = "const char *", name = "text"}
  6935. }
  6936. },
  6937. {
  6938. name = "TextToInteger",
  6939. description = "Get integer value from text (negative values not supported)",
  6940. returnType = "int",
  6941. params = {
  6942. {type = "const char *", name = "text"}
  6943. }
  6944. },
  6945. {
  6946. name = "TextToFloat",
  6947. description = "Get float value from text (negative values not supported)",
  6948. returnType = "float",
  6949. params = {
  6950. {type = "const char *", name = "text"}
  6951. }
  6952. },
  6953. {
  6954. name = "DrawLine3D",
  6955. description = "Draw a line in 3D world space",
  6956. returnType = "void",
  6957. params = {
  6958. {type = "Vector3", name = "startPos"},
  6959. {type = "Vector3", name = "endPos"},
  6960. {type = "Color", name = "color"}
  6961. }
  6962. },
  6963. {
  6964. name = "DrawPoint3D",
  6965. description = "Draw a point in 3D space, actually a small line",
  6966. returnType = "void",
  6967. params = {
  6968. {type = "Vector3", name = "position"},
  6969. {type = "Color", name = "color"}
  6970. }
  6971. },
  6972. {
  6973. name = "DrawCircle3D",
  6974. description = "Draw a circle in 3D world space",
  6975. returnType = "void",
  6976. params = {
  6977. {type = "Vector3", name = "center"},
  6978. {type = "float", name = "radius"},
  6979. {type = "Vector3", name = "rotationAxis"},
  6980. {type = "float", name = "rotationAngle"},
  6981. {type = "Color", name = "color"}
  6982. }
  6983. },
  6984. {
  6985. name = "DrawTriangle3D",
  6986. description = "Draw a color-filled triangle (vertex in counter-clockwise order!)",
  6987. returnType = "void",
  6988. params = {
  6989. {type = "Vector3", name = "v1"},
  6990. {type = "Vector3", name = "v2"},
  6991. {type = "Vector3", name = "v3"},
  6992. {type = "Color", name = "color"}
  6993. }
  6994. },
  6995. {
  6996. name = "DrawTriangleStrip3D",
  6997. description = "Draw a triangle strip defined by points",
  6998. returnType = "void",
  6999. params = {
  7000. {type = "const Vector3 *", name = "points"},
  7001. {type = "int", name = "pointCount"},
  7002. {type = "Color", name = "color"}
  7003. }
  7004. },
  7005. {
  7006. name = "DrawCube",
  7007. description = "Draw cube",
  7008. returnType = "void",
  7009. params = {
  7010. {type = "Vector3", name = "position"},
  7011. {type = "float", name = "width"},
  7012. {type = "float", name = "height"},
  7013. {type = "float", name = "length"},
  7014. {type = "Color", name = "color"}
  7015. }
  7016. },
  7017. {
  7018. name = "DrawCubeV",
  7019. description = "Draw cube (Vector version)",
  7020. returnType = "void",
  7021. params = {
  7022. {type = "Vector3", name = "position"},
  7023. {type = "Vector3", name = "size"},
  7024. {type = "Color", name = "color"}
  7025. }
  7026. },
  7027. {
  7028. name = "DrawCubeWires",
  7029. description = "Draw cube wires",
  7030. returnType = "void",
  7031. params = {
  7032. {type = "Vector3", name = "position"},
  7033. {type = "float", name = "width"},
  7034. {type = "float", name = "height"},
  7035. {type = "float", name = "length"},
  7036. {type = "Color", name = "color"}
  7037. }
  7038. },
  7039. {
  7040. name = "DrawCubeWiresV",
  7041. description = "Draw cube wires (Vector version)",
  7042. returnType = "void",
  7043. params = {
  7044. {type = "Vector3", name = "position"},
  7045. {type = "Vector3", name = "size"},
  7046. {type = "Color", name = "color"}
  7047. }
  7048. },
  7049. {
  7050. name = "DrawSphere",
  7051. description = "Draw sphere",
  7052. returnType = "void",
  7053. params = {
  7054. {type = "Vector3", name = "centerPos"},
  7055. {type = "float", name = "radius"},
  7056. {type = "Color", name = "color"}
  7057. }
  7058. },
  7059. {
  7060. name = "DrawSphereEx",
  7061. description = "Draw sphere with extended parameters",
  7062. returnType = "void",
  7063. params = {
  7064. {type = "Vector3", name = "centerPos"},
  7065. {type = "float", name = "radius"},
  7066. {type = "int", name = "rings"},
  7067. {type = "int", name = "slices"},
  7068. {type = "Color", name = "color"}
  7069. }
  7070. },
  7071. {
  7072. name = "DrawSphereWires",
  7073. description = "Draw sphere wires",
  7074. returnType = "void",
  7075. params = {
  7076. {type = "Vector3", name = "centerPos"},
  7077. {type = "float", name = "radius"},
  7078. {type = "int", name = "rings"},
  7079. {type = "int", name = "slices"},
  7080. {type = "Color", name = "color"}
  7081. }
  7082. },
  7083. {
  7084. name = "DrawCylinder",
  7085. description = "Draw a cylinder/cone",
  7086. returnType = "void",
  7087. params = {
  7088. {type = "Vector3", name = "position"},
  7089. {type = "float", name = "radiusTop"},
  7090. {type = "float", name = "radiusBottom"},
  7091. {type = "float", name = "height"},
  7092. {type = "int", name = "slices"},
  7093. {type = "Color", name = "color"}
  7094. }
  7095. },
  7096. {
  7097. name = "DrawCylinderEx",
  7098. description = "Draw a cylinder with base at startPos and top at endPos",
  7099. returnType = "void",
  7100. params = {
  7101. {type = "Vector3", name = "startPos"},
  7102. {type = "Vector3", name = "endPos"},
  7103. {type = "float", name = "startRadius"},
  7104. {type = "float", name = "endRadius"},
  7105. {type = "int", name = "sides"},
  7106. {type = "Color", name = "color"}
  7107. }
  7108. },
  7109. {
  7110. name = "DrawCylinderWires",
  7111. description = "Draw a cylinder/cone wires",
  7112. returnType = "void",
  7113. params = {
  7114. {type = "Vector3", name = "position"},
  7115. {type = "float", name = "radiusTop"},
  7116. {type = "float", name = "radiusBottom"},
  7117. {type = "float", name = "height"},
  7118. {type = "int", name = "slices"},
  7119. {type = "Color", name = "color"}
  7120. }
  7121. },
  7122. {
  7123. name = "DrawCylinderWiresEx",
  7124. description = "Draw a cylinder wires with base at startPos and top at endPos",
  7125. returnType = "void",
  7126. params = {
  7127. {type = "Vector3", name = "startPos"},
  7128. {type = "Vector3", name = "endPos"},
  7129. {type = "float", name = "startRadius"},
  7130. {type = "float", name = "endRadius"},
  7131. {type = "int", name = "sides"},
  7132. {type = "Color", name = "color"}
  7133. }
  7134. },
  7135. {
  7136. name = "DrawCapsule",
  7137. description = "Draw a capsule with the center of its sphere caps at startPos and endPos",
  7138. returnType = "void",
  7139. params = {
  7140. {type = "Vector3", name = "startPos"},
  7141. {type = "Vector3", name = "endPos"},
  7142. {type = "float", name = "radius"},
  7143. {type = "int", name = "slices"},
  7144. {type = "int", name = "rings"},
  7145. {type = "Color", name = "color"}
  7146. }
  7147. },
  7148. {
  7149. name = "DrawCapsuleWires",
  7150. description = "Draw capsule wireframe with the center of its sphere caps at startPos and endPos",
  7151. returnType = "void",
  7152. params = {
  7153. {type = "Vector3", name = "startPos"},
  7154. {type = "Vector3", name = "endPos"},
  7155. {type = "float", name = "radius"},
  7156. {type = "int", name = "slices"},
  7157. {type = "int", name = "rings"},
  7158. {type = "Color", name = "color"}
  7159. }
  7160. },
  7161. {
  7162. name = "DrawPlane",
  7163. description = "Draw a plane XZ",
  7164. returnType = "void",
  7165. params = {
  7166. {type = "Vector3", name = "centerPos"},
  7167. {type = "Vector2", name = "size"},
  7168. {type = "Color", name = "color"}
  7169. }
  7170. },
  7171. {
  7172. name = "DrawRay",
  7173. description = "Draw a ray line",
  7174. returnType = "void",
  7175. params = {
  7176. {type = "Ray", name = "ray"},
  7177. {type = "Color", name = "color"}
  7178. }
  7179. },
  7180. {
  7181. name = "DrawGrid",
  7182. description = "Draw a grid (centered at (0, 0, 0))",
  7183. returnType = "void",
  7184. params = {
  7185. {type = "int", name = "slices"},
  7186. {type = "float", name = "spacing"}
  7187. }
  7188. },
  7189. {
  7190. name = "LoadModel",
  7191. description = "Load model from files (meshes and materials)",
  7192. returnType = "Model",
  7193. params = {
  7194. {type = "const char *", name = "fileName"}
  7195. }
  7196. },
  7197. {
  7198. name = "LoadModelFromMesh",
  7199. description = "Load model from generated mesh (default material)",
  7200. returnType = "Model",
  7201. params = {
  7202. {type = "Mesh", name = "mesh"}
  7203. }
  7204. },
  7205. {
  7206. name = "IsModelValid",
  7207. description = "Check if a model is valid (loaded in GPU, VAO/VBOs)",
  7208. returnType = "bool",
  7209. params = {
  7210. {type = "Model", name = "model"}
  7211. }
  7212. },
  7213. {
  7214. name = "UnloadModel",
  7215. description = "Unload model (including meshes) from memory (RAM and/or VRAM)",
  7216. returnType = "void",
  7217. params = {
  7218. {type = "Model", name = "model"}
  7219. }
  7220. },
  7221. {
  7222. name = "GetModelBoundingBox",
  7223. description = "Compute model bounding box limits (considers all meshes)",
  7224. returnType = "BoundingBox",
  7225. params = {
  7226. {type = "Model", name = "model"}
  7227. }
  7228. },
  7229. {
  7230. name = "DrawModel",
  7231. description = "Draw a model (with texture if set)",
  7232. returnType = "void",
  7233. params = {
  7234. {type = "Model", name = "model"},
  7235. {type = "Vector3", name = "position"},
  7236. {type = "float", name = "scale"},
  7237. {type = "Color", name = "tint"}
  7238. }
  7239. },
  7240. {
  7241. name = "DrawModelEx",
  7242. description = "Draw a model with extended parameters",
  7243. returnType = "void",
  7244. params = {
  7245. {type = "Model", name = "model"},
  7246. {type = "Vector3", name = "position"},
  7247. {type = "Vector3", name = "rotationAxis"},
  7248. {type = "float", name = "rotationAngle"},
  7249. {type = "Vector3", name = "scale"},
  7250. {type = "Color", name = "tint"}
  7251. }
  7252. },
  7253. {
  7254. name = "DrawModelWires",
  7255. description = "Draw a model wires (with texture if set)",
  7256. returnType = "void",
  7257. params = {
  7258. {type = "Model", name = "model"},
  7259. {type = "Vector3", name = "position"},
  7260. {type = "float", name = "scale"},
  7261. {type = "Color", name = "tint"}
  7262. }
  7263. },
  7264. {
  7265. name = "DrawModelWiresEx",
  7266. description = "Draw a model wires (with texture if set) with extended parameters",
  7267. returnType = "void",
  7268. params = {
  7269. {type = "Model", name = "model"},
  7270. {type = "Vector3", name = "position"},
  7271. {type = "Vector3", name = "rotationAxis"},
  7272. {type = "float", name = "rotationAngle"},
  7273. {type = "Vector3", name = "scale"},
  7274. {type = "Color", name = "tint"}
  7275. }
  7276. },
  7277. {
  7278. name = "DrawModelPoints",
  7279. description = "Draw a model as points",
  7280. returnType = "void",
  7281. params = {
  7282. {type = "Model", name = "model"},
  7283. {type = "Vector3", name = "position"},
  7284. {type = "float", name = "scale"},
  7285. {type = "Color", name = "tint"}
  7286. }
  7287. },
  7288. {
  7289. name = "DrawModelPointsEx",
  7290. description = "Draw a model as points with extended parameters",
  7291. returnType = "void",
  7292. params = {
  7293. {type = "Model", name = "model"},
  7294. {type = "Vector3", name = "position"},
  7295. {type = "Vector3", name = "rotationAxis"},
  7296. {type = "float", name = "rotationAngle"},
  7297. {type = "Vector3", name = "scale"},
  7298. {type = "Color", name = "tint"}
  7299. }
  7300. },
  7301. {
  7302. name = "DrawBoundingBox",
  7303. description = "Draw bounding box (wires)",
  7304. returnType = "void",
  7305. params = {
  7306. {type = "BoundingBox", name = "box"},
  7307. {type = "Color", name = "color"}
  7308. }
  7309. },
  7310. {
  7311. name = "DrawBillboard",
  7312. description = "Draw a billboard texture",
  7313. returnType = "void",
  7314. params = {
  7315. {type = "Camera", name = "camera"},
  7316. {type = "Texture2D", name = "texture"},
  7317. {type = "Vector3", name = "position"},
  7318. {type = "float", name = "scale"},
  7319. {type = "Color", name = "tint"}
  7320. }
  7321. },
  7322. {
  7323. name = "DrawBillboardRec",
  7324. description = "Draw a billboard texture defined by source",
  7325. returnType = "void",
  7326. params = {
  7327. {type = "Camera", name = "camera"},
  7328. {type = "Texture2D", name = "texture"},
  7329. {type = "Rectangle", name = "source"},
  7330. {type = "Vector3", name = "position"},
  7331. {type = "Vector2", name = "size"},
  7332. {type = "Color", name = "tint"}
  7333. }
  7334. },
  7335. {
  7336. name = "DrawBillboardPro",
  7337. description = "Draw a billboard texture defined by source and rotation",
  7338. returnType = "void",
  7339. params = {
  7340. {type = "Camera", name = "camera"},
  7341. {type = "Texture2D", name = "texture"},
  7342. {type = "Rectangle", name = "source"},
  7343. {type = "Vector3", name = "position"},
  7344. {type = "Vector3", name = "up"},
  7345. {type = "Vector2", name = "size"},
  7346. {type = "Vector2", name = "origin"},
  7347. {type = "float", name = "rotation"},
  7348. {type = "Color", name = "tint"}
  7349. }
  7350. },
  7351. {
  7352. name = "UploadMesh",
  7353. description = "Upload mesh vertex data in GPU and provide VAO/VBO ids",
  7354. returnType = "void",
  7355. params = {
  7356. {type = "Mesh *", name = "mesh"},
  7357. {type = "bool", name = "dynamic"}
  7358. }
  7359. },
  7360. {
  7361. name = "UpdateMeshBuffer",
  7362. description = "Update mesh vertex data in GPU for a specific buffer index",
  7363. returnType = "void",
  7364. params = {
  7365. {type = "Mesh", name = "mesh"},
  7366. {type = "int", name = "index"},
  7367. {type = "const void *", name = "data"},
  7368. {type = "int", name = "dataSize"},
  7369. {type = "int", name = "offset"}
  7370. }
  7371. },
  7372. {
  7373. name = "UnloadMesh",
  7374. description = "Unload mesh data from CPU and GPU",
  7375. returnType = "void",
  7376. params = {
  7377. {type = "Mesh", name = "mesh"}
  7378. }
  7379. },
  7380. {
  7381. name = "DrawMesh",
  7382. description = "Draw a 3d mesh with material and transform",
  7383. returnType = "void",
  7384. params = {
  7385. {type = "Mesh", name = "mesh"},
  7386. {type = "Material", name = "material"},
  7387. {type = "Matrix", name = "transform"}
  7388. }
  7389. },
  7390. {
  7391. name = "DrawMeshInstanced",
  7392. description = "Draw multiple mesh instances with material and different transforms",
  7393. returnType = "void",
  7394. params = {
  7395. {type = "Mesh", name = "mesh"},
  7396. {type = "Material", name = "material"},
  7397. {type = "const Matrix *", name = "transforms"},
  7398. {type = "int", name = "instances"}
  7399. }
  7400. },
  7401. {
  7402. name = "GetMeshBoundingBox",
  7403. description = "Compute mesh bounding box limits",
  7404. returnType = "BoundingBox",
  7405. params = {
  7406. {type = "Mesh", name = "mesh"}
  7407. }
  7408. },
  7409. {
  7410. name = "GenMeshTangents",
  7411. description = "Compute mesh tangents",
  7412. returnType = "void",
  7413. params = {
  7414. {type = "Mesh *", name = "mesh"}
  7415. }
  7416. },
  7417. {
  7418. name = "ExportMesh",
  7419. description = "Export mesh data to file, returns true on success",
  7420. returnType = "bool",
  7421. params = {
  7422. {type = "Mesh", name = "mesh"},
  7423. {type = "const char *", name = "fileName"}
  7424. }
  7425. },
  7426. {
  7427. name = "ExportMeshAsCode",
  7428. description = "Export mesh as code file (.h) defining multiple arrays of vertex attributes",
  7429. returnType = "bool",
  7430. params = {
  7431. {type = "Mesh", name = "mesh"},
  7432. {type = "const char *", name = "fileName"}
  7433. }
  7434. },
  7435. {
  7436. name = "GenMeshPoly",
  7437. description = "Generate polygonal mesh",
  7438. returnType = "Mesh",
  7439. params = {
  7440. {type = "int", name = "sides"},
  7441. {type = "float", name = "radius"}
  7442. }
  7443. },
  7444. {
  7445. name = "GenMeshPlane",
  7446. description = "Generate plane mesh (with subdivisions)",
  7447. returnType = "Mesh",
  7448. params = {
  7449. {type = "float", name = "width"},
  7450. {type = "float", name = "length"},
  7451. {type = "int", name = "resX"},
  7452. {type = "int", name = "resZ"}
  7453. }
  7454. },
  7455. {
  7456. name = "GenMeshCube",
  7457. description = "Generate cuboid mesh",
  7458. returnType = "Mesh",
  7459. params = {
  7460. {type = "float", name = "width"},
  7461. {type = "float", name = "height"},
  7462. {type = "float", name = "length"}
  7463. }
  7464. },
  7465. {
  7466. name = "GenMeshSphere",
  7467. description = "Generate sphere mesh (standard sphere)",
  7468. returnType = "Mesh",
  7469. params = {
  7470. {type = "float", name = "radius"},
  7471. {type = "int", name = "rings"},
  7472. {type = "int", name = "slices"}
  7473. }
  7474. },
  7475. {
  7476. name = "GenMeshHemiSphere",
  7477. description = "Generate half-sphere mesh (no bottom cap)",
  7478. returnType = "Mesh",
  7479. params = {
  7480. {type = "float", name = "radius"},
  7481. {type = "int", name = "rings"},
  7482. {type = "int", name = "slices"}
  7483. }
  7484. },
  7485. {
  7486. name = "GenMeshCylinder",
  7487. description = "Generate cylinder mesh",
  7488. returnType = "Mesh",
  7489. params = {
  7490. {type = "float", name = "radius"},
  7491. {type = "float", name = "height"},
  7492. {type = "int", name = "slices"}
  7493. }
  7494. },
  7495. {
  7496. name = "GenMeshCone",
  7497. description = "Generate cone/pyramid mesh",
  7498. returnType = "Mesh",
  7499. params = {
  7500. {type = "float", name = "radius"},
  7501. {type = "float", name = "height"},
  7502. {type = "int", name = "slices"}
  7503. }
  7504. },
  7505. {
  7506. name = "GenMeshTorus",
  7507. description = "Generate torus mesh",
  7508. returnType = "Mesh",
  7509. params = {
  7510. {type = "float", name = "radius"},
  7511. {type = "float", name = "size"},
  7512. {type = "int", name = "radSeg"},
  7513. {type = "int", name = "sides"}
  7514. }
  7515. },
  7516. {
  7517. name = "GenMeshKnot",
  7518. description = "Generate trefoil knot mesh",
  7519. returnType = "Mesh",
  7520. params = {
  7521. {type = "float", name = "radius"},
  7522. {type = "float", name = "size"},
  7523. {type = "int", name = "radSeg"},
  7524. {type = "int", name = "sides"}
  7525. }
  7526. },
  7527. {
  7528. name = "GenMeshHeightmap",
  7529. description = "Generate heightmap mesh from image data",
  7530. returnType = "Mesh",
  7531. params = {
  7532. {type = "Image", name = "heightmap"},
  7533. {type = "Vector3", name = "size"}
  7534. }
  7535. },
  7536. {
  7537. name = "GenMeshCubicmap",
  7538. description = "Generate cubes-based map mesh from image data",
  7539. returnType = "Mesh",
  7540. params = {
  7541. {type = "Image", name = "cubicmap"},
  7542. {type = "Vector3", name = "cubeSize"}
  7543. }
  7544. },
  7545. {
  7546. name = "LoadMaterials",
  7547. description = "Load materials from model file",
  7548. returnType = "Material *",
  7549. params = {
  7550. {type = "const char *", name = "fileName"},
  7551. {type = "int *", name = "materialCount"}
  7552. }
  7553. },
  7554. {
  7555. name = "LoadMaterialDefault",
  7556. description = "Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)",
  7557. returnType = "Material"
  7558. },
  7559. {
  7560. name = "IsMaterialValid",
  7561. description = "Check if a material is valid (shader assigned, map textures loaded in GPU)",
  7562. returnType = "bool",
  7563. params = {
  7564. {type = "Material", name = "material"}
  7565. }
  7566. },
  7567. {
  7568. name = "UnloadMaterial",
  7569. description = "Unload material from GPU memory (VRAM)",
  7570. returnType = "void",
  7571. params = {
  7572. {type = "Material", name = "material"}
  7573. }
  7574. },
  7575. {
  7576. name = "SetMaterialTexture",
  7577. description = "Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)",
  7578. returnType = "void",
  7579. params = {
  7580. {type = "Material *", name = "material"},
  7581. {type = "int", name = "mapType"},
  7582. {type = "Texture2D", name = "texture"}
  7583. }
  7584. },
  7585. {
  7586. name = "SetModelMeshMaterial",
  7587. description = "Set material for a mesh",
  7588. returnType = "void",
  7589. params = {
  7590. {type = "Model *", name = "model"},
  7591. {type = "int", name = "meshId"},
  7592. {type = "int", name = "materialId"}
  7593. }
  7594. },
  7595. {
  7596. name = "LoadModelAnimations",
  7597. description = "Load model animations from file",
  7598. returnType = "ModelAnimation *",
  7599. params = {
  7600. {type = "const char *", name = "fileName"},
  7601. {type = "int *", name = "animCount"}
  7602. }
  7603. },
  7604. {
  7605. name = "UpdateModelAnimation",
  7606. description = "Update model animation pose (CPU)",
  7607. returnType = "void",
  7608. params = {
  7609. {type = "Model", name = "model"},
  7610. {type = "ModelAnimation", name = "anim"},
  7611. {type = "int", name = "frame"}
  7612. }
  7613. },
  7614. {
  7615. name = "UpdateModelAnimationBones",
  7616. description = "Update model animation mesh bone matrices (GPU skinning)",
  7617. returnType = "void",
  7618. params = {
  7619. {type = "Model", name = "model"},
  7620. {type = "ModelAnimation", name = "anim"},
  7621. {type = "int", name = "frame"}
  7622. }
  7623. },
  7624. {
  7625. name = "UnloadModelAnimation",
  7626. description = "Unload animation data",
  7627. returnType = "void",
  7628. params = {
  7629. {type = "ModelAnimation", name = "anim"}
  7630. }
  7631. },
  7632. {
  7633. name = "UnloadModelAnimations",
  7634. description = "Unload animation array data",
  7635. returnType = "void",
  7636. params = {
  7637. {type = "ModelAnimation *", name = "animations"},
  7638. {type = "int", name = "animCount"}
  7639. }
  7640. },
  7641. {
  7642. name = "IsModelAnimationValid",
  7643. description = "Check model animation skeleton match",
  7644. returnType = "bool",
  7645. params = {
  7646. {type = "Model", name = "model"},
  7647. {type = "ModelAnimation", name = "anim"}
  7648. }
  7649. },
  7650. {
  7651. name = "CheckCollisionSpheres",
  7652. description = "Check collision between two spheres",
  7653. returnType = "bool",
  7654. params = {
  7655. {type = "Vector3", name = "center1"},
  7656. {type = "float", name = "radius1"},
  7657. {type = "Vector3", name = "center2"},
  7658. {type = "float", name = "radius2"}
  7659. }
  7660. },
  7661. {
  7662. name = "CheckCollisionBoxes",
  7663. description = "Check collision between two bounding boxes",
  7664. returnType = "bool",
  7665. params = {
  7666. {type = "BoundingBox", name = "box1"},
  7667. {type = "BoundingBox", name = "box2"}
  7668. }
  7669. },
  7670. {
  7671. name = "CheckCollisionBoxSphere",
  7672. description = "Check collision between box and sphere",
  7673. returnType = "bool",
  7674. params = {
  7675. {type = "BoundingBox", name = "box"},
  7676. {type = "Vector3", name = "center"},
  7677. {type = "float", name = "radius"}
  7678. }
  7679. },
  7680. {
  7681. name = "GetRayCollisionSphere",
  7682. description = "Get collision info between ray and sphere",
  7683. returnType = "RayCollision",
  7684. params = {
  7685. {type = "Ray", name = "ray"},
  7686. {type = "Vector3", name = "center"},
  7687. {type = "float", name = "radius"}
  7688. }
  7689. },
  7690. {
  7691. name = "GetRayCollisionBox",
  7692. description = "Get collision info between ray and box",
  7693. returnType = "RayCollision",
  7694. params = {
  7695. {type = "Ray", name = "ray"},
  7696. {type = "BoundingBox", name = "box"}
  7697. }
  7698. },
  7699. {
  7700. name = "GetRayCollisionMesh",
  7701. description = "Get collision info between ray and mesh",
  7702. returnType = "RayCollision",
  7703. params = {
  7704. {type = "Ray", name = "ray"},
  7705. {type = "Mesh", name = "mesh"},
  7706. {type = "Matrix", name = "transform"}
  7707. }
  7708. },
  7709. {
  7710. name = "GetRayCollisionTriangle",
  7711. description = "Get collision info between ray and triangle",
  7712. returnType = "RayCollision",
  7713. params = {
  7714. {type = "Ray", name = "ray"},
  7715. {type = "Vector3", name = "p1"},
  7716. {type = "Vector3", name = "p2"},
  7717. {type = "Vector3", name = "p3"}
  7718. }
  7719. },
  7720. {
  7721. name = "GetRayCollisionQuad",
  7722. description = "Get collision info between ray and quad",
  7723. returnType = "RayCollision",
  7724. params = {
  7725. {type = "Ray", name = "ray"},
  7726. {type = "Vector3", name = "p1"},
  7727. {type = "Vector3", name = "p2"},
  7728. {type = "Vector3", name = "p3"},
  7729. {type = "Vector3", name = "p4"}
  7730. }
  7731. },
  7732. {
  7733. name = "InitAudioDevice",
  7734. description = "Initialize audio device and context",
  7735. returnType = "void"
  7736. },
  7737. {
  7738. name = "CloseAudioDevice",
  7739. description = "Close the audio device and context",
  7740. returnType = "void"
  7741. },
  7742. {
  7743. name = "IsAudioDeviceReady",
  7744. description = "Check if audio device has been initialized successfully",
  7745. returnType = "bool"
  7746. },
  7747. {
  7748. name = "SetMasterVolume",
  7749. description = "Set master volume (listener)",
  7750. returnType = "void",
  7751. params = {
  7752. {type = "float", name = "volume"}
  7753. }
  7754. },
  7755. {
  7756. name = "GetMasterVolume",
  7757. description = "Get master volume (listener)",
  7758. returnType = "float"
  7759. },
  7760. {
  7761. name = "LoadWave",
  7762. description = "Load wave data from file",
  7763. returnType = "Wave",
  7764. params = {
  7765. {type = "const char *", name = "fileName"}
  7766. }
  7767. },
  7768. {
  7769. name = "LoadWaveFromMemory",
  7770. description = "Load wave from memory buffer, fileType refers to extension: i.e. '.wav'",
  7771. returnType = "Wave",
  7772. params = {
  7773. {type = "const char *", name = "fileType"},
  7774. {type = "const unsigned char *", name = "fileData"},
  7775. {type = "int", name = "dataSize"}
  7776. }
  7777. },
  7778. {
  7779. name = "IsWaveValid",
  7780. description = "Checks if wave data is valid (data loaded and parameters)",
  7781. returnType = "bool",
  7782. params = {
  7783. {type = "Wave", name = "wave"}
  7784. }
  7785. },
  7786. {
  7787. name = "LoadSound",
  7788. description = "Load sound from file",
  7789. returnType = "Sound",
  7790. params = {
  7791. {type = "const char *", name = "fileName"}
  7792. }
  7793. },
  7794. {
  7795. name = "LoadSoundFromWave",
  7796. description = "Load sound from wave data",
  7797. returnType = "Sound",
  7798. params = {
  7799. {type = "Wave", name = "wave"}
  7800. }
  7801. },
  7802. {
  7803. name = "LoadSoundAlias",
  7804. description = "Create a new sound that shares the same sample data as the source sound, does not own the sound data",
  7805. returnType = "Sound",
  7806. params = {
  7807. {type = "Sound", name = "source"}
  7808. }
  7809. },
  7810. {
  7811. name = "IsSoundValid",
  7812. description = "Checks if a sound is valid (data loaded and buffers initialized)",
  7813. returnType = "bool",
  7814. params = {
  7815. {type = "Sound", name = "sound"}
  7816. }
  7817. },
  7818. {
  7819. name = "UpdateSound",
  7820. description = "Update sound buffer with new data",
  7821. returnType = "void",
  7822. params = {
  7823. {type = "Sound", name = "sound"},
  7824. {type = "const void *", name = "data"},
  7825. {type = "int", name = "sampleCount"}
  7826. }
  7827. },
  7828. {
  7829. name = "UnloadWave",
  7830. description = "Unload wave data",
  7831. returnType = "void",
  7832. params = {
  7833. {type = "Wave", name = "wave"}
  7834. }
  7835. },
  7836. {
  7837. name = "UnloadSound",
  7838. description = "Unload sound",
  7839. returnType = "void",
  7840. params = {
  7841. {type = "Sound", name = "sound"}
  7842. }
  7843. },
  7844. {
  7845. name = "UnloadSoundAlias",
  7846. description = "Unload a sound alias (does not deallocate sample data)",
  7847. returnType = "void",
  7848. params = {
  7849. {type = "Sound", name = "alias"}
  7850. }
  7851. },
  7852. {
  7853. name = "ExportWave",
  7854. description = "Export wave data to file, returns true on success",
  7855. returnType = "bool",
  7856. params = {
  7857. {type = "Wave", name = "wave"},
  7858. {type = "const char *", name = "fileName"}
  7859. }
  7860. },
  7861. {
  7862. name = "ExportWaveAsCode",
  7863. description = "Export wave sample data to code (.h), returns true on success",
  7864. returnType = "bool",
  7865. params = {
  7866. {type = "Wave", name = "wave"},
  7867. {type = "const char *", name = "fileName"}
  7868. }
  7869. },
  7870. {
  7871. name = "PlaySound",
  7872. description = "Play a sound",
  7873. returnType = "void",
  7874. params = {
  7875. {type = "Sound", name = "sound"}
  7876. }
  7877. },
  7878. {
  7879. name = "StopSound",
  7880. description = "Stop playing a sound",
  7881. returnType = "void",
  7882. params = {
  7883. {type = "Sound", name = "sound"}
  7884. }
  7885. },
  7886. {
  7887. name = "PauseSound",
  7888. description = "Pause a sound",
  7889. returnType = "void",
  7890. params = {
  7891. {type = "Sound", name = "sound"}
  7892. }
  7893. },
  7894. {
  7895. name = "ResumeSound",
  7896. description = "Resume a paused sound",
  7897. returnType = "void",
  7898. params = {
  7899. {type = "Sound", name = "sound"}
  7900. }
  7901. },
  7902. {
  7903. name = "IsSoundPlaying",
  7904. description = "Check if a sound is currently playing",
  7905. returnType = "bool",
  7906. params = {
  7907. {type = "Sound", name = "sound"}
  7908. }
  7909. },
  7910. {
  7911. name = "SetSoundVolume",
  7912. description = "Set volume for a sound (1.0 is max level)",
  7913. returnType = "void",
  7914. params = {
  7915. {type = "Sound", name = "sound"},
  7916. {type = "float", name = "volume"}
  7917. }
  7918. },
  7919. {
  7920. name = "SetSoundPitch",
  7921. description = "Set pitch for a sound (1.0 is base level)",
  7922. returnType = "void",
  7923. params = {
  7924. {type = "Sound", name = "sound"},
  7925. {type = "float", name = "pitch"}
  7926. }
  7927. },
  7928. {
  7929. name = "SetSoundPan",
  7930. description = "Set pan for a sound (0.5 is center)",
  7931. returnType = "void",
  7932. params = {
  7933. {type = "Sound", name = "sound"},
  7934. {type = "float", name = "pan"}
  7935. }
  7936. },
  7937. {
  7938. name = "WaveCopy",
  7939. description = "Copy a wave to a new wave",
  7940. returnType = "Wave",
  7941. params = {
  7942. {type = "Wave", name = "wave"}
  7943. }
  7944. },
  7945. {
  7946. name = "WaveCrop",
  7947. description = "Crop a wave to defined frames range",
  7948. returnType = "void",
  7949. params = {
  7950. {type = "Wave *", name = "wave"},
  7951. {type = "int", name = "initFrame"},
  7952. {type = "int", name = "finalFrame"}
  7953. }
  7954. },
  7955. {
  7956. name = "WaveFormat",
  7957. description = "Convert wave data to desired format",
  7958. returnType = "void",
  7959. params = {
  7960. {type = "Wave *", name = "wave"},
  7961. {type = "int", name = "sampleRate"},
  7962. {type = "int", name = "sampleSize"},
  7963. {type = "int", name = "channels"}
  7964. }
  7965. },
  7966. {
  7967. name = "LoadWaveSamples",
  7968. description = "Load samples data from wave as a 32bit float data array",
  7969. returnType = "float *",
  7970. params = {
  7971. {type = "Wave", name = "wave"}
  7972. }
  7973. },
  7974. {
  7975. name = "UnloadWaveSamples",
  7976. description = "Unload samples data loaded with LoadWaveSamples()",
  7977. returnType = "void",
  7978. params = {
  7979. {type = "float *", name = "samples"}
  7980. }
  7981. },
  7982. {
  7983. name = "LoadMusicStream",
  7984. description = "Load music stream from file",
  7985. returnType = "Music",
  7986. params = {
  7987. {type = "const char *", name = "fileName"}
  7988. }
  7989. },
  7990. {
  7991. name = "LoadMusicStreamFromMemory",
  7992. description = "Load music stream from data",
  7993. returnType = "Music",
  7994. params = {
  7995. {type = "const char *", name = "fileType"},
  7996. {type = "const unsigned char *", name = "data"},
  7997. {type = "int", name = "dataSize"}
  7998. }
  7999. },
  8000. {
  8001. name = "IsMusicValid",
  8002. description = "Checks if a music stream is valid (context and buffers initialized)",
  8003. returnType = "bool",
  8004. params = {
  8005. {type = "Music", name = "music"}
  8006. }
  8007. },
  8008. {
  8009. name = "UnloadMusicStream",
  8010. description = "Unload music stream",
  8011. returnType = "void",
  8012. params = {
  8013. {type = "Music", name = "music"}
  8014. }
  8015. },
  8016. {
  8017. name = "PlayMusicStream",
  8018. description = "Start music playing",
  8019. returnType = "void",
  8020. params = {
  8021. {type = "Music", name = "music"}
  8022. }
  8023. },
  8024. {
  8025. name = "IsMusicStreamPlaying",
  8026. description = "Check if music is playing",
  8027. returnType = "bool",
  8028. params = {
  8029. {type = "Music", name = "music"}
  8030. }
  8031. },
  8032. {
  8033. name = "UpdateMusicStream",
  8034. description = "Updates buffers for music streaming",
  8035. returnType = "void",
  8036. params = {
  8037. {type = "Music", name = "music"}
  8038. }
  8039. },
  8040. {
  8041. name = "StopMusicStream",
  8042. description = "Stop music playing",
  8043. returnType = "void",
  8044. params = {
  8045. {type = "Music", name = "music"}
  8046. }
  8047. },
  8048. {
  8049. name = "PauseMusicStream",
  8050. description = "Pause music playing",
  8051. returnType = "void",
  8052. params = {
  8053. {type = "Music", name = "music"}
  8054. }
  8055. },
  8056. {
  8057. name = "ResumeMusicStream",
  8058. description = "Resume playing paused music",
  8059. returnType = "void",
  8060. params = {
  8061. {type = "Music", name = "music"}
  8062. }
  8063. },
  8064. {
  8065. name = "SeekMusicStream",
  8066. description = "Seek music to a position (in seconds)",
  8067. returnType = "void",
  8068. params = {
  8069. {type = "Music", name = "music"},
  8070. {type = "float", name = "position"}
  8071. }
  8072. },
  8073. {
  8074. name = "SetMusicVolume",
  8075. description = "Set volume for music (1.0 is max level)",
  8076. returnType = "void",
  8077. params = {
  8078. {type = "Music", name = "music"},
  8079. {type = "float", name = "volume"}
  8080. }
  8081. },
  8082. {
  8083. name = "SetMusicPitch",
  8084. description = "Set pitch for a music (1.0 is base level)",
  8085. returnType = "void",
  8086. params = {
  8087. {type = "Music", name = "music"},
  8088. {type = "float", name = "pitch"}
  8089. }
  8090. },
  8091. {
  8092. name = "SetMusicPan",
  8093. description = "Set pan for a music (0.5 is center)",
  8094. returnType = "void",
  8095. params = {
  8096. {type = "Music", name = "music"},
  8097. {type = "float", name = "pan"}
  8098. }
  8099. },
  8100. {
  8101. name = "GetMusicTimeLength",
  8102. description = "Get music time length (in seconds)",
  8103. returnType = "float",
  8104. params = {
  8105. {type = "Music", name = "music"}
  8106. }
  8107. },
  8108. {
  8109. name = "GetMusicTimePlayed",
  8110. description = "Get current music time played (in seconds)",
  8111. returnType = "float",
  8112. params = {
  8113. {type = "Music", name = "music"}
  8114. }
  8115. },
  8116. {
  8117. name = "LoadAudioStream",
  8118. description = "Load audio stream (to stream raw audio pcm data)",
  8119. returnType = "AudioStream",
  8120. params = {
  8121. {type = "unsigned int", name = "sampleRate"},
  8122. {type = "unsigned int", name = "sampleSize"},
  8123. {type = "unsigned int", name = "channels"}
  8124. }
  8125. },
  8126. {
  8127. name = "IsAudioStreamValid",
  8128. description = "Checks if an audio stream is valid (buffers initialized)",
  8129. returnType = "bool",
  8130. params = {
  8131. {type = "AudioStream", name = "stream"}
  8132. }
  8133. },
  8134. {
  8135. name = "UnloadAudioStream",
  8136. description = "Unload audio stream and free memory",
  8137. returnType = "void",
  8138. params = {
  8139. {type = "AudioStream", name = "stream"}
  8140. }
  8141. },
  8142. {
  8143. name = "UpdateAudioStream",
  8144. description = "Update audio stream buffers with data",
  8145. returnType = "void",
  8146. params = {
  8147. {type = "AudioStream", name = "stream"},
  8148. {type = "const void *", name = "data"},
  8149. {type = "int", name = "frameCount"}
  8150. }
  8151. },
  8152. {
  8153. name = "IsAudioStreamProcessed",
  8154. description = "Check if any audio stream buffers requires refill",
  8155. returnType = "bool",
  8156. params = {
  8157. {type = "AudioStream", name = "stream"}
  8158. }
  8159. },
  8160. {
  8161. name = "PlayAudioStream",
  8162. description = "Play audio stream",
  8163. returnType = "void",
  8164. params = {
  8165. {type = "AudioStream", name = "stream"}
  8166. }
  8167. },
  8168. {
  8169. name = "PauseAudioStream",
  8170. description = "Pause audio stream",
  8171. returnType = "void",
  8172. params = {
  8173. {type = "AudioStream", name = "stream"}
  8174. }
  8175. },
  8176. {
  8177. name = "ResumeAudioStream",
  8178. description = "Resume audio stream",
  8179. returnType = "void",
  8180. params = {
  8181. {type = "AudioStream", name = "stream"}
  8182. }
  8183. },
  8184. {
  8185. name = "IsAudioStreamPlaying",
  8186. description = "Check if audio stream is playing",
  8187. returnType = "bool",
  8188. params = {
  8189. {type = "AudioStream", name = "stream"}
  8190. }
  8191. },
  8192. {
  8193. name = "StopAudioStream",
  8194. description = "Stop audio stream",
  8195. returnType = "void",
  8196. params = {
  8197. {type = "AudioStream", name = "stream"}
  8198. }
  8199. },
  8200. {
  8201. name = "SetAudioStreamVolume",
  8202. description = "Set volume for audio stream (1.0 is max level)",
  8203. returnType = "void",
  8204. params = {
  8205. {type = "AudioStream", name = "stream"},
  8206. {type = "float", name = "volume"}
  8207. }
  8208. },
  8209. {
  8210. name = "SetAudioStreamPitch",
  8211. description = "Set pitch for audio stream (1.0 is base level)",
  8212. returnType = "void",
  8213. params = {
  8214. {type = "AudioStream", name = "stream"},
  8215. {type = "float", name = "pitch"}
  8216. }
  8217. },
  8218. {
  8219. name = "SetAudioStreamPan",
  8220. description = "Set pan for audio stream (0.5 is centered)",
  8221. returnType = "void",
  8222. params = {
  8223. {type = "AudioStream", name = "stream"},
  8224. {type = "float", name = "pan"}
  8225. }
  8226. },
  8227. {
  8228. name = "SetAudioStreamBufferSizeDefault",
  8229. description = "Default size for new audio streams",
  8230. returnType = "void",
  8231. params = {
  8232. {type = "int", name = "size"}
  8233. }
  8234. },
  8235. {
  8236. name = "SetAudioStreamCallback",
  8237. description = "Audio thread callback to request new data",
  8238. returnType = "void",
  8239. params = {
  8240. {type = "AudioStream", name = "stream"},
  8241. {type = "AudioCallback", name = "callback"}
  8242. }
  8243. },
  8244. {
  8245. name = "AttachAudioStreamProcessor",
  8246. description = "Attach audio stream processor to stream, receives the samples as 'float'",
  8247. returnType = "void",
  8248. params = {
  8249. {type = "AudioStream", name = "stream"},
  8250. {type = "AudioCallback", name = "processor"}
  8251. }
  8252. },
  8253. {
  8254. name = "DetachAudioStreamProcessor",
  8255. description = "Detach audio stream processor from stream",
  8256. returnType = "void",
  8257. params = {
  8258. {type = "AudioStream", name = "stream"},
  8259. {type = "AudioCallback", name = "processor"}
  8260. }
  8261. },
  8262. {
  8263. name = "AttachAudioMixedProcessor",
  8264. description = "Attach audio stream processor to the entire audio pipeline, receives the samples as 'float'",
  8265. returnType = "void",
  8266. params = {
  8267. {type = "AudioCallback", name = "processor"}
  8268. }
  8269. },
  8270. {
  8271. name = "DetachAudioMixedProcessor",
  8272. description = "Detach audio stream processor from the entire audio pipeline",
  8273. returnType = "void",
  8274. params = {
  8275. {type = "AudioCallback", name = "processor"}
  8276. }
  8277. }
  8278. }
  8279. }