raylib_api.lua 197 KB

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