VOX
A little voxel engine
Loading...
Searching...
No Matches
render_loop.cpp File Reference
#include "RenderAPI.hpp"
#include "logger.hpp"
#include "ft_format.hpp"
#include <iostream>
#include <array>
#include <algorithm>
#include <chrono>
#include <cstring>
#include <unistd.h>
Include dependency graph for render_loop.cpp:

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)
 

Macro Definition Documentation

◆ FLOAT_SLIDER

#define FLOAT_SLIDER (   name,
  min,
  max 
)    float name ## _f = name; ImGui::SliderFloat(#name, &name ## _f, min, max); name = name ## _f;

◆ INT_SLIDER

#define INT_SLIDER (   name,
  min,
  max 
)    int name ## _i = name; ImGui::SliderInt(#name, &name ## _i, min, max); name = name ## _i;

◆ VEC3_SLIDER

#define VEC3_SLIDER (   name,
  min_x,
  max_x,
  min_y,
  max_y,
  min_z,
  max_z 
)
Value:
float name ## _x = name.x; \
float name ## _y = name.y; \
float name ## _z = name.z; \
ImGui::SliderFloat(#name " x", &name ## _x, min_x, max_x); \
ImGui::SliderFloat(#name " y", &name ## _y, min_y, max_y); \
ImGui::SliderFloat(#name " z", &name ## _z, min_z, max_z); \
name = glm::vec3(name ## _x, name ## _y, name ## _z);