ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

s_blend.c File Reference

software blending. More...

#include "main/glheader.h"
#include "main/context.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "s_blend.h"
#include "s_context.h"
#include "s_span.h"

Go to the source code of this file.

Defines

#define _BLENDAPI
#define DIV255(X)   (divtemp = (X), ((divtemp << 8) + divtemp + 256) >> 16)

Functions

static void _BLENDAPI blend_noop (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void _BLENDAPI blend_replace (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void _BLENDAPI blend_transparency_ubyte (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void _BLENDAPI blend_transparency_ushort (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void _BLENDAPI blend_transparency_float (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void _BLENDAPI blend_add (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void _BLENDAPI blend_min (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void _BLENDAPI blend_max (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void _BLENDAPI blend_modulate (GLcontext *ctx, GLuint n, const GLubyte mask[], GLvoid *src, const GLvoid *dst, GLenum chanType)
static void blend_general_float (GLcontext *ctx, GLuint n, const GLubyte mask[], GLfloat rgba[][4], GLfloat dest[][4], GLenum chanType)
static void blend_general (GLcontext *ctx, GLuint n, const GLubyte mask[], void *src, const void *dst, GLenum chanType)
void _swrast_choose_blend_func (GLcontext *ctx, GLenum chanType)
void _swrast_blend_span (GLcontext *ctx, struct gl_renderbuffer *rb, SWspan *span)

Detailed Description

software blending.

Author:
Brian Paul

Only a few blend modes have been optimized (min, max, transparency, add) more optimized cases can easily be added if needed. Celestia uses glBlendFunc(GL_SRC_ALPHA, GL_ONE), for example.

Definition in file s_blend.c.


Generated on Sat May 26 2012 04:58:17 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.