From 76608845ca801c34eac09b65c0b7e1520918d97c Mon Sep 17 00:00:00 2001 From: Liangliang Nan Date: Mon, 16 Sep 2024 09:13:29 +0200 Subject: [PATCH] add comments --- applications/FigureMaker/main.cpp | 4 ++-- easy3d/util/version.h | 2 +- easy3d/viewer/multi_viewer.cpp | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/applications/FigureMaker/main.cpp b/applications/FigureMaker/main.cpp index 9d95f4d6..85ec15f4 100644 --- a/applications/FigureMaker/main.cpp +++ b/applications/FigureMaker/main.cpp @@ -37,7 +37,7 @@ int main(int argc, char** argv) { // initialize Easy3D. initialize(true, true); - // create a 1 by 1 MultiViewer by default + // create a 1 by 1 layout by default FigureMaker viewer(1, 1, APP_TITLE); // usage @@ -50,7 +50,7 @@ int main(int argc, char** argv) { " ------------------------------------\n" " f: fit model to screen\n" " l: toggle lighting\n" - " d: toggle dividign lines\n" + " d: toggle dividing lines\n" "--------------------------------------\n" ); diff --git a/easy3d/util/version.h b/easy3d/util/version.h index 7a141e32..9eee0898 100644 --- a/easy3d/util/version.h +++ b/easy3d/util/version.h @@ -59,7 +59,7 @@ namespace easy3d { #define EASY3D_VERSION_NR 1020503 /// Easy3D release date, in the format YYYYMMDD. -#define EASY3D_RELEASE_DATE 20240913 +#define EASY3D_RELEASE_DATE 20240916 #endif // EASY3D_UTIL_VERSION_H diff --git a/easy3d/viewer/multi_viewer.cpp b/easy3d/viewer/multi_viewer.cpp index 596ce6bd..bf5cab93 100644 --- a/easy3d/viewer/multi_viewer.cpp +++ b/easy3d/viewer/multi_viewer.cpp @@ -104,6 +104,9 @@ namespace easy3d { int w, h; framebuffer_size(w, h); + // Note: it also possible to use a scaled framebuffer size (to render a larger image). + // This requires setting scaled viewport size (by calling glViewport() for each + // view in MultiViewer::draw(). FramebufferObject fbo(w, h, samples_); fbo.add_color_buffer(); fbo.add_depth_buffer(); @@ -117,7 +120,7 @@ namespace easy3d { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); const_cast(this)->draw(); - + fbo.release(); // color render buffer