Git Product home page Git Product logo

hzengine's Introduction

HzEngine

A C++ Mini Game Engine Editor aimed to Cross-Platform&API!

Setup: scripts/Setup.bat 、Win-GenProjects.bat in order.

Platform: Now only supports windows & OpenGL Api.

ShowUp

20230311100306

This project includes spdlog log system, glfw event system, Layer layer design, Imgui input interface and visual debugging,OpenGLRendering

  1. LogSystem:Create the Log class, and then have s_ CoreLogger and s_ ClientLogger, which processes engine logs and client logs respectively.

  2. EventSystem:Event&EventDispatcher: Mouse Event、Window Event、ApplicationEvent and KeyEvent.

  3. LayerStack: A vector is used to simulate a stack as a container, and vector [0] is used as the top of the stack. The layer at the top of the stack is the closest layer to us on the screen. This layer receives the event first, and is finally rendered.

  4. InputSystem: The input instance can use the singleton mode. The interface exposed by the singleton is the static function, and the specific implementation method is the virtual function of the singleton.

  5. ImguiDocking: Docking of Imgui to realize editor dragging.

  6. OpenGLRendering: VBO、VAO、EBO、shader Abstraction:

    Vertex Buffer Layouts、Vertex Arrays、shaer、EBO part is easy

  7. Camera: P * V:OrthographicCamera&EditorCamera

  8. Timestep system:By multiplying the motion in each frame by the time elapsed in that frame, you can counteract the problem of data inconsistencies caused by frame rate.

  9. Profiling: Instumentor.h

  10. Batching Rendering: Modify the DrawQuad function to dynamically populate Vertex Buffer with vertex attribute data to be drawn when drawing.

    VertexBuffer: GL_STATIC_DRAW to GL_DYNAMIC_DRAW

  11. Editor

  12. FrameBuffer : Resize:change the camera frustum

  13. ECS: entt(Add、Has、Get)

  14. UI

  15. File system: Saving and Loading Scenes: YAML 、Open/Save File Dialogs::https://docs.microsoft.com/en-us/office/[vba](https://so.csdn.net/so/search?q=vba&spm=1001.2101.3001.7020)/api/excel.application.getopenfilename

  16. Gizmos:ImGuizmo::Manipulate(glm::value_ptr(cameraView), glm::value_ptr(cameraProjection), ImGuizmo::OPERATION::TRANSLATE, ImGuizmo::LOCAL, glm::value_ptr(transform));

  17. Multiple Render Targets and Framebuffer Refactor:Click on the corresponding GameObject in the Viewport

  18. SPIR-V & shaderc:

  19. UniformBuffer:A piece of memory located on the GPU can be shared by all Shader.

  20. 2DphysicsSystem: with Box2D.

This project is based on the Hazel engine of the Cherno. Thank you very much for Cherno's videos.

TODO: Merge things in Dev Branch of 3D...

hzengine's People

Contributors

yuymf avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.