summaryrefslogtreecommitdiff
path: root/doc/gl-docs/GL/gl/gethistogramparameter.3gl
blob: 4a8dd74efa5a06348f48f52342af9ea66fe65cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
'\" t
'\"! tbl | mmdoc
'\"macro stdmacro
.ds Vn Version 1.2
.ds Dt 24 September 1999
.ds Re Release 1.2.1
.ds Dp Jan 14 18:30
.ds Dm 001 gethisto
.ds Xs 33049 5 gethistogramparameter.gl
.TH GLGETHISTOGRAMPARAMETER 3G
.SH NAME
.B "glGetHistogramParameterfv, glGetHistogramParameteriv
\- get histogram parameters

.SH C SPECIFICATION
void \f3glGetHistogramParameterfv\fP(
GLenum \fItarget\fP,
.nf
.ta \w'\f3void \fPglGetHistogramParameterfv( 'u
	GLenum \fIpname\fP,
	GLfloat \fI*params\fP )
.fi
void \f3glGetHistogramParameteriv\fP(
GLenum \fItarget\fP,
.nf
.ta \w'\f3void \fPglGetHistogramParameteriv( 'u
	GLenum \fIpname\fP,
	GLint \fI*params\fP )
.fi

.SH PARAMETERS
.TP \w'\f2target\fP\ \ 'u 
\f2target\fP
Must be one of
\%\f3GL_HISTOGRAM\fP or
\%\f3GL_PROXY_HISTOGRAM\fP.
.TP
\f2pname\fP
The name of the parameter to be retrieved.
Must be one of
\%\f3GL_HISTOGRAM_WIDTH\fP,
\%\f3GL_HISTOGRAM_FORMAT\fP,
\%\f3GL_HISTOGRAM_RED_SIZE\fP,
\%\f3GL_HISTOGRAM_GREEN_SIZE\fP,
\%\f3GL_HISTOGRAM_BLUE_SIZE\fP,
\%\f3GL_HISTOGRAM_ALPHA_SIZE\fP,
\%\f3GL_HISTOGRAM_LUMINANCE_SIZE\fP, or
\%\f3GL_HISTOGRAM_SINK\fP.
.TP
\f2params\fP
Pointer to storage for the returned values.
.SH DESCRIPTION
\%\f3glGetHistogramParameter\fP is used to query parameter values for the current histogram or for
a proxy.  The histogram state information may be queried by calling
\%\f3glGetHistogramParameter\fP with a \f2target\fP of \%\f3GL_HISTOGRAM\fP (to
obtain information for the current histogram table) or
\%\f3GL_PROXY_HISTOGRAM\fP (to obtain information from the most recent
proxy request) and one of the following values for the \f2pname\fP argument:
.P
.ne
.TS
center;
lb lb
l l.
_
Parameter	Description
_
\%\f3GL_HISTOGRAM_WIDTH\fP	Histogram table width
\%\f3GL_HISTOGRAM_FORMAT\fP	Internal 
\%\f3GL_HISTOGRAM_RED_SIZE\fP	Red component counter size, in bits
\%\f3GL_HISTOGRAM_GREEN_SIZE\fP	Green component counter size, in bits
.TE
.bp
.TS
center;
lb lb
l l.
_
Parameter	Description
_
\%\f3GL_HISTOGRAM_BLUE_SIZE\fP	Blue component counter size, in bits
\%\f3GL_HISTOGRAM_ALPHA_SIZE\fP	Alpha component counter size, in bits
\%\f3GL_HISTOGRAM_LUMINANCE_SIZE\fP	Luminance component counter size, in bits
\%\f3GL_HISTOGRAM_SINK\fP	Value of the \f2sink\fP parameter
_
.TE

.SH NOTES
\%\f3glGetHistogramParameter\fP is present only if \%\f3GL_ARB_imaging\fP is returned when \%\f3glGetString\fP
is called with an argument of \%\f3GL_EXTENSIONS\fP.
.SH ERRORS
\%\f3GL_INVALID_ENUM\fP is generated if \f2target\fP is not one of the allowable
values.
.P
\%\f3GL_INVALID_ENUM\fP is generated if \f2pname\fP is not one of the allowable
values.
.P
\%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glGetHistogramParameter\fP is executed
between the execution of \%\f3glBegin\fP and the corresponding
execution of \%\f3glEnd\fP.
.SH SEE ALSO
\%\f3glGetHistogram(3G)\fP,
\%\f3glHistogram(3G)\fP