Removed explicit numbers on enums in mojoshader.h. trunk
authorRyan C. Gordon <icculus@icculus.org>
Sat, 19 Apr 2008 02:29:41 -0400
branchtrunk
changeset 147 98043daf5027
parent 146 9a0d4707feb8
child 148 645003ec6623
Removed explicit numbers on enums in mojoshader.h. Why was I doing that, again?
mojoshader.h
--- a/mojoshader.h	Sat Apr 19 02:26:26 2008 -0400
+++ b/mojoshader.h	Sat Apr 19 02:29:41 2008 -0400
@@ -54,12 +54,12 @@
  */
 typedef enum
 {
-    MOJOSHADER_UNIFORM_FLOAT = 0,
-    MOJOSHADER_UNIFORM_INT = 1,
-    MOJOSHADER_UNIFORM_BOOL = 2,
-    MOJOSHADER_UNIFORM_SAMPLER_2D = 3,
-    MOJOSHADER_UNIFORM_SAMPLER_CUBE = 4,
-    MOJOSHADER_UNIFORM_SAMPLER_3D = 5,
+    MOJOSHADER_UNIFORM_FLOAT,
+    MOJOSHADER_UNIFORM_INT,
+    MOJOSHADER_UNIFORM_BOOL,
+    MOJOSHADER_UNIFORM_SAMPLER_2D,
+    MOJOSHADER_UNIFORM_SAMPLER_CUBE,
+    MOJOSHADER_UNIFORM_SAMPLER_3D,
 } MOJOSHADER_uniformType;
 
 /*
@@ -81,20 +81,20 @@
  */
 typedef enum
 {
-    MOJOSHADER_USAGE_POSITION = 0,
-    MOJOSHADER_USAGE_BLENDWEIGHT = 1,
-    MOJOSHADER_USAGE_BLENDINDICES = 2,
-    MOJOSHADER_USAGE_NORMAL = 3,
-    MOJOSHADER_USAGE_POINTSIZE = 4,
-    MOJOSHADER_USAGE_TEXCOORD = 5,
-    MOJOSHADER_USAGE_TANGENT = 6,
-    MOJOSHADER_USAGE_BINORMAL = 7,
-    MOJOSHADER_USAGE_TESSFACTOR = 8,
-    MOJOSHADER_USAGE_POSITIONT = 9,
-    MOJOSHADER_USAGE_COLOR = 10,
-    MOJOSHADER_USAGE_FOG = 11,
-    MOJOSHADER_USAGE_DEPTH = 12,
-    MOJOSHADER_USAGE_SAMPLE = 13,
+    MOJOSHADER_USAGE_POSITION,
+    MOJOSHADER_USAGE_BLENDWEIGHT,
+    MOJOSHADER_USAGE_BLENDINDICES,
+    MOJOSHADER_USAGE_NORMAL,
+    MOJOSHADER_USAGE_POINTSIZE,
+    MOJOSHADER_USAGE_TEXCOORD,
+    MOJOSHADER_USAGE_TANGENT,
+    MOJOSHADER_USAGE_BINORMAL,
+    MOJOSHADER_USAGE_TESSFACTOR,
+    MOJOSHADER_USAGE_POSITIONT,
+    MOJOSHADER_USAGE_COLOR,
+    MOJOSHADER_USAGE_FOG,
+    MOJOSHADER_USAGE_DEPTH,
+    MOJOSHADER_USAGE_SAMPLE,
     MOJOSHADER_USAGE_TOTAL,  /* housekeeping value; not ever returned. */
 } MOJOSHADER_usage;