Overlume 1.2.0
A real-time rendering layer for a robot's sensor and autonomy data
Loading...
Searching...
No Matches
api.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 Amer Ghazal
3
4#pragma once
5
6#include <cstdint>
7#include <cstddef>
8
9namespace overlume {
10
11struct CameraPose {
12 double eye[3];
13 double target[3];
14 double vfov_deg;
15};
16
18 uint32_t width;
19 uint32_t height;
20 uint8_t quality;
21 const char* theme_assets_dir;
22 const char* initial_theme;
23};
24
25struct FrameView {
26 uint8_t* rgb;
27 uint32_t width;
28 uint32_t height;
29};
30
31class VisualRenderer;
32
33VisualRenderer* create_renderer(const RenderConfig&);
34void destroy_renderer(VisualRenderer*);
35bool render_frame(VisualRenderer*, const CameraPose&, FrameView out);
36
37}
Definition api.h:9
VisualRenderer * create_renderer(const RenderConfig &)
bool render_frame(VisualRenderer *, const CameraPose &, FrameView out)
void destroy_renderer(VisualRenderer *)
Definition api.h:11
double vfov_deg
Definition api.h:14
double eye[3]
Definition api.h:12
double target[3]
Definition api.h:13
Definition api.h:25
uint8_t * rgb
Definition api.h:26
uint32_t height
Definition api.h:28
uint32_t width
Definition api.h:27
Definition api.h:17
uint32_t height
Definition api.h:19
uint8_t quality
Definition api.h:20
const char * initial_theme
Definition api.h:22
uint32_t width
Definition api.h:18
const char * theme_assets_dir
Definition api.h:21