commit 6b6e31309cf01860273d5bc561adb1e0c243c76c
parent b554de479b6485268d3f20b93aa3abe2465afb70
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 19 Aug 2015 15:24:20 +0200
Add the S3D_PRIMITIVE_NULL constant
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/s3d.h b/src/s3d.h
@@ -103,6 +103,10 @@ struct s3d_primitive {
void* inst__;
};
+static const struct s3d_primitive S3D_PRIMITIVE_NULL = {
+ S3D_INVALID_ID, S3D_INVALID_ID, S3D_INVALID_ID, NULL, NULL
+};
+
/* Helper macro that defines whether or not 2 primites are equal */
#define S3D_PRIMITIVE_EQ(Prim0, Prim1) \
( (Prim0)->prim_id == (Prim1)->prim_id \