Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmultisample.c
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 7.1 00004 * 00005 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. 00006 * 00007 * Permission is hereby granted, free of charge, to any person obtaining a 00008 * copy of this software and associated documentation files (the "Software"), 00009 * to deal in the Software without restriction, including without limitation 00010 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00011 * and/or sell copies of the Software, and to permit persons to whom the 00012 * Software is furnished to do so, subject to the following conditions: 00013 * 00014 * The above copyright notice and this permission notice shall be included 00015 * in all copies or substantial portions of the Software. 00016 * 00017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00018 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00020 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00021 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00022 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00023 */ 00024 00025 00026 #include "main/glheader.h" 00027 #include "main/context.h" 00028 #include "main/macros.h" 00029 #include "main/multisample.h" 00030 00031 00035 void GLAPIENTRY 00036 _mesa_SampleCoverageARB(GLclampf value, GLboolean invert) 00037 { 00038 GET_CURRENT_CONTEXT(ctx); 00039 00040 if (!ctx->Extensions.ARB_multisample) { 00041 _mesa_error(ctx, GL_INVALID_OPERATION, "glSampleCoverageARB"); 00042 return; 00043 } 00044 00045 ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx ); 00046 00047 ctx->Multisample.SampleCoverageValue = (GLfloat) CLAMP(value, 0.0, 1.0); 00048 ctx->Multisample.SampleCoverageInvert = invert; 00049 ctx->NewState |= _NEW_MULTISAMPLE; 00050 } 00051 00052 00057 void 00058 _mesa_init_multisample(GLcontext *ctx) 00059 { 00060 ctx->Multisample.Enabled = GL_TRUE; 00061 ctx->Multisample.SampleAlphaToCoverage = GL_FALSE; 00062 ctx->Multisample.SampleAlphaToOne = GL_FALSE; 00063 ctx->Multisample.SampleCoverage = GL_FALSE; 00064 ctx->Multisample.SampleCoverageValue = 1.0; 00065 ctx->Multisample.SampleCoverageInvert = GL_FALSE; 00066 } Generated on Sat May 26 2012 04:19:09 for ReactOS by
1.7.6.1
|