Revision: 75609
http://sourceforge.net/p/brlcad/code/75609
Author: starseeker
Date: 2020-04-25 19:52:19 +0000 (Sat, 25 Apr 2020)
Log Message:
-----------
Resizing is the next necessary piece to understand.
Modified Paths:
--------------
brlcad/trunk/src/libdm/tcl_img.cpp
Modified: brlcad/trunk/src/libdm/tcl_img.cpp
===================================================================
--- brlcad/trunk/src/libdm/tcl_img.cpp 2020-04-25 19:34:11 UTC (rev 75608)
+++ brlcad/trunk/src/libdm/tcl_img.cpp 2020-04-25 19:52:19 UTC (rev 75609)
@@ -250,6 +250,12 @@
bind_cmd = std::string("bind . <Button-3> {image_update}");
Tcl_Eval(interp, bind_cmd.c_str());
+ // Start working on figuring out resizing - wondering if we can just have
one pixelPtr buffer the size
+ // of the screen and only use as much as is needed for the active size of
the window, so we aren't
+ // constantly reallocating the background buffer on resize? Might also be
able to down/upsample the image
+ // during moving and do a full re-renering pass once we're stable, if the
rendering pass is expensive...
+ bind_cmd = std::string("bind . <Configure> {puts \"%W: [winfo width
%W]x[winfo height %W]\"}");
+ Tcl_Eval(interp, bind_cmd.c_str());
// Enter the main applicatio loop - the initial image will appear, and
Button-1 mouse
// clicks on the window should generate and display new images
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits