Acme-MITHALDU-BleedingOpenGL
view release on metacpan or search on metacpan
pogl_gl_Pixe_Ver2.xs view on Meta::CPAN
#// 1.0
#//# glPushName($name);
void
glPushName(name)
GLuint name
#// 1.0
#//# glPopName();
void
glPopName()
#// 1.0
#//# glReadBuffer($mode);
void
glReadBuffer(mode)
GLenum mode
#// 1.0
#//# glReadPixels_c($x, $y, $width, $height, $format, $type, (CPTR)pixels);
void
glReadPixels_c(x, y, width, height, format, type, pixels)
GLint x
GLint y
GLsizei width
GLsizei height
GLenum format
GLenum type
void * pixels
CODE:
glReadPixels(x, y, width, height, format, type, pixels);
#// 1.0
#//# glReadPixels_s($x, $y, $width, $height, $format, $type, (PACKED)pixels);
void
glReadPixels_s(x, y, width, height, format, type, pixels)
GLint x
GLint y
GLsizei width
GLsizei height
GLenum format
GLenum type
SV * pixels
CODE:
{
void * ptr = ELI(pixels, width, height,
format, type, gl_pixelbuffer_pack);
glReadPixels(x, y, width, height, format, type, ptr);
}
#// 1.0
#//# @pixels = glReadPixels_p($x, $y, $width, $height, $format, $type);
void
glReadPixels_p(x, y, width, height, format, type)
GLint x
GLint y
GLsizei width
GLsizei height
GLenum format
GLenum type
PPCODE:
{
void * ptr;
glPushClientAttrib(GL_CLIENT_PIXEL_STORE_BIT);
glPixelStorei(GL_PACK_ROW_LENGTH, 0);
glPixelStorei(GL_PACK_ALIGNMENT, 1);
ptr = allocate_image_ST(width, height, 1, format, type, 0);
glReadPixels(x, y, width, height, format, type, ptr);
sp = unpack_image_ST(sp, ptr, width, height, 1, format, type, 0);
free(ptr);
glPopClientAttrib();
}
#// 1.0
#//# glRecti($x1, $y1, $x2, $y2);
void
glRecti(x1, y1, x2, y2)
GLint x1
GLint y1
GLint x2
GLint y2
ALIAS:
glRectiv_p = 1
#// 1.0
#//# glRects($x1, $y1, $x2, $y2);
void
glRects(x1, y1, x2, y2)
GLshort x1
GLshort y1
GLshort x2
GLshort y2
ALIAS:
glRectsv_p = 1
#// 1.0
#//# glRectd($x1, $y1, $x2, $y2);
void
glRectd(x1, y1, x2, y2)
GLdouble x1
GLdouble y1
GLdouble x2
GLdouble y2
ALIAS:
glRectdv_p = 1
#// 1.0
#//# glRectf($x1, $y1, $x2, $y2);
void
glRectf(x1, y1, x2, y2)
GLfloat x1
GLfloat y1
GLfloat x2
GLfloat y2
ALIAS:
glRectfv_p = 1
#// 1.0
#//# glRectsv_c((CPTR)v1, (CPTR)v2);
( run in 0.681 second using v1.01-cache-2.11-cpan-71847e10f99 )