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

static void update_materials ( GLcontext *  ctx,
struct light_stage_data store 
) [static]

In the case of colormaterial, the effected material attributes should already have been bound to point to the incoming color data, prior to running the pipeline. This function copies the vertex's color to the material attributes which are tracking glColor. It's called per-vertex in the lighting loop.

Definition at line 89 of file t_vb_light.c.

Referenced by light_ci(), light_fast_rgba(), light_fast_rgba_single(), light_rgba(), and light_rgba_spec().

{
   GLuint i;

   for (i = 0 ; i < store->mat_count ; i++) {
      /* update the material */
      COPY_CLEAN_4V(store->mat[i].current, store->mat[i].size, store->mat[i].ptr);
      /* increment src vertex color pointer */
      STRIDE_F(store->mat[i].ptr, store->mat[i].stride);
   }
      
   /* recompute derived light/material values */
   _mesa_update_material( ctx, store->mat_bitmask );
   /* XXX we should only call this if we're tracking/changing the specular
    * exponent.
    */
   _mesa_validate_all_lighting_tables( ctx );
}

Generated on Sat May 26 2012 04:58:34 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.