summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/swrast.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2000-10-31 18:00:04 +0000
committerKeith Whitwell <[email protected]>2000-10-31 18:00:04 +0000
commite3a051e0538a605551f4d58294c94f5eb00ed07f (patch)
treeea5ccfd6d578fee1f8adb5a5c7f34f12d601c1c9 /src/mesa/swrast/swrast.h
parent6e0f0f51e0371688a434ed65c4ae0da1b061a4b5 (diff)
Moved software rasterizer functionality to new directory.
Diffstat (limited to 'src/mesa/swrast/swrast.h')
-rw-r--r--src/mesa/swrast/swrast.h108
1 files changed, 108 insertions, 0 deletions
diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h
new file mode 100644
index 00000000000..4e8627e6955
--- /dev/null
+++ b/src/mesa/swrast/swrast.h
@@ -0,0 +1,108 @@
+#ifndef SWRAST_H
+#define SWRAST_H
+
+#include "types.h"
+
+/* These are the functions exported from swrast. (more to come)
+ */
+void
+_swrast_alloc_buffers( GLcontext *ctx );
+
+
+void
+_swrast_Bitmap( GLcontext *ctx,
+ GLint px, GLint py,
+ GLsizei width, GLsizei height,
+ const struct gl_pixelstore_attrib *unpack,
+ const GLubyte *bitmap );
+
+void
+_swrast_CopyPixels( GLcontext *ctx,
+ GLint srcx, GLint srcy,
+ GLint destx, GLint desty,
+ GLsizei width, GLsizei height,
+ GLenum type );
+
+void
+_swrast_DrawPixels( GLcontext *ctx,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ const struct gl_pixelstore_attrib *unpack,
+ const GLvoid *pixels );
+
+void
+_swrast_ReadPixels( GLcontext *ctx,
+ GLint x, GLint y, GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ const struct gl_pixelstore_attrib *unpack,
+ GLvoid *pixels );
+
+void
+_swrast_Clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
+ GLint x, GLint y, GLint width, GLint height );
+
+void
+_swrast_Accum( GLcontext *ctx, GLenum op,
+ GLfloat value, GLint xpos, GLint ypos,
+ GLint width, GLint height );
+
+void
+_swrast_set_line_function( GLcontext *ctx );
+
+void
+_swrast_set_point_function( GLcontext *ctx );
+
+void
+_swrast_set_triangle_function( GLcontext *ctx );
+
+void
+_swrast_set_quad_function( GLcontext *ctx );
+
+void
+_swrast_flush( GLcontext *ctx );
+
+GLboolean
+_swrast_create_context( GLcontext *ctx );
+
+void
+_swrast_destroy_context( GLcontext *ctx );
+
+
+/* Replace:
+ */
+void
+_swrast_set_texture_sampler( struct gl_texture_object *t );
+
+
+
+#define _SWRAST_NEW_TRIANGLE (_NEW_RENDERMODE| \
+ _NEW_POLYGON| \
+ _NEW_DEPTH| \
+ _NEW_STENCIL| \
+ _NEW_COLOR| \
+ _NEW_TEXTURE| \
+ _NEW_HINT| \
+ _SWRAST_NEW_RASTERMASK| \
+ _NEW_LIGHT| \
+ _NEW_FOG)
+
+#define _SWRAST_NEW_LINE (_NEW_RENDERMODE| \
+ _NEW_LINE| \
+ _NEW_TEXTURE| \
+ _NEW_LIGHT| \
+ _NEW_FOG| \
+ _NEW_DEPTH)
+
+#define _SWRAST_NEW_POINT (_NEW_RENDERMODE | \
+ _NEW_POINT | \
+ _NEW_TEXTURE | \
+ _NEW_LIGHT | \
+ _NEW_FOG)
+
+
+
+
+
+
+#endif