raylib_api.lua 229 KB

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