OSDN Git Service

SDL_ConvertSurface サンプルコードを追加, 関連する関数に追加 https://wiki.libsdl.org/SDL_ConvertSurface...
authormaruhiro <maruhiro@bridge.ocn.ne.jp>
Tue, 24 Mar 2020 15:46:42 +0000 (00:46 +0900)
committermaruhiro <maruhiro@bridge.ocn.ne.jp>
Tue, 24 Mar 2020 15:46:42 +0000 (00:46 +0900)
SDL_ConvertSurface.html

index f57a84e..ef7b8c5 100644 (file)
 <h2>\96ß\82è\92l</h2>\r
 \90¬\8c÷\82Ì\82Æ\82«\90\90¬\82³\82ê\82½<a href="SDL_Surface.html">SDL_Surface</a>, \8e¸\94s\82Ì\82Æ\82«NULL\82ð\96ß\82·.\r
 <a href="SDL_GetError.html">SDL_GetError()</a>\82ð\8cÄ\82ñ\82Å\8fÚ\8d×\82ð\92m\82é\82±\82Æ\82ª\82Å\82«\82é.\r
+<h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>\r
+<p>\r
+<code>\r
+<pre>\r
+// SDL_Surface *input = ...;\r
+SDL_PixelFormat *format = SDL_AllocFormat(SDL_PIXELFORMAT_RGBA32);\r
+SDL_Surface *output = SDL_ConvertSurface(input, format, 0);\r
+SDL_FreeFormat(format);\r
+</pre>\r
+</code>\r
+</p>\r
 <h2>\8fÚ\8d×</h2>\r
 \82±\82Ì\8aÖ\90\94\82Í\8cJ\82è\95Ô\82µ\83R\83s\81[\82³\82ê\82é\89æ\91\9c\82ð\8dÅ\93K\89»\82·\82é\82½\82ß\82É\8eg\82í\82ê\82é.\r
 \8c³\82Ì\83T\81[\83t\83F\83C\83X\82ð\95Ï\8a·\82·\82é\82Æ\90V\82µ\82¢\83T\81[\83t\83F\83C\83X\82ª\90\90¬\82³\82ê\82é.\r
 \90V\82µ\82¢\8dÅ\93K\89»\82³\82ê\82½\83T\81[\83t\83F\83C\83X\82Í\8d\82\91¬\82È\83R\83s\81[\8c³\82Æ\82µ\82Ä\8eg\82¦\82é.\r
 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>\r
+<a href="SDL_AllocFormat.html">SDL_AllocFormat</a></br>\r
 <a href="SDL_ConvertSurfaceFormat.html">SDL_ConvertSurfaceFormat</a><br>\r
 <a href="SDL_CreateRGBSurface.html">SDL_CreateRGBSurface</a><br>\r
 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>\r