comparison docs/html/sdlglgetattribute.html @ 0:74212992fb08

Initial revision
author Sam Lantinga <slouken@lokigames.com>
date Thu, 26 Apr 2001 16:45:43 +0000
parents
children 55f1f1b3e27d
comparison
equal deleted inserted replaced
-1:000000000000 0:74212992fb08
1 <HTML
2 ><HEAD
3 ><TITLE
4 >SDL_GL_GetAttribute</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.61
8 "><LINK
9 REL="HOME"
10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK
12 REL="UP"
13 TITLE="Video"
14 HREF="video.html"><LINK
15 REL="PREVIOUS"
16 TITLE="SDL_GL_GetProcAddress"
17 HREF="sdlglgetprocaddress.html"><LINK
18 REL="NEXT"
19 TITLE="SDL_GL_SetAttribute"
20 HREF="sdlglsetattribute.html"></HEAD
21 ><BODY
22 CLASS="REFENTRY"
23 BGCOLOR="#FFF8DC"
24 TEXT="#000000"
25 LINK="#0000ee"
26 VLINK="#551a8b"
27 ALINK="#ff0000"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 WIDTH="100%"
32 BORDER="0"
33 CELLPADDING="0"
34 CELLSPACING="0"
35 ><TR
36 ><TH
37 COLSPAN="3"
38 ALIGN="center"
39 >SDL Library Documentation</TH
40 ></TR
41 ><TR
42 ><TD
43 WIDTH="10%"
44 ALIGN="left"
45 VALIGN="bottom"
46 ><A
47 HREF="sdlglgetprocaddress.html"
48 >Prev</A
49 ></TD
50 ><TD
51 WIDTH="80%"
52 ALIGN="center"
53 VALIGN="bottom"
54 ></TD
55 ><TD
56 WIDTH="10%"
57 ALIGN="right"
58 VALIGN="bottom"
59 ><A
60 HREF="sdlglsetattribute.html"
61 >Next</A
62 ></TD
63 ></TR
64 ></TABLE
65 ><HR
66 ALIGN="LEFT"
67 WIDTH="100%"></DIV
68 ><H1
69 ><A
70 NAME="SDLGLGETATTRIBUTE"
71 >SDL_GL_GetAttribute</A
72 ></H1
73 ><DIV
74 CLASS="REFNAMEDIV"
75 ><A
76 NAME="AEN2210"
77 ></A
78 ><H2
79 >Name</H2
80 >SDL_GL_GetAttribute&nbsp;--&nbsp;Get the value of a special SDL/OpenGL attribute</DIV
81 ><DIV
82 CLASS="REFSYNOPSISDIV"
83 ><A
84 NAME="AEN2213"
85 ></A
86 ><H2
87 >Synopsis</H2
88 ><DIV
89 CLASS="FUNCSYNOPSIS"
90 ><A
91 NAME="AEN2214"
92 ></A
93 ><P
94 ></P
95 ><PRE
96 CLASS="FUNCSYNOPSISINFO"
97 >#include "SDL.h"</PRE
98 ><P
99 ><CODE
100 ><CODE
101 CLASS="FUNCDEF"
102 >int <B
103 CLASS="FSFUNC"
104 >SDL_GL_GetAttribute</B
105 ></CODE
106 >(SDLGLattr attr, int *value);</CODE
107 ></P
108 ><P
109 ></P
110 ></DIV
111 ></DIV
112 ><DIV
113 CLASS="REFSECT1"
114 ><A
115 NAME="AEN2220"
116 ></A
117 ><H2
118 >Description</H2
119 ><P
120 >Places the value of the SDL/OpenGL <A
121 HREF="sdlglattr.html"
122 >attribute</A
123 > <TT
124 CLASS="PARAMETER"
125 ><I
126 >attr</I
127 ></TT
128 > into <TT
129 CLASS="PARAMETER"
130 ><I
131 >value</I
132 ></TT
133 >. This is useful after a call to <A
134 HREF="sdlsetvideomode.html"
135 ><TT
136 CLASS="FUNCTION"
137 >SDL_SetVideoMode</TT
138 ></A
139 > to check whether your attributes have been <A
140 HREF="sdlglsetattribute.html"
141 >set</A
142 > as you expected.</P
143 ></DIV
144 ><DIV
145 CLASS="REFSECT1"
146 ><A
147 NAME="AEN2229"
148 ></A
149 ><H2
150 >Return Value</H2
151 ><P
152 >Returns <SPAN
153 CLASS="RETURNVALUE"
154 >0</SPAN
155 > on success, or <SPAN
156 CLASS="RETURNVALUE"
157 >-1</SPAN
158 > on an error.</P
159 ></DIV
160 ><DIV
161 CLASS="REFSECT1"
162 ><A
163 NAME="AEN2234"
164 ></A
165 ><H2
166 >See Also</H2
167 ><P
168 ><A
169 HREF="sdlglsetattribute.html"
170 ><TT
171 CLASS="FUNCTION"
172 >SDL_GL_SetAttribute</TT
173 ></A
174 >,
175 <A
176 HREF="sdlglattr.html"
177 >GL Attributes</A
178 ></P
179 ></DIV
180 ><DIV
181 CLASS="NAVFOOTER"
182 ><HR
183 ALIGN="LEFT"
184 WIDTH="100%"><TABLE
185 WIDTH="100%"
186 BORDER="0"
187 CELLPADDING="0"
188 CELLSPACING="0"
189 ><TR
190 ><TD
191 WIDTH="33%"
192 ALIGN="left"
193 VALIGN="top"
194 ><A
195 HREF="sdlglgetprocaddress.html"
196 >Prev</A
197 ></TD
198 ><TD
199 WIDTH="34%"
200 ALIGN="center"
201 VALIGN="top"
202 ><A
203 HREF="index.html"
204 >Home</A
205 ></TD
206 ><TD
207 WIDTH="33%"
208 ALIGN="right"
209 VALIGN="top"
210 ><A
211 HREF="sdlglsetattribute.html"
212 >Next</A
213 ></TD
214 ></TR
215 ><TR
216 ><TD
217 WIDTH="33%"
218 ALIGN="left"
219 VALIGN="top"
220 >SDL_GL_GetProcAddress</TD
221 ><TD
222 WIDTH="34%"
223 ALIGN="center"
224 VALIGN="top"
225 ><A
226 HREF="video.html"
227 >Up</A
228 ></TD
229 ><TD
230 WIDTH="33%"
231 ALIGN="right"
232 VALIGN="top"
233 >SDL_GL_SetAttribute</TD
234 ></TR
235 ></TABLE
236 ></DIV
237 ></BODY
238 ></HTML
239 >