From c38d13f3dc5e90e46d87e29bb205e984a0cf773a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 1 Dec 2008 17:55:58 -0500 Subject: [PATCH] Make the C struct definitions more C++ friendly. --- mojoshader.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mojoshader.h b/mojoshader.h index 8893fba0..9d12bb55 100644 --- a/mojoshader.h +++ b/mojoshader.h @@ -124,7 +124,7 @@ typedef enum * (name) is a profile-specific variable name; it may be NULL if it isn't * applicable to the requested profile. */ -typedef struct +typedef struct MOJOSHADER_uniform { MOJOSHADER_uniformType type; int index; @@ -144,7 +144,7 @@ typedef struct * before drawing with the shader. * (value) is the value of the constant, unioned by type. */ -typedef struct +typedef struct MOJOSHADER_constant { MOJOSHADER_uniformType type; int index; @@ -177,7 +177,7 @@ typedef enum * (name) is a profile-specific variable name; it may be NULL if it isn't * applicable to the requested profile. */ -typedef struct +typedef struct MOJOSHADER_sampler { MOJOSHADER_samplerType type; int index; @@ -218,7 +218,7 @@ typedef enum * (name) is a profile-specific variable name; it may be NULL if it isn't * applicable to the requested profile. */ -typedef struct +typedef struct MOJOSHADER_attribute { MOJOSHADER_usage usage; int index; @@ -231,7 +231,7 @@ typedef struct * will be processing data on COLOR0 that should be RGBA, but you'll * be passing it a vertex array full of ARGB instead. */ -typedef struct +typedef struct MOJOSHADER_swizzle { MOJOSHADER_usage usage; unsigned int index; @@ -242,7 +242,7 @@ typedef struct /* * Structure used to return data from parsing of a shader... */ -typedef struct +typedef struct MOJOSHADER_parseData { /* * Human-readable error, if there is one. Will be NULL if there was no