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 GLboolean validate_texture_wrap_mode ( GLcontext *  ctx,
GLenum  target,
GLenum  wrap 
) [static]

Check if a coordinate wrap mode is supported for the texture target.

Returns:
GL_TRUE if legal, GL_FALSE otherwise

Definition at line 48 of file texparam.c.

Referenced by set_tex_parameteri().

{
   const struct gl_extensions * const e = & ctx->Extensions;

   if (wrap == GL_CLAMP || wrap == GL_CLAMP_TO_EDGE ||
       (wrap == GL_CLAMP_TO_BORDER && e->ARB_texture_border_clamp)) {
      /* any texture target */
      return GL_TRUE;
   }
   else if (target != GL_TEXTURE_RECTANGLE_NV &&
        (wrap == GL_REPEAT ||
         (wrap == GL_MIRRORED_REPEAT &&
          e->ARB_texture_mirrored_repeat) ||
         (wrap == GL_MIRROR_CLAMP_EXT &&
          (e->ATI_texture_mirror_once || e->EXT_texture_mirror_clamp)) ||
         (wrap == GL_MIRROR_CLAMP_TO_EDGE_EXT &&
          (e->ATI_texture_mirror_once || e->EXT_texture_mirror_clamp)) ||
         (wrap == GL_MIRROR_CLAMP_TO_BORDER_EXT &&
          (e->EXT_texture_mirror_clamp)))) {
      /* non-rectangle texture */
      return GL_TRUE;
   }

   _mesa_error( ctx, GL_INVALID_VALUE, "glTexParameter(param)" );
   return GL_FALSE;
}

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