{"id":20671526,"url":"https://github.com/hopson97/opengl-text","last_synced_at":"2025-10-08T12:53:25.933Z","repository":{"id":145668881,"uuid":"236818799","full_name":"Hopson97/opengl-text","owner":"Hopson97","description":"Tests to get an text rendering using modern OpenGL and using sf::Font as the font handler","archived":false,"fork":false,"pushed_at":"2020-01-29T23:42:07.000Z","size":806,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T13:48:29.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Hopson97.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":"2020-01-28T19:15:10.000Z","updated_at":"2023-12-12T11:58:44.000Z","dependencies_parsed_at":"2023-04-07T23:35:39.328Z","dependency_job_id":null,"html_url":"https://github.com/Hopson97/opengl-text","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/Hopson97%2Fopengl-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopson97%2Fopengl-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopson97%2Fopengl-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopson97%2Fopengl-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hopson97","download_url":"https://codeload.github.com/Hopson97/opengl-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242890684,"owners_count":20202204,"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":[],"created_at":"2024-11-16T20:27:50.262Z","updated_at":"2025-10-08T12:53:20.894Z","avatar_url":"https://github.com/Hopson97.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenGL Text Testing\n\nTesting to see if I can get opengl text rendering using sfml as a font loader.\n\n## Progress [(Album)](https://imgur.com/a/HulQLra)\n\nText loaded to a texture:\n\n![Text loaded to a texture:](https://i.imgur.com/LdkzzWk.png)\n\n[Commit](https://github.com/Hopson97/opengl-text/tree/1217595952a72f73bd78b04eda9d59735d56876c)\n\n___\n\nText rendered as a single vertex array, one character per quad.\n\n![Text rendered to a quad](https://i.imgur.com/zY42eof.png)\n\n[Commit](https://github.com/Hopson97/opengl-text/tree/e1a90a02a6b6a542813535ff324d2886910b04af)\n\n____\n\nText as row of text, except the image texture seems to be upsidedown flipped.\n\n![Upside down text row](https://i.imgur.com/EHqVyYT.png)\n\n[Commit](https://github.com/Hopson97/opengl-text/commit/5813c3f56e0b1a9246035c2a2f367a5d224d7969)\n\n\n____\n\nFinally worked out texture coords except a lot of characters were positioned incorrectly\n\n![All Letters](https://i.imgur.com/hVicTD8g.png)\n\nPunctuation especially:\n\n![Punctuation](https://i.imgur.com/jndDELM.png)\n\nSo added a bunch of hacky edge cases :/\n\nKinda works but idk prob is a better way:\n\n![Final](https://cdn.discordapp.com/attachments/113418926909644800/671844350854168596/unknown.png)\n\n\n\n## Building and Running\n\n### Libraries\n\nSFML and GLM are required.\n\nThese can be installed from your project manager. For example, on Debian/ Ubuntu:\n\n```sh\nsudo apt install libsfml-dev libglm-dev\n```\n\nIf this is not possible (eg windows), you can install these manually from their respective websites:\n\nhttps://www.sfml-dev.org/download.php\n\nhttps://github.com/g-truc/glm/tags\n\n### Linux\n\nTo build, at the root of the project:\n\n```sh\nsh scripts/build.sh\n```\n\nTo run, at the root of the project:\n\n```sh\nsh scripts/run.sh\n```\n\nTo build and run in release mode, simply add the `release` suffix:\n\n```sh\nsh scripts/build.sh release\nsh scripts/run.sh release\n```\n\nYou can also create a deployable build (that can be sent) by doing:\n\n```sh\nsh scripts/deploy.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhopson97%2Fopengl-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhopson97%2Fopengl-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhopson97%2Fopengl-text/lists"}