… | |
… | |
406 | SDL_Rect **m; |
406 | SDL_Rect **m; |
407 | |
407 | |
408 | SDL_GL_SetAttribute (SDL_GL_RED_SIZE, 5); |
408 | SDL_GL_SetAttribute (SDL_GL_RED_SIZE, 5); |
409 | SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, 5); |
409 | SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, 5); |
410 | SDL_GL_SetAttribute (SDL_GL_BLUE_SIZE, 5); |
410 | SDL_GL_SetAttribute (SDL_GL_BLUE_SIZE, 5); |
411 | SDL_GL_SetAttribute (SDL_GL_ALPHA_SIZE, 0); |
411 | SDL_GL_SetAttribute (SDL_GL_ALPHA_SIZE, 1); |
412 | |
412 | |
413 | SDL_GL_SetAttribute (SDL_GL_ACCUM_RED_SIZE, 0); |
413 | SDL_GL_SetAttribute (SDL_GL_ACCUM_RED_SIZE, 0); |
414 | SDL_GL_SetAttribute (SDL_GL_ACCUM_GREEN_SIZE, 0); |
414 | SDL_GL_SetAttribute (SDL_GL_ACCUM_GREEN_SIZE, 0); |
415 | SDL_GL_SetAttribute (SDL_GL_ACCUM_BLUE_SIZE, 0); |
415 | SDL_GL_SetAttribute (SDL_GL_ACCUM_BLUE_SIZE, 0); |
416 | SDL_GL_SetAttribute (SDL_GL_ACCUM_ALPHA_SIZE, 0); |
416 | SDL_GL_SetAttribute (SDL_GL_ACCUM_ALPHA_SIZE, 0); |
… | |
… | |
1420 | |
1420 | |
1421 | void glBlendFunc (int sfactor, int dfactor) |
1421 | void glBlendFunc (int sfactor, int dfactor) |
1422 | |
1422 | |
1423 | void glLogicOp (int opcode) |
1423 | void glLogicOp (int opcode) |
1424 | |
1424 | |
|
|
1425 | void glColorMask (int red, int green, int blue, int alpha) |
|
|
1426 | |
1425 | void glMatrixMode (int mode) |
1427 | void glMatrixMode (int mode) |
1426 | |
1428 | |
1427 | void glPushMatrix () |
1429 | void glPushMatrix () |
1428 | |
1430 | |
1429 | void glPopMatrix () |
1431 | void glPopMatrix () |
… | |
… | |
1485 | |
1487 | |
1486 | void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data) |
1488 | void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data) |
1487 | |
1489 | |
1488 | void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) |
1490 | void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) |
1489 | |
1491 | |
|
|
1492 | void glRasterPos (int x, int y) |
|
|
1493 | CODE: |
|
|
1494 | glRasterPos2i (x, y); |
|
|
1495 | |
|
|
1496 | void glCopyPixels (int x, int y, int width, int height, int type = GL_COLOR) |
|
|
1497 | |
1490 | int glGenTexture () |
1498 | int glGenTexture () |
1491 | CODE: |
1499 | CODE: |
1492 | { |
1500 | { |
1493 | GLuint name; |
1501 | GLuint name; |
1494 | glGenTextures (1, &name); |
1502 | glGenTextures (1, &name); |