summaryrefslogtreecommitdiff
path: root/src/renderer/immediate.h
blob: 6d93c53f5b1c690ba87b49741a6dc86a99420e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "geometry.h"
#include "maths_types.h"

// 3. SIMA (simplified immediate mode api) / render.h
//      - dont need to worry about uploading mesh data
//      - very useful for debugging
void imm_draw_cuboid(vec3 pos, quat rotation, f32x3 extents, vec4 colour);
void imm_draw_sphere(vec3 pos, f32 radius, vec4 colour);
void imm_draw_camera_frustum();

// static void imm_draw_model(
//     const char* model_filepath);  // tracks internally whether the model is loaded

// static void imm_draw_model(const char* model_filepath) {
  // check that model is loaded
  // if not loaded, load model and upload to gpu - LRU cache for models
  // else submit draw call
// }