Initial drafts for rendering points.
parent
48b72c7e15
commit
ff4490887f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue