Initial drafts for rendering points.

master
Martin Felis 2020-11-13 21:53:28 +01:00
parent 48b72c7e15
commit ff4490887f
1 changed files with 8 additions and 1 deletions

View File

@ -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 {