Skip to content

Instantly share code, notes, and snippets.

View dov's full-sized avatar

Dov Grobgeld dov

  • Rehovot, Israel
View GitHub Profile
//======================================================================
// select-rectangle.cpp
//
// This program should demonstrate how to select multiple objects
// by drawing a rectangle with the mouse.
//
// This snippet is licensed under the MIT license.
//
// Dov Grobgeld <dov.grobgeld@gmail.com>
// 2024-10-11 Fri
@dov
dov / vsg-select-rectangle.cpp
Created October 12, 2024 19:02
VulkanSceneGraph rectangular selection input
//======================================================================
// select-rectangle.cpp
//
// This program should demonstrate how to select multiple objects
// by drawing a rectangle with the mouse.
//
// This snippet is licensed under the MIT license.
//
// Dov Grobgeld <dov.grobgeld@gmail.com>
// 2024-10-11 Fri
@dov
dov / test-vsg-view-resize.cpp
Created November 26, 2024 12:55
An example of how to use the proposed vsg::View::resize() update function to redraw the view elements
//======================================================================
// hello-box.cpp - Show a box with vsg viewer
//
// Extended to add keyboard interaction
//
// Dov Grobgeld <dov.grobgeld@gmail.com>
// Sat Mar 16 23:25:06 2024
//----------------------------------------------------------------------
#include <vsg/all.h>
@dov
dov / mpremote.el
Created June 4, 2025 20:26
An emacs comint shell for mpremote
;; A mode for running mpremote in a comint buffer
;;
;; 2025-06-04 Wed
;; Author: Dov Grobgeld
;; License: MIT
;;
;; Usage: M-x run-mpremote
(setq mp-port "a0")
@dov
dov / load-stl-and-change-color.cpp
Created July 12, 2025 18:27
VSG example of how to modify the color of an STL file
//======================================================================
// load-stl-and-change-color.cpp -
//
// Based on vsghelloworld.cpp
//
// Dov Grobgeld <dov.grobgeld@gmail.com>
// Sat Jul 12 04:38:30 2025
//----------------------------------------------------------------------
#include <stdio.h>