Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic nvrhi renderer #113

Merged
merged 40 commits into from
Dec 28, 2024
Merged

Basic nvrhi renderer #113

merged 40 commits into from
Dec 28, 2024

Conversation

Twarug
Copy link
Contributor

@Twarug Twarug commented Dec 25, 2024

Allows entities to draw triangles

.clang-tidy Outdated Show resolved Hide resolved
include/Gfx.h Outdated Show resolved Hide resolved
include/gfx/Buffer.h Show resolved Hide resolved

virtual void render(const Ref<Mesh>& mesh, const Mat4x4& transform) = 0;

public:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 consecutive public:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These help divide API to logical parts.

static Ref<Renderer> current() { return s_current; }

protected:
explicit Renderer(RenderingAPI api, bool debug = true): _api(api), _debug(debug) {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be moved to 2nd protected:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These help divide API to logical parts.


void cleanup(const Ref<VulkanContext>& context);

public:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 consecutive public:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These help divide API to logical parts.

private:
Ref<Scene> _currentScene;

public:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be merged with 1st public:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These help divide API to logical parts.

include/scene/components/TransformComponent.h Outdated Show resolved Hide resolved
src/platform/nvrhi/context/NvrhiVulkanContext.cpp Outdated Show resolved Hide resolved
archimedes_bin/main.cpp Outdated Show resolved Hide resolved
@Twarug Twarug merged commit 9d2f86c into master Dec 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants