summaryrefslogtreecommitdiff
path: root/src/new_render/render.c
blob: f5547d5f2663282b6d25c395a177a8dbaf14a9fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
 * @brief
 */

#include "render.h"
#include "maths_types.h"
#include "pbr.h"
#include "ral_common.h"
#include "render_scene.h"
#include "shadows.h"

struct Renderer {
  struct GLFWwindow* window;
  RendererConfig config;
  GPU_Device device;
  GPU_Swapchain swapchain;
  GPU_Renderpass* default_renderpass;
  bool frame_aborted;
  RenderScene scene;
  PBR_Storage* pbr;
  Shadow_Storage* shadows;
  // Terrain_Storage terrain;
  // Text_Storage text;
  struct ResourcePools* resource_pools;
};

bool Renderer_Init(RendererConfig config, Renderer* renderer) {
  // set the RAL backend up

  // create our renderpasses
  Shadow_Init(renderer->shadows);

  return true;
}