Some initial RGB and RGBA floating point texture formats.
[mesa.git] / src / mesa / main / program.h
index 23807746a6a11fa7adb91a3188d3b91f31728a4f..0217a00487dd04b18fa28e30f2b78b55bb613530 100644 (file)
 
 
 /* for GL_ARB_v_p and GL_ARB_f_p SWZ instruction */
-#define SWIZZLE_ZERO 100
-#define SWIZZLE_ONE  101
+#define SWIZZLE_X    0
+#define SWIZZLE_Y    1
+#define SWIZZLE_Z    2
+#define SWIZZLE_W    3
+#define SWIZZLE_ZERO 4         /* keep these values together: KW */
+#define SWIZZLE_ONE  5         /* keep these values together: KW */
 
 
 /*
@@ -55,7 +59,7 @@ _mesa_find_line_column(const GLubyte *string, const GLubyte *pos,
                        GLint *line, GLint *col);
 
 extern struct program *
-_mesa_alloc_program(GLcontext *ctx, GLenum target, GLuint id);
+_mesa_new_program(GLcontext *ctx, GLenum target, GLuint id);
 
 extern void
 _mesa_delete_program(GLcontext *ctx, struct program *prog);
@@ -116,15 +120,15 @@ enum state_index {
    STATE_TEXGEN_OBJECT_R,
    STATE_TEXGEN_OBJECT_Q,
 
-       STATE_TEXENV_COLOR,
+   STATE_TEXENV_COLOR,
        
-       STATE_DEPTH_RANGE,
+   STATE_DEPTH_RANGE,
 
-       STATE_VERTEX_PROGRAM,
-       STATE_FRAGMENT_PROGRAM,
+   STATE_VERTEX_PROGRAM,
+   STATE_FRAGMENT_PROGRAM,
 
-       STATE_ENV,
-       STATE_LOCAL
+   STATE_ENV,
+   STATE_LOCAL
 };