-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add secondary viewport #32
Conversation
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.
Two lines caught my attention. Might be the source of some problems.
Éventuellement enlève les tabs que tu as ajouté dans application.h/.cpp
aussi, stp.
Super cool! Some comments on the behaviour.
|
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.
Très cool! Rien de majeur, merge upstream aussi.
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.
Cool, beau code clean. qqes trucs de formattage, ça achève 👍
Engine/src/application.cpp
Outdated
const std::string ICON32_FNAME = "/icons/icon32.png"; | ||
const std::string ICON48_FNAME = "/icons/icon48.png"; | ||
const std::string ICON64_FNAME = "/icons/icon64.png"; | ||
const unsigned int WIN_WIDTH = 800; |
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.
Still looks indented
Engine/include/camera.h
Outdated
@@ -50,7 +58,7 @@ class Camera | |||
glm::mat4 viewMatrix; | |||
glm::mat4 projectionMatrix; | |||
}; | |||
|
|||
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.
whitespaces are back
Engine/src/camera.cpp
Outdated
mProjectionMatrix = camera.mProjectionMatrix; | ||
mViewMatrix = camera.mViewMatrix; | ||
mBlockRotation = camera.mBlockRotation; | ||
mCamParamsData = camera.mCamParamsData; |
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.
Do we really need to copy this one? It's the GPU binding and I think it should be unique to each instance.
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.
Or at least not modified by this method.
I'd like to suggest a change for adding a border to the secondary viewport. Here is how to do it:
Then in
Basically what this does is fill the secondary viewport with white and then render the scene in a slightly smaller viewport inside the secondary viewport. Also can you default to |
* added gl scissor test * added new data to gitignore * changer l'endroit de la fonction d'affichage du viewport * viewport control is good, missing render * viewport added * viewport control working * gotta move the camera boy * added camera rotation * almost there * code cleaning * camera rotation done * alias * main camera zoom too idk y * camera controls are ok * fixed camera synchronization * removed auto formatter tabs * translation fixed * add magnifying mode in gui * fix window resize * most minor fixes for pr * final pr fixes * delete unused fct * 2d mode switched to camera * changed 2d mode to camera * finished merging * formatting and camera reset fct * added border to secondary vp * finished Co-authored-by: Achille Lanctôt-Saumure <lana2914@dinf-0051-28b.DInf.fsci.usherbrooke.ca> Co-authored-by: lana2914 <achille.lanctot-saumure@usherbrooke.ca>
draft PR for reviewing