⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdldisplayformat.html

📁 VC5.6.7的一个扩展库。跟DirectX的功能差不多。
💻 HTML
字号:
<HTML><HEAD><TITLE>SDL_DisplayFormat</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="SDL Library Documentation"HREF="index.html"><LINKREL="UP"TITLE="Video"HREF="video.html"><LINKREL="PREVIOUS"TITLE="SDL_FillRect"HREF="sdlfillrect.html"><LINKREL="NEXT"TITLE="SDL_DisplayFormatAlpha"HREF="sdldisplayformatalpha.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFF8DC"TEXT="#000000"LINK="#0000ee"VLINK="#551a8b"ALINK="#ff0000"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">SDL Library Documentation</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="sdlfillrect.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="sdldisplayformatalpha.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SDLDISPLAYFORMAT"></A>SDL_DisplayFormat</H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN2394"></A><H2>Name</H2>SDL_DisplayFormat&nbsp;--&nbsp;Convert a surface to the display format</DIV><DIVCLASS="REFSYNOPSISDIV"><ANAME="AEN2397"></A><H2>Synopsis</H2><DIVCLASS="FUNCSYNOPSIS"><ANAME="AEN2398"></A><P></P><PRECLASS="FUNCSYNOPSISINFO">#include "SDL.h"</PRE><P><CODE><CODECLASS="FUNCDEF">SDL_Surface *<BCLASS="FSFUNC">SDL_DisplayFormat</B></CODE>(SDL_Surface *surface);</CODE></P><P></P></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="AEN2404"></A><H2>Description</H2><P>This function takes a surface and copies it to a new surface of thepixel format and colors of the video framebuffer, suitable for fastblitting onto the display surface.  It calls<AHREF="sdlconvertsurface.html">SDL_ConvertSurface</A></P><P>If you want to take advantage of hardware colorkey or alpha blitacceleration, you should set the colorkey and alpha value beforecalling this function.</P><P>If you want an alpha channel, see <AHREF="sdldisplayformatalpha.html">SDL_DisplayFormatAlpha</A>.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN2411"></A><H2>Return Value</H2><P>If the conversion fails or runs out of memory, it returns<SPANCLASS="RETURNVALUE">NULL</SPAN></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN2415"></A><H2>See Also</H2><P><AHREF="sdlconvertsurface.html"><TTCLASS="FUNCTION">SDL_ConvertSurface</TT></A>,<AHREF="sdldisplayformatalpha.html"><TTCLASS="FUNCTION">SDL_DisplayFormatAlpha</TT></A><AHREF="sdlsetalpha.html"><TTCLASS="FUNCTION">SDL_SetAlpha</TT></A>,<AHREF="sdlsetcolorkey.html"><TTCLASS="FUNCTION">SDL_SetColorKey</TT></A>,<AHREF="sdlsurface.html"><SPANCLASS="STRUCTNAME">SDL_Surface</SPAN></A></P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="sdlfillrect.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="index.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="sdldisplayformatalpha.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">SDL_FillRect</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="video.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">SDL_DisplayFormatAlpha</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -