From ff4490887f7af58f9f33cc2f11e0423c85d3db95 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Fri, 13 Nov 2020 21:53:28 +0100 Subject: [PATCH] Initial drafts for rendering points. --- src/srender.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/srender.h b/src/srender.h index d1e5496..8be6797 100644 --- a/src/srender.h +++ b/src/srender.h @@ -17,7 +17,8 @@ typedef enum { SRndrCmdTypeFrame = 0, SRndrCmdTypeGrid, SRndrCmdTypeCube, - SRndrCmdTypeSphere + SRndrCmdTypeSphere, + SrndrCmdTypePoint, } SRndrCmdType; typedef struct srcmd { @@ -67,6 +68,12 @@ void srndr_render(srndr* srndr, srview* sview, srcmdbuf* scmdbuf); #include "utils.h" typedef struct srndr { + struct { + simd4f* pos; + simd4f* color; + GLuint num_points; + GLuint points_vbo_id; + } point_buf; } srndr; typedef struct srview {