GLUSCALEIMAGE(3G) | GLUSCALEIMAGE(3G) |
̾??¶
gluScaleImage - ??????Ǥ?դ??礭?????Ѥ???
????¶
GLint gluScaleImage( GLenum format,
GLsizei wIn, GLsizei hIn, GLenum typeIn, const void *dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid* dataOut )
??????¶
- format
- ?ԥ??????ǡ????????ꤹ?롣 ͭ???ʥ????ܥ??ͤϼ????̤??Ǥ???: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_RGBA, GL_BGR, GL_BGRA, GL_LUMINANCE, GL_LUMINANCE_ALPHA??
- wIn, hIn
- ???ϲ????ι⤵???????ԥ?????ñ?̤ǻ??ꤹ?롣
- typeIn
- dataIn ?Υǡ??????????ꤹ?롣 ???η??Τɤ줫?Ǥʤ????Фʤ??ʤ?: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, GL_UNSIGNED_INT_2_10_10_10_REV??
- dataIn
- ???ϲ??????ؤ??ݥ??????ꤹ?롣
- wOut, hOut
- ???ϲ????ι⤵???????ԥ?????ñ?̤ǻ??ꤹ?롣
- typeOut
- dataOut ?Υǡ??????????ꤹ?롣 ???η??Τɤ줫?Ǥʤ????Фʤ??ʤ?: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, GL_UNSIGNED_INT_2_10_10_10_REV??
- dataOut
- ???ϲ??????ؤ??ݥ??????ꤹ?롣
????¶
gluScaleImage ?ϥԥ??????????Υ????????ѹ????롣 ???κݤˤ?Ŭ?ڤʥԥ???????Ǽ?⡼?ɤ??Ѥ??????ϲ????????ǡ??????????Ф??? ???ϲ????˥ǡ???????Ǽ???롣
???????̾??????ݤˤϡ?gluScaleImage ?ϥܥå????ե??륿?? ?Ѥ??????ϲ??????ץ????????ϲ????ѤΥԥ??????????????롣 ?????????礹???ݤˤϡ????ϲ????Υԥ??????ˤ????????֤??Ԥ??졢 ???ϲ??????????????롣
?֤??ͤ? 0 ?ξ???????????ɽ?????????ʳ??ξ????? GLU ?Υ??顼?????ɤ??? ??????(gluErrorString ??)??
?????? format, typeIn, typeOut ?˻?????ǽ???ͤ? ?Ĥ??Ƥϡ?glReadPixels ?ι??ܤȤ??뤳?ȡ?
????¶
?ե????ޥå? GL_BGR, GL_BGRA ?????ӷ? GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV ???????Ǥ????Τϡ??С??????? 1.2 ?ʹߤ? GL ?????Ǥ??롣
???顼¶
wIn, hIn, wOut, hOut ?Τ????줫?????ξ????ˤ? GLU_INVALID_VALUE ???֤????롣
format, typeIn, typeOut ?Τ????줫???ͤ? ?????ʾ????ˤ? GLU_INVALID_ENUM ???֤????롣
typeIn ?ޤ??? typeOut ?? GL_UNSIGNED_BYTE_3_3_2 ?? GL_UNSIGNED_BYTE_2_3_3_REV ?Ǥ??ꡢ???? format ?? GL_RGB ?Ǥʤ??????ˤ? GLU_INVALID_OPERATION ???֤????롣
typeIn ?ޤ??? typeOut ?? GL_UNSIGNED_SHORT_5_6_5 ?? GL_UNSIGNED_SHORT_5_6_5_REV ?Ǥ??ꡢ???? format ?? GL_RGB ?Ǥʤ??????ˤ? GLU_INVALID_OPERATION ???֤????롣
typeIn ?ޤ??? typeOut ?? GL_UNSIGNED_SHORT_4_4_4_4 ?? GL_UNSIGNED_SHORT_4_4_4_4_REV ?Ǥ??ꡢ???? format ?? GL_RGBA ?? GL_BGRA ?? ???????Ǥ??ʤ????С?GLU_INVALID_OPERATION ???֤????롣
typeIn ?ޤ??? typeOut ?? GL_UNSIGNED_SHORT_5_5_5_1 ?? GL_UNSIGNED_SHORT_1_5_5_5_REV ?Ǥ??ꡢ???? format ?? GL_RGBA ?? GL_BGRA ?? ???????Ǥ??ʤ????С?GLU_INVALID_OPERATION ???֤????롣
typeIn ?ޤ??? typeOut ?? GL_UNSIGNED_INT_8_8_8_8 ?? GL_UNSIGNED_INT_8_8_8_8_REV ?Ǥ??ꡢ???? format ?? GL_RGBA ?? GL_BGRA ?? ???????Ǥ??ʤ????? GLU_INVALID_OPERATION ???֤????롣
typeIn ?ޤ??? typeOut ?? GL_UNSIGNED_INT_10_10_10_2 ?? GL_UNSIGNED_INT_2_10_10_10_REV ?Ǥ??ꡢ???? format ?? GL_RGBA ?? GL_BGRA ?? ???????Ǥ??ʤ????? GLU_INVALID_OPERATION ???֤????롣
??Ϣ????¶
glDrawPixels, glReadPixels, gluBuild1DMipmaps, gluBuild2DMipmaps, gluBuild3DMipmaps, gluErrorString