X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=SDL_GL_SetAttribute.html;h=490ceb602f97c6c191e6b71e27605eceaded5fb9;hb=3c2c2ef8f709c4feab328057380a6e6e78548674;hp=d0cc52c58d4dd6af7befd1c4829d521aacd9c3e3;hpb=5ab5151b9631915c52510a80da97127847a96b3c;p=sdl2referencejp%2Fsdl2referencejp.git diff --git a/SDL_GL_SetAttribute.html b/SDL_GL_SetAttribute.html index d0cc52c..490ceb6 100644 --- a/SDL_GL_SetAttribute.html +++ b/SDL_GL_SetAttribute.html @@ -49,10 +49,12 @@ if (!context) { return; } -printf("Ô‚̃TƒCƒY: %d, —΂̃TƒCƒY: %d, Â‚̃TƒCƒY: %d\n", - SDL_GL_GetAttribute(SDL_GL_RED_SIZE), - SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE), - SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE)); +int r, g, b; +SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &r); +SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &g); +SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &b); + +printf("Ô‚̃TƒCƒY: %d, —΂̃TƒCƒY: %d, Â‚̃TƒCƒY: %d\n", r, g, b);

@@ -66,8 +68,8 @@ printf(" attr‚ÍSDL_GLattr—ñ‹“‘Ì‚Ì’l‚Ì1‚‚ł ‚é.

ŠÖ˜A€–Ú(ŠÖ”)

-SDL_GL_ResetAttributes
SDL_GL_GetAttribute
+SDL_GL_ResetAttributes

SDL Wiki‚ւ̃Šƒ“ƒN

SDL_GL_SetAttribute - SDL Wiki