{"id":23093942,"url":"https://github.com/midasvanveen/gamelib","last_synced_at":"2025-10-12T02:53:03.653Z","repository":{"id":119670116,"uuid":"567451223","full_name":"MidasVanVeen/gamelib","owner":"MidasVanVeen","description":"Gamelibrary for lua in c++","archived":false,"fork":false,"pushed_at":"2023-01-08T13:27:57.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T18:52:29.513Z","etag":null,"topics":["cpp","game-library","lua"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MidasVanVeen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-17T20:24:55.000Z","updated_at":"2023-08-27T06:30:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"d46483a2-799d-4123-823d-3a508e116cc4","html_url":"https://github.com/MidasVanVeen/gamelib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MidasVanVeen/gamelib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MidasVanVeen%2Fgamelib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MidasVanVeen%2Fgamelib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MidasVanVeen%2Fgamelib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MidasVanVeen%2Fgamelib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MidasVanVeen","download_url":"https://codeload.github.com/MidasVanVeen/gamelib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MidasVanVeen%2Fgamelib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009971,"owners_count":26084672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","game-library","lua"],"created_at":"2024-12-16T21:54:43.924Z","updated_at":"2025-10-12T02:53:03.611Z","avatar_url":"https://github.com/MidasVanVeen.png","language":"C","readme":"# Gamelibrary for lua in c++\n\nA gamelibaray similar in usage to love.\n\nexample usage:\n```lua\n--[[\n-- Filename: main.lua\n-- Author: Midas van Veen\n-- Description: simple test program for the gamelib ellipse func\n--]]\n\nGL_WIDTH=400\nGL_HEIGHT=400\n\nlocal n = 3\n\nfunction mousePressed()\n\tn = n + 1\n\tprint(\"Number of segments: \" .. n)\nend\n\nfunction draw()\n\tGL_Ellipse(0.5,0.5, 0.2, 0.2, n)\nend\n```\nThen run it via the gamelibaray executable\n`$ gamelib main.lua`\n\n## Callable functions (in lua)\n\nI've added datatypes for extra clarity.\n\n### GL_Rect\n```c\nvoid GL_Rect( float x, float y, float width, float height )\n```\nDescription: Draws a rectangle to the screen\n\n### GL_Ellipse\n```c\nvoid GL_Ellipse( float x, float y, float rx, float ry, int num_segments )\n```\nDescription: Draws an ellipse to the screen\n\n### GL_Triangle\n```c\nvoid GL_Triangle( float x1, float y1, float x2, float y2, float x3, float y3 )\n```\nDescription: Draws a triangle to the screen\n\n### GL_Line\n```c\nvoid GL_Line( float x1, float y1, float x2, float y2 )\n```\nDescription: Draws a line from (x1,y1) to (x2,y2)\n\n### GL_Bezier\n```c\nvoid GL_Bezier( float x1, float y1, \n\t\t\t\tfloat x2, float y2, \n\t\t\t\tfloat x3, float y3, \n\t\t\t\tfloat x4, float y4 )\n```\nDescription: Draws a bezier curve, given 4 control points\n\n### GL_Fill\n```c\nvoid GL_Fill( int r, int g, int b )\n```\nDescription: Sets the fill color\n\n### GL_Background\n```c\nvoid GL_Background( int r, int g, int b )\n```\nDescription: Sets the background color\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidasvanveen%2Fgamelib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidasvanveen%2Fgamelib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidasvanveen%2Fgamelib/lists"}