raylib_api.lua 201 KB

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