1 <HTML 2 ><HEAD 3 ><TITLE 4 >SDL_GetVideoSurface</TITLE 5 ><META 6 NAME="GENERATOR" 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 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="Video" 17 HREF="video.html"><LINK 18 REL="NEXT" 19 TITLE="SDL_GetVideoInfo" 20 HREF="sdlgetvideoinfo.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 SUMMARY="Header navigation table" 32 WIDTH="100%" 33 BORDER="0" 34 CELLPADDING="0" 35 CELLSPACING="0" 36 ><TR 37 ><TH 38 COLSPAN="3" 39 ALIGN="center" 40 >SDL Library Documentation</TH 41 ></TR 42 ><TR 43 ><TD 44 WIDTH="10%" 45 ALIGN="left" 46 VALIGN="bottom" 47 ><A 48 HREF="video.html" 49 ACCESSKEY="P" 50 >Prev</A 51 ></TD 52 ><TD 53 WIDTH="80%" 54 ALIGN="center" 55 VALIGN="bottom" 56 ></TD 57 ><TD 58 WIDTH="10%" 59 ALIGN="right" 60 VALIGN="bottom" 61 ><A 62 HREF="sdlgetvideoinfo.html" 63 ACCESSKEY="N" 64 >Next</A 65 ></TD 66 ></TR 67 ></TABLE 68 ><HR 69 ALIGN="LEFT" 70 WIDTH="100%"></DIV 71 ><H1 72 ><A 73 NAME="SDLGETVIDEOSURFACE" 74 ></A 75 >SDL_GetVideoSurface</H1 76 ><DIV 77 CLASS="REFNAMEDIV" 78 ><A 79 NAME="AEN1078" 80 ></A 81 ><H2 82 >Name</H2 83 >SDL_GetVideoSurface -- returns a pointer to the current display surface</DIV 84 ><DIV 85 CLASS="REFSYNOPSISDIV" 86 ><A 87 NAME="AEN1081" 88 ></A 89 ><H2 90 >Synopsis</H2 91 ><DIV 92 CLASS="FUNCSYNOPSIS" 93 ><A 94 NAME="AEN1082" 95 ></A 96 ><P 97 ></P 98 ><PRE 99 CLASS="FUNCSYNOPSISINFO" 100 >#include "SDL.h"</PRE 101 ><P 102 ><CODE 103 ><CODE 104 CLASS="FUNCDEF" 105 >SDL_Surface *<B 106 CLASS="FSFUNC" 107 >SDL_GetVideoSurface</B 108 ></CODE 109 >(void);</CODE 110 ></P 111 ><P 112 ></P 113 ></DIV 114 ></DIV 115 ><DIV 116 CLASS="REFSECT1" 117 ><A 118 NAME="AEN1088" 119 ></A 120 ><H2 121 >Description</H2 122 ><P 123 >This function returns a pointer to the current display surface. 124 If SDL is doing format conversion on the display surface, this 125 function returns the publicly visible surface, not the real video 126 surface.</P 127 ></DIV 128 ><DIV 129 CLASS="REFSECT1" 130 ><A 131 NAME="AEN1091" 132 ></A 133 ><H2 134 >See Also</H2 135 ><P 136 ><A 137 HREF="sdlsurface.html" 138 ><SPAN 139 CLASS="STRUCTNAME" 140 >SDL_Surface</SPAN 141 ></A 142 ></P 143 ></DIV 144 ><DIV 145 CLASS="NAVFOOTER" 146 ><HR 147 ALIGN="LEFT" 148 WIDTH="100%"><TABLE 149 SUMMARY="Footer navigation table" 150 WIDTH="100%" 151 BORDER="0" 152 CELLPADDING="0" 153 CELLSPACING="0" 154 ><TR 155 ><TD 156 WIDTH="33%" 157 ALIGN="left" 158 VALIGN="top" 159 ><A 160 HREF="video.html" 161 ACCESSKEY="P" 162 >Prev</A 163 ></TD 164 ><TD 165 WIDTH="34%" 166 ALIGN="center" 167 VALIGN="top" 168 ><A 169 HREF="index.html" 170 ACCESSKEY="H" 171 >Home</A 172 ></TD 173 ><TD 174 WIDTH="33%" 175 ALIGN="right" 176 VALIGN="top" 177 ><A 178 HREF="sdlgetvideoinfo.html" 179 ACCESSKEY="N" 180 >Next</A 181 ></TD 182 ></TR 183 ><TR 184 ><TD 185 WIDTH="33%" 186 ALIGN="left" 187 VALIGN="top" 188 >Video</TD 189 ><TD 190 WIDTH="34%" 191 ALIGN="center" 192 VALIGN="top" 193 ><A 194 HREF="video.html" 195 ACCESSKEY="U" 196 >Up</A 197 ></TD 198 ><TD 199 WIDTH="33%" 200 ALIGN="right" 201 VALIGN="top" 202 >SDL_GetVideoInfo</TD 203 ></TR 204 ></TABLE 205 ></DIV 206 ></BODY 207 ></HTML 208 >