<HTML>

<HEAD>

<TITLE>HTML ����</TITLE>

<META NAME="GENERATOR" CONTENT="Internet Assistant for Microsoft Word 2.0j">
</HEAD>

<BODY>

<P>
<A NAME="_Toc366998493"></A><B><FONT FACE="Arial">gSPTextureRectangle(3P)</FONT><FONT FACE="�l�r �o�S�V�b�N">�@
<BR>
</FONT></B>
<P>
<B>�֐���<BR>
</B>
<P>
gSPTextureRectangle, gsSPTextureRectangle, gSPTextureRectangleFlip,
gsSPTextureRectangleFlip, gSPScisTextureRectangle
<P>
�� �X�N���[�����W�Ńe�N�X�`�������`�������_�����O���܂��B(�X�v���C�g)
<BR>

<P>
<B>�\��<BR>
</B>
<P>
 #include &quot;gbi.h&quot;
<P>
 gSPTextureRectangle(Gfx *gdl,
<P>
  unsigned int ulx,
<P>
  unsigned int uly,
<P>
  unsigned int lrx,
<P>
  unsigned int lry,
<P>
  int tile, int s, int t,
<P>
  int dsdx, int dtdy)
<P>
 gsSPTextureRectangle(unsigned int ulx,
<P>
  unsigned int uly,
<P>
  unsigned int lrx,
<P>
  unsigned int lry,
<P>
  int tile, int s, int t,
<P>
  int dsdx, int dtdy)
<P>
 gSPTextureRectangleFlip(Gfx *gdl,
<P>
  unsigned int ulx,
<P>
  unsigned int uly,
<P>
  unsigned int lrx,
<P>
  unsigned int lry,
<P>
  int tile, int s, int t,
<P>
  int dsdx, int dtdy)
<P>
 gsSPTextureRectangleFlip(unsigned int ulx,
<P>
  unsigned int uly,
<P>
  unsigned int lrx,
<P>
  unsigned int lry,
<P>
  int tile, int s, int t,
<P>
  int dsdx, int dtdy)
<P>
 gSPScisTextureRectangle(Gfx *gdl,
<P>
  unsigned int ulx,
<P>
  unsigned int uly,
<P>
  unsigned int lrx,
<P>
  unsigned int lry,
<P>
  int tile, int s, int t,
<P>
  int dsdx, int dtdy)<BR>

<P>
<B>�p�����[�^�@<BR>
</B>
<P>
 <B>*gdl</B> �O���t�B�b�N�f�B�X�v���C���X�g�|�C���^
<P>
 <B>ulx, uly</B>
<P>
  �����`�̍���X�N���[�����W�B���ꂼ��A�Œ菬���_10.2�t�H�[�}�b�g(����
 ��10bit�C������2bit)�B�����́A���̉”\���̂���<b>gSPScisTextureRectangle(3P)</b>
 �ȊO�ł́A���̐��ł��B
<P>
 <B>lrx, lry</B>
<P>
  �����`�̉E���X�N���[�����W�B���ꂼ��C�Œ菬���_10.2�t�H�[�}�b�g�B��
 ���́A���̉”\���̂���<b>gSPScisTextureRectangle(3P)</b>�ȊO�ł́A���̐��ł��B
<P>
 <B>tile</B>
<P>
  �e�N�X�`���^�C���i���o�[�BRDP��8�‚̃e�N�X�`���^�C���L�q�q�̂�����1
 �‚�I�����܂��B
<P>
 <B>s, t</B>
<P>
  �����`�̍���p�̃e�N�X�`�����W(S10.5�t�H�[�}�b�g)�B
<P>
 <B>dsdx, dtdy</B>
<P>
  x, y�̕ω�����s, t�̕ω�(S5.10�t�H�[�}�b�g)�B<BR>

<P>
<B>����<BR>
</B>
<P>
 ���̃R�}���h�̓e�N�X�`�������O���ꂽ2D�����`��`���܂��B�ʂ̃R�}���h<a href="../gdp/gDPFillRectangle.htm">gDPFillRectangle(3P)</a>�͒P��J���[�Œ����`��h��‚Ԃ����߂Ɏg�p���܂��B�`���ꂽ�����`�́A�R�s�[���[�h�Ŏw�肳�ꂽ���W���܂�ł��܂��B1�T�C�N�����[�h��2�T�C�N�����[�h�ł́C�����`�͓K�؂ɃA���`�G�C���A�V���O���s�����߂ɒ�ӂƉE�[�̃G�b�W�������ĕ`�悳��܂��B�Ⴆ�΁Aulx=(0&lt;&lt;2),
lrx=(19&lt;&lt;2)�̓R�s�[���[�h�ł�20�s�N�Z���̏c���h��‚Ԃ��܂����A1�T�C�N�����[�h��2�T�C�N�����[�h�ł�19�񂵂��`�悵�܂���B
<BR>

<P>
 <b>gSPTextureRectangleFlip(3P)</b>�R�}���h�́Ay������s���W��ω������Ax������t���W��ω������邽�߂Ƀe�N�X�`�����t���b�v���܂��B
<BR>

<P>
<B>����<BR>
</B>
<P>
 �X�N���[�����W(0,0)�͍���p���Ӗ����܂��B<BR>

<P>
 x, y���ꂼ��ɑ΂��Đ�����10bit�Ə�����2bit�̐��x������܂��B���������āA1024��2������傫���t���[���o�b�t�@���A�h���X�w�肷�邱�Ƃ͂ł��܂���B
<BR>

<P>
 �R�s�[���[�h�Ńe�N�X�`�����N�^���O�����g�p���Ă���Ƃ��́Cx,
y���W��2�‚̏����r�b�g�͖�������܂��B�Ȃ��Ȃ�A�R�s�[���[�h�ł̓e�N�Z���ƃs�N�Z����1��1�Ή����Ă��邩��ł��B�܂��A�R�s�[���[�h�ł�dsdx��(4
&lt;&lt; 10)�ɐݒ肵�Ă��������B����́A�R�s�[���[�h�ł�4�‚̐����ɗאڂ����e�N�Z�������N���b�N�R�s�[����邩��ł��B�R�s�[���ꂽ�C���[�W��t�����Ɋg��ł����(dtdy
&lt; (1&lt;&lt;10))�́Adtdy�̓s�N�Z������1�e�N�X�`����\��悤�ɐݒ肳��܂�(1&lt;&lt;10)�B�R�s�[���[�h�ɂ�����K�؂ȃe�N�X�`���^�C�v�ɂ‚��ẮAN64�v���O���~���O�}�j���A���̃e�N�X�`���}�b�s���O�̏͂̐��񎖍����Q�Ƃ��Ă��������B�e�N�Z�����������\���邱�Ƃ�ۏ؂��邽�߂ɁC�e�N�X�`�����N�^���O���������_�����O����Ƃ��Ƀe�N�X�`���p�[�X�y�N�e�B�u��<a href="../gDPSetTexturePersp.htm">gDPSetTexturePersp(3P)</a>�R�}���h���g�p���Ă͂����Ă����Ȃ���΂Ȃ�܂���B
<BR>

<P>
 �T�C�N���^�C�v��G_CYC_COPY�ɃZ�b�g����Ă���ꍇ�́A�����_�����O���[�h��Z�o�b�t�@�ɃZ�b�g����Ă͂����܂���B
<BR>

<P>
 �܂��A�T�C�N���^�C�v��G_CYC_COPY�ɃZ�b�g����Ă���ꍇ�́A�V�U�[���N�^���O���̓��N�^���O�����V�U�����O���܂���B(4�s�N�Z���̔{���ŃV�U�����O����܂��B)���������āAG_CYC_COPY���[�h�Ń����_�����O����Ƃ��̓V�U�����O���N�^���O���͓h��‚Ԃ���郌�N�^���O���Ɠ���������ȏ�̑傫���łȂ���΂Ȃ�܂���B
<BR>

<P>
 1�T�C�N�����[�h(G_CYC_1CYCLE)���邢��2�T�C�N�����[�h(G_CYC_2CYCLE)�Ń����_�����O����Ƃ��A�V�U�����O�����`�͐����������`���V�U�����O���܂��B�������Ȃ���A�}�N����<b>gSPScisTextureRectangle(3P)</b>�}�N�����O�Ƃ��āC���̈������Ƃ�܂���B�����`�̊p���X�N���[���g�b�v�̍����邢�͏�(���̒l)�ɂ���ꍇ�́A<b>gSPScisTextureRectangle(3P)</b>�}�N�����g�p���Ă��������B���̃}�N���͓��I�ɂ̂ݎg�p�ł��܂��B�X�^�e�B�b�N�ȃo�[�W����(�Ⴆ��<b>gsSPScisTextureRectangle</b>)�͂���܂���B
<BR>

<P>
<B>�p�t�H�[�}���X�@<BR>
</B>
<P>
 �����`�����_�����O�Ɋւ��Ă͓���Ȑ���������܂��B���S�ɃX�N���[����h��‚Ԃ��v���~�e�B�u��RDP�Ń����_�����O����ۂɔ��Ɏ��Ԃ�������܂��B�����`�v���~�e�B�u�͔��ɃR���p�N�g(���G�Ȍ`��̃|���S���v���~�e�B�u�ƈقȂ�A1���邢��2*64bit
word�ł��B)�Ȃ̂ŁA���ɒ��������_�����O���Ԃ̂������A�̃v���~�e�B�u��RDP��FIFO���g���ēh��‚Ԃ����Ƃ��”\�ł��B�����̃v���~�e�B�u�������_�����O����̂�RDP���g�p����Ă���ԁARSP��CPU�͐������g���C�X����(�I�[�f�B�I�̂悤��)���D�揇�ʂ̍����v���Z�X�̂��߂�RDP���~�������芄�荞�܂����肷�邱�Ƃ��ł��܂���B����͒����`�̎��̂݋N���蓾�܂��B�X�N���[����t��h��‚Ԃ��O�p�`��CPU��RSP��‚ߏo���قǂ̑傫��FIFO�ɓK�����܂���B
<BR>

<P>
 ���ۂ́A�I�[�f�B�I�̏�����1/60�b���Ƃɍs���悤�ȕW���I�ȃt���[���X�P�W���[�����O�A���S���Y���̏ꍇ�́A8���邢��9�ȏ�̘A�������t���X�N���[�������`�v���~�e�B�u��RDP�ɑ���ׂ��ł͂���܂���B�X�N���[����t�ł͂Ȃ������`���邢�́A�A�����Ȃ������`�R�}���h(�Ԃɂ����‚��̑��̃R�}���h��NOOP�������Ă������)�͖�肠��܂��񂵁A�t���[�������_�����O���ԑS�̂��l�����1/60�b���z���܂��񂵁A�܂�/���邢�̓X�P�W���[�����O�A���S���Y����(yield�̗l��)���̃P�[�X���n���h�����O���邱�Ƃ��ł��܂��B���̏󋵂͔�r�I�s���R�ŁA����ł�����̂Ȃ̂ŁARDP�̔񓯊������̗��_�����p���邽�߂Ɏ󂯓���邱�Ƃ��ł���Ɣ��f����܂��B
<BR>

<P>
<B>�Q�Ɓ@<BR>
</B>
<P>
 <a href="../gdp/gDPFillRectangle.htm">gDPFillRectangle(3P)</a>, <a href="../gdp/gDPSetScissor.htm">gDPSetScissor(3P)</a>, <a href="../gDPSetTexturePersp.htm">gDPSetTexturePersp(3P)</a>�@
<BR>
<BR>

</BODY>

</HTML>