raylib_api.lua 223 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261
  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-dev",
  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. name = "CUBEMAP_LAYOUT_PANORAMA",
  2845. value = 5,
  2846. description = "Layout is defined by a panorama image (equirrectangular map)"
  2847. }
  2848. }
  2849. },
  2850. {
  2851. name = "FontType",
  2852. description = "Font type, defines generation method",
  2853. values = {
  2854. {
  2855. name = "FONT_DEFAULT",
  2856. value = 0,
  2857. description = "Default font generation, anti-aliased"
  2858. },
  2859. {
  2860. name = "FONT_BITMAP",
  2861. value = 1,
  2862. description = "Bitmap font generation, no anti-aliasing"
  2863. },
  2864. {
  2865. name = "FONT_SDF",
  2866. value = 2,
  2867. description = "SDF font generation, requires external shader"
  2868. }
  2869. }
  2870. },
  2871. {
  2872. name = "BlendMode",
  2873. description = "Color blending modes (pre-defined)",
  2874. values = {
  2875. {
  2876. name = "BLEND_ALPHA",
  2877. value = 0,
  2878. description = "Blend textures considering alpha (default)"
  2879. },
  2880. {
  2881. name = "BLEND_ADDITIVE",
  2882. value = 1,
  2883. description = "Blend textures adding colors"
  2884. },
  2885. {
  2886. name = "BLEND_MULTIPLIED",
  2887. value = 2,
  2888. description = "Blend textures multiplying colors"
  2889. },
  2890. {
  2891. name = "BLEND_ADD_COLORS",
  2892. value = 3,
  2893. description = "Blend textures adding colors (alternative)"
  2894. },
  2895. {
  2896. name = "BLEND_SUBTRACT_COLORS",
  2897. value = 4,
  2898. description = "Blend textures subtracting colors (alternative)"
  2899. },
  2900. {
  2901. name = "BLEND_ALPHA_PREMULTIPLY",
  2902. value = 5,
  2903. description = "Blend premultiplied textures considering alpha"
  2904. },
  2905. {
  2906. name = "BLEND_CUSTOM",
  2907. value = 6,
  2908. description = "Blend textures using custom src/dst factors (use rlSetBlendFactors())"
  2909. },
  2910. {
  2911. name = "BLEND_CUSTOM_SEPARATE",
  2912. value = 7,
  2913. description = "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())"
  2914. }
  2915. }
  2916. },
  2917. {
  2918. name = "Gesture",
  2919. description = "Gesture",
  2920. values = {
  2921. {
  2922. name = "GESTURE_NONE",
  2923. value = 0,
  2924. description = "No gesture"
  2925. },
  2926. {
  2927. name = "GESTURE_TAP",
  2928. value = 1,
  2929. description = "Tap gesture"
  2930. },
  2931. {
  2932. name = "GESTURE_DOUBLETAP",
  2933. value = 2,
  2934. description = "Double tap gesture"
  2935. },
  2936. {
  2937. name = "GESTURE_HOLD",
  2938. value = 4,
  2939. description = "Hold gesture"
  2940. },
  2941. {
  2942. name = "GESTURE_DRAG",
  2943. value = 8,
  2944. description = "Drag gesture"
  2945. },
  2946. {
  2947. name = "GESTURE_SWIPE_RIGHT",
  2948. value = 16,
  2949. description = "Swipe right gesture"
  2950. },
  2951. {
  2952. name = "GESTURE_SWIPE_LEFT",
  2953. value = 32,
  2954. description = "Swipe left gesture"
  2955. },
  2956. {
  2957. name = "GESTURE_SWIPE_UP",
  2958. value = 64,
  2959. description = "Swipe up gesture"
  2960. },
  2961. {
  2962. name = "GESTURE_SWIPE_DOWN",
  2963. value = 128,
  2964. description = "Swipe down gesture"
  2965. },
  2966. {
  2967. name = "GESTURE_PINCH_IN",
  2968. value = 256,
  2969. description = "Pinch in gesture"
  2970. },
  2971. {
  2972. name = "GESTURE_PINCH_OUT",
  2973. value = 512,
  2974. description = "Pinch out gesture"
  2975. }
  2976. }
  2977. },
  2978. {
  2979. name = "CameraMode",
  2980. description = "Camera system modes",
  2981. values = {
  2982. {
  2983. name = "CAMERA_CUSTOM",
  2984. value = 0,
  2985. description = "Camera custom, controlled by user (UpdateCamera() does nothing)"
  2986. },
  2987. {
  2988. name = "CAMERA_FREE",
  2989. value = 1,
  2990. description = "Camera free mode"
  2991. },
  2992. {
  2993. name = "CAMERA_ORBITAL",
  2994. value = 2,
  2995. description = "Camera orbital, around target, zoom supported"
  2996. },
  2997. {
  2998. name = "CAMERA_FIRST_PERSON",
  2999. value = 3,
  3000. description = "Camera first person"
  3001. },
  3002. {
  3003. name = "CAMERA_THIRD_PERSON",
  3004. value = 4,
  3005. description = "Camera third person"
  3006. }
  3007. }
  3008. },
  3009. {
  3010. name = "CameraProjection",
  3011. description = "Camera projection",
  3012. values = {
  3013. {
  3014. name = "CAMERA_PERSPECTIVE",
  3015. value = 0,
  3016. description = "Perspective projection"
  3017. },
  3018. {
  3019. name = "CAMERA_ORTHOGRAPHIC",
  3020. value = 1,
  3021. description = "Orthographic projection"
  3022. }
  3023. }
  3024. },
  3025. {
  3026. name = "NPatchLayout",
  3027. description = "N-patch layout",
  3028. values = {
  3029. {
  3030. name = "NPATCH_NINE_PATCH",
  3031. value = 0,
  3032. description = "Npatch layout: 3x3 tiles"
  3033. },
  3034. {
  3035. name = "NPATCH_THREE_PATCH_VERTICAL",
  3036. value = 1,
  3037. description = "Npatch layout: 1x3 tiles"
  3038. },
  3039. {
  3040. name = "NPATCH_THREE_PATCH_HORIZONTAL",
  3041. value = 2,
  3042. description = "Npatch layout: 3x1 tiles"
  3043. }
  3044. }
  3045. }
  3046. },
  3047. callbacks = {
  3048. {
  3049. name = "TraceLogCallback",
  3050. description = "Logging: Redirect trace log messages",
  3051. returnType = "void",
  3052. params = {
  3053. {type = "int", name = "logLevel"},
  3054. {type = "const char *", name = "text"},
  3055. {type = "va_list", name = "args"}
  3056. }
  3057. },
  3058. {
  3059. name = "LoadFileDataCallback",
  3060. description = "FileIO: Load binary data",
  3061. returnType = "unsigned char *",
  3062. params = {
  3063. {type = "const char *", name = "fileName"},
  3064. {type = "int *", name = "dataSize"}
  3065. }
  3066. },
  3067. {
  3068. name = "SaveFileDataCallback",
  3069. description = "FileIO: Save binary data",
  3070. returnType = "bool",
  3071. params = {
  3072. {type = "const char *", name = "fileName"},
  3073. {type = "void *", name = "data"},
  3074. {type = "int", name = "dataSize"}
  3075. }
  3076. },
  3077. {
  3078. name = "LoadFileTextCallback",
  3079. description = "FileIO: Load text data",
  3080. returnType = "char *",
  3081. params = {
  3082. {type = "const char *", name = "fileName"}
  3083. }
  3084. },
  3085. {
  3086. name = "SaveFileTextCallback",
  3087. description = "FileIO: Save text data",
  3088. returnType = "bool",
  3089. params = {
  3090. {type = "const char *", name = "fileName"},
  3091. {type = "char *", name = "text"}
  3092. }
  3093. },
  3094. {
  3095. name = "AudioCallback",
  3096. description = "",
  3097. returnType = "void",
  3098. params = {
  3099. {type = "void *", name = "bufferData"},
  3100. {type = "unsigned int", name = "frames"}
  3101. }
  3102. }
  3103. },
  3104. functions = {
  3105. {
  3106. name = "InitWindow",
  3107. description = "Initialize window and OpenGL context",
  3108. returnType = "void",
  3109. params = {
  3110. {type = "int", name = "width"},
  3111. {type = "int", name = "height"},
  3112. {type = "const char *", name = "title"}
  3113. }
  3114. },
  3115. {
  3116. name = "CloseWindow",
  3117. description = "Close window and unload OpenGL context",
  3118. returnType = "void"
  3119. },
  3120. {
  3121. name = "WindowShouldClose",
  3122. description = "Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)",
  3123. returnType = "bool"
  3124. },
  3125. {
  3126. name = "IsWindowReady",
  3127. description = "Check if window has been initialized successfully",
  3128. returnType = "bool"
  3129. },
  3130. {
  3131. name = "IsWindowFullscreen",
  3132. description = "Check if window is currently fullscreen",
  3133. returnType = "bool"
  3134. },
  3135. {
  3136. name = "IsWindowHidden",
  3137. description = "Check if window is currently hidden (only PLATFORM_DESKTOP)",
  3138. returnType = "bool"
  3139. },
  3140. {
  3141. name = "IsWindowMinimized",
  3142. description = "Check if window is currently minimized (only PLATFORM_DESKTOP)",
  3143. returnType = "bool"
  3144. },
  3145. {
  3146. name = "IsWindowMaximized",
  3147. description = "Check if window is currently maximized (only PLATFORM_DESKTOP)",
  3148. returnType = "bool"
  3149. },
  3150. {
  3151. name = "IsWindowFocused",
  3152. description = "Check if window is currently focused (only PLATFORM_DESKTOP)",
  3153. returnType = "bool"
  3154. },
  3155. {
  3156. name = "IsWindowResized",
  3157. description = "Check if window has been resized last frame",
  3158. returnType = "bool"
  3159. },
  3160. {
  3161. name = "IsWindowState",
  3162. description = "Check if one specific window flag is enabled",
  3163. returnType = "bool",
  3164. params = {
  3165. {type = "unsigned int", name = "flag"}
  3166. }
  3167. },
  3168. {
  3169. name = "SetWindowState",
  3170. description = "Set window configuration state using flags (only PLATFORM_DESKTOP)",
  3171. returnType = "void",
  3172. params = {
  3173. {type = "unsigned int", name = "flags"}
  3174. }
  3175. },
  3176. {
  3177. name = "ClearWindowState",
  3178. description = "Clear window configuration state flags",
  3179. returnType = "void",
  3180. params = {
  3181. {type = "unsigned int", name = "flags"}
  3182. }
  3183. },
  3184. {
  3185. name = "ToggleFullscreen",
  3186. description = "Toggle window state: fullscreen/windowed [resizes monitor to match window resolution] (only PLATFORM_DESKTOP)",
  3187. returnType = "void"
  3188. },
  3189. {
  3190. name = "ToggleBorderlessWindowed",
  3191. description = "Toggle window state: borderless windowed [resizes window to match monitor resolution] (only PLATFORM_DESKTOP)",
  3192. returnType = "void"
  3193. },
  3194. {
  3195. name = "MaximizeWindow",
  3196. description = "Set window state: maximized, if resizable (only PLATFORM_DESKTOP)",
  3197. returnType = "void"
  3198. },
  3199. {
  3200. name = "MinimizeWindow",
  3201. description = "Set window state: minimized, if resizable (only PLATFORM_DESKTOP)",
  3202. returnType = "void"
  3203. },
  3204. {
  3205. name = "RestoreWindow",
  3206. description = "Set window state: not minimized/maximized (only PLATFORM_DESKTOP)",
  3207. returnType = "void"
  3208. },
  3209. {
  3210. name = "SetWindowIcon",
  3211. description = "Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)",
  3212. returnType = "void",
  3213. params = {
  3214. {type = "Image", name = "image"}
  3215. }
  3216. },
  3217. {
  3218. name = "SetWindowIcons",
  3219. description = "Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)",
  3220. returnType = "void",
  3221. params = {
  3222. {type = "Image *", name = "images"},
  3223. {type = "int", name = "count"}
  3224. }
  3225. },
  3226. {
  3227. name = "SetWindowTitle",
  3228. description = "Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)",
  3229. returnType = "void",
  3230. params = {
  3231. {type = "const char *", name = "title"}
  3232. }
  3233. },
  3234. {
  3235. name = "SetWindowPosition",
  3236. description = "Set window position on screen (only PLATFORM_DESKTOP)",
  3237. returnType = "void",
  3238. params = {
  3239. {type = "int", name = "x"},
  3240. {type = "int", name = "y"}
  3241. }
  3242. },
  3243. {
  3244. name = "SetWindowMonitor",
  3245. description = "Set monitor for the current window",
  3246. returnType = "void",
  3247. params = {
  3248. {type = "int", name = "monitor"}
  3249. }
  3250. },
  3251. {
  3252. name = "SetWindowMinSize",
  3253. description = "Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)",
  3254. returnType = "void",
  3255. params = {
  3256. {type = "int", name = "width"},
  3257. {type = "int", name = "height"}
  3258. }
  3259. },
  3260. {
  3261. name = "SetWindowMaxSize",
  3262. description = "Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)",
  3263. returnType = "void",
  3264. params = {
  3265. {type = "int", name = "width"},
  3266. {type = "int", name = "height"}
  3267. }
  3268. },
  3269. {
  3270. name = "SetWindowSize",
  3271. description = "Set window dimensions",
  3272. returnType = "void",
  3273. params = {
  3274. {type = "int", name = "width"},
  3275. {type = "int", name = "height"}
  3276. }
  3277. },
  3278. {
  3279. name = "SetWindowOpacity",
  3280. description = "Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)",
  3281. returnType = "void",
  3282. params = {
  3283. {type = "float", name = "opacity"}
  3284. }
  3285. },
  3286. {
  3287. name = "SetWindowFocused",
  3288. description = "Set window focused (only PLATFORM_DESKTOP)",
  3289. returnType = "void"
  3290. },
  3291. {
  3292. name = "GetWindowHandle",
  3293. description = "Get native window handle",
  3294. returnType = "void *"
  3295. },
  3296. {
  3297. name = "GetScreenWidth",
  3298. description = "Get current screen width",
  3299. returnType = "int"
  3300. },
  3301. {
  3302. name = "GetScreenHeight",
  3303. description = "Get current screen height",
  3304. returnType = "int"
  3305. },
  3306. {
  3307. name = "GetRenderWidth",
  3308. description = "Get current render width (it considers HiDPI)",
  3309. returnType = "int"
  3310. },
  3311. {
  3312. name = "GetRenderHeight",
  3313. description = "Get current render height (it considers HiDPI)",
  3314. returnType = "int"
  3315. },
  3316. {
  3317. name = "GetMonitorCount",
  3318. description = "Get number of connected monitors",
  3319. returnType = "int"
  3320. },
  3321. {
  3322. name = "GetCurrentMonitor",
  3323. description = "Get current connected monitor",
  3324. returnType = "int"
  3325. },
  3326. {
  3327. name = "GetMonitorPosition",
  3328. description = "Get specified monitor position",
  3329. returnType = "Vector2",
  3330. params = {
  3331. {type = "int", name = "monitor"}
  3332. }
  3333. },
  3334. {
  3335. name = "GetMonitorWidth",
  3336. description = "Get specified monitor width (current video mode used by monitor)",
  3337. returnType = "int",
  3338. params = {
  3339. {type = "int", name = "monitor"}
  3340. }
  3341. },
  3342. {
  3343. name = "GetMonitorHeight",
  3344. description = "Get specified monitor height (current video mode used by monitor)",
  3345. returnType = "int",
  3346. params = {
  3347. {type = "int", name = "monitor"}
  3348. }
  3349. },
  3350. {
  3351. name = "GetMonitorPhysicalWidth",
  3352. description = "Get specified monitor physical width in millimetres",
  3353. returnType = "int",
  3354. params = {
  3355. {type = "int", name = "monitor"}
  3356. }
  3357. },
  3358. {
  3359. name = "GetMonitorPhysicalHeight",
  3360. description = "Get specified monitor physical height in millimetres",
  3361. returnType = "int",
  3362. params = {
  3363. {type = "int", name = "monitor"}
  3364. }
  3365. },
  3366. {
  3367. name = "GetMonitorRefreshRate",
  3368. description = "Get specified monitor refresh rate",
  3369. returnType = "int",
  3370. params = {
  3371. {type = "int", name = "monitor"}
  3372. }
  3373. },
  3374. {
  3375. name = "GetWindowPosition",
  3376. description = "Get window position XY on monitor",
  3377. returnType = "Vector2"
  3378. },
  3379. {
  3380. name = "GetWindowScaleDPI",
  3381. description = "Get window scale DPI factor",
  3382. returnType = "Vector2"
  3383. },
  3384. {
  3385. name = "GetMonitorName",
  3386. description = "Get the human-readable, UTF-8 encoded name of the specified monitor",
  3387. returnType = "const char *",
  3388. params = {
  3389. {type = "int", name = "monitor"}
  3390. }
  3391. },
  3392. {
  3393. name = "SetClipboardText",
  3394. description = "Set clipboard text content",
  3395. returnType = "void",
  3396. params = {
  3397. {type = "const char *", name = "text"}
  3398. }
  3399. },
  3400. {
  3401. name = "GetClipboardText",
  3402. description = "Get clipboard text content",
  3403. returnType = "const char *"
  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 = "IsShaderReady",
  3593. description = "Check if a shader is ready",
  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 = "LoadAutomationEventList",
  4195. description = "Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS",
  4196. returnType = "AutomationEventList",
  4197. params = {
  4198. {type = "const char *", name = "fileName"}
  4199. }
  4200. },
  4201. {
  4202. name = "UnloadAutomationEventList",
  4203. description = "Unload automation events list from file",
  4204. returnType = "void",
  4205. params = {
  4206. {type = "AutomationEventList", name = "list"}
  4207. }
  4208. },
  4209. {
  4210. name = "ExportAutomationEventList",
  4211. description = "Export automation events list as text file",
  4212. returnType = "bool",
  4213. params = {
  4214. {type = "AutomationEventList", name = "list"},
  4215. {type = "const char *", name = "fileName"}
  4216. }
  4217. },
  4218. {
  4219. name = "SetAutomationEventList",
  4220. description = "Set automation event list to record to",
  4221. returnType = "void",
  4222. params = {
  4223. {type = "AutomationEventList *", name = "list"}
  4224. }
  4225. },
  4226. {
  4227. name = "SetAutomationEventBaseFrame",
  4228. description = "Set automation event internal base frame to start recording",
  4229. returnType = "void",
  4230. params = {
  4231. {type = "int", name = "frame"}
  4232. }
  4233. },
  4234. {
  4235. name = "StartAutomationEventRecording",
  4236. description = "Start recording automation events (AutomationEventList must be set)",
  4237. returnType = "void"
  4238. },
  4239. {
  4240. name = "StopAutomationEventRecording",
  4241. description = "Stop recording automation events",
  4242. returnType = "void"
  4243. },
  4244. {
  4245. name = "PlayAutomationEvent",
  4246. description = "Play a recorded automation event",
  4247. returnType = "void",
  4248. params = {
  4249. {type = "AutomationEvent", name = "event"}
  4250. }
  4251. },
  4252. {
  4253. name = "IsKeyPressed",
  4254. description = "Check if a key has been pressed once",
  4255. returnType = "bool",
  4256. params = {
  4257. {type = "int", name = "key"}
  4258. }
  4259. },
  4260. {
  4261. name = "IsKeyPressedRepeat",
  4262. description = "Check if a key has been pressed again (Only PLATFORM_DESKTOP)",
  4263. returnType = "bool",
  4264. params = {
  4265. {type = "int", name = "key"}
  4266. }
  4267. },
  4268. {
  4269. name = "IsKeyDown",
  4270. description = "Check if a key is being pressed",
  4271. returnType = "bool",
  4272. params = {
  4273. {type = "int", name = "key"}
  4274. }
  4275. },
  4276. {
  4277. name = "IsKeyReleased",
  4278. description = "Check if a key has been released once",
  4279. returnType = "bool",
  4280. params = {
  4281. {type = "int", name = "key"}
  4282. }
  4283. },
  4284. {
  4285. name = "IsKeyUp",
  4286. description = "Check if a key is NOT being pressed",
  4287. returnType = "bool",
  4288. params = {
  4289. {type = "int", name = "key"}
  4290. }
  4291. },
  4292. {
  4293. name = "GetKeyPressed",
  4294. description = "Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty",
  4295. returnType = "int"
  4296. },
  4297. {
  4298. name = "GetCharPressed",
  4299. description = "Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty",
  4300. returnType = "int"
  4301. },
  4302. {
  4303. name = "SetExitKey",
  4304. description = "Set a custom key to exit program (default is ESC)",
  4305. returnType = "void",
  4306. params = {
  4307. {type = "int", name = "key"}
  4308. }
  4309. },
  4310. {
  4311. name = "IsGamepadAvailable",
  4312. description = "Check if a gamepad is available",
  4313. returnType = "bool",
  4314. params = {
  4315. {type = "int", name = "gamepad"}
  4316. }
  4317. },
  4318. {
  4319. name = "GetGamepadName",
  4320. description = "Get gamepad internal name id",
  4321. returnType = "const char *",
  4322. params = {
  4323. {type = "int", name = "gamepad"}
  4324. }
  4325. },
  4326. {
  4327. name = "IsGamepadButtonPressed",
  4328. description = "Check if a gamepad button has been pressed once",
  4329. returnType = "bool",
  4330. params = {
  4331. {type = "int", name = "gamepad"},
  4332. {type = "int", name = "button"}
  4333. }
  4334. },
  4335. {
  4336. name = "IsGamepadButtonDown",
  4337. description = "Check if a gamepad button is being pressed",
  4338. returnType = "bool",
  4339. params = {
  4340. {type = "int", name = "gamepad"},
  4341. {type = "int", name = "button"}
  4342. }
  4343. },
  4344. {
  4345. name = "IsGamepadButtonReleased",
  4346. description = "Check if a gamepad button has been released once",
  4347. returnType = "bool",
  4348. params = {
  4349. {type = "int", name = "gamepad"},
  4350. {type = "int", name = "button"}
  4351. }
  4352. },
  4353. {
  4354. name = "IsGamepadButtonUp",
  4355. description = "Check if a gamepad button is NOT being pressed",
  4356. returnType = "bool",
  4357. params = {
  4358. {type = "int", name = "gamepad"},
  4359. {type = "int", name = "button"}
  4360. }
  4361. },
  4362. {
  4363. name = "GetGamepadButtonPressed",
  4364. description = "Get the last gamepad button pressed",
  4365. returnType = "int"
  4366. },
  4367. {
  4368. name = "GetGamepadAxisCount",
  4369. description = "Get gamepad axis count for a gamepad",
  4370. returnType = "int",
  4371. params = {
  4372. {type = "int", name = "gamepad"}
  4373. }
  4374. },
  4375. {
  4376. name = "GetGamepadAxisMovement",
  4377. description = "Get axis movement value for a gamepad axis",
  4378. returnType = "float",
  4379. params = {
  4380. {type = "int", name = "gamepad"},
  4381. {type = "int", name = "axis"}
  4382. }
  4383. },
  4384. {
  4385. name = "SetGamepadMappings",
  4386. description = "Set internal gamepad mappings (SDL_GameControllerDB)",
  4387. returnType = "int",
  4388. params = {
  4389. {type = "const char *", name = "mappings"}
  4390. }
  4391. },
  4392. {
  4393. name = "SetGamepadVibration",
  4394. description = "Set gamepad vibration for both motors",
  4395. returnType = "void",
  4396. params = {
  4397. {type = "int", name = "gamepad"},
  4398. {type = "float", name = "leftMotor"},
  4399. {type = "float", name = "rightMotor"}
  4400. }
  4401. },
  4402. {
  4403. name = "IsMouseButtonPressed",
  4404. description = "Check if a mouse button has been pressed once",
  4405. returnType = "bool",
  4406. params = {
  4407. {type = "int", name = "button"}
  4408. }
  4409. },
  4410. {
  4411. name = "IsMouseButtonDown",
  4412. description = "Check if a mouse button is being pressed",
  4413. returnType = "bool",
  4414. params = {
  4415. {type = "int", name = "button"}
  4416. }
  4417. },
  4418. {
  4419. name = "IsMouseButtonReleased",
  4420. description = "Check if a mouse button has been released once",
  4421. returnType = "bool",
  4422. params = {
  4423. {type = "int", name = "button"}
  4424. }
  4425. },
  4426. {
  4427. name = "IsMouseButtonUp",
  4428. description = "Check if a mouse button is NOT being pressed",
  4429. returnType = "bool",
  4430. params = {
  4431. {type = "int", name = "button"}
  4432. }
  4433. },
  4434. {
  4435. name = "GetMouseX",
  4436. description = "Get mouse position X",
  4437. returnType = "int"
  4438. },
  4439. {
  4440. name = "GetMouseY",
  4441. description = "Get mouse position Y",
  4442. returnType = "int"
  4443. },
  4444. {
  4445. name = "GetMousePosition",
  4446. description = "Get mouse position XY",
  4447. returnType = "Vector2"
  4448. },
  4449. {
  4450. name = "GetMouseDelta",
  4451. description = "Get mouse delta between frames",
  4452. returnType = "Vector2"
  4453. },
  4454. {
  4455. name = "SetMousePosition",
  4456. description = "Set mouse position XY",
  4457. returnType = "void",
  4458. params = {
  4459. {type = "int", name = "x"},
  4460. {type = "int", name = "y"}
  4461. }
  4462. },
  4463. {
  4464. name = "SetMouseOffset",
  4465. description = "Set mouse offset",
  4466. returnType = "void",
  4467. params = {
  4468. {type = "int", name = "offsetX"},
  4469. {type = "int", name = "offsetY"}
  4470. }
  4471. },
  4472. {
  4473. name = "SetMouseScale",
  4474. description = "Set mouse scaling",
  4475. returnType = "void",
  4476. params = {
  4477. {type = "float", name = "scaleX"},
  4478. {type = "float", name = "scaleY"}
  4479. }
  4480. },
  4481. {
  4482. name = "GetMouseWheelMove",
  4483. description = "Get mouse wheel movement for X or Y, whichever is larger",
  4484. returnType = "float"
  4485. },
  4486. {
  4487. name = "GetMouseWheelMoveV",
  4488. description = "Get mouse wheel movement for both X and Y",
  4489. returnType = "Vector2"
  4490. },
  4491. {
  4492. name = "SetMouseCursor",
  4493. description = "Set mouse cursor",
  4494. returnType = "void",
  4495. params = {
  4496. {type = "int", name = "cursor"}
  4497. }
  4498. },
  4499. {
  4500. name = "GetTouchX",
  4501. description = "Get touch position X for touch point 0 (relative to screen size)",
  4502. returnType = "int"
  4503. },
  4504. {
  4505. name = "GetTouchY",
  4506. description = "Get touch position Y for touch point 0 (relative to screen size)",
  4507. returnType = "int"
  4508. },
  4509. {
  4510. name = "GetTouchPosition",
  4511. description = "Get touch position XY for a touch point index (relative to screen size)",
  4512. returnType = "Vector2",
  4513. params = {
  4514. {type = "int", name = "index"}
  4515. }
  4516. },
  4517. {
  4518. name = "GetTouchPointId",
  4519. description = "Get touch point identifier for given index",
  4520. returnType = "int",
  4521. params = {
  4522. {type = "int", name = "index"}
  4523. }
  4524. },
  4525. {
  4526. name = "GetTouchPointCount",
  4527. description = "Get number of touch points",
  4528. returnType = "int"
  4529. },
  4530. {
  4531. name = "SetGesturesEnabled",
  4532. description = "Enable a set of gestures using flags",
  4533. returnType = "void",
  4534. params = {
  4535. {type = "unsigned int", name = "flags"}
  4536. }
  4537. },
  4538. {
  4539. name = "IsGestureDetected",
  4540. description = "Check if a gesture have been detected",
  4541. returnType = "bool",
  4542. params = {
  4543. {type = "unsigned int", name = "gesture"}
  4544. }
  4545. },
  4546. {
  4547. name = "GetGestureDetected",
  4548. description = "Get latest detected gesture",
  4549. returnType = "int"
  4550. },
  4551. {
  4552. name = "GetGestureHoldDuration",
  4553. description = "Get gesture hold time in milliseconds",
  4554. returnType = "float"
  4555. },
  4556. {
  4557. name = "GetGestureDragVector",
  4558. description = "Get gesture drag vector",
  4559. returnType = "Vector2"
  4560. },
  4561. {
  4562. name = "GetGestureDragAngle",
  4563. description = "Get gesture drag angle",
  4564. returnType = "float"
  4565. },
  4566. {
  4567. name = "GetGesturePinchVector",
  4568. description = "Get gesture pinch delta",
  4569. returnType = "Vector2"
  4570. },
  4571. {
  4572. name = "GetGesturePinchAngle",
  4573. description = "Get gesture pinch angle",
  4574. returnType = "float"
  4575. },
  4576. {
  4577. name = "UpdateCamera",
  4578. description = "Update camera position for selected mode",
  4579. returnType = "void",
  4580. params = {
  4581. {type = "Camera *", name = "camera"},
  4582. {type = "int", name = "mode"}
  4583. }
  4584. },
  4585. {
  4586. name = "UpdateCameraPro",
  4587. description = "Update camera movement/rotation",
  4588. returnType = "void",
  4589. params = {
  4590. {type = "Camera *", name = "camera"},
  4591. {type = "Vector3", name = "movement"},
  4592. {type = "Vector3", name = "rotation"},
  4593. {type = "float", name = "zoom"}
  4594. }
  4595. },
  4596. {
  4597. name = "SetShapesTexture",
  4598. description = "Set texture and rectangle to be used on shapes drawing",
  4599. returnType = "void",
  4600. params = {
  4601. {type = "Texture2D", name = "texture"},
  4602. {type = "Rectangle", name = "source"}
  4603. }
  4604. },
  4605. {
  4606. name = "GetShapesTexture",
  4607. description = "Get texture that is used for shapes drawing",
  4608. returnType = "Texture2D"
  4609. },
  4610. {
  4611. name = "GetShapesTextureRectangle",
  4612. description = "Get texture source rectangle that is used for shapes drawing",
  4613. returnType = "Rectangle"
  4614. },
  4615. {
  4616. name = "DrawPixel",
  4617. description = "Draw a pixel using geometry [Can be slow, use with care]",
  4618. returnType = "void",
  4619. params = {
  4620. {type = "int", name = "posX"},
  4621. {type = "int", name = "posY"},
  4622. {type = "Color", name = "color"}
  4623. }
  4624. },
  4625. {
  4626. name = "DrawPixelV",
  4627. description = "Draw a pixel using geometry (Vector version) [Can be slow, use with care]",
  4628. returnType = "void",
  4629. params = {
  4630. {type = "Vector2", name = "position"},
  4631. {type = "Color", name = "color"}
  4632. }
  4633. },
  4634. {
  4635. name = "DrawLine",
  4636. description = "Draw a line",
  4637. returnType = "void",
  4638. params = {
  4639. {type = "int", name = "startPosX"},
  4640. {type = "int", name = "startPosY"},
  4641. {type = "int", name = "endPosX"},
  4642. {type = "int", name = "endPosY"},
  4643. {type = "Color", name = "color"}
  4644. }
  4645. },
  4646. {
  4647. name = "DrawLineV",
  4648. description = "Draw a line (using gl lines)",
  4649. returnType = "void",
  4650. params = {
  4651. {type = "Vector2", name = "startPos"},
  4652. {type = "Vector2", name = "endPos"},
  4653. {type = "Color", name = "color"}
  4654. }
  4655. },
  4656. {
  4657. name = "DrawLineEx",
  4658. description = "Draw a line (using triangles/quads)",
  4659. returnType = "void",
  4660. params = {
  4661. {type = "Vector2", name = "startPos"},
  4662. {type = "Vector2", name = "endPos"},
  4663. {type = "float", name = "thick"},
  4664. {type = "Color", name = "color"}
  4665. }
  4666. },
  4667. {
  4668. name = "DrawLineStrip",
  4669. description = "Draw lines sequence (using gl lines)",
  4670. returnType = "void",
  4671. params = {
  4672. {type = "const Vector2 *", name = "points"},
  4673. {type = "int", name = "pointCount"},
  4674. {type = "Color", name = "color"}
  4675. }
  4676. },
  4677. {
  4678. name = "DrawLineBezier",
  4679. description = "Draw line segment cubic-bezier in-out interpolation",
  4680. returnType = "void",
  4681. params = {
  4682. {type = "Vector2", name = "startPos"},
  4683. {type = "Vector2", name = "endPos"},
  4684. {type = "float", name = "thick"},
  4685. {type = "Color", name = "color"}
  4686. }
  4687. },
  4688. {
  4689. name = "DrawCircle",
  4690. description = "Draw a color-filled circle",
  4691. returnType = "void",
  4692. params = {
  4693. {type = "int", name = "centerX"},
  4694. {type = "int", name = "centerY"},
  4695. {type = "float", name = "radius"},
  4696. {type = "Color", name = "color"}
  4697. }
  4698. },
  4699. {
  4700. name = "DrawCircleSector",
  4701. description = "Draw a piece of a circle",
  4702. returnType = "void",
  4703. params = {
  4704. {type = "Vector2", name = "center"},
  4705. {type = "float", name = "radius"},
  4706. {type = "float", name = "startAngle"},
  4707. {type = "float", name = "endAngle"},
  4708. {type = "int", name = "segments"},
  4709. {type = "Color", name = "color"}
  4710. }
  4711. },
  4712. {
  4713. name = "DrawCircleSectorLines",
  4714. description = "Draw circle sector outline",
  4715. returnType = "void",
  4716. params = {
  4717. {type = "Vector2", name = "center"},
  4718. {type = "float", name = "radius"},
  4719. {type = "float", name = "startAngle"},
  4720. {type = "float", name = "endAngle"},
  4721. {type = "int", name = "segments"},
  4722. {type = "Color", name = "color"}
  4723. }
  4724. },
  4725. {
  4726. name = "DrawCircleGradient",
  4727. description = "Draw a gradient-filled circle",
  4728. returnType = "void",
  4729. params = {
  4730. {type = "int", name = "centerX"},
  4731. {type = "int", name = "centerY"},
  4732. {type = "float", name = "radius"},
  4733. {type = "Color", name = "inner"},
  4734. {type = "Color", name = "outer"}
  4735. }
  4736. },
  4737. {
  4738. name = "DrawCircleV",
  4739. description = "Draw a color-filled circle (Vector version)",
  4740. returnType = "void",
  4741. params = {
  4742. {type = "Vector2", name = "center"},
  4743. {type = "float", name = "radius"},
  4744. {type = "Color", name = "color"}
  4745. }
  4746. },
  4747. {
  4748. name = "DrawCircleLines",
  4749. description = "Draw circle outline",
  4750. returnType = "void",
  4751. params = {
  4752. {type = "int", name = "centerX"},
  4753. {type = "int", name = "centerY"},
  4754. {type = "float", name = "radius"},
  4755. {type = "Color", name = "color"}
  4756. }
  4757. },
  4758. {
  4759. name = "DrawCircleLinesV",
  4760. description = "Draw circle outline (Vector version)",
  4761. returnType = "void",
  4762. params = {
  4763. {type = "Vector2", name = "center"},
  4764. {type = "float", name = "radius"},
  4765. {type = "Color", name = "color"}
  4766. }
  4767. },
  4768. {
  4769. name = "DrawEllipse",
  4770. description = "Draw ellipse",
  4771. returnType = "void",
  4772. params = {
  4773. {type = "int", name = "centerX"},
  4774. {type = "int", name = "centerY"},
  4775. {type = "float", name = "radiusH"},
  4776. {type = "float", name = "radiusV"},
  4777. {type = "Color", name = "color"}
  4778. }
  4779. },
  4780. {
  4781. name = "DrawEllipseLines",
  4782. description = "Draw ellipse outline",
  4783. returnType = "void",
  4784. params = {
  4785. {type = "int", name = "centerX"},
  4786. {type = "int", name = "centerY"},
  4787. {type = "float", name = "radiusH"},
  4788. {type = "float", name = "radiusV"},
  4789. {type = "Color", name = "color"}
  4790. }
  4791. },
  4792. {
  4793. name = "DrawRing",
  4794. description = "Draw ring",
  4795. returnType = "void",
  4796. params = {
  4797. {type = "Vector2", name = "center"},
  4798. {type = "float", name = "innerRadius"},
  4799. {type = "float", name = "outerRadius"},
  4800. {type = "float", name = "startAngle"},
  4801. {type = "float", name = "endAngle"},
  4802. {type = "int", name = "segments"},
  4803. {type = "Color", name = "color"}
  4804. }
  4805. },
  4806. {
  4807. name = "DrawRingLines",
  4808. description = "Draw ring outline",
  4809. returnType = "void",
  4810. params = {
  4811. {type = "Vector2", name = "center"},
  4812. {type = "float", name = "innerRadius"},
  4813. {type = "float", name = "outerRadius"},
  4814. {type = "float", name = "startAngle"},
  4815. {type = "float", name = "endAngle"},
  4816. {type = "int", name = "segments"},
  4817. {type = "Color", name = "color"}
  4818. }
  4819. },
  4820. {
  4821. name = "DrawRectangle",
  4822. description = "Draw a color-filled rectangle",
  4823. returnType = "void",
  4824. params = {
  4825. {type = "int", name = "posX"},
  4826. {type = "int", name = "posY"},
  4827. {type = "int", name = "width"},
  4828. {type = "int", name = "height"},
  4829. {type = "Color", name = "color"}
  4830. }
  4831. },
  4832. {
  4833. name = "DrawRectangleV",
  4834. description = "Draw a color-filled rectangle (Vector version)",
  4835. returnType = "void",
  4836. params = {
  4837. {type = "Vector2", name = "position"},
  4838. {type = "Vector2", name = "size"},
  4839. {type = "Color", name = "color"}
  4840. }
  4841. },
  4842. {
  4843. name = "DrawRectangleRec",
  4844. description = "Draw a color-filled rectangle",
  4845. returnType = "void",
  4846. params = {
  4847. {type = "Rectangle", name = "rec"},
  4848. {type = "Color", name = "color"}
  4849. }
  4850. },
  4851. {
  4852. name = "DrawRectanglePro",
  4853. description = "Draw a color-filled rectangle with pro parameters",
  4854. returnType = "void",
  4855. params = {
  4856. {type = "Rectangle", name = "rec"},
  4857. {type = "Vector2", name = "origin"},
  4858. {type = "float", name = "rotation"},
  4859. {type = "Color", name = "color"}
  4860. }
  4861. },
  4862. {
  4863. name = "DrawRectangleGradientV",
  4864. description = "Draw a vertical-gradient-filled rectangle",
  4865. returnType = "void",
  4866. params = {
  4867. {type = "int", name = "posX"},
  4868. {type = "int", name = "posY"},
  4869. {type = "int", name = "width"},
  4870. {type = "int", name = "height"},
  4871. {type = "Color", name = "top"},
  4872. {type = "Color", name = "bottom"}
  4873. }
  4874. },
  4875. {
  4876. name = "DrawRectangleGradientH",
  4877. description = "Draw a horizontal-gradient-filled rectangle",
  4878. returnType = "void",
  4879. params = {
  4880. {type = "int", name = "posX"},
  4881. {type = "int", name = "posY"},
  4882. {type = "int", name = "width"},
  4883. {type = "int", name = "height"},
  4884. {type = "Color", name = "left"},
  4885. {type = "Color", name = "right"}
  4886. }
  4887. },
  4888. {
  4889. name = "DrawRectangleGradientEx",
  4890. description = "Draw a gradient-filled rectangle with custom vertex colors",
  4891. returnType = "void",
  4892. params = {
  4893. {type = "Rectangle", name = "rec"},
  4894. {type = "Color", name = "topLeft"},
  4895. {type = "Color", name = "bottomLeft"},
  4896. {type = "Color", name = "topRight"},
  4897. {type = "Color", name = "bottomRight"}
  4898. }
  4899. },
  4900. {
  4901. name = "DrawRectangleLines",
  4902. description = "Draw rectangle outline",
  4903. returnType = "void",
  4904. params = {
  4905. {type = "int", name = "posX"},
  4906. {type = "int", name = "posY"},
  4907. {type = "int", name = "width"},
  4908. {type = "int", name = "height"},
  4909. {type = "Color", name = "color"}
  4910. }
  4911. },
  4912. {
  4913. name = "DrawRectangleLinesEx",
  4914. description = "Draw rectangle outline with extended parameters",
  4915. returnType = "void",
  4916. params = {
  4917. {type = "Rectangle", name = "rec"},
  4918. {type = "float", name = "lineThick"},
  4919. {type = "Color", name = "color"}
  4920. }
  4921. },
  4922. {
  4923. name = "DrawRectangleRounded",
  4924. description = "Draw rectangle with rounded edges",
  4925. returnType = "void",
  4926. params = {
  4927. {type = "Rectangle", name = "rec"},
  4928. {type = "float", name = "roundness"},
  4929. {type = "int", name = "segments"},
  4930. {type = "Color", name = "color"}
  4931. }
  4932. },
  4933. {
  4934. name = "DrawRectangleRoundedLines",
  4935. description = "Draw rectangle lines with rounded edges",
  4936. returnType = "void",
  4937. params = {
  4938. {type = "Rectangle", name = "rec"},
  4939. {type = "float", name = "roundness"},
  4940. {type = "int", name = "segments"},
  4941. {type = "Color", name = "color"}
  4942. }
  4943. },
  4944. {
  4945. name = "DrawRectangleRoundedLinesEx",
  4946. description = "Draw rectangle with rounded edges outline",
  4947. returnType = "void",
  4948. params = {
  4949. {type = "Rectangle", name = "rec"},
  4950. {type = "float", name = "roundness"},
  4951. {type = "int", name = "segments"},
  4952. {type = "float", name = "lineThick"},
  4953. {type = "Color", name = "color"}
  4954. }
  4955. },
  4956. {
  4957. name = "DrawTriangle",
  4958. description = "Draw a color-filled triangle (vertex in counter-clockwise order!)",
  4959. returnType = "void",
  4960. params = {
  4961. {type = "Vector2", name = "v1"},
  4962. {type = "Vector2", name = "v2"},
  4963. {type = "Vector2", name = "v3"},
  4964. {type = "Color", name = "color"}
  4965. }
  4966. },
  4967. {
  4968. name = "DrawTriangleLines",
  4969. description = "Draw triangle outline (vertex in counter-clockwise order!)",
  4970. returnType = "void",
  4971. params = {
  4972. {type = "Vector2", name = "v1"},
  4973. {type = "Vector2", name = "v2"},
  4974. {type = "Vector2", name = "v3"},
  4975. {type = "Color", name = "color"}
  4976. }
  4977. },
  4978. {
  4979. name = "DrawTriangleFan",
  4980. description = "Draw a triangle fan defined by points (first vertex is the center)",
  4981. returnType = "void",
  4982. params = {
  4983. {type = "const Vector2 *", name = "points"},
  4984. {type = "int", name = "pointCount"},
  4985. {type = "Color", name = "color"}
  4986. }
  4987. },
  4988. {
  4989. name = "DrawTriangleStrip",
  4990. description = "Draw a triangle strip defined by points",
  4991. returnType = "void",
  4992. params = {
  4993. {type = "const Vector2 *", name = "points"},
  4994. {type = "int", name = "pointCount"},
  4995. {type = "Color", name = "color"}
  4996. }
  4997. },
  4998. {
  4999. name = "DrawPoly",
  5000. description = "Draw a regular polygon (Vector version)",
  5001. returnType = "void",
  5002. params = {
  5003. {type = "Vector2", name = "center"},
  5004. {type = "int", name = "sides"},
  5005. {type = "float", name = "radius"},
  5006. {type = "float", name = "rotation"},
  5007. {type = "Color", name = "color"}
  5008. }
  5009. },
  5010. {
  5011. name = "DrawPolyLines",
  5012. description = "Draw a polygon outline of n sides",
  5013. returnType = "void",
  5014. params = {
  5015. {type = "Vector2", name = "center"},
  5016. {type = "int", name = "sides"},
  5017. {type = "float", name = "radius"},
  5018. {type = "float", name = "rotation"},
  5019. {type = "Color", name = "color"}
  5020. }
  5021. },
  5022. {
  5023. name = "DrawPolyLinesEx",
  5024. description = "Draw a polygon outline of n sides with extended parameters",
  5025. returnType = "void",
  5026. params = {
  5027. {type = "Vector2", name = "center"},
  5028. {type = "int", name = "sides"},
  5029. {type = "float", name = "radius"},
  5030. {type = "float", name = "rotation"},
  5031. {type = "float", name = "lineThick"},
  5032. {type = "Color", name = "color"}
  5033. }
  5034. },
  5035. {
  5036. name = "DrawSplineLinear",
  5037. description = "Draw spline: Linear, minimum 2 points",
  5038. returnType = "void",
  5039. params = {
  5040. {type = "const Vector2 *", name = "points"},
  5041. {type = "int", name = "pointCount"},
  5042. {type = "float", name = "thick"},
  5043. {type = "Color", name = "color"}
  5044. }
  5045. },
  5046. {
  5047. name = "DrawSplineBasis",
  5048. description = "Draw spline: B-Spline, minimum 4 points",
  5049. returnType = "void",
  5050. params = {
  5051. {type = "const Vector2 *", name = "points"},
  5052. {type = "int", name = "pointCount"},
  5053. {type = "float", name = "thick"},
  5054. {type = "Color", name = "color"}
  5055. }
  5056. },
  5057. {
  5058. name = "DrawSplineCatmullRom",
  5059. description = "Draw spline: Catmull-Rom, minimum 4 points",
  5060. returnType = "void",
  5061. params = {
  5062. {type = "const Vector2 *", name = "points"},
  5063. {type = "int", name = "pointCount"},
  5064. {type = "float", name = "thick"},
  5065. {type = "Color", name = "color"}
  5066. }
  5067. },
  5068. {
  5069. name = "DrawSplineBezierQuadratic",
  5070. description = "Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]",
  5071. returnType = "void",
  5072. params = {
  5073. {type = "const Vector2 *", name = "points"},
  5074. {type = "int", name = "pointCount"},
  5075. {type = "float", name = "thick"},
  5076. {type = "Color", name = "color"}
  5077. }
  5078. },
  5079. {
  5080. name = "DrawSplineBezierCubic",
  5081. description = "Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]",
  5082. returnType = "void",
  5083. params = {
  5084. {type = "const Vector2 *", name = "points"},
  5085. {type = "int", name = "pointCount"},
  5086. {type = "float", name = "thick"},
  5087. {type = "Color", name = "color"}
  5088. }
  5089. },
  5090. {
  5091. name = "DrawSplineSegmentLinear",
  5092. description = "Draw spline segment: Linear, 2 points",
  5093. returnType = "void",
  5094. params = {
  5095. {type = "Vector2", name = "p1"},
  5096. {type = "Vector2", name = "p2"},
  5097. {type = "float", name = "thick"},
  5098. {type = "Color", name = "color"}
  5099. }
  5100. },
  5101. {
  5102. name = "DrawSplineSegmentBasis",
  5103. description = "Draw spline segment: B-Spline, 4 points",
  5104. returnType = "void",
  5105. params = {
  5106. {type = "Vector2", name = "p1"},
  5107. {type = "Vector2", name = "p2"},
  5108. {type = "Vector2", name = "p3"},
  5109. {type = "Vector2", name = "p4"},
  5110. {type = "float", name = "thick"},
  5111. {type = "Color", name = "color"}
  5112. }
  5113. },
  5114. {
  5115. name = "DrawSplineSegmentCatmullRom",
  5116. description = "Draw spline segment: Catmull-Rom, 4 points",
  5117. returnType = "void",
  5118. params = {
  5119. {type = "Vector2", name = "p1"},
  5120. {type = "Vector2", name = "p2"},
  5121. {type = "Vector2", name = "p3"},
  5122. {type = "Vector2", name = "p4"},
  5123. {type = "float", name = "thick"},
  5124. {type = "Color", name = "color"}
  5125. }
  5126. },
  5127. {
  5128. name = "DrawSplineSegmentBezierQuadratic",
  5129. description = "Draw spline segment: Quadratic Bezier, 2 points, 1 control point",
  5130. returnType = "void",
  5131. params = {
  5132. {type = "Vector2", name = "p1"},
  5133. {type = "Vector2", name = "c2"},
  5134. {type = "Vector2", name = "p3"},
  5135. {type = "float", name = "thick"},
  5136. {type = "Color", name = "color"}
  5137. }
  5138. },
  5139. {
  5140. name = "DrawSplineSegmentBezierCubic",
  5141. description = "Draw spline segment: Cubic Bezier, 2 points, 2 control points",
  5142. returnType = "void",
  5143. params = {
  5144. {type = "Vector2", name = "p1"},
  5145. {type = "Vector2", name = "c2"},
  5146. {type = "Vector2", name = "c3"},
  5147. {type = "Vector2", name = "p4"},
  5148. {type = "float", name = "thick"},
  5149. {type = "Color", name = "color"}
  5150. }
  5151. },
  5152. {
  5153. name = "GetSplinePointLinear",
  5154. description = "Get (evaluate) spline point: Linear",
  5155. returnType = "Vector2",
  5156. params = {
  5157. {type = "Vector2", name = "startPos"},
  5158. {type = "Vector2", name = "endPos"},
  5159. {type = "float", name = "t"}
  5160. }
  5161. },
  5162. {
  5163. name = "GetSplinePointBasis",
  5164. description = "Get (evaluate) spline point: B-Spline",
  5165. returnType = "Vector2",
  5166. params = {
  5167. {type = "Vector2", name = "p1"},
  5168. {type = "Vector2", name = "p2"},
  5169. {type = "Vector2", name = "p3"},
  5170. {type = "Vector2", name = "p4"},
  5171. {type = "float", name = "t"}
  5172. }
  5173. },
  5174. {
  5175. name = "GetSplinePointCatmullRom",
  5176. description = "Get (evaluate) spline point: Catmull-Rom",
  5177. returnType = "Vector2",
  5178. params = {
  5179. {type = "Vector2", name = "p1"},
  5180. {type = "Vector2", name = "p2"},
  5181. {type = "Vector2", name = "p3"},
  5182. {type = "Vector2", name = "p4"},
  5183. {type = "float", name = "t"}
  5184. }
  5185. },
  5186. {
  5187. name = "GetSplinePointBezierQuad",
  5188. description = "Get (evaluate) spline point: Quadratic Bezier",
  5189. returnType = "Vector2",
  5190. params = {
  5191. {type = "Vector2", name = "p1"},
  5192. {type = "Vector2", name = "c2"},
  5193. {type = "Vector2", name = "p3"},
  5194. {type = "float", name = "t"}
  5195. }
  5196. },
  5197. {
  5198. name = "GetSplinePointBezierCubic",
  5199. description = "Get (evaluate) spline point: Cubic Bezier",
  5200. returnType = "Vector2",
  5201. params = {
  5202. {type = "Vector2", name = "p1"},
  5203. {type = "Vector2", name = "c2"},
  5204. {type = "Vector2", name = "c3"},
  5205. {type = "Vector2", name = "p4"},
  5206. {type = "float", name = "t"}
  5207. }
  5208. },
  5209. {
  5210. name = "CheckCollisionRecs",
  5211. description = "Check collision between two rectangles",
  5212. returnType = "bool",
  5213. params = {
  5214. {type = "Rectangle", name = "rec1"},
  5215. {type = "Rectangle", name = "rec2"}
  5216. }
  5217. },
  5218. {
  5219. name = "CheckCollisionCircles",
  5220. description = "Check collision between two circles",
  5221. returnType = "bool",
  5222. params = {
  5223. {type = "Vector2", name = "center1"},
  5224. {type = "float", name = "radius1"},
  5225. {type = "Vector2", name = "center2"},
  5226. {type = "float", name = "radius2"}
  5227. }
  5228. },
  5229. {
  5230. name = "CheckCollisionCircleRec",
  5231. description = "Check collision between circle and rectangle",
  5232. returnType = "bool",
  5233. params = {
  5234. {type = "Vector2", name = "center"},
  5235. {type = "float", name = "radius"},
  5236. {type = "Rectangle", name = "rec"}
  5237. }
  5238. },
  5239. {
  5240. name = "CheckCollisionPointRec",
  5241. description = "Check if point is inside rectangle",
  5242. returnType = "bool",
  5243. params = {
  5244. {type = "Vector2", name = "point"},
  5245. {type = "Rectangle", name = "rec"}
  5246. }
  5247. },
  5248. {
  5249. name = "CheckCollisionPointCircle",
  5250. description = "Check if point is inside circle",
  5251. returnType = "bool",
  5252. params = {
  5253. {type = "Vector2", name = "point"},
  5254. {type = "Vector2", name = "center"},
  5255. {type = "float", name = "radius"}
  5256. }
  5257. },
  5258. {
  5259. name = "CheckCollisionPointTriangle",
  5260. description = "Check if point is inside a triangle",
  5261. returnType = "bool",
  5262. params = {
  5263. {type = "Vector2", name = "point"},
  5264. {type = "Vector2", name = "p1"},
  5265. {type = "Vector2", name = "p2"},
  5266. {type = "Vector2", name = "p3"}
  5267. }
  5268. },
  5269. {
  5270. name = "CheckCollisionPointPoly",
  5271. description = "Check if point is within a polygon described by array of vertices",
  5272. returnType = "bool",
  5273. params = {
  5274. {type = "Vector2", name = "point"},
  5275. {type = "const Vector2 *", name = "points"},
  5276. {type = "int", name = "pointCount"}
  5277. }
  5278. },
  5279. {
  5280. name = "CheckCollisionLines",
  5281. description = "Check the collision between two lines defined by two points each, returns collision point by reference",
  5282. returnType = "bool",
  5283. params = {
  5284. {type = "Vector2", name = "startPos1"},
  5285. {type = "Vector2", name = "endPos1"},
  5286. {type = "Vector2", name = "startPos2"},
  5287. {type = "Vector2", name = "endPos2"},
  5288. {type = "Vector2 *", name = "collisionPoint"}
  5289. }
  5290. },
  5291. {
  5292. name = "CheckCollisionPointLine",
  5293. description = "Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]",
  5294. returnType = "bool",
  5295. params = {
  5296. {type = "Vector2", name = "point"},
  5297. {type = "Vector2", name = "p1"},
  5298. {type = "Vector2", name = "p2"},
  5299. {type = "int", name = "threshold"}
  5300. }
  5301. },
  5302. {
  5303. name = "CheckCollisionCircleLine",
  5304. description = "Check if circle collides with a line created betweeen two points [p1] and [p2]",
  5305. returnType = "bool",
  5306. params = {
  5307. {type = "Vector2", name = "center"},
  5308. {type = "float", name = "radius"},
  5309. {type = "Vector2", name = "p1"},
  5310. {type = "Vector2", name = "p2"}
  5311. }
  5312. },
  5313. {
  5314. name = "GetCollisionRec",
  5315. description = "Get collision rectangle for two rectangles collision",
  5316. returnType = "Rectangle",
  5317. params = {
  5318. {type = "Rectangle", name = "rec1"},
  5319. {type = "Rectangle", name = "rec2"}
  5320. }
  5321. },
  5322. {
  5323. name = "LoadImage",
  5324. description = "Load image from file into CPU memory (RAM)",
  5325. returnType = "Image",
  5326. params = {
  5327. {type = "const char *", name = "fileName"}
  5328. }
  5329. },
  5330. {
  5331. name = "LoadImageRaw",
  5332. description = "Load image from RAW file data",
  5333. returnType = "Image",
  5334. params = {
  5335. {type = "const char *", name = "fileName"},
  5336. {type = "int", name = "width"},
  5337. {type = "int", name = "height"},
  5338. {type = "int", name = "format"},
  5339. {type = "int", name = "headerSize"}
  5340. }
  5341. },
  5342. {
  5343. name = "LoadImageSvg",
  5344. description = "Load image from SVG file data or string with specified size",
  5345. returnType = "Image",
  5346. params = {
  5347. {type = "const char *", name = "fileNameOrString"},
  5348. {type = "int", name = "width"},
  5349. {type = "int", name = "height"}
  5350. }
  5351. },
  5352. {
  5353. name = "LoadImageAnim",
  5354. description = "Load image sequence from file (frames appended to image.data)",
  5355. returnType = "Image",
  5356. params = {
  5357. {type = "const char *", name = "fileName"},
  5358. {type = "int *", name = "frames"}
  5359. }
  5360. },
  5361. {
  5362. name = "LoadImageAnimFromMemory",
  5363. description = "Load image sequence from memory buffer",
  5364. returnType = "Image",
  5365. params = {
  5366. {type = "const char *", name = "fileType"},
  5367. {type = "const unsigned char *", name = "fileData"},
  5368. {type = "int", name = "dataSize"},
  5369. {type = "int *", name = "frames"}
  5370. }
  5371. },
  5372. {
  5373. name = "LoadImageFromMemory",
  5374. description = "Load image from memory buffer, fileType refers to extension: i.e. '.png'",
  5375. returnType = "Image",
  5376. params = {
  5377. {type = "const char *", name = "fileType"},
  5378. {type = "const unsigned char *", name = "fileData"},
  5379. {type = "int", name = "dataSize"}
  5380. }
  5381. },
  5382. {
  5383. name = "LoadImageFromTexture",
  5384. description = "Load image from GPU texture data",
  5385. returnType = "Image",
  5386. params = {
  5387. {type = "Texture2D", name = "texture"}
  5388. }
  5389. },
  5390. {
  5391. name = "LoadImageFromScreen",
  5392. description = "Load image from screen buffer and (screenshot)",
  5393. returnType = "Image"
  5394. },
  5395. {
  5396. name = "IsImageReady",
  5397. description = "Check if an image is ready",
  5398. returnType = "bool",
  5399. params = {
  5400. {type = "Image", name = "image"}
  5401. }
  5402. },
  5403. {
  5404. name = "UnloadImage",
  5405. description = "Unload image from CPU memory (RAM)",
  5406. returnType = "void",
  5407. params = {
  5408. {type = "Image", name = "image"}
  5409. }
  5410. },
  5411. {
  5412. name = "ExportImage",
  5413. description = "Export image data to file, returns true on success",
  5414. returnType = "bool",
  5415. params = {
  5416. {type = "Image", name = "image"},
  5417. {type = "const char *", name = "fileName"}
  5418. }
  5419. },
  5420. {
  5421. name = "ExportImageToMemory",
  5422. description = "Export image to memory buffer",
  5423. returnType = "unsigned char *",
  5424. params = {
  5425. {type = "Image", name = "image"},
  5426. {type = "const char *", name = "fileType"},
  5427. {type = "int *", name = "fileSize"}
  5428. }
  5429. },
  5430. {
  5431. name = "ExportImageAsCode",
  5432. description = "Export image as code file defining an array of bytes, returns true on success",
  5433. returnType = "bool",
  5434. params = {
  5435. {type = "Image", name = "image"},
  5436. {type = "const char *", name = "fileName"}
  5437. }
  5438. },
  5439. {
  5440. name = "GenImageColor",
  5441. description = "Generate image: plain color",
  5442. returnType = "Image",
  5443. params = {
  5444. {type = "int", name = "width"},
  5445. {type = "int", name = "height"},
  5446. {type = "Color", name = "color"}
  5447. }
  5448. },
  5449. {
  5450. name = "GenImageGradientLinear",
  5451. description = "Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient",
  5452. returnType = "Image",
  5453. params = {
  5454. {type = "int", name = "width"},
  5455. {type = "int", name = "height"},
  5456. {type = "int", name = "direction"},
  5457. {type = "Color", name = "start"},
  5458. {type = "Color", name = "end"}
  5459. }
  5460. },
  5461. {
  5462. name = "GenImageGradientRadial",
  5463. description = "Generate image: radial gradient",
  5464. returnType = "Image",
  5465. params = {
  5466. {type = "int", name = "width"},
  5467. {type = "int", name = "height"},
  5468. {type = "float", name = "density"},
  5469. {type = "Color", name = "inner"},
  5470. {type = "Color", name = "outer"}
  5471. }
  5472. },
  5473. {
  5474. name = "GenImageGradientSquare",
  5475. description = "Generate image: square gradient",
  5476. returnType = "Image",
  5477. params = {
  5478. {type = "int", name = "width"},
  5479. {type = "int", name = "height"},
  5480. {type = "float", name = "density"},
  5481. {type = "Color", name = "inner"},
  5482. {type = "Color", name = "outer"}
  5483. }
  5484. },
  5485. {
  5486. name = "GenImageChecked",
  5487. description = "Generate image: checked",
  5488. returnType = "Image",
  5489. params = {
  5490. {type = "int", name = "width"},
  5491. {type = "int", name = "height"},
  5492. {type = "int", name = "checksX"},
  5493. {type = "int", name = "checksY"},
  5494. {type = "Color", name = "col1"},
  5495. {type = "Color", name = "col2"}
  5496. }
  5497. },
  5498. {
  5499. name = "GenImageWhiteNoise",
  5500. description = "Generate image: white noise",
  5501. returnType = "Image",
  5502. params = {
  5503. {type = "int", name = "width"},
  5504. {type = "int", name = "height"},
  5505. {type = "float", name = "factor"}
  5506. }
  5507. },
  5508. {
  5509. name = "GenImagePerlinNoise",
  5510. description = "Generate image: perlin noise",
  5511. returnType = "Image",
  5512. params = {
  5513. {type = "int", name = "width"},
  5514. {type = "int", name = "height"},
  5515. {type = "int", name = "offsetX"},
  5516. {type = "int", name = "offsetY"},
  5517. {type = "float", name = "scale"}
  5518. }
  5519. },
  5520. {
  5521. name = "GenImageCellular",
  5522. description = "Generate image: cellular algorithm, bigger tileSize means bigger cells",
  5523. returnType = "Image",
  5524. params = {
  5525. {type = "int", name = "width"},
  5526. {type = "int", name = "height"},
  5527. {type = "int", name = "tileSize"}
  5528. }
  5529. },
  5530. {
  5531. name = "GenImageText",
  5532. description = "Generate image: grayscale image from text data",
  5533. returnType = "Image",
  5534. params = {
  5535. {type = "int", name = "width"},
  5536. {type = "int", name = "height"},
  5537. {type = "const char *", name = "text"}
  5538. }
  5539. },
  5540. {
  5541. name = "ImageCopy",
  5542. description = "Create an image duplicate (useful for transformations)",
  5543. returnType = "Image",
  5544. params = {
  5545. {type = "Image", name = "image"}
  5546. }
  5547. },
  5548. {
  5549. name = "ImageFromImage",
  5550. description = "Create an image from another image piece",
  5551. returnType = "Image",
  5552. params = {
  5553. {type = "Image", name = "image"},
  5554. {type = "Rectangle", name = "rec"}
  5555. }
  5556. },
  5557. {
  5558. name = "ImageFromChannel",
  5559. description = "Create an image from a selected channel of another image (GRAYSCALE)",
  5560. returnType = "Image",
  5561. params = {
  5562. {type = "Image", name = "image"},
  5563. {type = "int", name = "selectedChannel"}
  5564. }
  5565. },
  5566. {
  5567. name = "ImageText",
  5568. description = "Create an image from text (default font)",
  5569. returnType = "Image",
  5570. params = {
  5571. {type = "const char *", name = "text"},
  5572. {type = "int", name = "fontSize"},
  5573. {type = "Color", name = "color"}
  5574. }
  5575. },
  5576. {
  5577. name = "ImageTextEx",
  5578. description = "Create an image from text (custom sprite font)",
  5579. returnType = "Image",
  5580. params = {
  5581. {type = "Font", name = "font"},
  5582. {type = "const char *", name = "text"},
  5583. {type = "float", name = "fontSize"},
  5584. {type = "float", name = "spacing"},
  5585. {type = "Color", name = "tint"}
  5586. }
  5587. },
  5588. {
  5589. name = "ImageFormat",
  5590. description = "Convert image data to desired format",
  5591. returnType = "void",
  5592. params = {
  5593. {type = "Image *", name = "image"},
  5594. {type = "int", name = "newFormat"}
  5595. }
  5596. },
  5597. {
  5598. name = "ImageToPOT",
  5599. description = "Convert image to POT (power-of-two)",
  5600. returnType = "void",
  5601. params = {
  5602. {type = "Image *", name = "image"},
  5603. {type = "Color", name = "fill"}
  5604. }
  5605. },
  5606. {
  5607. name = "ImageCrop",
  5608. description = "Crop an image to a defined rectangle",
  5609. returnType = "void",
  5610. params = {
  5611. {type = "Image *", name = "image"},
  5612. {type = "Rectangle", name = "crop"}
  5613. }
  5614. },
  5615. {
  5616. name = "ImageAlphaCrop",
  5617. description = "Crop image depending on alpha value",
  5618. returnType = "void",
  5619. params = {
  5620. {type = "Image *", name = "image"},
  5621. {type = "float", name = "threshold"}
  5622. }
  5623. },
  5624. {
  5625. name = "ImageAlphaClear",
  5626. description = "Clear alpha channel to desired color",
  5627. returnType = "void",
  5628. params = {
  5629. {type = "Image *", name = "image"},
  5630. {type = "Color", name = "color"},
  5631. {type = "float", name = "threshold"}
  5632. }
  5633. },
  5634. {
  5635. name = "ImageAlphaMask",
  5636. description = "Apply alpha mask to image",
  5637. returnType = "void",
  5638. params = {
  5639. {type = "Image *", name = "image"},
  5640. {type = "Image", name = "alphaMask"}
  5641. }
  5642. },
  5643. {
  5644. name = "ImageAlphaPremultiply",
  5645. description = "Premultiply alpha channel",
  5646. returnType = "void",
  5647. params = {
  5648. {type = "Image *", name = "image"}
  5649. }
  5650. },
  5651. {
  5652. name = "ImageBlurGaussian",
  5653. description = "Apply Gaussian blur using a box blur approximation",
  5654. returnType = "void",
  5655. params = {
  5656. {type = "Image *", name = "image"},
  5657. {type = "int", name = "blurSize"}
  5658. }
  5659. },
  5660. {
  5661. name = "ImageKernelConvolution",
  5662. description = "Apply custom square convolution kernel to image",
  5663. returnType = "void",
  5664. params = {
  5665. {type = "Image *", name = "image"},
  5666. {type = "const float *", name = "kernel"},
  5667. {type = "int", name = "kernelSize"}
  5668. }
  5669. },
  5670. {
  5671. name = "ImageResize",
  5672. description = "Resize image (Bicubic scaling algorithm)",
  5673. returnType = "void",
  5674. params = {
  5675. {type = "Image *", name = "image"},
  5676. {type = "int", name = "newWidth"},
  5677. {type = "int", name = "newHeight"}
  5678. }
  5679. },
  5680. {
  5681. name = "ImageResizeNN",
  5682. description = "Resize image (Nearest-Neighbor scaling algorithm)",
  5683. returnType = "void",
  5684. params = {
  5685. {type = "Image *", name = "image"},
  5686. {type = "int", name = "newWidth"},
  5687. {type = "int", name = "newHeight"}
  5688. }
  5689. },
  5690. {
  5691. name = "ImageResizeCanvas",
  5692. description = "Resize canvas and fill with color",
  5693. returnType = "void",
  5694. params = {
  5695. {type = "Image *", name = "image"},
  5696. {type = "int", name = "newWidth"},
  5697. {type = "int", name = "newHeight"},
  5698. {type = "int", name = "offsetX"},
  5699. {type = "int", name = "offsetY"},
  5700. {type = "Color", name = "fill"}
  5701. }
  5702. },
  5703. {
  5704. name = "ImageMipmaps",
  5705. description = "Compute all mipmap levels for a provided image",
  5706. returnType = "void",
  5707. params = {
  5708. {type = "Image *", name = "image"}
  5709. }
  5710. },
  5711. {
  5712. name = "ImageDither",
  5713. description = "Dither image data to 16bpp or lower (Floyd-Steinberg dithering)",
  5714. returnType = "void",
  5715. params = {
  5716. {type = "Image *", name = "image"},
  5717. {type = "int", name = "rBpp"},
  5718. {type = "int", name = "gBpp"},
  5719. {type = "int", name = "bBpp"},
  5720. {type = "int", name = "aBpp"}
  5721. }
  5722. },
  5723. {
  5724. name = "ImageFlipVertical",
  5725. description = "Flip image vertically",
  5726. returnType = "void",
  5727. params = {
  5728. {type = "Image *", name = "image"}
  5729. }
  5730. },
  5731. {
  5732. name = "ImageFlipHorizontal",
  5733. description = "Flip image horizontally",
  5734. returnType = "void",
  5735. params = {
  5736. {type = "Image *", name = "image"}
  5737. }
  5738. },
  5739. {
  5740. name = "ImageRotate",
  5741. description = "Rotate image by input angle in degrees (-359 to 359)",
  5742. returnType = "void",
  5743. params = {
  5744. {type = "Image *", name = "image"},
  5745. {type = "int", name = "degrees"}
  5746. }
  5747. },
  5748. {
  5749. name = "ImageRotateCW",
  5750. description = "Rotate image clockwise 90deg",
  5751. returnType = "void",
  5752. params = {
  5753. {type = "Image *", name = "image"}
  5754. }
  5755. },
  5756. {
  5757. name = "ImageRotateCCW",
  5758. description = "Rotate image counter-clockwise 90deg",
  5759. returnType = "void",
  5760. params = {
  5761. {type = "Image *", name = "image"}
  5762. }
  5763. },
  5764. {
  5765. name = "ImageColorTint",
  5766. description = "Modify image color: tint",
  5767. returnType = "void",
  5768. params = {
  5769. {type = "Image *", name = "image"},
  5770. {type = "Color", name = "color"}
  5771. }
  5772. },
  5773. {
  5774. name = "ImageColorInvert",
  5775. description = "Modify image color: invert",
  5776. returnType = "void",
  5777. params = {
  5778. {type = "Image *", name = "image"}
  5779. }
  5780. },
  5781. {
  5782. name = "ImageColorGrayscale",
  5783. description = "Modify image color: grayscale",
  5784. returnType = "void",
  5785. params = {
  5786. {type = "Image *", name = "image"}
  5787. }
  5788. },
  5789. {
  5790. name = "ImageColorContrast",
  5791. description = "Modify image color: contrast (-100 to 100)",
  5792. returnType = "void",
  5793. params = {
  5794. {type = "Image *", name = "image"},
  5795. {type = "float", name = "contrast"}
  5796. }
  5797. },
  5798. {
  5799. name = "ImageColorBrightness",
  5800. description = "Modify image color: brightness (-255 to 255)",
  5801. returnType = "void",
  5802. params = {
  5803. {type = "Image *", name = "image"},
  5804. {type = "int", name = "brightness"}
  5805. }
  5806. },
  5807. {
  5808. name = "ImageColorReplace",
  5809. description = "Modify image color: replace color",
  5810. returnType = "void",
  5811. params = {
  5812. {type = "Image *", name = "image"},
  5813. {type = "Color", name = "color"},
  5814. {type = "Color", name = "replace"}
  5815. }
  5816. },
  5817. {
  5818. name = "LoadImageColors",
  5819. description = "Load color data from image as a Color array (RGBA - 32bit)",
  5820. returnType = "Color *",
  5821. params = {
  5822. {type = "Image", name = "image"}
  5823. }
  5824. },
  5825. {
  5826. name = "LoadImagePalette",
  5827. description = "Load colors palette from image as a Color array (RGBA - 32bit)",
  5828. returnType = "Color *",
  5829. params = {
  5830. {type = "Image", name = "image"},
  5831. {type = "int", name = "maxPaletteSize"},
  5832. {type = "int *", name = "colorCount"}
  5833. }
  5834. },
  5835. {
  5836. name = "UnloadImageColors",
  5837. description = "Unload color data loaded with LoadImageColors()",
  5838. returnType = "void",
  5839. params = {
  5840. {type = "Color *", name = "colors"}
  5841. }
  5842. },
  5843. {
  5844. name = "UnloadImagePalette",
  5845. description = "Unload colors palette loaded with LoadImagePalette()",
  5846. returnType = "void",
  5847. params = {
  5848. {type = "Color *", name = "colors"}
  5849. }
  5850. },
  5851. {
  5852. name = "GetImageAlphaBorder",
  5853. description = "Get image alpha border rectangle",
  5854. returnType = "Rectangle",
  5855. params = {
  5856. {type = "Image", name = "image"},
  5857. {type = "float", name = "threshold"}
  5858. }
  5859. },
  5860. {
  5861. name = "GetImageColor",
  5862. description = "Get image pixel color at (x, y) position",
  5863. returnType = "Color",
  5864. params = {
  5865. {type = "Image", name = "image"},
  5866. {type = "int", name = "x"},
  5867. {type = "int", name = "y"}
  5868. }
  5869. },
  5870. {
  5871. name = "ImageClearBackground",
  5872. description = "Clear image background with given color",
  5873. returnType = "void",
  5874. params = {
  5875. {type = "Image *", name = "dst"},
  5876. {type = "Color", name = "color"}
  5877. }
  5878. },
  5879. {
  5880. name = "ImageDrawPixel",
  5881. description = "Draw pixel within an image",
  5882. returnType = "void",
  5883. params = {
  5884. {type = "Image *", name = "dst"},
  5885. {type = "int", name = "posX"},
  5886. {type = "int", name = "posY"},
  5887. {type = "Color", name = "color"}
  5888. }
  5889. },
  5890. {
  5891. name = "ImageDrawPixelV",
  5892. description = "Draw pixel within an image (Vector version)",
  5893. returnType = "void",
  5894. params = {
  5895. {type = "Image *", name = "dst"},
  5896. {type = "Vector2", name = "position"},
  5897. {type = "Color", name = "color"}
  5898. }
  5899. },
  5900. {
  5901. name = "ImageDrawLine",
  5902. description = "Draw line within an image",
  5903. returnType = "void",
  5904. params = {
  5905. {type = "Image *", name = "dst"},
  5906. {type = "int", name = "startPosX"},
  5907. {type = "int", name = "startPosY"},
  5908. {type = "int", name = "endPosX"},
  5909. {type = "int", name = "endPosY"},
  5910. {type = "Color", name = "color"}
  5911. }
  5912. },
  5913. {
  5914. name = "ImageDrawLineV",
  5915. description = "Draw line within an image (Vector version)",
  5916. returnType = "void",
  5917. params = {
  5918. {type = "Image *", name = "dst"},
  5919. {type = "Vector2", name = "start"},
  5920. {type = "Vector2", name = "end"},
  5921. {type = "Color", name = "color"}
  5922. }
  5923. },
  5924. {
  5925. name = "ImageDrawLineEx",
  5926. description = "Draw a line defining thickness within an image",
  5927. returnType = "void",
  5928. params = {
  5929. {type = "Image *", name = "dst"},
  5930. {type = "Vector2", name = "start"},
  5931. {type = "Vector2", name = "end"},
  5932. {type = "int", name = "thick"},
  5933. {type = "Color", name = "color"}
  5934. }
  5935. },
  5936. {
  5937. name = "ImageDrawCircle",
  5938. description = "Draw a filled circle within an image",
  5939. returnType = "void",
  5940. params = {
  5941. {type = "Image *", name = "dst"},
  5942. {type = "int", name = "centerX"},
  5943. {type = "int", name = "centerY"},
  5944. {type = "int", name = "radius"},
  5945. {type = "Color", name = "color"}
  5946. }
  5947. },
  5948. {
  5949. name = "ImageDrawCircleV",
  5950. description = "Draw a filled circle within an image (Vector version)",
  5951. returnType = "void",
  5952. params = {
  5953. {type = "Image *", name = "dst"},
  5954. {type = "Vector2", name = "center"},
  5955. {type = "int", name = "radius"},
  5956. {type = "Color", name = "color"}
  5957. }
  5958. },
  5959. {
  5960. name = "ImageDrawCircleLines",
  5961. description = "Draw circle outline within an image",
  5962. returnType = "void",
  5963. params = {
  5964. {type = "Image *", name = "dst"},
  5965. {type = "int", name = "centerX"},
  5966. {type = "int", name = "centerY"},
  5967. {type = "int", name = "radius"},
  5968. {type = "Color", name = "color"}
  5969. }
  5970. },
  5971. {
  5972. name = "ImageDrawCircleLinesV",
  5973. description = "Draw circle outline within an image (Vector version)",
  5974. returnType = "void",
  5975. params = {
  5976. {type = "Image *", name = "dst"},
  5977. {type = "Vector2", name = "center"},
  5978. {type = "int", name = "radius"},
  5979. {type = "Color", name = "color"}
  5980. }
  5981. },
  5982. {
  5983. name = "ImageDrawRectangle",
  5984. description = "Draw rectangle within an image",
  5985. returnType = "void",
  5986. params = {
  5987. {type = "Image *", name = "dst"},
  5988. {type = "int", name = "posX"},
  5989. {type = "int", name = "posY"},
  5990. {type = "int", name = "width"},
  5991. {type = "int", name = "height"},
  5992. {type = "Color", name = "color"}
  5993. }
  5994. },
  5995. {
  5996. name = "ImageDrawRectangleV",
  5997. description = "Draw rectangle within an image (Vector version)",
  5998. returnType = "void",
  5999. params = {
  6000. {type = "Image *", name = "dst"},
  6001. {type = "Vector2", name = "position"},
  6002. {type = "Vector2", name = "size"},
  6003. {type = "Color", name = "color"}
  6004. }
  6005. },
  6006. {
  6007. name = "ImageDrawRectangleRec",
  6008. description = "Draw rectangle within an image",
  6009. returnType = "void",
  6010. params = {
  6011. {type = "Image *", name = "dst"},
  6012. {type = "Rectangle", name = "rec"},
  6013. {type = "Color", name = "color"}
  6014. }
  6015. },
  6016. {
  6017. name = "ImageDrawRectangleLines",
  6018. description = "Draw rectangle lines within an image",
  6019. returnType = "void",
  6020. params = {
  6021. {type = "Image *", name = "dst"},
  6022. {type = "Rectangle", name = "rec"},
  6023. {type = "int", name = "thick"},
  6024. {type = "Color", name = "color"}
  6025. }
  6026. },
  6027. {
  6028. name = "ImageDrawTriangle",
  6029. description = "Draw triangle within an image",
  6030. returnType = "void",
  6031. params = {
  6032. {type = "Image *", name = "dst"},
  6033. {type = "Vector2", name = "v1"},
  6034. {type = "Vector2", name = "v2"},
  6035. {type = "Vector2", name = "v3"},
  6036. {type = "Color", name = "color"}
  6037. }
  6038. },
  6039. {
  6040. name = "ImageDrawTriangleEx",
  6041. description = "Draw triangle with interpolated colors within an image",
  6042. returnType = "void",
  6043. params = {
  6044. {type = "Image *", name = "dst"},
  6045. {type = "Vector2", name = "v1"},
  6046. {type = "Vector2", name = "v2"},
  6047. {type = "Vector2", name = "v3"},
  6048. {type = "Color", name = "c1"},
  6049. {type = "Color", name = "c2"},
  6050. {type = "Color", name = "c3"}
  6051. }
  6052. },
  6053. {
  6054. name = "ImageDrawTriangleLines",
  6055. description = "Draw triangle outline within an image",
  6056. returnType = "void",
  6057. params = {
  6058. {type = "Image *", name = "dst"},
  6059. {type = "Vector2", name = "v1"},
  6060. {type = "Vector2", name = "v2"},
  6061. {type = "Vector2", name = "v3"},
  6062. {type = "Color", name = "color"}
  6063. }
  6064. },
  6065. {
  6066. name = "ImageDrawTriangleFan",
  6067. description = "Draw a triangle fan defined by points within an image (first vertex is the center)",
  6068. returnType = "void",
  6069. params = {
  6070. {type = "Image *", name = "dst"},
  6071. {type = "Vector2 *", name = "points"},
  6072. {type = "int", name = "pointCount"},
  6073. {type = "Color", name = "color"}
  6074. }
  6075. },
  6076. {
  6077. name = "ImageDrawTriangleStrip",
  6078. description = "Draw a triangle strip defined by points within an image",
  6079. returnType = "void",
  6080. params = {
  6081. {type = "Image *", name = "dst"},
  6082. {type = "Vector2 *", name = "points"},
  6083. {type = "int", name = "pointCount"},
  6084. {type = "Color", name = "color"}
  6085. }
  6086. },
  6087. {
  6088. name = "ImageDraw",
  6089. description = "Draw a source image within a destination image (tint applied to source)",
  6090. returnType = "void",
  6091. params = {
  6092. {type = "Image *", name = "dst"},
  6093. {type = "Image", name = "src"},
  6094. {type = "Rectangle", name = "srcRec"},
  6095. {type = "Rectangle", name = "dstRec"},
  6096. {type = "Color", name = "tint"}
  6097. }
  6098. },
  6099. {
  6100. name = "ImageDrawText",
  6101. description = "Draw text (using default font) within an image (destination)",
  6102. returnType = "void",
  6103. params = {
  6104. {type = "Image *", name = "dst"},
  6105. {type = "const char *", name = "text"},
  6106. {type = "int", name = "posX"},
  6107. {type = "int", name = "posY"},
  6108. {type = "int", name = "fontSize"},
  6109. {type = "Color", name = "color"}
  6110. }
  6111. },
  6112. {
  6113. name = "ImageDrawTextEx",
  6114. description = "Draw text (custom sprite font) within an image (destination)",
  6115. returnType = "void",
  6116. params = {
  6117. {type = "Image *", name = "dst"},
  6118. {type = "Font", name = "font"},
  6119. {type = "const char *", name = "text"},
  6120. {type = "Vector2", name = "position"},
  6121. {type = "float", name = "fontSize"},
  6122. {type = "float", name = "spacing"},
  6123. {type = "Color", name = "tint"}
  6124. }
  6125. },
  6126. {
  6127. name = "LoadTexture",
  6128. description = "Load texture from file into GPU memory (VRAM)",
  6129. returnType = "Texture2D",
  6130. params = {
  6131. {type = "const char *", name = "fileName"}
  6132. }
  6133. },
  6134. {
  6135. name = "LoadTextureFromImage",
  6136. description = "Load texture from image data",
  6137. returnType = "Texture2D",
  6138. params = {
  6139. {type = "Image", name = "image"}
  6140. }
  6141. },
  6142. {
  6143. name = "LoadTextureCubemap",
  6144. description = "Load cubemap from image, multiple image cubemap layouts supported",
  6145. returnType = "TextureCubemap",
  6146. params = {
  6147. {type = "Image", name = "image"},
  6148. {type = "int", name = "layout"}
  6149. }
  6150. },
  6151. {
  6152. name = "LoadRenderTexture",
  6153. description = "Load texture for rendering (framebuffer)",
  6154. returnType = "RenderTexture2D",
  6155. params = {
  6156. {type = "int", name = "width"},
  6157. {type = "int", name = "height"}
  6158. }
  6159. },
  6160. {
  6161. name = "IsTextureReady",
  6162. description = "Check if a texture is ready",
  6163. returnType = "bool",
  6164. params = {
  6165. {type = "Texture2D", name = "texture"}
  6166. }
  6167. },
  6168. {
  6169. name = "UnloadTexture",
  6170. description = "Unload texture from GPU memory (VRAM)",
  6171. returnType = "void",
  6172. params = {
  6173. {type = "Texture2D", name = "texture"}
  6174. }
  6175. },
  6176. {
  6177. name = "IsRenderTextureReady",
  6178. description = "Check if a render texture is ready",
  6179. returnType = "bool",
  6180. params = {
  6181. {type = "RenderTexture2D", name = "target"}
  6182. }
  6183. },
  6184. {
  6185. name = "UnloadRenderTexture",
  6186. description = "Unload render texture from GPU memory (VRAM)",
  6187. returnType = "void",
  6188. params = {
  6189. {type = "RenderTexture2D", name = "target"}
  6190. }
  6191. },
  6192. {
  6193. name = "UpdateTexture",
  6194. description = "Update GPU texture with new data",
  6195. returnType = "void",
  6196. params = {
  6197. {type = "Texture2D", name = "texture"},
  6198. {type = "const void *", name = "pixels"}
  6199. }
  6200. },
  6201. {
  6202. name = "UpdateTextureRec",
  6203. description = "Update GPU texture rectangle with new data",
  6204. returnType = "void",
  6205. params = {
  6206. {type = "Texture2D", name = "texture"},
  6207. {type = "Rectangle", name = "rec"},
  6208. {type = "const void *", name = "pixels"}
  6209. }
  6210. },
  6211. {
  6212. name = "GenTextureMipmaps",
  6213. description = "Generate GPU mipmaps for a texture",
  6214. returnType = "void",
  6215. params = {
  6216. {type = "Texture2D *", name = "texture"}
  6217. }
  6218. },
  6219. {
  6220. name = "SetTextureFilter",
  6221. description = "Set texture scaling filter mode",
  6222. returnType = "void",
  6223. params = {
  6224. {type = "Texture2D", name = "texture"},
  6225. {type = "int", name = "filter"}
  6226. }
  6227. },
  6228. {
  6229. name = "SetTextureWrap",
  6230. description = "Set texture wrapping mode",
  6231. returnType = "void",
  6232. params = {
  6233. {type = "Texture2D", name = "texture"},
  6234. {type = "int", name = "wrap"}
  6235. }
  6236. },
  6237. {
  6238. name = "DrawTexture",
  6239. description = "Draw a Texture2D",
  6240. returnType = "void",
  6241. params = {
  6242. {type = "Texture2D", name = "texture"},
  6243. {type = "int", name = "posX"},
  6244. {type = "int", name = "posY"},
  6245. {type = "Color", name = "tint"}
  6246. }
  6247. },
  6248. {
  6249. name = "DrawTextureV",
  6250. description = "Draw a Texture2D with position defined as Vector2",
  6251. returnType = "void",
  6252. params = {
  6253. {type = "Texture2D", name = "texture"},
  6254. {type = "Vector2", name = "position"},
  6255. {type = "Color", name = "tint"}
  6256. }
  6257. },
  6258. {
  6259. name = "DrawTextureEx",
  6260. description = "Draw a Texture2D with extended parameters",
  6261. returnType = "void",
  6262. params = {
  6263. {type = "Texture2D", name = "texture"},
  6264. {type = "Vector2", name = "position"},
  6265. {type = "float", name = "rotation"},
  6266. {type = "float", name = "scale"},
  6267. {type = "Color", name = "tint"}
  6268. }
  6269. },
  6270. {
  6271. name = "DrawTextureRec",
  6272. description = "Draw a part of a texture defined by a rectangle",
  6273. returnType = "void",
  6274. params = {
  6275. {type = "Texture2D", name = "texture"},
  6276. {type = "Rectangle", name = "source"},
  6277. {type = "Vector2", name = "position"},
  6278. {type = "Color", name = "tint"}
  6279. }
  6280. },
  6281. {
  6282. name = "DrawTexturePro",
  6283. description = "Draw a part of a texture defined by a rectangle with 'pro' parameters",
  6284. returnType = "void",
  6285. params = {
  6286. {type = "Texture2D", name = "texture"},
  6287. {type = "Rectangle", name = "source"},
  6288. {type = "Rectangle", name = "dest"},
  6289. {type = "Vector2", name = "origin"},
  6290. {type = "float", name = "rotation"},
  6291. {type = "Color", name = "tint"}
  6292. }
  6293. },
  6294. {
  6295. name = "DrawTextureNPatch",
  6296. description = "Draws a texture (or part of it) that stretches or shrinks nicely",
  6297. returnType = "void",
  6298. params = {
  6299. {type = "Texture2D", name = "texture"},
  6300. {type = "NPatchInfo", name = "nPatchInfo"},
  6301. {type = "Rectangle", name = "dest"},
  6302. {type = "Vector2", name = "origin"},
  6303. {type = "float", name = "rotation"},
  6304. {type = "Color", name = "tint"}
  6305. }
  6306. },
  6307. {
  6308. name = "ColorIsEqual",
  6309. description = "Check if two colors are equal",
  6310. returnType = "bool",
  6311. params = {
  6312. {type = "Color", name = "col1"},
  6313. {type = "Color", name = "col2"}
  6314. }
  6315. },
  6316. {
  6317. name = "Fade",
  6318. description = "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
  6319. returnType = "Color",
  6320. params = {
  6321. {type = "Color", name = "color"},
  6322. {type = "float", name = "alpha"}
  6323. }
  6324. },
  6325. {
  6326. name = "ColorToInt",
  6327. description = "Get hexadecimal value for a Color (0xRRGGBBAA)",
  6328. returnType = "int",
  6329. params = {
  6330. {type = "Color", name = "color"}
  6331. }
  6332. },
  6333. {
  6334. name = "ColorNormalize",
  6335. description = "Get Color normalized as float [0..1]",
  6336. returnType = "Vector4",
  6337. params = {
  6338. {type = "Color", name = "color"}
  6339. }
  6340. },
  6341. {
  6342. name = "ColorFromNormalized",
  6343. description = "Get Color from normalized values [0..1]",
  6344. returnType = "Color",
  6345. params = {
  6346. {type = "Vector4", name = "normalized"}
  6347. }
  6348. },
  6349. {
  6350. name = "ColorToHSV",
  6351. description = "Get HSV values for a Color, hue [0..360], saturation/value [0..1]",
  6352. returnType = "Vector3",
  6353. params = {
  6354. {type = "Color", name = "color"}
  6355. }
  6356. },
  6357. {
  6358. name = "ColorFromHSV",
  6359. description = "Get a Color from HSV values, hue [0..360], saturation/value [0..1]",
  6360. returnType = "Color",
  6361. params = {
  6362. {type = "float", name = "hue"},
  6363. {type = "float", name = "saturation"},
  6364. {type = "float", name = "value"}
  6365. }
  6366. },
  6367. {
  6368. name = "ColorTint",
  6369. description = "Get color multiplied with another color",
  6370. returnType = "Color",
  6371. params = {
  6372. {type = "Color", name = "color"},
  6373. {type = "Color", name = "tint"}
  6374. }
  6375. },
  6376. {
  6377. name = "ColorBrightness",
  6378. description = "Get color with brightness correction, brightness factor goes from -1.0f to 1.0f",
  6379. returnType = "Color",
  6380. params = {
  6381. {type = "Color", name = "color"},
  6382. {type = "float", name = "factor"}
  6383. }
  6384. },
  6385. {
  6386. name = "ColorContrast",
  6387. description = "Get color with contrast correction, contrast values between -1.0f and 1.0f",
  6388. returnType = "Color",
  6389. params = {
  6390. {type = "Color", name = "color"},
  6391. {type = "float", name = "contrast"}
  6392. }
  6393. },
  6394. {
  6395. name = "ColorAlpha",
  6396. description = "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
  6397. returnType = "Color",
  6398. params = {
  6399. {type = "Color", name = "color"},
  6400. {type = "float", name = "alpha"}
  6401. }
  6402. },
  6403. {
  6404. name = "ColorAlphaBlend",
  6405. description = "Get src alpha-blended into dst color with tint",
  6406. returnType = "Color",
  6407. params = {
  6408. {type = "Color", name = "dst"},
  6409. {type = "Color", name = "src"},
  6410. {type = "Color", name = "tint"}
  6411. }
  6412. },
  6413. {
  6414. name = "ColorLerp",
  6415. description = "Get color lerp interpolation between two colors, factor [0.0f..1.0f]",
  6416. returnType = "Color",
  6417. params = {
  6418. {type = "Color", name = "color1"},
  6419. {type = "Color", name = "color2"},
  6420. {type = "float", name = "factor"}
  6421. }
  6422. },
  6423. {
  6424. name = "GetColor",
  6425. description = "Get Color structure from hexadecimal value",
  6426. returnType = "Color",
  6427. params = {
  6428. {type = "unsigned int", name = "hexValue"}
  6429. }
  6430. },
  6431. {
  6432. name = "GetPixelColor",
  6433. description = "Get Color from a source pixel pointer of certain format",
  6434. returnType = "Color",
  6435. params = {
  6436. {type = "void *", name = "srcPtr"},
  6437. {type = "int", name = "format"}
  6438. }
  6439. },
  6440. {
  6441. name = "SetPixelColor",
  6442. description = "Set color formatted into destination pixel pointer",
  6443. returnType = "void",
  6444. params = {
  6445. {type = "void *", name = "dstPtr"},
  6446. {type = "Color", name = "color"},
  6447. {type = "int", name = "format"}
  6448. }
  6449. },
  6450. {
  6451. name = "GetPixelDataSize",
  6452. description = "Get pixel data size in bytes for certain format",
  6453. returnType = "int",
  6454. params = {
  6455. {type = "int", name = "width"},
  6456. {type = "int", name = "height"},
  6457. {type = "int", name = "format"}
  6458. }
  6459. },
  6460. {
  6461. name = "GetFontDefault",
  6462. description = "Get the default Font",
  6463. returnType = "Font"
  6464. },
  6465. {
  6466. name = "LoadFont",
  6467. description = "Load font from file into GPU memory (VRAM)",
  6468. returnType = "Font",
  6469. params = {
  6470. {type = "const char *", name = "fileName"}
  6471. }
  6472. },
  6473. {
  6474. name = "LoadFontEx",
  6475. 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",
  6476. returnType = "Font",
  6477. params = {
  6478. {type = "const char *", name = "fileName"},
  6479. {type = "int", name = "fontSize"},
  6480. {type = "int *", name = "codepoints"},
  6481. {type = "int", name = "codepointCount"}
  6482. }
  6483. },
  6484. {
  6485. name = "LoadFontFromImage",
  6486. description = "Load font from Image (XNA style)",
  6487. returnType = "Font",
  6488. params = {
  6489. {type = "Image", name = "image"},
  6490. {type = "Color", name = "key"},
  6491. {type = "int", name = "firstChar"}
  6492. }
  6493. },
  6494. {
  6495. name = "LoadFontFromMemory",
  6496. description = "Load font from memory buffer, fileType refers to extension: i.e. '.ttf'",
  6497. returnType = "Font",
  6498. params = {
  6499. {type = "const char *", name = "fileType"},
  6500. {type = "const unsigned char *", name = "fileData"},
  6501. {type = "int", name = "dataSize"},
  6502. {type = "int", name = "fontSize"},
  6503. {type = "int *", name = "codepoints"},
  6504. {type = "int", name = "codepointCount"}
  6505. }
  6506. },
  6507. {
  6508. name = "IsFontReady",
  6509. description = "Check if a font is ready",
  6510. returnType = "bool",
  6511. params = {
  6512. {type = "Font", name = "font"}
  6513. }
  6514. },
  6515. {
  6516. name = "LoadFontData",
  6517. description = "Load font data for further use",
  6518. returnType = "GlyphInfo *",
  6519. params = {
  6520. {type = "const unsigned char *", name = "fileData"},
  6521. {type = "int", name = "dataSize"},
  6522. {type = "int", name = "fontSize"},
  6523. {type = "int *", name = "codepoints"},
  6524. {type = "int", name = "codepointCount"},
  6525. {type = "int", name = "type"}
  6526. }
  6527. },
  6528. {
  6529. name = "GenImageFontAtlas",
  6530. description = "Generate image font atlas using chars info",
  6531. returnType = "Image",
  6532. params = {
  6533. {type = "const GlyphInfo *", name = "glyphs"},
  6534. {type = "Rectangle **", name = "glyphRecs"},
  6535. {type = "int", name = "glyphCount"},
  6536. {type = "int", name = "fontSize"},
  6537. {type = "int", name = "padding"},
  6538. {type = "int", name = "packMethod"}
  6539. }
  6540. },
  6541. {
  6542. name = "UnloadFontData",
  6543. description = "Unload font chars info data (RAM)",
  6544. returnType = "void",
  6545. params = {
  6546. {type = "GlyphInfo *", name = "glyphs"},
  6547. {type = "int", name = "glyphCount"}
  6548. }
  6549. },
  6550. {
  6551. name = "UnloadFont",
  6552. description = "Unload font from GPU memory (VRAM)",
  6553. returnType = "void",
  6554. params = {
  6555. {type = "Font", name = "font"}
  6556. }
  6557. },
  6558. {
  6559. name = "ExportFontAsCode",
  6560. description = "Export font as code file, returns true on success",
  6561. returnType = "bool",
  6562. params = {
  6563. {type = "Font", name = "font"},
  6564. {type = "const char *", name = "fileName"}
  6565. }
  6566. },
  6567. {
  6568. name = "DrawFPS",
  6569. description = "Draw current FPS",
  6570. returnType = "void",
  6571. params = {
  6572. {type = "int", name = "posX"},
  6573. {type = "int", name = "posY"}
  6574. }
  6575. },
  6576. {
  6577. name = "DrawText",
  6578. description = "Draw text (using default font)",
  6579. returnType = "void",
  6580. params = {
  6581. {type = "const char *", name = "text"},
  6582. {type = "int", name = "posX"},
  6583. {type = "int", name = "posY"},
  6584. {type = "int", name = "fontSize"},
  6585. {type = "Color", name = "color"}
  6586. }
  6587. },
  6588. {
  6589. name = "DrawTextEx",
  6590. description = "Draw text using font and additional parameters",
  6591. returnType = "void",
  6592. params = {
  6593. {type = "Font", name = "font"},
  6594. {type = "const char *", name = "text"},
  6595. {type = "Vector2", name = "position"},
  6596. {type = "float", name = "fontSize"},
  6597. {type = "float", name = "spacing"},
  6598. {type = "Color", name = "tint"}
  6599. }
  6600. },
  6601. {
  6602. name = "DrawTextPro",
  6603. description = "Draw text using Font and pro parameters (rotation)",
  6604. returnType = "void",
  6605. params = {
  6606. {type = "Font", name = "font"},
  6607. {type = "const char *", name = "text"},
  6608. {type = "Vector2", name = "position"},
  6609. {type = "Vector2", name = "origin"},
  6610. {type = "float", name = "rotation"},
  6611. {type = "float", name = "fontSize"},
  6612. {type = "float", name = "spacing"},
  6613. {type = "Color", name = "tint"}
  6614. }
  6615. },
  6616. {
  6617. name = "DrawTextCodepoint",
  6618. description = "Draw one character (codepoint)",
  6619. returnType = "void",
  6620. params = {
  6621. {type = "Font", name = "font"},
  6622. {type = "int", name = "codepoint"},
  6623. {type = "Vector2", name = "position"},
  6624. {type = "float", name = "fontSize"},
  6625. {type = "Color", name = "tint"}
  6626. }
  6627. },
  6628. {
  6629. name = "DrawTextCodepoints",
  6630. description = "Draw multiple character (codepoint)",
  6631. returnType = "void",
  6632. params = {
  6633. {type = "Font", name = "font"},
  6634. {type = "const int *", name = "codepoints"},
  6635. {type = "int", name = "codepointCount"},
  6636. {type = "Vector2", name = "position"},
  6637. {type = "float", name = "fontSize"},
  6638. {type = "float", name = "spacing"},
  6639. {type = "Color", name = "tint"}
  6640. }
  6641. },
  6642. {
  6643. name = "SetTextLineSpacing",
  6644. description = "Set vertical line spacing when drawing with line-breaks",
  6645. returnType = "void",
  6646. params = {
  6647. {type = "int", name = "spacing"}
  6648. }
  6649. },
  6650. {
  6651. name = "MeasureText",
  6652. description = "Measure string width for default font",
  6653. returnType = "int",
  6654. params = {
  6655. {type = "const char *", name = "text"},
  6656. {type = "int", name = "fontSize"}
  6657. }
  6658. },
  6659. {
  6660. name = "MeasureTextEx",
  6661. description = "Measure string size for Font",
  6662. returnType = "Vector2",
  6663. params = {
  6664. {type = "Font", name = "font"},
  6665. {type = "const char *", name = "text"},
  6666. {type = "float", name = "fontSize"},
  6667. {type = "float", name = "spacing"}
  6668. }
  6669. },
  6670. {
  6671. name = "GetGlyphIndex",
  6672. description = "Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found",
  6673. returnType = "int",
  6674. params = {
  6675. {type = "Font", name = "font"},
  6676. {type = "int", name = "codepoint"}
  6677. }
  6678. },
  6679. {
  6680. name = "GetGlyphInfo",
  6681. description = "Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found",
  6682. returnType = "GlyphInfo",
  6683. params = {
  6684. {type = "Font", name = "font"},
  6685. {type = "int", name = "codepoint"}
  6686. }
  6687. },
  6688. {
  6689. name = "GetGlyphAtlasRec",
  6690. description = "Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found",
  6691. returnType = "Rectangle",
  6692. params = {
  6693. {type = "Font", name = "font"},
  6694. {type = "int", name = "codepoint"}
  6695. }
  6696. },
  6697. {
  6698. name = "LoadUTF8",
  6699. description = "Load UTF-8 text encoded from codepoints array",
  6700. returnType = "char *",
  6701. params = {
  6702. {type = "const int *", name = "codepoints"},
  6703. {type = "int", name = "length"}
  6704. }
  6705. },
  6706. {
  6707. name = "UnloadUTF8",
  6708. description = "Unload UTF-8 text encoded from codepoints array",
  6709. returnType = "void",
  6710. params = {
  6711. {type = "char *", name = "text"}
  6712. }
  6713. },
  6714. {
  6715. name = "LoadCodepoints",
  6716. description = "Load all codepoints from a UTF-8 text string, codepoints count returned by parameter",
  6717. returnType = "int *",
  6718. params = {
  6719. {type = "const char *", name = "text"},
  6720. {type = "int *", name = "count"}
  6721. }
  6722. },
  6723. {
  6724. name = "UnloadCodepoints",
  6725. description = "Unload codepoints data from memory",
  6726. returnType = "void",
  6727. params = {
  6728. {type = "int *", name = "codepoints"}
  6729. }
  6730. },
  6731. {
  6732. name = "GetCodepointCount",
  6733. description = "Get total number of codepoints in a UTF-8 encoded string",
  6734. returnType = "int",
  6735. params = {
  6736. {type = "const char *", name = "text"}
  6737. }
  6738. },
  6739. {
  6740. name = "GetCodepoint",
  6741. description = "Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
  6742. returnType = "int",
  6743. params = {
  6744. {type = "const char *", name = "text"},
  6745. {type = "int *", name = "codepointSize"}
  6746. }
  6747. },
  6748. {
  6749. name = "GetCodepointNext",
  6750. description = "Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure",
  6751. returnType = "int",
  6752. params = {
  6753. {type = "const char *", name = "text"},
  6754. {type = "int *", name = "codepointSize"}
  6755. }
  6756. },
  6757. {
  6758. name = "GetCodepointPrevious",
  6759. description = "Get previous 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 = "CodepointToUTF8",
  6768. description = "Encode one codepoint into UTF-8 byte array (array length returned as parameter)",
  6769. returnType = "const char *",
  6770. params = {
  6771. {type = "int", name = "codepoint"},
  6772. {type = "int *", name = "utf8Size"}
  6773. }
  6774. },
  6775. {
  6776. name = "TextCopy",
  6777. description = "Copy one string to another, returns bytes copied",
  6778. returnType = "int",
  6779. params = {
  6780. {type = "char *", name = "dst"},
  6781. {type = "const char *", name = "src"}
  6782. }
  6783. },
  6784. {
  6785. name = "TextIsEqual",
  6786. description = "Check if two text string are equal",
  6787. returnType = "bool",
  6788. params = {
  6789. {type = "const char *", name = "text1"},
  6790. {type = "const char *", name = "text2"}
  6791. }
  6792. },
  6793. {
  6794. name = "TextLength",
  6795. description = "Get text length, checks for '\\0' ending",
  6796. returnType = "unsigned int",
  6797. params = {
  6798. {type = "const char *", name = "text"}
  6799. }
  6800. },
  6801. {
  6802. name = "TextFormat",
  6803. description = "Text formatting with variables (sprintf() style)",
  6804. returnType = "const char *",
  6805. params = {
  6806. {type = "const char *", name = "text"},
  6807. {type = "...", name = "args"}
  6808. }
  6809. },
  6810. {
  6811. name = "TextSubtext",
  6812. description = "Get a piece of a text string",
  6813. returnType = "const char *",
  6814. params = {
  6815. {type = "const char *", name = "text"},
  6816. {type = "int", name = "position"},
  6817. {type = "int", name = "length"}
  6818. }
  6819. },
  6820. {
  6821. name = "TextReplace",
  6822. description = "Replace text string (WARNING: memory must be freed!)",
  6823. returnType = "char *",
  6824. params = {
  6825. {type = "const char *", name = "text"},
  6826. {type = "const char *", name = "replace"},
  6827. {type = "const char *", name = "by"}
  6828. }
  6829. },
  6830. {
  6831. name = "TextInsert",
  6832. description = "Insert text in a position (WARNING: memory must be freed!)",
  6833. returnType = "char *",
  6834. params = {
  6835. {type = "const char *", name = "text"},
  6836. {type = "const char *", name = "insert"},
  6837. {type = "int", name = "position"}
  6838. }
  6839. },
  6840. {
  6841. name = "TextJoin",
  6842. description = "Join text strings with delimiter",
  6843. returnType = "const char *",
  6844. params = {
  6845. {type = "const char **", name = "textList"},
  6846. {type = "int", name = "count"},
  6847. {type = "const char *", name = "delimiter"}
  6848. }
  6849. },
  6850. {
  6851. name = "TextSplit",
  6852. description = "Split text into multiple strings",
  6853. returnType = "const char **",
  6854. params = {
  6855. {type = "const char *", name = "text"},
  6856. {type = "char", name = "delimiter"},
  6857. {type = "int *", name = "count"}
  6858. }
  6859. },
  6860. {
  6861. name = "TextAppend",
  6862. description = "Append text at specific position and move cursor!",
  6863. returnType = "void",
  6864. params = {
  6865. {type = "char *", name = "text"},
  6866. {type = "const char *", name = "append"},
  6867. {type = "int *", name = "position"}
  6868. }
  6869. },
  6870. {
  6871. name = "TextFindIndex",
  6872. description = "Find first text occurrence within a string",
  6873. returnType = "int",
  6874. params = {
  6875. {type = "const char *", name = "text"},
  6876. {type = "const char *", name = "find"}
  6877. }
  6878. },
  6879. {
  6880. name = "TextToUpper",
  6881. description = "Get upper case version of provided string",
  6882. returnType = "const char *",
  6883. params = {
  6884. {type = "const char *", name = "text"}
  6885. }
  6886. },
  6887. {
  6888. name = "TextToLower",
  6889. description = "Get lower case version of provided string",
  6890. returnType = "const char *",
  6891. params = {
  6892. {type = "const char *", name = "text"}
  6893. }
  6894. },
  6895. {
  6896. name = "TextToPascal",
  6897. description = "Get Pascal case notation version of provided string",
  6898. returnType = "const char *",
  6899. params = {
  6900. {type = "const char *", name = "text"}
  6901. }
  6902. },
  6903. {
  6904. name = "TextToSnake",
  6905. description = "Get Snake case notation version of provided string",
  6906. returnType = "const char *",
  6907. params = {
  6908. {type = "const char *", name = "text"}
  6909. }
  6910. },
  6911. {
  6912. name = "TextToCamel",
  6913. description = "Get Camel case notation version of provided string",
  6914. returnType = "const char *",
  6915. params = {
  6916. {type = "const char *", name = "text"}
  6917. }
  6918. },
  6919. {
  6920. name = "TextToInteger",
  6921. description = "Get integer value from text (negative values not supported)",
  6922. returnType = "int",
  6923. params = {
  6924. {type = "const char *", name = "text"}
  6925. }
  6926. },
  6927. {
  6928. name = "TextToFloat",
  6929. description = "Get float value from text (negative values not supported)",
  6930. returnType = "float",
  6931. params = {
  6932. {type = "const char *", name = "text"}
  6933. }
  6934. },
  6935. {
  6936. name = "DrawLine3D",
  6937. description = "Draw a line in 3D world space",
  6938. returnType = "void",
  6939. params = {
  6940. {type = "Vector3", name = "startPos"},
  6941. {type = "Vector3", name = "endPos"},
  6942. {type = "Color", name = "color"}
  6943. }
  6944. },
  6945. {
  6946. name = "DrawPoint3D",
  6947. description = "Draw a point in 3D space, actually a small line",
  6948. returnType = "void",
  6949. params = {
  6950. {type = "Vector3", name = "position"},
  6951. {type = "Color", name = "color"}
  6952. }
  6953. },
  6954. {
  6955. name = "DrawCircle3D",
  6956. description = "Draw a circle in 3D world space",
  6957. returnType = "void",
  6958. params = {
  6959. {type = "Vector3", name = "center"},
  6960. {type = "float", name = "radius"},
  6961. {type = "Vector3", name = "rotationAxis"},
  6962. {type = "float", name = "rotationAngle"},
  6963. {type = "Color", name = "color"}
  6964. }
  6965. },
  6966. {
  6967. name = "DrawTriangle3D",
  6968. description = "Draw a color-filled triangle (vertex in counter-clockwise order!)",
  6969. returnType = "void",
  6970. params = {
  6971. {type = "Vector3", name = "v1"},
  6972. {type = "Vector3", name = "v2"},
  6973. {type = "Vector3", name = "v3"},
  6974. {type = "Color", name = "color"}
  6975. }
  6976. },
  6977. {
  6978. name = "DrawTriangleStrip3D",
  6979. description = "Draw a triangle strip defined by points",
  6980. returnType = "void",
  6981. params = {
  6982. {type = "const Vector3 *", name = "points"},
  6983. {type = "int", name = "pointCount"},
  6984. {type = "Color", name = "color"}
  6985. }
  6986. },
  6987. {
  6988. name = "DrawCube",
  6989. description = "Draw cube",
  6990. returnType = "void",
  6991. params = {
  6992. {type = "Vector3", name = "position"},
  6993. {type = "float", name = "width"},
  6994. {type = "float", name = "height"},
  6995. {type = "float", name = "length"},
  6996. {type = "Color", name = "color"}
  6997. }
  6998. },
  6999. {
  7000. name = "DrawCubeV",
  7001. description = "Draw cube (Vector version)",
  7002. returnType = "void",
  7003. params = {
  7004. {type = "Vector3", name = "position"},
  7005. {type = "Vector3", name = "size"},
  7006. {type = "Color", name = "color"}
  7007. }
  7008. },
  7009. {
  7010. name = "DrawCubeWires",
  7011. description = "Draw cube wires",
  7012. returnType = "void",
  7013. params = {
  7014. {type = "Vector3", name = "position"},
  7015. {type = "float", name = "width"},
  7016. {type = "float", name = "height"},
  7017. {type = "float", name = "length"},
  7018. {type = "Color", name = "color"}
  7019. }
  7020. },
  7021. {
  7022. name = "DrawCubeWiresV",
  7023. description = "Draw cube wires (Vector version)",
  7024. returnType = "void",
  7025. params = {
  7026. {type = "Vector3", name = "position"},
  7027. {type = "Vector3", name = "size"},
  7028. {type = "Color", name = "color"}
  7029. }
  7030. },
  7031. {
  7032. name = "DrawSphere",
  7033. description = "Draw sphere",
  7034. returnType = "void",
  7035. params = {
  7036. {type = "Vector3", name = "centerPos"},
  7037. {type = "float", name = "radius"},
  7038. {type = "Color", name = "color"}
  7039. }
  7040. },
  7041. {
  7042. name = "DrawSphereEx",
  7043. description = "Draw sphere with extended parameters",
  7044. returnType = "void",
  7045. params = {
  7046. {type = "Vector3", name = "centerPos"},
  7047. {type = "float", name = "radius"},
  7048. {type = "int", name = "rings"},
  7049. {type = "int", name = "slices"},
  7050. {type = "Color", name = "color"}
  7051. }
  7052. },
  7053. {
  7054. name = "DrawSphereWires",
  7055. description = "Draw sphere wires",
  7056. returnType = "void",
  7057. params = {
  7058. {type = "Vector3", name = "centerPos"},
  7059. {type = "float", name = "radius"},
  7060. {type = "int", name = "rings"},
  7061. {type = "int", name = "slices"},
  7062. {type = "Color", name = "color"}
  7063. }
  7064. },
  7065. {
  7066. name = "DrawCylinder",
  7067. description = "Draw a cylinder/cone",
  7068. returnType = "void",
  7069. params = {
  7070. {type = "Vector3", name = "position"},
  7071. {type = "float", name = "radiusTop"},
  7072. {type = "float", name = "radiusBottom"},
  7073. {type = "float", name = "height"},
  7074. {type = "int", name = "slices"},
  7075. {type = "Color", name = "color"}
  7076. }
  7077. },
  7078. {
  7079. name = "DrawCylinderEx",
  7080. description = "Draw a cylinder with base at startPos and top at endPos",
  7081. returnType = "void",
  7082. params = {
  7083. {type = "Vector3", name = "startPos"},
  7084. {type = "Vector3", name = "endPos"},
  7085. {type = "float", name = "startRadius"},
  7086. {type = "float", name = "endRadius"},
  7087. {type = "int", name = "sides"},
  7088. {type = "Color", name = "color"}
  7089. }
  7090. },
  7091. {
  7092. name = "DrawCylinderWires",
  7093. description = "Draw a cylinder/cone wires",
  7094. returnType = "void",
  7095. params = {
  7096. {type = "Vector3", name = "position"},
  7097. {type = "float", name = "radiusTop"},
  7098. {type = "float", name = "radiusBottom"},
  7099. {type = "float", name = "height"},
  7100. {type = "int", name = "slices"},
  7101. {type = "Color", name = "color"}
  7102. }
  7103. },
  7104. {
  7105. name = "DrawCylinderWiresEx",
  7106. description = "Draw a cylinder wires with base at startPos and top at endPos",
  7107. returnType = "void",
  7108. params = {
  7109. {type = "Vector3", name = "startPos"},
  7110. {type = "Vector3", name = "endPos"},
  7111. {type = "float", name = "startRadius"},
  7112. {type = "float", name = "endRadius"},
  7113. {type = "int", name = "sides"},
  7114. {type = "Color", name = "color"}
  7115. }
  7116. },
  7117. {
  7118. name = "DrawCapsule",
  7119. description = "Draw a capsule with the center of its sphere caps at startPos and endPos",
  7120. returnType = "void",
  7121. params = {
  7122. {type = "Vector3", name = "startPos"},
  7123. {type = "Vector3", name = "endPos"},
  7124. {type = "float", name = "radius"},
  7125. {type = "int", name = "slices"},
  7126. {type = "int", name = "rings"},
  7127. {type = "Color", name = "color"}
  7128. }
  7129. },
  7130. {
  7131. name = "DrawCapsuleWires",
  7132. description = "Draw capsule wireframe with the center of its sphere caps at startPos and endPos",
  7133. returnType = "void",
  7134. params = {
  7135. {type = "Vector3", name = "startPos"},
  7136. {type = "Vector3", name = "endPos"},
  7137. {type = "float", name = "radius"},
  7138. {type = "int", name = "slices"},
  7139. {type = "int", name = "rings"},
  7140. {type = "Color", name = "color"}
  7141. }
  7142. },
  7143. {
  7144. name = "DrawPlane",
  7145. description = "Draw a plane XZ",
  7146. returnType = "void",
  7147. params = {
  7148. {type = "Vector3", name = "centerPos"},
  7149. {type = "Vector2", name = "size"},
  7150. {type = "Color", name = "color"}
  7151. }
  7152. },
  7153. {
  7154. name = "DrawRay",
  7155. description = "Draw a ray line",
  7156. returnType = "void",
  7157. params = {
  7158. {type = "Ray", name = "ray"},
  7159. {type = "Color", name = "color"}
  7160. }
  7161. },
  7162. {
  7163. name = "DrawGrid",
  7164. description = "Draw a grid (centered at (0, 0, 0))",
  7165. returnType = "void",
  7166. params = {
  7167. {type = "int", name = "slices"},
  7168. {type = "float", name = "spacing"}
  7169. }
  7170. },
  7171. {
  7172. name = "LoadModel",
  7173. description = "Load model from files (meshes and materials)",
  7174. returnType = "Model",
  7175. params = {
  7176. {type = "const char *", name = "fileName"}
  7177. }
  7178. },
  7179. {
  7180. name = "LoadModelFromMesh",
  7181. description = "Load model from generated mesh (default material)",
  7182. returnType = "Model",
  7183. params = {
  7184. {type = "Mesh", name = "mesh"}
  7185. }
  7186. },
  7187. {
  7188. name = "IsModelReady",
  7189. description = "Check if a model is ready",
  7190. returnType = "bool",
  7191. params = {
  7192. {type = "Model", name = "model"}
  7193. }
  7194. },
  7195. {
  7196. name = "UnloadModel",
  7197. description = "Unload model (including meshes) from memory (RAM and/or VRAM)",
  7198. returnType = "void",
  7199. params = {
  7200. {type = "Model", name = "model"}
  7201. }
  7202. },
  7203. {
  7204. name = "GetModelBoundingBox",
  7205. description = "Compute model bounding box limits (considers all meshes)",
  7206. returnType = "BoundingBox",
  7207. params = {
  7208. {type = "Model", name = "model"}
  7209. }
  7210. },
  7211. {
  7212. name = "DrawModel",
  7213. description = "Draw a model (with texture if set)",
  7214. returnType = "void",
  7215. params = {
  7216. {type = "Model", name = "model"},
  7217. {type = "Vector3", name = "position"},
  7218. {type = "float", name = "scale"},
  7219. {type = "Color", name = "tint"}
  7220. }
  7221. },
  7222. {
  7223. name = "DrawModelEx",
  7224. description = "Draw a model with extended parameters",
  7225. returnType = "void",
  7226. params = {
  7227. {type = "Model", name = "model"},
  7228. {type = "Vector3", name = "position"},
  7229. {type = "Vector3", name = "rotationAxis"},
  7230. {type = "float", name = "rotationAngle"},
  7231. {type = "Vector3", name = "scale"},
  7232. {type = "Color", name = "tint"}
  7233. }
  7234. },
  7235. {
  7236. name = "DrawModelWires",
  7237. description = "Draw a model wires (with texture if set)",
  7238. returnType = "void",
  7239. params = {
  7240. {type = "Model", name = "model"},
  7241. {type = "Vector3", name = "position"},
  7242. {type = "float", name = "scale"},
  7243. {type = "Color", name = "tint"}
  7244. }
  7245. },
  7246. {
  7247. name = "DrawModelWiresEx",
  7248. description = "Draw a model wires (with texture if set) with extended parameters",
  7249. returnType = "void",
  7250. params = {
  7251. {type = "Model", name = "model"},
  7252. {type = "Vector3", name = "position"},
  7253. {type = "Vector3", name = "rotationAxis"},
  7254. {type = "float", name = "rotationAngle"},
  7255. {type = "Vector3", name = "scale"},
  7256. {type = "Color", name = "tint"}
  7257. }
  7258. },
  7259. {
  7260. name = "DrawModelPoints",
  7261. description = "Draw a model as points",
  7262. returnType = "void",
  7263. params = {
  7264. {type = "Model", name = "model"},
  7265. {type = "Vector3", name = "position"},
  7266. {type = "float", name = "scale"},
  7267. {type = "Color", name = "tint"}
  7268. }
  7269. },
  7270. {
  7271. name = "DrawModelPointsEx",
  7272. description = "Draw a model as points with extended parameters",
  7273. returnType = "void",
  7274. params = {
  7275. {type = "Model", name = "model"},
  7276. {type = "Vector3", name = "position"},
  7277. {type = "Vector3", name = "rotationAxis"},
  7278. {type = "float", name = "rotationAngle"},
  7279. {type = "Vector3", name = "scale"},
  7280. {type = "Color", name = "tint"}
  7281. }
  7282. },
  7283. {
  7284. name = "DrawBoundingBox",
  7285. description = "Draw bounding box (wires)",
  7286. returnType = "void",
  7287. params = {
  7288. {type = "BoundingBox", name = "box"},
  7289. {type = "Color", name = "color"}
  7290. }
  7291. },
  7292. {
  7293. name = "DrawBillboard",
  7294. description = "Draw a billboard texture",
  7295. returnType = "void",
  7296. params = {
  7297. {type = "Camera", name = "camera"},
  7298. {type = "Texture2D", name = "texture"},
  7299. {type = "Vector3", name = "position"},
  7300. {type = "float", name = "scale"},
  7301. {type = "Color", name = "tint"}
  7302. }
  7303. },
  7304. {
  7305. name = "DrawBillboardRec",
  7306. description = "Draw a billboard texture defined by source",
  7307. returnType = "void",
  7308. params = {
  7309. {type = "Camera", name = "camera"},
  7310. {type = "Texture2D", name = "texture"},
  7311. {type = "Rectangle", name = "source"},
  7312. {type = "Vector3", name = "position"},
  7313. {type = "Vector2", name = "size"},
  7314. {type = "Color", name = "tint"}
  7315. }
  7316. },
  7317. {
  7318. name = "DrawBillboardPro",
  7319. description = "Draw a billboard texture defined by source and rotation",
  7320. returnType = "void",
  7321. params = {
  7322. {type = "Camera", name = "camera"},
  7323. {type = "Texture2D", name = "texture"},
  7324. {type = "Rectangle", name = "source"},
  7325. {type = "Vector3", name = "position"},
  7326. {type = "Vector3", name = "up"},
  7327. {type = "Vector2", name = "size"},
  7328. {type = "Vector2", name = "origin"},
  7329. {type = "float", name = "rotation"},
  7330. {type = "Color", name = "tint"}
  7331. }
  7332. },
  7333. {
  7334. name = "UploadMesh",
  7335. description = "Upload mesh vertex data in GPU and provide VAO/VBO ids",
  7336. returnType = "void",
  7337. params = {
  7338. {type = "Mesh *", name = "mesh"},
  7339. {type = "bool", name = "dynamic"}
  7340. }
  7341. },
  7342. {
  7343. name = "UpdateMeshBuffer",
  7344. description = "Update mesh vertex data in GPU for a specific buffer index",
  7345. returnType = "void",
  7346. params = {
  7347. {type = "Mesh", name = "mesh"},
  7348. {type = "int", name = "index"},
  7349. {type = "const void *", name = "data"},
  7350. {type = "int", name = "dataSize"},
  7351. {type = "int", name = "offset"}
  7352. }
  7353. },
  7354. {
  7355. name = "UnloadMesh",
  7356. description = "Unload mesh data from CPU and GPU",
  7357. returnType = "void",
  7358. params = {
  7359. {type = "Mesh", name = "mesh"}
  7360. }
  7361. },
  7362. {
  7363. name = "DrawMesh",
  7364. description = "Draw a 3d mesh with material and transform",
  7365. returnType = "void",
  7366. params = {
  7367. {type = "Mesh", name = "mesh"},
  7368. {type = "Material", name = "material"},
  7369. {type = "Matrix", name = "transform"}
  7370. }
  7371. },
  7372. {
  7373. name = "DrawMeshInstanced",
  7374. description = "Draw multiple mesh instances with material and different transforms",
  7375. returnType = "void",
  7376. params = {
  7377. {type = "Mesh", name = "mesh"},
  7378. {type = "Material", name = "material"},
  7379. {type = "const Matrix *", name = "transforms"},
  7380. {type = "int", name = "instances"}
  7381. }
  7382. },
  7383. {
  7384. name = "GetMeshBoundingBox",
  7385. description = "Compute mesh bounding box limits",
  7386. returnType = "BoundingBox",
  7387. params = {
  7388. {type = "Mesh", name = "mesh"}
  7389. }
  7390. },
  7391. {
  7392. name = "GenMeshTangents",
  7393. description = "Compute mesh tangents",
  7394. returnType = "void",
  7395. params = {
  7396. {type = "Mesh *", name = "mesh"}
  7397. }
  7398. },
  7399. {
  7400. name = "ExportMesh",
  7401. description = "Export mesh data to file, returns true on success",
  7402. returnType = "bool",
  7403. params = {
  7404. {type = "Mesh", name = "mesh"},
  7405. {type = "const char *", name = "fileName"}
  7406. }
  7407. },
  7408. {
  7409. name = "ExportMeshAsCode",
  7410. description = "Export mesh as code file (.h) defining multiple arrays of vertex attributes",
  7411. returnType = "bool",
  7412. params = {
  7413. {type = "Mesh", name = "mesh"},
  7414. {type = "const char *", name = "fileName"}
  7415. }
  7416. },
  7417. {
  7418. name = "GenMeshPoly",
  7419. description = "Generate polygonal mesh",
  7420. returnType = "Mesh",
  7421. params = {
  7422. {type = "int", name = "sides"},
  7423. {type = "float", name = "radius"}
  7424. }
  7425. },
  7426. {
  7427. name = "GenMeshPlane",
  7428. description = "Generate plane mesh (with subdivisions)",
  7429. returnType = "Mesh",
  7430. params = {
  7431. {type = "float", name = "width"},
  7432. {type = "float", name = "length"},
  7433. {type = "int", name = "resX"},
  7434. {type = "int", name = "resZ"}
  7435. }
  7436. },
  7437. {
  7438. name = "GenMeshCube",
  7439. description = "Generate cuboid mesh",
  7440. returnType = "Mesh",
  7441. params = {
  7442. {type = "float", name = "width"},
  7443. {type = "float", name = "height"},
  7444. {type = "float", name = "length"}
  7445. }
  7446. },
  7447. {
  7448. name = "GenMeshSphere",
  7449. description = "Generate sphere mesh (standard sphere)",
  7450. returnType = "Mesh",
  7451. params = {
  7452. {type = "float", name = "radius"},
  7453. {type = "int", name = "rings"},
  7454. {type = "int", name = "slices"}
  7455. }
  7456. },
  7457. {
  7458. name = "GenMeshHemiSphere",
  7459. description = "Generate half-sphere mesh (no bottom cap)",
  7460. returnType = "Mesh",
  7461. params = {
  7462. {type = "float", name = "radius"},
  7463. {type = "int", name = "rings"},
  7464. {type = "int", name = "slices"}
  7465. }
  7466. },
  7467. {
  7468. name = "GenMeshCylinder",
  7469. description = "Generate cylinder mesh",
  7470. returnType = "Mesh",
  7471. params = {
  7472. {type = "float", name = "radius"},
  7473. {type = "float", name = "height"},
  7474. {type = "int", name = "slices"}
  7475. }
  7476. },
  7477. {
  7478. name = "GenMeshCone",
  7479. description = "Generate cone/pyramid mesh",
  7480. returnType = "Mesh",
  7481. params = {
  7482. {type = "float", name = "radius"},
  7483. {type = "float", name = "height"},
  7484. {type = "int", name = "slices"}
  7485. }
  7486. },
  7487. {
  7488. name = "GenMeshTorus",
  7489. description = "Generate torus mesh",
  7490. returnType = "Mesh",
  7491. params = {
  7492. {type = "float", name = "radius"},
  7493. {type = "float", name = "size"},
  7494. {type = "int", name = "radSeg"},
  7495. {type = "int", name = "sides"}
  7496. }
  7497. },
  7498. {
  7499. name = "GenMeshKnot",
  7500. description = "Generate trefoil knot mesh",
  7501. returnType = "Mesh",
  7502. params = {
  7503. {type = "float", name = "radius"},
  7504. {type = "float", name = "size"},
  7505. {type = "int", name = "radSeg"},
  7506. {type = "int", name = "sides"}
  7507. }
  7508. },
  7509. {
  7510. name = "GenMeshHeightmap",
  7511. description = "Generate heightmap mesh from image data",
  7512. returnType = "Mesh",
  7513. params = {
  7514. {type = "Image", name = "heightmap"},
  7515. {type = "Vector3", name = "size"}
  7516. }
  7517. },
  7518. {
  7519. name = "GenMeshCubicmap",
  7520. description = "Generate cubes-based map mesh from image data",
  7521. returnType = "Mesh",
  7522. params = {
  7523. {type = "Image", name = "cubicmap"},
  7524. {type = "Vector3", name = "cubeSize"}
  7525. }
  7526. },
  7527. {
  7528. name = "LoadMaterials",
  7529. description = "Load materials from model file",
  7530. returnType = "Material *",
  7531. params = {
  7532. {type = "const char *", name = "fileName"},
  7533. {type = "int *", name = "materialCount"}
  7534. }
  7535. },
  7536. {
  7537. name = "LoadMaterialDefault",
  7538. description = "Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)",
  7539. returnType = "Material"
  7540. },
  7541. {
  7542. name = "IsMaterialReady",
  7543. description = "Check if a material is ready",
  7544. returnType = "bool",
  7545. params = {
  7546. {type = "Material", name = "material"}
  7547. }
  7548. },
  7549. {
  7550. name = "UnloadMaterial",
  7551. description = "Unload material from GPU memory (VRAM)",
  7552. returnType = "void",
  7553. params = {
  7554. {type = "Material", name = "material"}
  7555. }
  7556. },
  7557. {
  7558. name = "SetMaterialTexture",
  7559. description = "Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)",
  7560. returnType = "void",
  7561. params = {
  7562. {type = "Material *", name = "material"},
  7563. {type = "int", name = "mapType"},
  7564. {type = "Texture2D", name = "texture"}
  7565. }
  7566. },
  7567. {
  7568. name = "SetModelMeshMaterial",
  7569. description = "Set material for a mesh",
  7570. returnType = "void",
  7571. params = {
  7572. {type = "Model *", name = "model"},
  7573. {type = "int", name = "meshId"},
  7574. {type = "int", name = "materialId"}
  7575. }
  7576. },
  7577. {
  7578. name = "LoadModelAnimations",
  7579. description = "Load model animations from file",
  7580. returnType = "ModelAnimation *",
  7581. params = {
  7582. {type = "const char *", name = "fileName"},
  7583. {type = "int *", name = "animCount"}
  7584. }
  7585. },
  7586. {
  7587. name = "UpdateModelAnimation",
  7588. description = "Update model animation pose",
  7589. returnType = "void",
  7590. params = {
  7591. {type = "Model", name = "model"},
  7592. {type = "ModelAnimation", name = "anim"},
  7593. {type = "int", name = "frame"}
  7594. }
  7595. },
  7596. {
  7597. name = "UnloadModelAnimation",
  7598. description = "Unload animation data",
  7599. returnType = "void",
  7600. params = {
  7601. {type = "ModelAnimation", name = "anim"}
  7602. }
  7603. },
  7604. {
  7605. name = "UnloadModelAnimations",
  7606. description = "Unload animation array data",
  7607. returnType = "void",
  7608. params = {
  7609. {type = "ModelAnimation *", name = "animations"},
  7610. {type = "int", name = "animCount"}
  7611. }
  7612. },
  7613. {
  7614. name = "IsModelAnimationValid",
  7615. description = "Check model animation skeleton match",
  7616. returnType = "bool",
  7617. params = {
  7618. {type = "Model", name = "model"},
  7619. {type = "ModelAnimation", name = "anim"}
  7620. }
  7621. },
  7622. {
  7623. name = "UpdateModelAnimationBoneMatrices",
  7624. description = "Update model animation mesh bone matrices",
  7625. returnType = "void",
  7626. params = {
  7627. {type = "Model", name = "model"},
  7628. {type = "ModelAnimation", name = "anim"},
  7629. {type = "int", name = "frame"}
  7630. }
  7631. },
  7632. {
  7633. name = "CheckCollisionSpheres",
  7634. description = "Check collision between two spheres",
  7635. returnType = "bool",
  7636. params = {
  7637. {type = "Vector3", name = "center1"},
  7638. {type = "float", name = "radius1"},
  7639. {type = "Vector3", name = "center2"},
  7640. {type = "float", name = "radius2"}
  7641. }
  7642. },
  7643. {
  7644. name = "CheckCollisionBoxes",
  7645. description = "Check collision between two bounding boxes",
  7646. returnType = "bool",
  7647. params = {
  7648. {type = "BoundingBox", name = "box1"},
  7649. {type = "BoundingBox", name = "box2"}
  7650. }
  7651. },
  7652. {
  7653. name = "CheckCollisionBoxSphere",
  7654. description = "Check collision between box and sphere",
  7655. returnType = "bool",
  7656. params = {
  7657. {type = "BoundingBox", name = "box"},
  7658. {type = "Vector3", name = "center"},
  7659. {type = "float", name = "radius"}
  7660. }
  7661. },
  7662. {
  7663. name = "GetRayCollisionSphere",
  7664. description = "Get collision info between ray and sphere",
  7665. returnType = "RayCollision",
  7666. params = {
  7667. {type = "Ray", name = "ray"},
  7668. {type = "Vector3", name = "center"},
  7669. {type = "float", name = "radius"}
  7670. }
  7671. },
  7672. {
  7673. name = "GetRayCollisionBox",
  7674. description = "Get collision info between ray and box",
  7675. returnType = "RayCollision",
  7676. params = {
  7677. {type = "Ray", name = "ray"},
  7678. {type = "BoundingBox", name = "box"}
  7679. }
  7680. },
  7681. {
  7682. name = "GetRayCollisionMesh",
  7683. description = "Get collision info between ray and mesh",
  7684. returnType = "RayCollision",
  7685. params = {
  7686. {type = "Ray", name = "ray"},
  7687. {type = "Mesh", name = "mesh"},
  7688. {type = "Matrix", name = "transform"}
  7689. }
  7690. },
  7691. {
  7692. name = "GetRayCollisionTriangle",
  7693. description = "Get collision info between ray and triangle",
  7694. returnType = "RayCollision",
  7695. params = {
  7696. {type = "Ray", name = "ray"},
  7697. {type = "Vector3", name = "p1"},
  7698. {type = "Vector3", name = "p2"},
  7699. {type = "Vector3", name = "p3"}
  7700. }
  7701. },
  7702. {
  7703. name = "GetRayCollisionQuad",
  7704. description = "Get collision info between ray and quad",
  7705. returnType = "RayCollision",
  7706. params = {
  7707. {type = "Ray", name = "ray"},
  7708. {type = "Vector3", name = "p1"},
  7709. {type = "Vector3", name = "p2"},
  7710. {type = "Vector3", name = "p3"},
  7711. {type = "Vector3", name = "p4"}
  7712. }
  7713. },
  7714. {
  7715. name = "InitAudioDevice",
  7716. description = "Initialize audio device and context",
  7717. returnType = "void"
  7718. },
  7719. {
  7720. name = "CloseAudioDevice",
  7721. description = "Close the audio device and context",
  7722. returnType = "void"
  7723. },
  7724. {
  7725. name = "IsAudioDeviceReady",
  7726. description = "Check if audio device has been initialized successfully",
  7727. returnType = "bool"
  7728. },
  7729. {
  7730. name = "SetMasterVolume",
  7731. description = "Set master volume (listener)",
  7732. returnType = "void",
  7733. params = {
  7734. {type = "float", name = "volume"}
  7735. }
  7736. },
  7737. {
  7738. name = "GetMasterVolume",
  7739. description = "Get master volume (listener)",
  7740. returnType = "float"
  7741. },
  7742. {
  7743. name = "LoadWave",
  7744. description = "Load wave data from file",
  7745. returnType = "Wave",
  7746. params = {
  7747. {type = "const char *", name = "fileName"}
  7748. }
  7749. },
  7750. {
  7751. name = "LoadWaveFromMemory",
  7752. description = "Load wave from memory buffer, fileType refers to extension: i.e. '.wav'",
  7753. returnType = "Wave",
  7754. params = {
  7755. {type = "const char *", name = "fileType"},
  7756. {type = "const unsigned char *", name = "fileData"},
  7757. {type = "int", name = "dataSize"}
  7758. }
  7759. },
  7760. {
  7761. name = "IsWaveReady",
  7762. description = "Checks if wave data is ready",
  7763. returnType = "bool",
  7764. params = {
  7765. {type = "Wave", name = "wave"}
  7766. }
  7767. },
  7768. {
  7769. name = "LoadSound",
  7770. description = "Load sound from file",
  7771. returnType = "Sound",
  7772. params = {
  7773. {type = "const char *", name = "fileName"}
  7774. }
  7775. },
  7776. {
  7777. name = "LoadSoundFromWave",
  7778. description = "Load sound from wave data",
  7779. returnType = "Sound",
  7780. params = {
  7781. {type = "Wave", name = "wave"}
  7782. }
  7783. },
  7784. {
  7785. name = "LoadSoundAlias",
  7786. description = "Create a new sound that shares the same sample data as the source sound, does not own the sound data",
  7787. returnType = "Sound",
  7788. params = {
  7789. {type = "Sound", name = "source"}
  7790. }
  7791. },
  7792. {
  7793. name = "IsSoundReady",
  7794. description = "Checks if a sound is ready",
  7795. returnType = "bool",
  7796. params = {
  7797. {type = "Sound", name = "sound"}
  7798. }
  7799. },
  7800. {
  7801. name = "UpdateSound",
  7802. description = "Update sound buffer with new data",
  7803. returnType = "void",
  7804. params = {
  7805. {type = "Sound", name = "sound"},
  7806. {type = "const void *", name = "data"},
  7807. {type = "int", name = "sampleCount"}
  7808. }
  7809. },
  7810. {
  7811. name = "UnloadWave",
  7812. description = "Unload wave data",
  7813. returnType = "void",
  7814. params = {
  7815. {type = "Wave", name = "wave"}
  7816. }
  7817. },
  7818. {
  7819. name = "UnloadSound",
  7820. description = "Unload sound",
  7821. returnType = "void",
  7822. params = {
  7823. {type = "Sound", name = "sound"}
  7824. }
  7825. },
  7826. {
  7827. name = "UnloadSoundAlias",
  7828. description = "Unload a sound alias (does not deallocate sample data)",
  7829. returnType = "void",
  7830. params = {
  7831. {type = "Sound", name = "alias"}
  7832. }
  7833. },
  7834. {
  7835. name = "ExportWave",
  7836. description = "Export wave data to file, returns true on success",
  7837. returnType = "bool",
  7838. params = {
  7839. {type = "Wave", name = "wave"},
  7840. {type = "const char *", name = "fileName"}
  7841. }
  7842. },
  7843. {
  7844. name = "ExportWaveAsCode",
  7845. description = "Export wave sample data to code (.h), returns true on success",
  7846. returnType = "bool",
  7847. params = {
  7848. {type = "Wave", name = "wave"},
  7849. {type = "const char *", name = "fileName"}
  7850. }
  7851. },
  7852. {
  7853. name = "PlaySound",
  7854. description = "Play a sound",
  7855. returnType = "void",
  7856. params = {
  7857. {type = "Sound", name = "sound"}
  7858. }
  7859. },
  7860. {
  7861. name = "StopSound",
  7862. description = "Stop playing a sound",
  7863. returnType = "void",
  7864. params = {
  7865. {type = "Sound", name = "sound"}
  7866. }
  7867. },
  7868. {
  7869. name = "PauseSound",
  7870. description = "Pause a sound",
  7871. returnType = "void",
  7872. params = {
  7873. {type = "Sound", name = "sound"}
  7874. }
  7875. },
  7876. {
  7877. name = "ResumeSound",
  7878. description = "Resume a paused sound",
  7879. returnType = "void",
  7880. params = {
  7881. {type = "Sound", name = "sound"}
  7882. }
  7883. },
  7884. {
  7885. name = "IsSoundPlaying",
  7886. description = "Check if a sound is currently playing",
  7887. returnType = "bool",
  7888. params = {
  7889. {type = "Sound", name = "sound"}
  7890. }
  7891. },
  7892. {
  7893. name = "SetSoundVolume",
  7894. description = "Set volume for a sound (1.0 is max level)",
  7895. returnType = "void",
  7896. params = {
  7897. {type = "Sound", name = "sound"},
  7898. {type = "float", name = "volume"}
  7899. }
  7900. },
  7901. {
  7902. name = "SetSoundPitch",
  7903. description = "Set pitch for a sound (1.0 is base level)",
  7904. returnType = "void",
  7905. params = {
  7906. {type = "Sound", name = "sound"},
  7907. {type = "float", name = "pitch"}
  7908. }
  7909. },
  7910. {
  7911. name = "SetSoundPan",
  7912. description = "Set pan for a sound (0.5 is center)",
  7913. returnType = "void",
  7914. params = {
  7915. {type = "Sound", name = "sound"},
  7916. {type = "float", name = "pan"}
  7917. }
  7918. },
  7919. {
  7920. name = "WaveCopy",
  7921. description = "Copy a wave to a new wave",
  7922. returnType = "Wave",
  7923. params = {
  7924. {type = "Wave", name = "wave"}
  7925. }
  7926. },
  7927. {
  7928. name = "WaveCrop",
  7929. description = "Crop a wave to defined frames range",
  7930. returnType = "void",
  7931. params = {
  7932. {type = "Wave *", name = "wave"},
  7933. {type = "int", name = "initFrame"},
  7934. {type = "int", name = "finalFrame"}
  7935. }
  7936. },
  7937. {
  7938. name = "WaveFormat",
  7939. description = "Convert wave data to desired format",
  7940. returnType = "void",
  7941. params = {
  7942. {type = "Wave *", name = "wave"},
  7943. {type = "int", name = "sampleRate"},
  7944. {type = "int", name = "sampleSize"},
  7945. {type = "int", name = "channels"}
  7946. }
  7947. },
  7948. {
  7949. name = "LoadWaveSamples",
  7950. description = "Load samples data from wave as a 32bit float data array",
  7951. returnType = "float *",
  7952. params = {
  7953. {type = "Wave", name = "wave"}
  7954. }
  7955. },
  7956. {
  7957. name = "UnloadWaveSamples",
  7958. description = "Unload samples data loaded with LoadWaveSamples()",
  7959. returnType = "void",
  7960. params = {
  7961. {type = "float *", name = "samples"}
  7962. }
  7963. },
  7964. {
  7965. name = "LoadMusicStream",
  7966. description = "Load music stream from file",
  7967. returnType = "Music",
  7968. params = {
  7969. {type = "const char *", name = "fileName"}
  7970. }
  7971. },
  7972. {
  7973. name = "LoadMusicStreamFromMemory",
  7974. description = "Load music stream from data",
  7975. returnType = "Music",
  7976. params = {
  7977. {type = "const char *", name = "fileType"},
  7978. {type = "const unsigned char *", name = "data"},
  7979. {type = "int", name = "dataSize"}
  7980. }
  7981. },
  7982. {
  7983. name = "IsMusicReady",
  7984. description = "Checks if a music stream is ready",
  7985. returnType = "bool",
  7986. params = {
  7987. {type = "Music", name = "music"}
  7988. }
  7989. },
  7990. {
  7991. name = "UnloadMusicStream",
  7992. description = "Unload music stream",
  7993. returnType = "void",
  7994. params = {
  7995. {type = "Music", name = "music"}
  7996. }
  7997. },
  7998. {
  7999. name = "PlayMusicStream",
  8000. description = "Start music playing",
  8001. returnType = "void",
  8002. params = {
  8003. {type = "Music", name = "music"}
  8004. }
  8005. },
  8006. {
  8007. name = "IsMusicStreamPlaying",
  8008. description = "Check if music is playing",
  8009. returnType = "bool",
  8010. params = {
  8011. {type = "Music", name = "music"}
  8012. }
  8013. },
  8014. {
  8015. name = "UpdateMusicStream",
  8016. description = "Updates buffers for music streaming",
  8017. returnType = "void",
  8018. params = {
  8019. {type = "Music", name = "music"}
  8020. }
  8021. },
  8022. {
  8023. name = "StopMusicStream",
  8024. description = "Stop music playing",
  8025. returnType = "void",
  8026. params = {
  8027. {type = "Music", name = "music"}
  8028. }
  8029. },
  8030. {
  8031. name = "PauseMusicStream",
  8032. description = "Pause music playing",
  8033. returnType = "void",
  8034. params = {
  8035. {type = "Music", name = "music"}
  8036. }
  8037. },
  8038. {
  8039. name = "ResumeMusicStream",
  8040. description = "Resume playing paused music",
  8041. returnType = "void",
  8042. params = {
  8043. {type = "Music", name = "music"}
  8044. }
  8045. },
  8046. {
  8047. name = "SeekMusicStream",
  8048. description = "Seek music to a position (in seconds)",
  8049. returnType = "void",
  8050. params = {
  8051. {type = "Music", name = "music"},
  8052. {type = "float", name = "position"}
  8053. }
  8054. },
  8055. {
  8056. name = "SetMusicVolume",
  8057. description = "Set volume for music (1.0 is max level)",
  8058. returnType = "void",
  8059. params = {
  8060. {type = "Music", name = "music"},
  8061. {type = "float", name = "volume"}
  8062. }
  8063. },
  8064. {
  8065. name = "SetMusicPitch",
  8066. description = "Set pitch for a music (1.0 is base level)",
  8067. returnType = "void",
  8068. params = {
  8069. {type = "Music", name = "music"},
  8070. {type = "float", name = "pitch"}
  8071. }
  8072. },
  8073. {
  8074. name = "SetMusicPan",
  8075. description = "Set pan for a music (0.5 is center)",
  8076. returnType = "void",
  8077. params = {
  8078. {type = "Music", name = "music"},
  8079. {type = "float", name = "pan"}
  8080. }
  8081. },
  8082. {
  8083. name = "GetMusicTimeLength",
  8084. description = "Get music time length (in seconds)",
  8085. returnType = "float",
  8086. params = {
  8087. {type = "Music", name = "music"}
  8088. }
  8089. },
  8090. {
  8091. name = "GetMusicTimePlayed",
  8092. description = "Get current music time played (in seconds)",
  8093. returnType = "float",
  8094. params = {
  8095. {type = "Music", name = "music"}
  8096. }
  8097. },
  8098. {
  8099. name = "LoadAudioStream",
  8100. description = "Load audio stream (to stream raw audio pcm data)",
  8101. returnType = "AudioStream",
  8102. params = {
  8103. {type = "unsigned int", name = "sampleRate"},
  8104. {type = "unsigned int", name = "sampleSize"},
  8105. {type = "unsigned int", name = "channels"}
  8106. }
  8107. },
  8108. {
  8109. name = "IsAudioStreamReady",
  8110. description = "Checks if an audio stream is ready",
  8111. returnType = "bool",
  8112. params = {
  8113. {type = "AudioStream", name = "stream"}
  8114. }
  8115. },
  8116. {
  8117. name = "UnloadAudioStream",
  8118. description = "Unload audio stream and free memory",
  8119. returnType = "void",
  8120. params = {
  8121. {type = "AudioStream", name = "stream"}
  8122. }
  8123. },
  8124. {
  8125. name = "UpdateAudioStream",
  8126. description = "Update audio stream buffers with data",
  8127. returnType = "void",
  8128. params = {
  8129. {type = "AudioStream", name = "stream"},
  8130. {type = "const void *", name = "data"},
  8131. {type = "int", name = "frameCount"}
  8132. }
  8133. },
  8134. {
  8135. name = "IsAudioStreamProcessed",
  8136. description = "Check if any audio stream buffers requires refill",
  8137. returnType = "bool",
  8138. params = {
  8139. {type = "AudioStream", name = "stream"}
  8140. }
  8141. },
  8142. {
  8143. name = "PlayAudioStream",
  8144. description = "Play audio stream",
  8145. returnType = "void",
  8146. params = {
  8147. {type = "AudioStream", name = "stream"}
  8148. }
  8149. },
  8150. {
  8151. name = "PauseAudioStream",
  8152. description = "Pause audio stream",
  8153. returnType = "void",
  8154. params = {
  8155. {type = "AudioStream", name = "stream"}
  8156. }
  8157. },
  8158. {
  8159. name = "ResumeAudioStream",
  8160. description = "Resume audio stream",
  8161. returnType = "void",
  8162. params = {
  8163. {type = "AudioStream", name = "stream"}
  8164. }
  8165. },
  8166. {
  8167. name = "IsAudioStreamPlaying",
  8168. description = "Check if audio stream is playing",
  8169. returnType = "bool",
  8170. params = {
  8171. {type = "AudioStream", name = "stream"}
  8172. }
  8173. },
  8174. {
  8175. name = "StopAudioStream",
  8176. description = "Stop audio stream",
  8177. returnType = "void",
  8178. params = {
  8179. {type = "AudioStream", name = "stream"}
  8180. }
  8181. },
  8182. {
  8183. name = "SetAudioStreamVolume",
  8184. description = "Set volume for audio stream (1.0 is max level)",
  8185. returnType = "void",
  8186. params = {
  8187. {type = "AudioStream", name = "stream"},
  8188. {type = "float", name = "volume"}
  8189. }
  8190. },
  8191. {
  8192. name = "SetAudioStreamPitch",
  8193. description = "Set pitch for audio stream (1.0 is base level)",
  8194. returnType = "void",
  8195. params = {
  8196. {type = "AudioStream", name = "stream"},
  8197. {type = "float", name = "pitch"}
  8198. }
  8199. },
  8200. {
  8201. name = "SetAudioStreamPan",
  8202. description = "Set pan for audio stream (0.5 is centered)",
  8203. returnType = "void",
  8204. params = {
  8205. {type = "AudioStream", name = "stream"},
  8206. {type = "float", name = "pan"}
  8207. }
  8208. },
  8209. {
  8210. name = "SetAudioStreamBufferSizeDefault",
  8211. description = "Default size for new audio streams",
  8212. returnType = "void",
  8213. params = {
  8214. {type = "int", name = "size"}
  8215. }
  8216. },
  8217. {
  8218. name = "SetAudioStreamCallback",
  8219. description = "Audio thread callback to request new data",
  8220. returnType = "void",
  8221. params = {
  8222. {type = "AudioStream", name = "stream"},
  8223. {type = "AudioCallback", name = "callback"}
  8224. }
  8225. },
  8226. {
  8227. name = "AttachAudioStreamProcessor",
  8228. description = "Attach audio stream processor to stream, receives the samples as 'float'",
  8229. returnType = "void",
  8230. params = {
  8231. {type = "AudioStream", name = "stream"},
  8232. {type = "AudioCallback", name = "processor"}
  8233. }
  8234. },
  8235. {
  8236. name = "DetachAudioStreamProcessor",
  8237. description = "Detach audio stream processor from stream",
  8238. returnType = "void",
  8239. params = {
  8240. {type = "AudioStream", name = "stream"},
  8241. {type = "AudioCallback", name = "processor"}
  8242. }
  8243. },
  8244. {
  8245. name = "AttachAudioMixedProcessor",
  8246. description = "Attach audio stream processor to the entire audio pipeline, receives the samples as 'float'",
  8247. returnType = "void",
  8248. params = {
  8249. {type = "AudioCallback", name = "processor"}
  8250. }
  8251. },
  8252. {
  8253. name = "DetachAudioMixedProcessor",
  8254. description = "Detach audio stream processor from the entire audio pipeline",
  8255. returnType = "void",
  8256. params = {
  8257. {type = "AudioCallback", name = "processor"}
  8258. }
  8259. }
  8260. }
  8261. }