OSDN Git Service

SDL_atomic_t サンプルコードを修正 https://wiki.libsdl.org/SDL_atomic_t?action=diff&rev1=3&rev2=4
[sdl2referencejp/sdl2referencejp.git] / SDL_Rect.html
index 2371439..9a68d80 100644 (file)
 <tr><td>int</td><td>w</td><td>\92·\95û\8c`\82Ì\95\9d</td></tr>\r
 <tr><td>int</td><td>h</td><td>\92·\95û\8c`\82Ì\8d\82\82³</td></tr>\r
 </table>\r
+<h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>\r
+<p>\r
+<code>\r
+<pre>\r
+SDL_Rect srcrect;\r
+SDL_Rect dstrect;\r
+\r
+srcrect.x = 0;\r
+srcrect.y = 0;\r
+srcrect.w = 32;\r
+srcrect.h = 32;\r
+dstrect.x = 640/2;\r
+dstrect.y = 480/2;\r
+dstrect.w = 32;\r
+dstrect.h = 32;\r
+\r
+SDL_BlitSurface(src, &amp;srcrect, dst, &amp;dstrect);\r
+</pre>\r
+</code>\r
+</p>\r
 <h2>\8fÚ\8d×</h2>\r
 <a href="SDL_Rect.html">SDL_Rect</a>\82Í\83X\83N\83\8a\81[\83\93\8fã\82Ì\92·\95û\8c`\82Ì\97Ì\88æ\82ð\92è\8b`\82·\82é.\r
 <a href="SDL_BlitSurface.html">SDL_BlitSurface()</a>\82Å\82Í\93]\91\97\82Ì\97Ì\88æ\82ð\92è\8b`\82µ, \91¼\82Ì\83r\83f\83I\8aÖ\90\94\82Å\82à\8eg\82í\82ê\82é.\r
@@ -31,9 +51,9 @@
 <a href="SDL_IntersectRect.html">SDL_IntersectRect</a><br>\r
 <a href="SDL_LockTexture.html">SDL_LockTexture</a><br>\r
 <a href="SDL_RenderCopy.html">SDL_RenderCopy</a><br>\r
-<a href="SDL_RenderReadPixels.html">SDL_RenderReadPixels</a><br>\r
 <a href="SDL_RenderDrawRect.html">SDL_RenderDrawRect</a><br>\r
 <a href="SDL_RenderDrawRects.html">SDL_RenderDrawRects</a><br>\r
+<a href="SDL_RenderReadPixels.html">SDL_RenderReadPixels</a><br>\r
 <a href="SDL_UnionRect.html">SDL_UnionRect</a><br>\r
 <a href="SDL_UpdateTexture.html">SDL_UpdateTexture</a><br>\r
 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>\r