raylib_api.lua 193 KB

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