}
}
-int GGIsetup_driver(GGIMesaContext ggictx,struct ggi_mesa_info *info)
+int GGIsetup_driver(GGIMesaContext ggictx, struct ggi_mesa_info *info)
{
- GLcontext *ctx=ggictx->gl_ctx;
+ GLcontext *ctx = ggictx->gl_ctx;
ctx->Driver.WriteRGBASpan = GGIwrite_rgba_span;
ctx->Driver.WriteRGBSpan = GGIwrite_rgb_span;
- ctx->Driver.WriteMonoRGBASpan = GGIwrite_mono_span;
+// ctx->Driver.WriteMonoRGBASpan = GGIwrite_mono_span;
ctx->Driver.WriteRGBAPixels = GGIwrite_rgba_pixels;
- ctx->Driver.WriteMonoRGBAPixels = GGIwrite_mono_pixels;
+// ctx->Driver.WriteMonoRGBAPixels = GGIwrite_mono_pixels;
ctx->Driver.WriteCI32Span = GGIwrite_ci32_span;
ctx->Driver.WriteCI8Span = GGIwrite_ci8_span;
- ctx->Driver.WriteMonoCISpan = GGIwrite_mono_span;
+// ctx->Driver.WriteMonoCISpan = GGIwrite_mono_span;
ctx->Driver.WriteCI32Pixels = GGIwrite_ci32_pixels;
- ctx->Driver.WriteMonoCIPixels = GGIwrite_mono_pixels;
+// ctx->Driver.WriteMonoCIPixels = GGIwrite_mono_pixels;
ctx->Driver.ReadCI32Span = GGIread_ci32_span;
ctx->Driver.ReadRGBASpan = GGIread_rgba_span;
ctx->Driver.ReadCI32Pixels = GGIread_ci32_pixels;
ctx->Driver.ReadRGBAPixels = GGIread_rgba_pixels;
- info->red_bits=R;
- info->green_bits=G;
- info->blue_bits=B;
+ info->red_bits = R;
+ info->green_bits =G;
+ info->blue_bits = B;
return 0;
}
#include "context.h"
#include "matrix.h"
#include "types.h"
-#include "vb.h"
#include "macros.h"
#include "depth.h"
-/* $Id: m_matrix.c,v 1.1 2000/11/16 21:05:41 keithw Exp $ */
+/* $Id: m_matrix.c,v 1.2 2000/11/18 08:10:24 jtaylor Exp $ */
/*
* Mesa 3-D graphics library
* 3. Transformation of a point p by a matrix M is: p' = M * p
*/
+#include <math.h>
+#include <tgmath.h>
#include "glheader.h"
#include "macros.h"
#include "m_matrix.h"
-
static const char *types[] = {
"MATRIX_GENERAL",
"MATRIX_IDENTITY",
-/* $Id: m_xform.c,v 1.2 2000/11/17 21:01:49 brianp Exp $ */
+/* $Id: m_xform.c,v 1.3 2000/11/18 08:10:24 jtaylor Exp $ */
/*
* Mesa 3-D graphics library
* 3. Transformation of a point p by a matrix M is: p' = M * p
*/
+#include <math.h>
#include "glheader.h"
#include "macros.h"
GLframebuffer *readBuffer )
{
#ifndef THREADS
- SET_IMMEDIATE(newCtx, newCtx->input);
+ SET_IMMEDIATE( ctx, TNL_VB(ctx)->IM );
#endif
}
-/* $Id: 3dnow.c,v 1.9 2000/11/16 21:05:41 keithw Exp $ */
+/* $Id: 3dnow.c,v 1.10 2000/11/18 08:10:23 jtaylor Exp $ */
/*
* Mesa 3-D graphics library
#include "types.h"
#include "3dnow.h"
+#include "../tnl/t_context.h"
+
#include "math/m_vertices.h"
#include "math/m_xform.h"
-/* $Id: x86.c,v 1.10 2000/11/16 21:05:41 keithw Exp $ */
+/* $Id: x86.c,v 1.11 2000/11/18 08:10:23 jtaylor Exp $ */
/*
* Mesa 3-D graphics library
#include "types.h"
#include "math/m_vertices.h"
#include "math/m_xform.h"
+#include "../tnl/t_context.h"
#include "x86.h"
#ifdef DEBUG