VOX
A little voxel engine
|
#include "RenderAPI.hpp"
#include "logger.hpp"
#include "ft_format.hpp"
#include <iostream>
#include <array>
#include <algorithm>
#include <chrono>
#include <cstring>
#include <unistd.h>
Macros | |
#define | FLOAT_SLIDER(name, min, max) float name ## _f = name; ImGui::SliderFloat(#name, &name ## _f, min, max); name = name ## _f; |
#define | INT_SLIDER(name, min, max) int name ## _i = name; ImGui::SliderInt(#name, &name ## _i, min, max); name = name ## _i; |
#define | VEC3_SLIDER(name, min_x, max_x, min_y, max_y, min_z, max_z) |
#define FLOAT_SLIDER | ( | name, | |
min, | |||
max | |||
) | float name ## _f = name; ImGui::SliderFloat(#name, &name ## _f, min, max); name = name ## _f; |
#define INT_SLIDER | ( | name, | |
min, | |||
max | |||
) | int name ## _i = name; ImGui::SliderInt(#name, &name ## _i, min, max); name = name ## _i; |
#define VEC3_SLIDER | ( | name, | |
min_x, | |||
max_x, | |||
min_y, | |||
max_y, | |||
min_z, | |||
max_z | |||
) |