Mercurial > sdl-ios-xcode
comparison docs/html/sdlvideodrivername.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_VideoDriverName</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_GetVideoInfo" | |
17 HREF="sdlgetvideoinfo.html"><LINK | |
18 REL="NEXT" | |
19 TITLE="SDL_ListModes" | |
20 HREF="sdllistmodes.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="sdlgetvideoinfo.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="sdllistmodes.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="SDLVIDEODRIVERNAME" | |
71 >SDL_VideoDriverName</A | |
72 ></H1 | |
73 ><DIV | |
74 CLASS="REFNAMEDIV" | |
75 ><A | |
76 NAME="AEN683" | |
77 ></A | |
78 ><H2 | |
79 >Name</H2 | |
80 >SDL_VideoDriverName -- Obtain the name of the video driver</DIV | |
81 ><DIV | |
82 CLASS="REFSYNOPSISDIV" | |
83 ><A | |
84 NAME="AEN686" | |
85 ></A | |
86 ><H2 | |
87 >Synopsis</H2 | |
88 ><DIV | |
89 CLASS="FUNCSYNOPSIS" | |
90 ><A | |
91 NAME="AEN687" | |
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 >char *<B | |
103 CLASS="FSFUNC" | |
104 >SDL_VideoDriverName</B | |
105 ></CODE | |
106 >(char *namebuf, int maxlen);</CODE | |
107 ></P | |
108 ><P | |
109 ></P | |
110 ></DIV | |
111 ></DIV | |
112 ><DIV | |
113 CLASS="REFSECT1" | |
114 ><A | |
115 NAME="AEN693" | |
116 ></A | |
117 ><H2 | |
118 >Description</H2 | |
119 ><P | |
120 >The buffer pointed to by <TT | |
121 CLASS="PARAMETER" | |
122 ><I | |
123 >namebuf</I | |
124 ></TT | |
125 > is filled up to a maximum of <TT | |
126 CLASS="PARAMETER" | |
127 ><I | |
128 >maxlen</I | |
129 ></TT | |
130 > characters (include the NULL terminator) with the name of the initialised video driver. The driver name is a simple one word identifier like "x11" or "windib".</P | |
131 ></DIV | |
132 ><DIV | |
133 CLASS="REFSECT1" | |
134 ><A | |
135 NAME="AEN698" | |
136 ></A | |
137 ><H2 | |
138 >Return Value</H2 | |
139 ><P | |
140 >Returns <TT | |
141 CLASS="LITERAL" | |
142 >NULL</TT | |
143 > if video has not been initialised with <TT | |
144 CLASS="FUNCTION" | |
145 >SDL_Init</TT | |
146 > or a pointer to <TT | |
147 CLASS="PARAMETER" | |
148 ><I | |
149 >namebuf</I | |
150 ></TT | |
151 > otherwise.</P | |
152 ></DIV | |
153 ><DIV | |
154 CLASS="REFSECT1" | |
155 ><A | |
156 NAME="AEN704" | |
157 ></A | |
158 ><H2 | |
159 >See Also</H2 | |
160 ><P | |
161 ><A | |
162 HREF="sdlinit.html" | |
163 ><TT | |
164 CLASS="FUNCTION" | |
165 >SDL_Init</TT | |
166 ></A | |
167 > | |
168 <A | |
169 HREF="sdlinitsubsystem.html" | |
170 ><TT | |
171 CLASS="FUNCTION" | |
172 >SDL_InitSubSystem</TT | |
173 ></A | |
174 ></P | |
175 ></DIV | |
176 ><DIV | |
177 CLASS="NAVFOOTER" | |
178 ><HR | |
179 ALIGN="LEFT" | |
180 WIDTH="100%"><TABLE | |
181 WIDTH="100%" | |
182 BORDER="0" | |
183 CELLPADDING="0" | |
184 CELLSPACING="0" | |
185 ><TR | |
186 ><TD | |
187 WIDTH="33%" | |
188 ALIGN="left" | |
189 VALIGN="top" | |
190 ><A | |
191 HREF="sdlgetvideoinfo.html" | |
192 >Prev</A | |
193 ></TD | |
194 ><TD | |
195 WIDTH="34%" | |
196 ALIGN="center" | |
197 VALIGN="top" | |
198 ><A | |
199 HREF="index.html" | |
200 >Home</A | |
201 ></TD | |
202 ><TD | |
203 WIDTH="33%" | |
204 ALIGN="right" | |
205 VALIGN="top" | |
206 ><A | |
207 HREF="sdllistmodes.html" | |
208 >Next</A | |
209 ></TD | |
210 ></TR | |
211 ><TR | |
212 ><TD | |
213 WIDTH="33%" | |
214 ALIGN="left" | |
215 VALIGN="top" | |
216 >SDL_GetVideoInfo</TD | |
217 ><TD | |
218 WIDTH="34%" | |
219 ALIGN="center" | |
220 VALIGN="top" | |
221 ><A | |
222 HREF="video.html" | |
223 >Up</A | |
224 ></TD | |
225 ><TD | |
226 WIDTH="33%" | |
227 ALIGN="right" | |
228 VALIGN="top" | |
229 >SDL_ListModes</TD | |
230 ></TR | |
231 ></TABLE | |
232 ></DIV | |
233 ></BODY | |
234 ></HTML | |
235 > |