raylib_api.lua 197 KB

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