Initial drafts for rendering points.
parent
48b72c7e15
commit
ff4490887f
|
@ -17,7 +17,8 @@ typedef enum {
|
||||||
SRndrCmdTypeFrame = 0,
|
SRndrCmdTypeFrame = 0,
|
||||||
SRndrCmdTypeGrid,
|
SRndrCmdTypeGrid,
|
||||||
SRndrCmdTypeCube,
|
SRndrCmdTypeCube,
|
||||||
SRndrCmdTypeSphere
|
SRndrCmdTypeSphere,
|
||||||
|
SrndrCmdTypePoint,
|
||||||
} SRndrCmdType;
|
} SRndrCmdType;
|
||||||
|
|
||||||
typedef struct srcmd {
|
typedef struct srcmd {
|
||||||
|
@ -67,6 +68,12 @@ void srndr_render(srndr* srndr, srview* sview, srcmdbuf* scmdbuf);
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
typedef struct srndr {
|
typedef struct srndr {
|
||||||
|
struct {
|
||||||
|
simd4f* pos;
|
||||||
|
simd4f* color;
|
||||||
|
GLuint num_points;
|
||||||
|
GLuint points_vbo_id;
|
||||||
|
} point_buf;
|
||||||
} srndr;
|
} srndr;
|
||||||
|
|
||||||
typedef struct srview {
|
typedef struct srview {
|
||||||
|
|
Loading…
Reference in New Issue