{"id":13533134,"url":"https://github.com/strah19/Ember","last_synced_at":"2025-04-01T21:32:00.858Z","repository":{"id":137944305,"uuid":"276185649","full_name":"strah19/Ember","owner":"strah19","description":"A graphics framework using SDL2 and OpenGL.","archived":false,"fork":false,"pushed_at":"2022-02-13T18:05:38.000Z","size":6917,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-02T07:20:59.793Z","etag":null,"topics":[],"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/strah19.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}},"created_at":"2020-06-30T19:04:58.000Z","updated_at":"2022-04-22T06:32:13.000Z","dependencies_parsed_at":"2023-03-30T15:20:59.481Z","dependency_job_id":null,"html_url":"https://github.com/strah19/Ember","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/strah19%2FEmber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strah19%2FEmber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strah19%2FEmber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strah19%2FEmber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strah19","download_url":"https://codeload.github.com/strah19/Ember/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222774594,"owners_count":17035752,"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-08-01T07:01:16.827Z","updated_at":"2024-11-02T20:31:14.290Z","avatar_url":"https://github.com/strah19.png","language":"C","readme":"# Ember\n\nEmber is an open source graphics framework for C++.\n\nEmber holds a wide ranges of tools including event handlers, event stacks, file handlers, asset loader, 3d rendering tools and more.\n\nSample code:\n```c++\n#include \"Application.h\"\n#include \"Renderer.h\"\n#include \"RendererCommands.h\"\n#include \"OrthoCameraController.h\"\n#include \"Geometry.h\"\n#include \"FrameBuffer.h\"\n\n#define WINDOW_WIDTH 1280\n#define WINDOW_HEIGHT 720\n\nclass Sandbox : public Ember::Application {\npublic:\n\tvoid OnCreate() {\n\t\tEmber::RendererCommand::Init();\n\t\tEmber::RendererCommand::SetViewport(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n\t\tcamera = Ember::OrthoCameraController(glm::vec2(WINDOW_WIDTH, WINDOW_HEIGHT));\n\n\t\timgui = new Ember::ImGuiLayer(window, event_handler);\n\t\tPushLayer(imgui);\n\t}\n\n\tvirtual ~Sandbox() { }\n\n\tvoid OnUserUpdate(float delta) {\n\t\tEmber::RendererCommand::Clear();\n\t\tEmber::RendererCommand::SetClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\t\tcamera.Update();\n\t\trenderer-\u003eBeginScene(\u0026camera.GetCamera());\n\n\t\tEmber::Quad::Renderer(renderer);\n\t\tEmber::Quad::DrawQuad({ 0, 0, 0 }, { 1, 1 }, { 1, 0, 0, 1 });\n\t\tEmber::Quad::DrawQuad({ 1, 0, 0 }, { 1, 1 }, { 1, 1, 0, 1 });\n\n\t\trenderer-\u003eEndScene();\n\t}\n\n\tvoid UserDefEvent(Ember::Event\u0026 event) {\n\t\tEmber::EventDispatcher dispatch(\u0026event);\n\t\tcamera.OnEvent(event);\n\t}\n\n\tvoid OnGuiUpdate() { }\nprivate:\n\tEmber::OrthoCameraController camera;\n};\n\nint main(int argc, char** argv) {\n\tSandbox sandbox;\n\tsandbox.Initialize(\"EmberApp\", WINDOW_WIDTH, WINDOW_HEIGHT);\n\n\tsandbox.Run();\n\n\treturn 0;\n}\n\n```\n\nSimply call this class in `main` with it's initialize and run function and thats it! To use the API, add the desired headers like `Texture.h` and enjoy.\n\n![image not found](https://github.com/strah19/Ember/blob/master/docs/example.png?raw=true)\n\n\n# Dependencies \nAll these can actually be found in libs folder (besides the compiler) but here they are anyways:\n\u003cul\u003e\n\t\u003cli\u003eA compiler that supports C++17\u003c/li\u003e\n\t\u003cli\u003e\u003ca href = \"https://premake.github.io\"\u003ePremake5\u003c/a\u003e for building the project\u003c/li\u003e\n\t\u003cli\u003e\u003ca href = \"https://www.libsdl.org/download-2.0.php\"\u003eSDL2\u003c/a\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003ca href = \"https://www.libsdl.org/projects/SDL_mixer\"\u003eSDL Mixer\u003c/a\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003ca href = \"https://glad.dav1d.de\"\u003eGLAD\u003c/a\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003ca href = \"https://github.com/g-truc/glm\"\u003eGLM\u003c/a\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003ca href = \"https://www.freetype.org\"\u003eFreetype\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","funding_links":[],"categories":["Libraries"],"sub_categories":["C++"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrah19%2FEmber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrah19%2FEmber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrah19%2FEmber/lists"}