1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="CategoryRender.html" title="1
\82Â
\8fã">
\r
9 <title>SDL_QueryTexture</title>
\r
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_QueryTexture
\r
14 <h1>SDL_QueryTexture</h1>
\r
15 \83e
\83N
\83X
\83`
\83\83\82Ì
\8fî
\95ñ
\82ð
\93¾
\82é
\r
17 <code>int SDL_QueryTexture(SDL_Texture* texture, Uint32* format, int* access, int* w, int* h)</code>
\r
19 <table border="1" summary="SDL_QueryTexture">
\r
20 <tr><td>texture</td><td>
\92²
\8d¸
\82·
\82é
\83e
\83N
\83X
\83`
\83\83</td></tr>
\r
21 <tr><td>format</td><td>
\83e
\83N
\83X
\83`
\83\83\82Ì
\90¶
\82Ì
\8c`
\8e®
\82ð
\91ã
\93ü
\82·
\82é
\83|
\83C
\83\93\83^(<a href="SDL_PixelFormat.html">SDL_PixelFormat</a>).
\8eÀ
\8dÛ
\82Ì
\8c`
\8e®
\82Æ
\82Í
\88Ù
\82È
\82é
\82±
\82Æ
\82ª
\82 \82é.
\82µ
\82©
\82µ,
\83s
\83N
\83Z
\83\8b\82Ì
\83R
\83s
\81[
\82Å
\82Í
\82±
\82Ì
\8c`
\8e®
\82ª
\8eg
\82í
\82ê
\82é.</td></tr>
\r
22 <tr><td>access</td><td>
\8eÀ
\8dÛ
\82Ì
\83A
\83N
\83Z
\83X
\82ð
\91ã
\93ü
\82·
\82é
\83|
\83C
\83\93\83^(<a href="SDL_TextureAccess.html">SDL_TextureAccess</a>
\82Ì1
\82Â)</td></tr>
\r
23 <tr><td>w</td><td>
\83e
\83N
\83X
\83`
\83\83\82Ì
\95\9d\82ð
\91ã
\93ü
\82·
\82é
\83|
\83C
\83\93\83^</td></tr>
\r
24 <tr><td>h</td><td>
\83e
\83N
\83X
\83`
\83\83\82Ì
\8d\82\82³
\82ð
\91ã
\93ü
\82·
\82é
\83|
\83C
\83\93\83^</td></tr>
\r
26 <h2>
\96ß
\82è
\92l</h2>
\r
27 \90¬
\8c÷
\82Ì
\82Æ
\82«0,
\8e¸
\94s
\82Ì
\82Æ
\82«
\95\89\82Ì
\90\94\82Ì
\83G
\83\89\81[
\83R
\81[
\83h
\82ð
\96ß
\82·.
\r
28 <a href="SDL_GetError.html">SDL_GetError()</a>
\82Å
\8fÚ
\8d×
\82ð
\92m
\82é
\82±
\82Æ
\82ª
\82Å
\82«
\82é.
\r
29 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
33 SDL_Texture* source;
\r
35 //
\82±
\82±
\82Å
\93Ç
\82Ý
\8d\9e\82Ý
\82È
\82Ç
\82ð
\8ds
\82¤...
\r
38 SDL_QueryTexture(source, NULL, NULL, &w, &h);
\r
42 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
43 <a href="SDL_CreateTexture.html">SDL_CreateTexture</a><br>
\r
44 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
45 <a href="https://wiki.libsdl.org/SDL_QueryTexture">SDL_QueryTexture - SDL Wiki</a>
\r