Mercurial > sdl-ios-xcode
comparison docs/html/sdlsurface.html @ 55:55f1f1b3e27d
Added new docs for SDL 1.2.1
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sun, 10 Jun 2001 19:31:57 +0000 |
parents | 74212992fb08 |
children | e5bc29de3f0a |
comparison
equal
deleted
inserted
replaced
54:028447a8a758 | 55:55f1f1b3e27d |
---|---|
2 ><HEAD | 2 ><HEAD |
3 ><TITLE | 3 ><TITLE |
4 >SDL_Surface</TITLE | 4 >SDL_Surface</TITLE |
5 ><META | 5 ><META |
6 NAME="GENERATOR" | 6 NAME="GENERATOR" |
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.61 | 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
8 "><LINK | 8 "><LINK |
9 REL="HOME" | 9 REL="HOME" |
10 TITLE="SDL Library Documentation" | 10 TITLE="SDL Library Documentation" |
11 HREF="index.html"><LINK | 11 HREF="index.html"><LINK |
12 REL="UP" | 12 REL="UP" |
71 >SDL_Surface</A | 71 >SDL_Surface</A |
72 ></H1 | 72 ></H1 |
73 ><DIV | 73 ><DIV |
74 CLASS="REFNAMEDIV" | 74 CLASS="REFNAMEDIV" |
75 ><A | 75 ><A |
76 NAME="AEN2762" | 76 NAME="AEN2841" |
77 ></A | 77 ></A |
78 ><H2 | 78 ><H2 |
79 >Name</H2 | 79 >Name</H2 |
80 >SDL_Surface -- Graphical Surface Structure</DIV | 80 >SDL_Surface -- Graphical Surface Structure</DIV |
81 ><DIV | 81 ><DIV |
82 CLASS="REFSECT1" | 82 CLASS="REFSECT1" |
83 ><A | 83 ><A |
84 NAME="AEN2765" | 84 NAME="AEN2844" |
85 ></A | 85 ></A |
86 ><H2 | 86 ><H2 |
87 >Structure Definition</H2 | 87 >Structure Definition</H2 |
88 ><PRE | 88 ><PRE |
89 CLASS="PROGRAMLISTING" | 89 CLASS="PROGRAMLISTING" |
91 Uint32 flags; /* Read-only */ | 91 Uint32 flags; /* Read-only */ |
92 SDL_PixelFormat *format; /* Read-only */ | 92 SDL_PixelFormat *format; /* Read-only */ |
93 int w, h; /* Read-only */ | 93 int w, h; /* Read-only */ |
94 Uint16 pitch; /* Read-only */ | 94 Uint16 pitch; /* Read-only */ |
95 void *pixels; /* Read-write */ | 95 void *pixels; /* Read-write */ |
96 int offset; /* Private */ | |
97 | |
98 /* Hardware-specific surface info */ | |
99 struct private_hwdata *hwdata; | |
100 | 96 |
101 /* clipping information */ | 97 /* clipping information */ |
102 SDL_Rect clip_rect; /* Read-only */ | 98 SDL_Rect clip_rect; /* Read-only */ |
103 Uint32 unused1; /* for binary compatibility */ | |
104 Uint32 unused2; /* for binary compatibility */ | |
105 | |
106 /* info for fast blit mapping to other surfaces */ | |
107 struct SDL_BlitMap *map; /* Private */ | |
108 | |
109 /* format version, bumped at every change to invalidate blit maps */ | |
110 unsigned int format_version; /* Private */ | |
111 | 99 |
112 /* Reference count -- used when freeing surface */ | 100 /* Reference count -- used when freeing surface */ |
113 int refcount; /* Read-mostly */ | 101 int refcount; /* Read-mostly */ |
102 | |
103 /* This structure also contains private fields not shown here */ | |
114 } SDL_Surface;</PRE | 104 } SDL_Surface;</PRE |
115 ></DIV | 105 ></DIV |
116 ><DIV | 106 ><DIV |
117 CLASS="REFSECT1" | 107 CLASS="REFSECT1" |
118 ><A | 108 ><A |
119 NAME="AEN2768" | 109 NAME="AEN2847" |
120 ></A | 110 ></A |
121 ><H2 | 111 ><H2 |
122 >Structure Data</H2 | 112 >Structure Data</H2 |
123 ><DIV | 113 ><DIV |
124 CLASS="INFORMALTABLE" | 114 CLASS="INFORMALTABLE" |
125 ><A | 115 ><A |
126 NAME="AEN2770" | 116 NAME="AEN2849" |
127 ></A | 117 ></A |
128 ><P | 118 ><P |
129 ></P | 119 ></P |
130 ><TABLE | 120 ><TABLE |
131 BORDER="0" | 121 BORDER="0" |
214 ALIGN="LEFT" | 204 ALIGN="LEFT" |
215 VALIGN="TOP" | 205 VALIGN="TOP" |
216 ><TT | 206 ><TT |
217 CLASS="STRUCTFIELD" | 207 CLASS="STRUCTFIELD" |
218 ><I | 208 ><I |
219 >clip_minx, clip_maxx</I | |
220 ></TT | |
221 ></TD | |
222 ><TD | |
223 ALIGN="LEFT" | |
224 VALIGN="TOP" | |
225 >X clip coords</TD | |
226 ></TR | |
227 ><TR | |
228 ><TD | |
229 ALIGN="LEFT" | |
230 VALIGN="TOP" | |
231 ><TT | |
232 CLASS="STRUCTFIELD" | |
233 ><I | |
234 >clip_rect</I | 209 >clip_rect</I |
235 ></TT | 210 ></TT |
236 ></TD | 211 ></TD |
237 ><TD | 212 ><TD |
238 ALIGN="LEFT" | 213 ALIGN="LEFT" |
249 ></DIV | 224 ></DIV |
250 ></DIV | 225 ></DIV |
251 ><DIV | 226 ><DIV |
252 CLASS="REFSECT1" | 227 CLASS="REFSECT1" |
253 ><A | 228 ><A |
254 NAME="AEN2803" | 229 NAME="AEN2878" |
255 ></A | 230 ></A |
256 ><H2 | 231 ><H2 |
257 >Description</H2 | 232 >Description</H2 |
258 ><P | 233 ><P |
259 ><SPAN | 234 ><SPAN |
325 ></TT | 300 ></TT |
326 > field.</P | 301 > field.</P |
327 ><DIV | 302 ><DIV |
328 CLASS="INFORMALTABLE" | 303 CLASS="INFORMALTABLE" |
329 ><A | 304 ><A |
330 NAME="AEN2821" | 305 NAME="AEN2896" |
331 ></A | 306 ></A |
332 ><P | 307 ><P |
333 ></P | 308 ></P |
334 ><TABLE | 309 ><TABLE |
335 BORDER="1" | 310 BORDER="1" |
482 ><TD | 457 ><TD |
483 ALIGN="LEFT" | 458 ALIGN="LEFT" |
484 VALIGN="TOP" | 459 VALIGN="TOP" |
485 ><TT | 460 ><TT |
486 CLASS="LITERAL" | 461 CLASS="LITERAL" |
487 >SDL_SRCOLORKEY</TT | 462 >SDL_SRCCOLORKEY</TT |
488 ></TD | 463 ></TD |
489 ><TD | 464 ><TD |
490 ALIGN="LEFT" | 465 ALIGN="LEFT" |
491 VALIGN="TOP" | 466 VALIGN="TOP" |
492 >Surface use colorkey blitting</TD | 467 >Surface use colorkey blitting</TD |
537 ></DIV | 512 ></DIV |
538 ></DIV | 513 ></DIV |
539 ><DIV | 514 ><DIV |
540 CLASS="REFSECT1" | 515 CLASS="REFSECT1" |
541 ><A | 516 ><A |
542 NAME="AEN2884" | 517 NAME="AEN2959" |
543 ></A | 518 ></A |
544 ><H2 | 519 ><H2 |
545 >See Also</H2 | 520 >See Also</H2 |
546 ><P | 521 ><P |
547 ><A | 522 ><A |