{"id":19390196,"url":"https://github.com/thomas-chqt/minilibx","last_synced_at":"2026-04-16T11:03:07.475Z","repository":{"id":244332219,"uuid":"805680109","full_name":"Thomas-Chqt/MinilibX","owner":"Thomas-Chqt","description":"cross-platform implementation of minilibx","archived":false,"fork":false,"pushed_at":"2024-10-09T10:29:16.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-12T16:48:57.395Z","etag":null,"topics":["42","c","cpp","graphics","minilibx"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thomas-Chqt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-05-25T06:48:38.000Z","updated_at":"2024-10-09T10:31:16.000Z","dependencies_parsed_at":"2024-11-10T10:19:28.941Z","dependency_job_id":"b270730b-825c-47e5-b3d0-0488c0a881d3","html_url":"https://github.com/Thomas-Chqt/MinilibX","commit_stats":null,"previous_names":["thomas-chqt/minilibx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thomas-Chqt/MinilibX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomas-Chqt%2FMinilibX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomas-Chqt%2FMinilibX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomas-Chqt%2FMinilibX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomas-Chqt%2FMinilibX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thomas-Chqt","download_url":"https://codeload.github.com/Thomas-Chqt/MinilibX/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thomas-Chqt%2FMinilibX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31882886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["42","c","cpp","graphics","minilibx"],"created_at":"2024-11-10T10:19:22.402Z","updated_at":"2026-04-16T11:03:07.453Z","avatar_url":"https://github.com/Thomas-Chqt.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"MinilibX\n========\n\n**MinilibX** is a cross-platform implementation of the [42's minilibx](https://github.com/42Paris/minilibx-linux), a very basic graphic library used at 42.\n\nThis implementation does not provide all the features of the original library, but only the ones I use in my projects.\n\nGraphics with MLX\n-----------------\n\nTo draw onto a window using MiniLibX, you first need to create an `mlx_image` with `mlx_new_image`. This image acts as a pixel buffer. You can obtain a pointer to this buffer using `mlx_get_data_addr`. After retrieving the pointer, you can write the desired pixel color into the buffer, where each pixel is represented by a 4-byte integer.\n\nFinally, to display the image on the window, use `mlx_put_image_to_window`. An image can be reused multiple times, making rendering the same content more efficient than redrawing each pixel every frame.\n\nFor more detailed usage of MiniLibX, please refer to the [42Docs website](https://harm-smits.github.io/42docs/libs/minilibx).\n\nExamples are also available in the `example` directory.\n\nProjects using MLX\n------------------\n\nI use this library in two projects, both created at 42 Tokyo:\n\n- [FdF - A Wireframe Map Renderer](https://github.com/Thomas-Chqt/FdF)\n- [cub3d - A first-person shooter game using raycasting](https://github.com/Thomas-Chqt/cub3d)\n\nBuild\n-----\n\nCMake is used as the build system. The recommended way to use the library is to clone the repository inside your project and use `add_subdirectory`.\n\nAlternatively, the library can be built separately using CMake.\n\n```sh\nmkdir build\ncmake -S . -B build\ncmake --build build\n```\n\n| CMake Option          | Default Value | Description                |\n|-----------------------|---------------|----------------------------|\n| `BUILD_SHARED_LIBS`   | OFF           | Build as shared library    |\n| `MLX_BUILD_EXAMPLES`  | OFF           | Build the examples         |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas-chqt%2Fminilibx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomas-chqt%2Fminilibx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas-chqt%2Fminilibx/lists"}