{"id":16299047,"url":"https://github.com/msiglreith/grr","last_synced_at":"2025-03-16T13:31:42.698Z","repository":{"id":48498971,"uuid":"115863543","full_name":"msiglreith/grr","owner":"msiglreith","description":"Bare metal wrapper for modern OpenGL 4.5+","archived":false,"fork":false,"pushed_at":"2021-07-22T17:33:53.000Z","size":3171,"stargazers_count":53,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-08T21:12:47.132Z","etag":null,"topics":["opengl","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msiglreith.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-31T13:06:29.000Z","updated_at":"2025-01-29T12:24:25.000Z","dependencies_parsed_at":"2022-08-26T03:24:48.339Z","dependency_job_id":null,"html_url":"https://github.com/msiglreith/grr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msiglreith%2Fgrr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msiglreith%2Fgrr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msiglreith%2Fgrr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msiglreith%2Fgrr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msiglreith","download_url":"https://codeload.github.com/msiglreith/grr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243817302,"owners_count":20352535,"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","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":["opengl","rust"],"created_at":"2024-10-10T20:46:27.466Z","updated_at":"2025-03-16T13:31:42.227Z","avatar_url":"https://github.com/msiglreith.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"left\" src=\"info/grr_logo.png\" width=\"196\"/\u003e\n\n# grr!\n##### A bare metal library for OpenGL 4.5+\n\n\u003cbr\u003e\n\n[![crates.io](https://img.shields.io/crates/v/grr.svg)](https://crates.io/crates/grr)\n[![docs](https://docs.rs/grr/badge.svg)](https://docs.rs/grr)\n[![license-mit](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](LICENSE-MIT)\n[![license-apache2](https://img.shields.io/badge/license-APACHE2-green.svg?style=flat-square)](LICENSE-Apache2)\n[![Build Status](https://github.com/msiglreith/grr/workflows/ci/badge.svg?style=flat)](https://github.com/msiglreith/grr/actions)\n\n```toml\n[dependencies]\ngrr = \"0.8\"\n```\n\n`grr` aims at providing a thin layer above OpenGL 4.5+, exposing a modern API orientated on Vulkan.\nThe sole purpose of the library is to have a cleaned up API for **fast prototyping**.\n\n## Features\n- API is built around **direct state access**\n- Following Vulkan terminology and function names\n- Only provided latest GL functionality\n- Enforce sRGB framebuffer handling\n\n## Getting started\nCheckout our [Hello Triangle](https://github.com/msiglreith/grr/blob/master/examples/triangle.rs) example to see the library in action!\n\n## Example\n```rust\n// Bind graphics pipeline (shaders)\ngrr.bind_pipeline(\u0026pipeline);\n// Configure vertex attributes\ngrr.bind_vertex_array(\u0026vertex_array);\n// Bind vertex buffers for fetching attribute data\ngrr.bind_vertex_buffers(\n    \u0026vertex_array,\n    0,\n    \u0026[grr::VertexBufferView {\n        buffer: \u0026triangle_data,\n        offset: 0,\n        stride: (std::mem::size_of::\u003cf32\u003e() * 5) as _,\n        input_rate: grr::InputRate::Vertex,\n    }]\n);\n\n// Clear default framebuffer\ngrr.clear_attachment(grr::Framebuffer::DEFAULT, grr::ClearAttachment::ColorFloat(0, [0.5, 0.5, 0.5, 1.0]));\n// Draw triangles\ngrr.draw(grr::Primitive::Triangles, 0..3, 0..1);\n\n// Present on screen!\nwindow.swap_buffers().unwrap();\n```\n\n## Examples\n\n#### Hello Triangle\n\n```\ncargo run --example triangle\n```\n\n#### Device Information\n\n```\ncargo run --example device\n```\n\n#### Texture (Logo)\n\n```\ncargo run --example texture\n```\n\n#### (Maybe-)Physically-based Rendering (IBL)\n\n\u003ch1 align=\"center\"\u003e\n\u003cimg src=\"info/examples/pbr.png\"/\u003e\n\u003c/h1\u003e\n\nAssets (model and HDRI) need to be extracted into `examples/assets` before running it!\n\n```\ncargo run --example pbr --release\n```\n\n* Example ported from/based on the PBR tutorial from https://learnopengl.com/ (CC BY-NC 4.0).\n* `Cerberus` model by Andrew Maximov (https://artisaverb.info/Cerberus.html)\n* `Popcorn Lobby` HDRI from sIBL Archive (http://www.hdrlabs.com/sibl/archive.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsiglreith%2Fgrr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsiglreith%2Fgrr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsiglreith%2Fgrr/lists"}