1#ifndef NNGN_GRAPHICS_PSEUDO_H
2#define NNGN_GRAPHICS_PSEUDO_H
15 std::size_t
n_layers()
const override {
return 0; }
16 std::size_t
n_devices()
const override {
return 0; }
20 std::size_t
n_heaps(std::size_t)
const override {
return 0; }
33 bool error()
override {
return false; }
38 void get_keys(
size_t, int32_t*)
const override {}
73 void f(
void*,
void*,
u64,
u64))
override;
82 bool render()
override {
return true; }
83 bool vsync()
override;
local n
Definition dump_lights.lua:5
local data
Definition house0.lua:10
std::uint32_t u32
Definition def.h:14
std::uint64_t u64
Definition def.h:15
Definition graphics.h:233
Definition graphics.h:250
Definition graphics.h:185
Definition graphics.h:174
Definition graphics.h:179
Definition graphics.h:255
Definition graphics.h:202
Definition graphics.h:207
Definition graphics.h:219
Definition graphics.h:194
Definition graphics.h:239
Definition graphics.h:215
Definition graphics.h:155
Definition graphics.h:138
void(*)(void *, int, int, int, int) key_callback_f
Definition graphics.h:140
void(*)(void *, dvec2) mouse_move_callback_f
Definition graphics.h:142
CursorMode
Definition graphics.h:249
void(*)(void *, uvec2) size_callback_f
Definition graphics.h:139
void(*)(void *, int, int, int) mouse_button_callback_f
Definition graphics.h:141
PresentMode
Definition graphics.h:148
bool set_buffer_size(u32, u64) override
Definition pseudo.h:70
Version version() const override
Definition pseudo.h:9
bool load_textures(u32, u32, const std::byte *) override
Definition pseudo.h:75
void set_mouse_button_callback(void *, mouse_button_callback_f) override
Definition pseudo.h:47
void set_cursor_mode(CursorMode) override
Definition pseudo.h:44
void device_infos(DeviceInfo *) const override
Definition pseudo.h:26
void set_camera(const Camera &) override
Definition pseudo.h:50
void set_bloom_blur_passes(std::size_t) override
Definition pseudo.h:61
uvec2 window_size() const override
Definition pseudo.h:36
bool set_n_swap_chain_images(std::size_t) override
Definition pseudo.h:41
bool set_shadow_cube_size(uint32_t) override
Definition pseudo.h:55
void poll_events() const override
Definition pseudo.h:80
bool set_buffer_capacity(u32, u64) override
Definition pseudo.h:69
void set_mouse_move_callback(void *, mouse_move_callback_f) override
Definition pseudo.h:48
bool init_instance() override
Definition pseudo.h:11
u32 create_buffer(const BufferConfiguration &) override
Definition pseudo.h:68
std::size_t selected_device() const override
Definition pseudo.h:23
void set_bloom_amount(float) override
Definition pseudo.h:62
GraphicsStats stats() override
Definition pseudo.h:37
ivec2 mouse_pos(void) const override
Definition pseudo.h:39
void heaps(std::size_t, MemoryHeap *) const override
Definition pseudo.h:31
void set_size_callback(void *, size_callback_f) override
Definition pseudo.h:45
bool set_n_frames(std::size_t) override
Definition pseudo.h:40
bool init_device() override
Definition pseudo.h:12
void set_bloom_downscale(std::size_t) override
Definition pseudo.h:58
void set_window_title(const char *) override
Definition pseudo.h:43
void get_keys(size_t, int32_t *) const override
Definition pseudo.h:38
bool init_device(std::size_t) override
Definition pseudo.h:13
void set_bloom_threshold(float) override
Definition pseudo.h:59
bool window_closed() const override
Definition pseudo.h:34
bool vsync() override
Definition pseudo.cpp:23
bool set_render_list(const RenderList &) override
Definition pseudo.h:81
void layers(Layer *) const override
Definition pseudo.h:25
bool init_backend() override
Definition pseudo.h:10
std::size_t n_memory_types(std::size_t, std::size_t) const override
Definition pseudo.h:21
void set_swap_interval(int) override
Definition pseudo.h:42
void device_extensions(std::size_t, Extension *) const override
Definition pseudo.h:27
void queue_families(std::size_t, QueueFamily *) const override
Definition pseudo.h:28
void resize(int, int) override
Definition pseudo.h:49
u32 create_pipeline(const PipelineConfiguration &) override
Definition pseudo.h:67
bool resize_font(u32) override
Definition pseudo.h:76
bool write_to_buffer(u32 b, u64 offset, u64 n, u64 size, void *data, void f(void *, void *, u64, u64)) override
Definition pseudo.cpp:13
std::size_t n_present_modes() const override
Definition pseudo.h:19
std::size_t n_extensions() const override
Definition pseudo.h:14
void set_lighting_updated() override
Definition pseudo.h:53
void set_automatic_exposure(bool) override
Definition pseudo.h:56
std::size_t n_device_extensions(std::size_t) const override
Definition pseudo.h:17
std::size_t n_heaps(std::size_t) const override
Definition pseudo.h:20
bool resize_textures(u32) override
Definition pseudo.h:74
void set_blur_size(float) override
Definition pseudo.h:64
void set_blur_downscale(std::size_t) override
Definition pseudo.h:63
void extensions(Extension *) const override
Definition pseudo.h:24
std::size_t n_layers() const override
Definition pseudo.h:15
void set_lighting(const Lighting &) override
Definition pseudo.h:51
bool error() override
Definition pseudo.h:33
void set_key_callback(void *, key_callback_f) override
Definition pseudo.h:46
void set_bloom_blur_size(float) override
Definition pseudo.h:60
bool render() override
Definition pseudo.h:82
void set_camera_updated() override
Definition pseudo.h:52
std::size_t n_devices() const override
Definition pseudo.h:16
SurfaceInfo surface_info() const override
Definition pseudo.h:29
bool load_font(unsigned char, u32, const nngn::uvec2 *, const std::byte *) override
Definition pseudo.h:77
void present_modes(PresentMode *) const override
Definition pseudo.h:30
void set_HDR_mix(float) override
Definition pseudo.h:66
void set_blur_passes(std::size_t) override
Definition pseudo.h:65
bool set_shadow_map_size(uint32_t) override
Definition pseudo.h:54
void set_exposure(float) override
Definition pseudo.h:57
std::size_t n_queue_families(std::size_t) const override
Definition pseudo.h:18
void memory_types(std::size_t, std::size_t, MemoryType *) const override
Definition pseudo.h:32
int swap_interval() const override
Definition pseudo.h:35