OSDN Git Service

SDL_Vulkan_UnloadLibrary 新規追加 https://wiki.libsdl.org/SDL_Vulkan_UnloadLibrary
[sdl2referencejp/sdl2referencejp.git] / SDL_ComposeCustomBlendMode.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="ja-JP">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
7 <link rel="top" href="index.html" title="\83z\81[\83\80">
8 <link rel="parent" href="CategoryRender.html" title="1\82Â\8fã">
9 <title>SDL_ComposeCustomBlendMode</title>
10 </head>
11 <body>
12 <a href="index.html">\96Ú\8e\9f</a> - <a href="ApiByCategory.html">API(\8b@\94\\95Ê)</a> - <a href="CategoryRender.html">2D\83\8c\83\93\83_\83\8a\83\93\83O</a> - SDL_ComposeCustomBlendMode
13 <hr>
14 <h1>SDL_ComposeCustomBlendMode</h1>
15 \83\8c\83\93\83_\81[\82Ì\83J\83X\83^\83\80\83u\83\8c\83\93\83h\83\82\81[\83h\82ð\90\90¬\82·\82é
16 <h2>\8d\\95¶</h2>
17 <code>SDL_BlendMode SDL_ComposeCustomBlendMode(SDL_BlendFactor srcColorFactor, SDL_BlendFactor dstColorFactor, SDL_BlendOperation colorOperation, SDL_BlendFactor srcAlphaFactor, SDL_BlendFactor dstAlphaFactor, SDL_BlendOperation alphaOperation)</code>
18 <h2>\88ø\90\94</h2>
19 <table border="1" summary="SDL_ComposeCustomBlendMode">
20 <tr><td>srcColorFactor</td><td>\95`\89æ\8c³\82Ì\83s\83N\83Z\83\8b\82Ì\90Ô, \97Î, \90Â\90¬\95ª\82É\8fæ\8eZ\82³\82ê\82é<a href="SDL_BlendFactor.html">SDL_BlendFactor</a></td></tr>
21 <tr><td>dstColorFactor</td><td>\95`\89æ\90æ\82Ì\83s\83N\83Z\83\8b\82Ì\90Ô, \97Î, \90Â\90¬\95ª\82É\8fæ\8eZ\82³\82ê\82é<a href="SDL_BlendFactor.html">SDL_BlendFactor</a></td></tr>
22 <tr><td>colorOperation</td><td>\95`\89æ\8c³\82Æ\95`\89æ\90æ\82Ì\83s\83N\83Z\83\8b\82Ì\90Ô, \97Î, \90Â\90¬\95ª\82Ì\8d\87\90¬\82É\8eg\82í\82ê\82é<a href="SDL_BlendOperation.html">SDL_BlendOperation</a></td></tr>
23 <tr><td>srcAlphaFactor</td><td>\95`\89æ\8c³\82Ì\83s\83N\83Z\83\8b\82Ì\83¿\90¬\95ª\82É\8fæ\8eZ\82³\82ê\82é<a href="SDL_BlendFactor.html">SDL_BlendFactor</a></td></tr>
24 <tr><td>dstAlphaFactor</td><td>\95`\89æ\90æ\82Ì\83s\83N\83Z\83\8b\82Ì\83¿\90¬\95ª\82É\8fæ\8eZ\82³\82ê\82é<a href="SDL_BlendFactor.html">SDL_BlendFactor</a></td></tr>
25 <tr><td>alphaOperation</td><td>\95`\89æ\8c³\82Æ\95`\89æ\90æ\82Ì\83s\83N\83Z\83\8b\82Ì\83¿\90¬\95ª\82Ì\8d\87\90¬\82É\8eg\82í\82ê\82é<a href="SDL_BlendOperation.html">SDL_BlendOperation</a></td></tr>
26 </table>
27 <h2>\96ß\82è\92l</h2>
28 \91I\91ð\82µ\82½\8cW\90\94\82Æ\89\89\8eZ\82ð\93K\97p\82µ\82½<a href="SDL_BlendMode.html">SDL_BlendMode</a>\82ð\96ß\82·.
29 <h2>\8fÚ\8d×</h2>
30 <p>
31 <a href="SDL_SetRenderDrawBlendMode.html">SDL_SetRenderDrawBlendMode()</a>\82Æ<a href="SDL_SetTextureBlendMode.html">SDL_SetTextureBlendMode()</a>\82Í, \83\8c\83\93\83_\83\89\81[\82ª\91Î\89\9e\82µ\82Ä\82¢\82ê\82Î\82±\82Ì\8aÖ\90\94\82ª\96ß\82·<a href="SDL_BlendMode.html">SDL_BlendMode</a>\82ð\8eó\82¯\95t\82¯\82é.
32 </p>
33 <p>
34 \83u\83\8c\83\93\83h\83\82\81[\83h\82Í, \95`\89æ\82·\82é\83s\83N\83Z\83\8b(\8c³)\82ª, \83\8c\83\93\83_\81[\83^\81[\83Q\83b\83g\82Ì\83s\83N\83Z\83\8b(\90æ)\82Æ\82Ç\82Ì\82æ\82¤\82É\8d\87\90¬\82³\82ê\82é\82©\82ð\8c\88\82ß\82é.
35 \8dÅ\8f\89\82É\95`\89æ\8c³\82Æ\95`\89æ\90æ\82Ì\83s\83N\83Z\83\8b\82Ì\8ae\90F\90¬\95ª\82É\83u\83\8c\83\93\83h\8cW\90\94\82ª\8fæ\8eZ\82³\82ê\82é.
36 \8e\9f\82É\82»\82Ì2\82Â\82Ì\90Ï\82ð\83u\83\8c\83\93\83h\89\89\8eZ\82É\8f]\82Á\82Ä\8cv\8eZ\82µ, \8c\8b\89Ê\82ð\83\8c\83\93\83_\81[\83^\81[\83Q\83b\83g\82É\8f\91\82«\8d\9e\82Þ.
37 </p>
38 <p>
39 \8b[\8e\97\83R\81[\83h\82Å\95\\82·\82Æ\8e\9f\82Ì\82æ\82¤\82É\82È\82é:
40 <code>
41 <pre>
42 \90æRGB = colorOperation(\8c³RGB * srcColorFactor, \90æRGB * dstColorFactor)
43 \90æ\83¿ = alphaOperation(\8c³\83¿ * srcAlphaFactor, \90æ\83¿ * dstAlphaFactor)
44 </pre>
45 </code>
46 </p>
47 <p>
48 colorOperation(src, dst)\82ÆalphaOperation(src, dst)\8aÖ\90\94\82Í, \8e\9f\82Ì\93à\82Ì1\82Â\82ð\96ß\82·: src + dst, src - dst, dst - src, min(src, dst), max(src, dst)
49 </p>
50 <p>
51 \90Ô, \97Î, \90Â\82Ì\90¬\95ª\82É\82Í, \8fí\82É<a href="SDL_BlendFactor.html">SDL_BlendFactor</a>\82Ì\91æ1, \91æ2, \91æ3\8cW\90\94\82ª\82»\82ê\82¼\82ê\8fæ\8eZ\82³\82ê\82é.
52 \91æ4\8cW\90\94\82Í\8eg\82í\82ê\82È\82¢.
53 </p>
54 <p>
55 \83¿\90¬\95ª\82É\82Í, \8fí\82É<a href="SDL_BlendFactor.html">SDL_BlendFactor</a>\82Ì\91æ4\8cW\90\94\82ª\8fæ\8eZ\82³\82ê\82é.
56 \91¼\82Ì\8cW\90\94\82Í\83¿\90¬\95ª\82Ì\8cv\8eZ\82Å\82Í\8eg\82í\82ê\82È\82¢.
57 </p>
58 <p>
59 \82±\82ê\82ç\82Ì\83u\83\8c\83\93\83h\83\82\81[\83h\82Í, \83\8c\83\93\83_\83\89\81[\82É\82æ\82Á\82Ä\82Í\91Î\89\9e\82µ\82Ä\82¢\82È\82¢\82±\82Æ\82ª\82 \82é.
60 \93Á\92è\82Ì<a href="SDL_BlendMode.html">SDL_BlendMode</a>\82ª\91Î\89\9e\82µ\82Ä\82¢\82é\82©\82Í, \83\8c\83\93\83_\83\89\81[\82ð\90\90¬\82µ, \82»\82ê\82ð<a href="SDL_SetRenderDrawBlendMode.html">SDL_SetRenderDrawBlendMode()</a>\82â<a href="SDL_SetTextureBlendMode.html">SDL_SetTextureBlendMode()</a>\82É\93n\82·\82±\82Æ\82Å\8am\94F\82Å\82«\82é.
61 \82à\82µ\83G\83\89\81[\82ð\96ß\82¹\82Î\82»\82Ì\83u\83\8c\83\93\83h\83\82\81[\83h\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82È\82¢.
62 </p>
63 <p>
64 \8e\9f\82Ì\95\\82ÍSDL 2.0.6\82É\82¨\82¯\82é\8ae\83\8c\83\93\83_\83\89\81[\82Ì\83J\83X\83^\83\80\83u\83\8c\83\93\83h\83\82\81[\83h\82Ì\91Î\89\9e\82ð\8e¦\82µ\82Ä\82¢\82é.
65 \91S\82Ä\82Ì\83\8c\83\93\83_\83\89\81[\82Í<a href="SDL_BlendMode.html">SDL_BlendMode</a>\97ñ\8b\93\91Ì\82Ì4\82Â\82Ì\83u\83\8c\83\93\83h\83\82\81[\83h\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82é.
66 </p>
67 <table border="1" summary="\83J\83X\83^\83\80\83u\83\8c\83\93\83h\83\82\81[\83h">
68 <tr><td>direct3d</td><td>SDL_BLENDOPERATION_ADD\89\89\8eZ\82Å\91S\82Ä\82Ì\8cW\90\94\82É\91Î\89\9e</td></tr>
69 <tr><td>direct3d11</td><td>\91S\82Ä\82Ì\8cW\90\94\82Æ\89\89\8eZ\82É\91Î\89\9e\82µ\82©\82µ, \88ê\95\94\82Ì\8cW\90\94\82ÍSDL_BLENDOPERATION_MINIMUM\89\89\8eZ\82Ü\82½\82ÍSDL_BLENDOPERATION_MAXIMUM\89\89\8eZ\82ð\8ew\92è\82·\82é\82Æ\97\\8aú\82µ\82È\82¢\8c\8b\89Ê\82É\82È\82é</td></tr>
70 <tr><td>opengl</td><td>SDL_BLENDOPERATION_ADD\89\89\8eZ\82Å\91S\82Ä\82Ì\8cW\90\94\82É\91Î\89\9e. OpenGL \83o\81[\83W\83\87\83\931.1, 1.2, 1.3\82ÍSDL 2.0.6\82Å\82Í\90³\8fí\82É\93®\8dì\82µ\82È\82¢</td></tr>
71 <tr><td>opengles</td><td>SDL_BLENDOPERATION_ADD\89\89\8eZ\82Å\91S\82Ä\82Ì\8cW\90\94\82É\91Î\89\9e\90F\82Æ\83¿\8cW\90\94\82Í\93¯\82\82Å\82 \82é\95K\97v\82ª\82 \82é.<br>
72 OpenGL ES 1 \8cÅ\97L\82Ì\93Á\90«: SDL_BLENDOPERATION_SUBTRACT\89\89\8eZ\82ÆSDL_BLENDOPERATION_REV_SUBTRACT\89\89\8eZ\82É\91Î\89\9e\82µ\82Ä\82¢\82é\82©\82à\82µ\82ê\82È\82¢. \90F\82Æ\83¿\90¬\95ª\82Ì\89\89\8eZ\82Í\82»\82ê\82¼\82ê\88Ù\82È\82Á\82Ä\82à\82æ\82¢\82©\82à\82µ\82ê\82È\82¢. \90F\82Æ\83¿\90¬\95ª\82Ì\8cW\90\94\82Í\88Ù\82È\82Á\82Ä\82à\82æ\82¢\82©\82à\82µ\82ê\82È\82¢</td></tr>
73 <tr><td>opengles2</td><td>SDL_BLENDOPERATION_ADD, SDL_BLENDOPERATION_SUBTRACT, SDL_BLENDOPERATION_REV_SUBTRACT\89\89\8eZ\82Å\91S\82Ä\82Ì\8cW\90\94\82É\91Î\89\9e</td></tr>
74 <tr><td>psp</td><td>\83J\83X\83^\83\80\83u\83\8c\83\93\83h\83\82\81[\83h\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82È\82¢</td></tr>
75 <tr><td>software</td><td>\83J\83X\83^\83\80\83u\83\8c\83\93\83h\83\82\81[\83h\82É\82Í\91Î\89\9e\82µ\82Ä\82¢\82È\82¢</td></tr>
76 </tr>
77 </table>
78 <p>
79 \88ê\95\94\82Ì\83\8c\83\93\83_\83\89\81[\82Í, \83f\83t\83H\83\8b\83g\82Ì\83\8c\83\93\83_\81[\83^\81[\83Q\83b\83g\82Å\82Í\83¿\90¬\95ª\82ð\92ñ\8b\9f\82µ\82È\82¢.
80 \82±\82Ì\8fê\8d\87, SDL_BLENDFACTOR_DST_ALPHA\8cW\90\94\82ÆSDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA\8cW\90\94\82Í\8cø\89Ê\82ª\82È\82¢.
81 </p>
82 <h2>\83o\81[\83W\83\87\83\93</h2>
83 <p>
84 SDL 2.0.6\88È\8d~
85 </p>
86 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>
87 <a href="SDL_SetRenderDrawBlendMode.html">SDL_SetRenderDrawBlendMode</a><br>
88 <a href="SDL_GetRenderDrawBlendMode.html">SDL_GetRenderDrawBlendMode</a><br>
89 <a href="SDL_SetTextureBlendMode.html">SDL_SetTextureBlendMode</a><br>
90 <a href="SDL_GetTextureBlendMode.html">SDL_GetTextureBlendMode</a>
91 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>
92 <a href="https://wiki.libsdl.org/SDL_ComposeCustomBlendMode">SDL_ComposeCustomBlendMode - SDL Wiki</a>
93 <hr>
94 </body>
95 </html>