Gin
Loading...
Searching...
No Matches
Renderer3D Class Reference

Renders a 3D scene to a juce::Graphics context as wireframes. More...

#include <gin_renderer3d.h>

Public Member Functions

 Renderer3D ()=default
void render (juce::Graphics &g, const Scene3D &scene, juce::Rectangle< int > bounds)
 Renders the scene to the given graphics context.
void render (juce::Graphics &g, const Scene3D &scene, juce::Rectangle< float > bounds)
void setLineThickness (float thickness)
 Sets the line thickness for rendering.
float getLineThickness () const
void setDepthCueing (bool enabled)
 Enables/disables depth-based line dimming.
bool getDepthCueing () const

Detailed Description

Renders a 3D scene to a juce::Graphics context as wireframes.

Constructor & Destructor Documentation

◆ Renderer3D()

Renderer3D::Renderer3D ( )
default

Member Function Documentation

◆ render() [1/2]

void Renderer3D::render ( juce::Graphics & g,
const Scene3D & scene,
juce::Rectangle< int > bounds )

Renders the scene to the given graphics context.

Parameters
gThe graphics context to render to
sceneThe 3D scene to render
boundsThe area to render into

References render().

Referenced by render().

◆ render() [2/2]

void Renderer3D::render ( juce::Graphics & g,
const Scene3D & scene,
juce::Rectangle< float > bounds )

◆ setLineThickness()

void Renderer3D::setLineThickness ( float thickness)

Sets the line thickness for rendering.

◆ getLineThickness()

float Renderer3D::getLineThickness ( ) const

◆ setDepthCueing()

void Renderer3D::setDepthCueing ( bool enabled)

Enables/disables depth-based line dimming.

◆ getDepthCueing()

bool Renderer3D::getDepthCueing ( ) const

The documentation for this class was generated from the following file: