SDL-1.2.14
[sdl_omap.git] / docs / html / sdlglattr.html
CommitLineData
e14743d1 1<HTML
2><HEAD
3><TITLE
4>SDL_GLattr</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8"><LINK
9REL="HOME"
10TITLE="SDL Library Documentation"
11HREF="index.html"><LINK
12REL="UP"
13TITLE="Video"
14HREF="video.html"><LINK
15REL="PREVIOUS"
16TITLE="SDL_FreeYUVOverlay"
17HREF="sdlfreeyuvoverlay.html"><LINK
18REL="NEXT"
19TITLE="SDL_Rect"
20HREF="sdlrect.html"></HEAD
21><BODY
22CLASS="REFENTRY"
23BGCOLOR="#FFF8DC"
24TEXT="#000000"
25LINK="#0000ee"
26VLINK="#551a8b"
27ALINK="#ff0000"
28><DIV
29CLASS="NAVHEADER"
30><TABLE
31SUMMARY="Header navigation table"
32WIDTH="100%"
33BORDER="0"
34CELLPADDING="0"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="3"
39ALIGN="center"
40>SDL Library Documentation</TH
41></TR
42><TR
43><TD
44WIDTH="10%"
45ALIGN="left"
46VALIGN="bottom"
47><A
48HREF="sdlfreeyuvoverlay.html"
49ACCESSKEY="P"
50>Prev</A
51></TD
52><TD
53WIDTH="80%"
54ALIGN="center"
55VALIGN="bottom"
56></TD
57><TD
58WIDTH="10%"
59ALIGN="right"
60VALIGN="bottom"
61><A
62HREF="sdlrect.html"
63ACCESSKEY="N"
64>Next</A
65></TD
66></TR
67></TABLE
68><HR
69ALIGN="LEFT"
70WIDTH="100%"></DIV
71><H1
72><A
73NAME="SDLGLATTR"
74></A
75>SDL_GLattr</H1
76><DIV
77CLASS="REFNAMEDIV"
78><A
79NAME="AEN2971"
80></A
81><H2
82>Name</H2
83>SDL_GLattr&nbsp;--&nbsp;SDL GL Attributes</DIV
84><DIV
85CLASS="REFSECT1"
86><A
87NAME="AEN2974"
88></A
89><H2
90>Attributes</H2
91><DIV
92CLASS="INFORMALTABLE"
93><A
94NAME="AEN2976"
95></A
96><P
97></P
98><TABLE
99BORDER="0"
100CLASS="CALSTABLE"
101><TBODY
102><TR
103><TD
104ALIGN="LEFT"
105VALIGN="TOP"
106><TT
107CLASS="LITERAL"
108>SDL_GL_RED_SIZE</TT
109></TD
110><TD
111ALIGN="LEFT"
112VALIGN="TOP"
113>Size of the framebuffer red component, in bits</TD
114></TR
115><TR
116><TD
117ALIGN="LEFT"
118VALIGN="TOP"
119><TT
120CLASS="LITERAL"
121>SDL_GL_GREEN_SIZE</TT
122></TD
123><TD
124ALIGN="LEFT"
125VALIGN="TOP"
126>Size of the framebuffer green component, in bits</TD
127></TR
128><TR
129><TD
130ALIGN="LEFT"
131VALIGN="TOP"
132><TT
133CLASS="LITERAL"
134>SDL_GL_BLUE_SIZE</TT
135></TD
136><TD
137ALIGN="LEFT"
138VALIGN="TOP"
139>Size of the framebuffer blue component, in bits</TD
140></TR
141><TR
142><TD
143ALIGN="LEFT"
144VALIGN="TOP"
145><TT
146CLASS="LITERAL"
147>SDL_GL_ALPHA_SIZE</TT
148></TD
149><TD
150ALIGN="LEFT"
151VALIGN="TOP"
152>Size of the framebuffer alpha component, in bits</TD
153></TR
154><TR
155><TD
156ALIGN="LEFT"
157VALIGN="TOP"
158><TT
159CLASS="LITERAL"
160>SDL_GL_DOUBLEBUFFER</TT
161></TD
162><TD
163ALIGN="LEFT"
164VALIGN="TOP"
165>0 or 1, enable or disable double buffering</TD
166></TR
167><TR
168><TD
169ALIGN="LEFT"
170VALIGN="TOP"
171><TT
172CLASS="LITERAL"
173>SDL_GL_BUFFER_SIZE</TT
174></TD
175><TD
176ALIGN="LEFT"
177VALIGN="TOP"
178>Size of the framebuffer, in bits</TD
179></TR
180><TR
181><TD
182ALIGN="LEFT"
183VALIGN="TOP"
184><TT
185CLASS="LITERAL"
186>SDL_GL_DEPTH_SIZE</TT
187></TD
188><TD
189ALIGN="LEFT"
190VALIGN="TOP"
191>Size of the depth buffer, in bits</TD
192></TR
193><TR
194><TD
195ALIGN="LEFT"
196VALIGN="TOP"
197><TT
198CLASS="LITERAL"
199>SDL_GL_STENCIL_SIZE</TT
200></TD
201><TD
202ALIGN="LEFT"
203VALIGN="TOP"
204>Size of the stencil buffer, in bits</TD
205></TR
206><TR
207><TD
208ALIGN="LEFT"
209VALIGN="TOP"
210><TT
211CLASS="LITERAL"
212>SDL_GL_ACCUM_RED_SIZE</TT
213></TD
214><TD
215ALIGN="LEFT"
216VALIGN="TOP"
217>Size of the accumulation buffer red component, in bits</TD
218></TR
219><TR
220><TD
221ALIGN="LEFT"
222VALIGN="TOP"
223><TT
224CLASS="LITERAL"
225>SDL_GL_ACCUM_GREEN_SIZE</TT
226></TD
227><TD
228ALIGN="LEFT"
229VALIGN="TOP"
230>Size of the accumulation buffer green component, in bits</TD
231></TR
232><TR
233><TD
234ALIGN="LEFT"
235VALIGN="TOP"
236><TT
237CLASS="LITERAL"
238>SDL_GL_ACCUM_BLUE_SIZE</TT
239></TD
240><TD
241ALIGN="LEFT"
242VALIGN="TOP"
243>Size of the accumulation buffer blue component, in bits</TD
244></TR
245><TR
246><TD
247ALIGN="LEFT"
248VALIGN="TOP"
249><TT
250CLASS="LITERAL"
251>SDL_GL_ACCUM_ALPHA_SIZE</TT
252></TD
253><TD
254ALIGN="LEFT"
255VALIGN="TOP"
256>Size of the accumulation buffer alpha component, in bits</TD
257></TR
258></TBODY
259></TABLE
260><P
261></P
262></DIV
263></DIV
264><DIV
265CLASS="REFSECT1"
266><A
267NAME="AEN3027"
268></A
269><H2
270>Description</H2
271><P
272>While you can set most OpenGL attributes normally, the attributes list above must be known <SPAN
273CLASS="emphasis"
274><I
275CLASS="EMPHASIS"
276>before</I
277></SPAN
278> SDL sets the video mode. These attributes a set and read with <A
279HREF="sdlglsetattribute.html"
280><TT
281CLASS="FUNCTION"
282>SDL_GL_SetAttribute</TT
283></A
284> and <A
285HREF="sdlglgetattribute.html"
286><TT
287CLASS="FUNCTION"
288>SDL_GL_GetAttribute</TT
289></A
290>.</P
291></DIV
292><DIV
293CLASS="REFSECT1"
294><A
295NAME="AEN3035"
296></A
297><H2
298>See Also</H2
299><P
300><A
301HREF="sdlglsetattribute.html"
302><TT
303CLASS="FUNCTION"
304>SDL_GL_SetAttribute</TT
305></A
306>,
307<A
308HREF="sdlglgetattribute.html"
309><TT
310CLASS="FUNCTION"
311>SDL_GL_GetAttribute</TT
312></A
313></P
314></DIV
315><DIV
316CLASS="NAVFOOTER"
317><HR
318ALIGN="LEFT"
319WIDTH="100%"><TABLE
320SUMMARY="Footer navigation table"
321WIDTH="100%"
322BORDER="0"
323CELLPADDING="0"
324CELLSPACING="0"
325><TR
326><TD
327WIDTH="33%"
328ALIGN="left"
329VALIGN="top"
330><A
331HREF="sdlfreeyuvoverlay.html"
332ACCESSKEY="P"
333>Prev</A
334></TD
335><TD
336WIDTH="34%"
337ALIGN="center"
338VALIGN="top"
339><A
340HREF="index.html"
341ACCESSKEY="H"
342>Home</A
343></TD
344><TD
345WIDTH="33%"
346ALIGN="right"
347VALIGN="top"
348><A
349HREF="sdlrect.html"
350ACCESSKEY="N"
351>Next</A
352></TD
353></TR
354><TR
355><TD
356WIDTH="33%"
357ALIGN="left"
358VALIGN="top"
359>SDL_FreeYUVOverlay</TD
360><TD
361WIDTH="34%"
362ALIGN="center"
363VALIGN="top"
364><A
365HREF="video.html"
366ACCESSKEY="U"
367>Up</A
368></TD
369><TD
370WIDTH="33%"
371ALIGN="right"
372VALIGN="top"
373>SDL_Rect</TD
374></TR
375></TABLE
376></DIV
377></BODY
378></HTML
379>