raylib_api.lua 224 KB

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