Make the C struct definitions more C++ friendly.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 01 Dec 2008 17:55:58 -0500
changeset 462 af8c1ff58453
parent 461 892b408b5779
child 463 6f3a82d7e3d2
Make the C struct definitions more C++ friendly.
mojoshader.h
--- a/mojoshader.h	Mon Dec 01 17:54:48 2008 -0500
+++ b/mojoshader.h	Mon Dec 01 17:55:58 2008 -0500
@@ -124,7 +124,7 @@
  * (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 @@
  *  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 @@
  * (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 @@
  * (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 @@
  *  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 @@
 /*
  * 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