Go to the documentation of this file.
45 #define RENDERER_HPP 1
60 Vec3D _light_diffuse_color;
61 Vec3D _light_location;
62 Vec3D _light_ambient_color;
74 void set_light_diffuse_color(
Vec3D color );
75 void set_light_location(
Vec3D location );
76 void set_light_ambient_color(
Vec3D color );
78 virtual void set_material_diffuse_color(
Vec3D color ) = 0;
79 virtual void set_material_ambient_color(
Vec3D color ) = 0;
80 virtual void set_color(
Vec3D color ) = 0;
83 void set_projection_frustum(
double left,
double right,
84 double bottom,
double top,
85 double near,
double far );
86 void set_view_look_at(
const Vec3D &camera,
91 virtual void start_rendering(
void ) = 0;
92 virtual void end_rendering( cairo_t *cairo ) = 0;
95 virtual void disable_lighting(
void ) = 0;
96 virtual void enable_lighting(
void ) = 0;
99 virtual void enable_view_settings(
void ) = 0;
102 virtual void flat_triangle(
const Vec3D &x0,
105 const Vec3D &n ) = 0;
106 virtual void shaded_triangle(
const Vec3D &x0,
const Vec3D &c0,
109 const Vec3D &n ) = 0;
110 virtual void line(
const Vec3D &x0,
111 const Vec3D &x1 ) = 0;
3D renderer base class.
Definition: renderer.hpp:56
Three dimensional vector.
Definition: vec3d.hpp:58
Reference manual for Ion Beam Simulator 1.0.6dev
Generated by
Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.