-
Notifications
You must be signed in to change notification settings - Fork 0
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
Basic nvrhi renderer #113
Conversation
# Conflicts: # include/math/Math.h # src/Engine.cpp
# Conflicts: # src/Engine.cpp
# Conflicts: # archimedes_bin/main.cpp # cmake/library.cmake # include/Engine.h # src/Engine.cpp
|
||
virtual void render(const Ref<Mesh>& mesh, const Mat4x4& transform) = 0; | ||
|
||
public: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5 consecutive public:
There was a problem hiding this comment.
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) {} |
There was a problem hiding this comment.
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:
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 consecutive public:
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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:
There was a problem hiding this comment.
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.
Allows entities to draw triangles