LightsprintSDK 2021.08.08
Visual Studio

Lightsprint SDK works with Visual Studio out of the box, but it's possible to improve visualizations of Lightsprint types in debugger.

Visual Studio 2012 - 2022

To improve visualizations, copy our Lightsprint.SDK.natvis file to Visual Studio folder Common7/Packages/Debugger/Visualizers. bin/install_vs_visualizers.bat can do it for you, when run as an administrator.

Visual Studio 2010

To improve visualizations, open Visual Studio file Common7/Packages/Debugger/autoexp.dat and insert following blocks of text

  • into [AutoExpand] section
    rr::RRVec2=<x>,<y>
    rr::RRVec3=<x>,<y>,<z>
    rr::RRVec4=<x>,<y>,<z>,<w>
    Minimalistic string, for portable API.
    Definition RRMemory.h:166
    Vector of 2 real numbers plus basic support.
    Definition RRMath.h:109
    Vector of 3 real numbers plus basic support.
    Definition RRMath.h:151
    Vector of 4 real numbers. Operators use all 4 components.
    Definition RRMath.h:208
  • into [Visualizer] section
    children
    (
    #array
    (
    expr : ($c.c)[$i],
    size : $c.numUsed
    )
    )
    preview
    (
    #(
    "[", $e.numUsed , "](",
    #array
    (
    expr : ($c.c)[$i],
    size : $c.numUsed
    ),
    ")"
    )
    )
    }
    Portable but limited, minimalistic std::vector replacement.
    Definition RRVector.h:65