multisample.h revision 7ec681f3
1c1f859d4Smrg/*
2c1f859d4Smrg * Mesa 3-D graphics library
3c1f859d4Smrg *
4c1f859d4Smrg * Copyright (C) 1999-2007  Brian Paul   All Rights Reserved.
5c1f859d4Smrg *
6c1f859d4Smrg * Permission is hereby granted, free of charge, to any person obtaining a
7c1f859d4Smrg * copy of this software and associated documentation files (the "Software"),
8c1f859d4Smrg * to deal in the Software without restriction, including without limitation
9c1f859d4Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10c1f859d4Smrg * and/or sell copies of the Software, and to permit persons to whom the
11c1f859d4Smrg * Software is furnished to do so, subject to the following conditions:
12c1f859d4Smrg *
13c1f859d4Smrg * The above copyright notice and this permission notice shall be included
14c1f859d4Smrg * in all copies or substantial portions of the Software.
15c1f859d4Smrg *
16c1f859d4Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17c1f859d4Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18c1f859d4Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20af69d88dSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21af69d88dSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22af69d88dSmrg * OTHER DEALINGS IN THE SOFTWARE.
23c1f859d4Smrg */
24c1f859d4Smrg
25c1f859d4Smrg
26c1f859d4Smrg#ifndef MULTISAMPLE_H
27c1f859d4Smrg#define MULTISAMPLE_H
28c1f859d4Smrg
293464ebd5Sriastradh#include "glheader.h"
303464ebd5Sriastradh
313464ebd5Sriastradhstruct gl_context;
32c1f859d4Smrg
33c1f859d4Smrgextern void GLAPIENTRY
34af69d88dSmrg_mesa_SampleCoverage(GLclampf value, GLboolean invert);
35c1f859d4Smrg
36c1f859d4Smrg
37c1f859d4Smrgextern void
383464ebd5Sriastradh_mesa_init_multisample(struct gl_context *ctx);
39c1f859d4Smrg
40c1f859d4Smrg
41af69d88dSmrgextern void GLAPIENTRY
42af69d88dSmrg_mesa_GetMultisamplefv(GLenum pname, GLuint index, GLfloat* val);
43af69d88dSmrg
4401e04c3fSmrgvoid GLAPIENTRY
4501e04c3fSmrg_mesa_SampleMaski_no_error(GLuint index, GLbitfield mask);
4601e04c3fSmrg
47af69d88dSmrgextern void GLAPIENTRY
48af69d88dSmrg_mesa_SampleMaski(GLuint index, GLbitfield mask);
49af69d88dSmrg
5001e04c3fSmrgvoid GLAPIENTRY
5101e04c3fSmrg_mesa_MinSampleShading_no_error(GLclampf value);
5201e04c3fSmrg
53af69d88dSmrgextern void GLAPIENTRY
54af69d88dSmrg_mesa_MinSampleShading(GLclampf value);
55af69d88dSmrg
56af69d88dSmrgextern GLenum
57af69d88dSmrg_mesa_check_sample_count(struct gl_context *ctx, GLenum target,
5801e04c3fSmrg                         GLenum internalFormat, GLsizei samples,
5901e04c3fSmrg                         GLsizei storageSamples);
60af69d88dSmrg
617ec681f3Smrgextern void GLAPIENTRY
627ec681f3Smrg_mesa_AlphaToCoverageDitherControlNV_no_error(GLenum mode);
637ec681f3Smrg
647ec681f3Smrgextern void GLAPIENTRY
657ec681f3Smrg_mesa_AlphaToCoverageDitherControlNV(GLenum mode);
667ec681f3Smrg
67c1f859d4Smrg#endif
68