raylib_api.lua 220 KB

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