Horizon
Loading...
Searching...
No Matches
src
export_3d_image
export_3d_image.hpp
1
#pragma once
2
#include <string>
3
#include <vector>
4
#include "canvas3d/canvas3d_base.hpp"
5
#include <cairomm/cairomm.h>
6
7
namespace
horizon {
8
9
class
Image3DExporter :
public
Canvas3DBase {
10
public
:
11
Image3DExporter(
const
class
Board
&brd,
class
IPool
&pool,
unsigned
int
width,
unsigned
int
height);
12
13
void
load_3d_models();
14
Cairo::RefPtr<Cairo::Surface> render_to_surface();
15
virtual
~Image3DExporter();
16
17
const
bool
&get_render_background()
const
18
{
19
return
render_background;
20
}
21
void
set_render_background(
const
bool
&v)
22
{
23
render_background = v;
24
}
25
26
private
:
27
class
IPool
&pool;
28
void
*egl =
nullptr
;
// to get around including epoxy here
29
void
*dpy =
nullptr
;
// to get around including epoxy here
30
void
*surf =
nullptr
;
// to get around including epoxy here
31
void
check_ctx();
32
bool
render_background =
false
;
33
};
34
35
}
// namespace horizon
horizon::Board
Definition
board.hpp:47
horizon::IPool
Definition
ipool.hpp:15
Generated by
1.15.0