raylib_api.lua 206 KB

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