Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Sep 16, 2024
1 parent 3430c92 commit 7660884
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions applications/FigureMaker/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
);

Expand Down
2 changes: 1 addition & 1 deletion easy3d/util/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion easy3d/viewer/multi_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -117,7 +120,7 @@ namespace easy3d {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);

const_cast<MultiViewer*>(this)->draw();

fbo.release();

// color render buffer
Expand Down

0 comments on commit 7660884

Please sign in to comment.