{"id":15047311,"url":"https://github.com/sdragonx/glm","last_synced_at":"2026-03-14T06:09:14.573Z","repository":{"id":85668823,"uuid":"428389052","full_name":"sdragonx/glm","owner":"sdragonx","description":"glm c++98 version.","archived":false,"fork":false,"pushed_at":"2024-02-11T01:39:53.000Z","size":163,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T15:31:22.469Z","etag":null,"topics":["cpp","cpp98","gles","gles2","gles3","glm","glsl","graphics","header-only","mat2","mat3","mat4","math","matrix","opengl","shader","vec2","vec3","vec4"],"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/sdragonx.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}},"created_at":"2021-11-15T19:06:48.000Z","updated_at":"2024-12-26T13:05:21.000Z","dependencies_parsed_at":"2023-07-30T06:02:06.971Z","dependency_job_id":null,"html_url":"https://github.com/sdragonx/glm","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdragonx%2Fglm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdragonx%2Fglm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdragonx%2Fglm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdragonx%2Fglm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdragonx","download_url":"https://codeload.github.com/sdragonx/glm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243473766,"owners_count":20296623,"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":["cpp","cpp98","gles","gles2","gles3","glm","glsl","graphics","header-only","mat2","mat3","mat4","math","matrix","opengl","shader","vec2","vec3","vec4"],"created_at":"2024-09-24T20:56:30.287Z","updated_at":"2026-03-14T06:09:12.790Z","avatar_url":"https://github.com/sdragonx.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glm\nglm C++98 version.\n\n![logo](./glm.jpg)\n\nglm 原库作为图形基础库，下载使用量没有 cglm 多，其中一个原因就是，这个库竟然用 C++11。\u003cbr\u003e\n这里是一个 C++98 版本的 glm 库，兼容比较老的编译器。\u003cbr\u003e\n虽然有些方法在实现上，C++11 比 C++98 方便一些，但也不是不能完全实现。\u003cbr\u003e\n好吧，有问题欢迎指正！\u003cbr\u003e\n\u003cbr\u003e\nThe original GLM library, as the basic graphics library, has not been downloaded as much as cglm.\u003cbr\u003e\nOne of the reasons is that this library uses C++11.\u003cbr\u003e\nHere is a C++98 version of GLM library, compatible with older compilers.\u003cbr\u003e\nAlthough C++11 is more convenient than C++98 in the implementation of some methods, it is not completely realized.\u003cbr\u003e\nWell, if you have any questions, please correct them!\u003cbr\u003e\n\u003cbr\u003e\n# 说明\u003cbr\u003e\n程序部分，使用的是 C++98 标准，所有代码在 cgl::glm 命名空间下。\u003cbr\u003e\nglm.hpp 里面使用了 using namespace cgl 来暴露 glm 的命名空间。\u003cbr\u003e\n精简了结构，代码量更少，部分代码执行率比原版要快一些。\u003cbr\u003e\n\n# 更新历史\u003cbr\u003e\n\n### 2026-3-14\n修复bug，优化结构。增加矩阵分解函数。\n\n### 2023-2-26\n修复 isinf() isnan() bug，修复一些编译器错误。\n\n### 2022-5-20\nmat2x3 mat3x2 等行列不等的矩阵参数、功能修复。\n\n### 2022-2-25\n+vector\n-vector\nquat\u003cT\u003e\nfixed traits\u003cfloat\u003e::equal\nisinf()\nisnan()\nstep\nsmoothstep()\n\n### 2022-2-15\n完善所有基础矩阵类型。(mat2xN ~ mat4xN)\n\n### 2021-11-20\n完成大部分 glsl 函数，指令加速部分，完成矩阵乘法（指令部分，支持 SSE2 内联汇编）。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdragonx%2Fglm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdragonx%2Fglm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdragonx%2Fglm/lists"}