r3d.h 472 B

1234567891011121314151617181920212223
  1. // Bomberjacket OS R3D Engine
  2. #define R3D_OVERSPILL_SIZE 10*1024
  3. #define NUM_CTL_LISTS 4
  4. #define CTL_BLOCK_SIZE 128*1024
  5. #define R3D_BIN_SIZE 0x100000
  6. typedef struct nv_vertex_t {
  7. uint16_t x;
  8. uint16_t y;
  9. float z;
  10. float w;
  11. float r;
  12. float g;
  13. float b;
  14. } nv_vertex_t;
  15. void r3d_init(uint32_t* fb);
  16. nv_vertex_t* r3d_init_frame();
  17. void r3d_triangles(int num_triangles, nv_vertex_t* triangles);
  18. void r3d_render_frame(uint32_t clear_color);
  19. void r3d_debug_gpu();