예제 #1
0
static void intel_fill_box( intelContextPtr intel,
			    GLshort x, GLshort y,
			    GLshort w, GLshort h,
			    GLubyte r, GLubyte g, GLubyte b )
{
   intelEmitFillBlitLocked( intel, 
			    intel->intelScreen->cpp,
			    intel->intelScreen->backPitch,
			    intel->intelScreen->frontOffset,
			    x, y, w, h,
			    INTEL_PACKCOLOR(intel->intelScreen->fbFormat,
					    r,g,b,0xff));
}
예제 #2
0
static void intelClearColor(GLcontext *ctx, const GLfloat color[4])
{
   struct intel_context *intel = intel_context(ctx);
   intelScreenPrivate *screen = intel->intelScreen;

   UNCLAMPED_FLOAT_TO_RGBA_CHAN(intel->clear_chan, color);

   intel->ClearColor = INTEL_PACKCOLOR(screen->fbFormat,
				       intel->clear_chan[0], 
				       intel->clear_chan[1], 
				       intel->clear_chan[2], 
				       intel->clear_chan[3]);
}