Lines Matching refs:instance

18  * etc.).  In all these cases, when the function instance is stored in a
37 int crdlm_pointers_Bitmap( struct instanceBitmap *instance, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap, CRClientState *c)
48 if (instance && size > 0) {
49 crBitmapCopy(width, height, instance->bitmap, bitmap,
56 int crdlm_pointers_DrawPixels( struct instanceDrawPixels *instance, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels, CRClientState *c )
60 if (instance && size > 0) {
62 instance->pixels, format, type, NULL,
68 int crdlm_pointers_Fogfv( struct instanceFogfv *instance, GLenum pname, const GLfloat *params )
71 if (instance) crMemcpy(instance->params, params, size);
74 int crdlm_pointers_Fogiv( struct instanceFogiv *instance, GLenum pname, const GLint *params )
77 if (instance) crMemcpy(instance->params, params, size);
80 int crdlm_pointers_LightModelfv( struct instanceLightModelfv *instance, GLenum pname, const GLfloat *params )
83 if (instance) crMemcpy(instance->params, params, size);
86 int crdlm_pointers_LightModeliv( struct instanceLightModeliv *instance, GLenum pname, const GLint *params )
89 if (instance) crMemcpy(instance->params, params, size);
92 int crdlm_pointers_Lightfv( struct instanceLightfv *instance, GLenum light, GLenum pname, const GLfloat *params )
106 if (instance) crMemcpy(instance->params, params, size);
109 int crdlm_pointers_Lightiv( struct instanceLightiv *instance, GLenum light, GLenum pname, const GLint *params )
123 if (instance) crMemcpy(instance->params, params, size);
159 int crdlm_pointers_Map1d( struct instanceMap1d *instance, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points )
163 if (instance) {
165 * compress it, and change the instance's stride value to
169 GLdouble *dest = instance->points;
178 instance->stride = numValues;
182 int crdlm_pointers_Map1f( struct instanceMap1f *instance, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points )
186 if (instance) {
188 * compress it, and change the instance's stride value to
192 GLfloat *dest = instance->points;
201 instance->stride = numValues;
205 int crdlm_pointers_Map2d( struct instanceMap2d *instance, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points )
209 if (instance) {
212 GLdouble *dest = instance->points;
222 instance->ustride = numValues;
223 instance->vstride = ustride * uorder;
227 int crdlm_pointers_Map2f( struct instanceMap2f *instance, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points )
231 if (instance) {
234 GLfloat *dest = instance->points;
244 instance->ustride = numValues;
245 instance->vstride = ustride * uorder;
250 int crdlm_pointers_Materialfv(struct instanceMaterialfv *instance, GLenum face, GLenum pname, const GLfloat *params)
272 if (instance && size > 0) crMemcpy(instance->params, params, size);
276 int crdlm_pointers_Materialiv(struct instanceMaterialiv *instance, GLenum face, GLenum pname, const GLint *params)
298 if (instance && size > 0) crMemcpy(instance->params, params, size);
302 int crdlm_pointers_PixelMapfv( struct instancePixelMapfv *instance, GLenum map, GLsizei mapsize, const GLfloat *values )
305 if (instance && size > 0) crMemcpy(instance->values, values, size);
308 int crdlm_pointers_PixelMapuiv( struct instancePixelMapuiv *instance, GLenum map, GLsizei mapsize, const GLuint *values )
311 if (instance && size > 0) crMemcpy(instance->values, values, size);
314 int crdlm_pointers_PixelMapusv( struct instancePixelMapusv *instance, GLenum map, GLsizei mapsize, const GLushort *values )
317 if (instance && size > 0) crMemcpy(instance->values, values, size);
321 int crdlm_pointers_PointParameterfvARB( struct instancePointParameterfvARB *instance, GLenum pname, const GLfloat *params)
335 int crdlm_pointers_PointParameteriv( struct instancePointParameteriv *instance, GLenum pname, const GLint *params)
349 int crdlm_pointers_TexEnvfv( struct instanceTexEnvfv *instance, GLenum target, GLenum pname, const GLfloat *params )
352 if (instance) crMemcpy(instance->params, params, size);
355 int crdlm_pointers_TexEnviv( struct instanceTexEnviv *instance, GLenum target, GLenum pname, const GLint *params )
358 if (instance) crMemcpy(instance->params, params, size);
361 int crdlm_pointers_TexGendv( struct instanceTexGendv *instance, GLenum coord, GLenum pname, const GLdouble *params )
364 if (instance) crMemcpy(instance->params, params, size);
367 int crdlm_pointers_TexGenfv( struct instanceTexGenfv *instance, GLenum coord, GLenum pname, const GLfloat *params )
370 if (instance) crMemcpy(instance->params, params, size);
373 int crdlm_pointers_TexGeniv( struct instanceTexGeniv *instance, GLenum coord, GLenum pname, const GLint *params )
376 if (instance) crMemcpy(instance->params, params, size);
379 int crdlm_pointers_TexImage1D( struct instanceTexImage1D *instance, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels, CRClientState *c )
383 if (instance && size > 0) {
384 crPixelCopy1D(instance->pixels, format, type,
390 int crdlm_pointers_CompressedTexImage1DARB(struct instanceCompressedTexImage1DARB *instance, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imagesize, const GLvoid *data)
394 if (instance && size > 0) {
395 crMemcpy(instance->data, data, size);
401 int crdlm_pointers_TexImage2D( struct instanceTexImage2D *instance, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels, CRClientState *c )
405 if (instance && size > 0) {
407 instance->pixels, format, type, NULL,
413 int crdlm_pointers_CompressedTexImage2DARB(struct instanceCompressedTexImage2DARB *instance, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imagesize, const GLvoid *data)
417 if (instance && size > 0) {
418 crMemcpy(instance->data, data, size);
424 int crdlm_pointers_TexImage3D( struct instanceTexImage3D *instance, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels, CRClientState *c )
439 if (instance && size > 0) {
441 crMemcpy(instance->pixels, pixels, size);
445 instance->pixels, format, type, NULL,
452 int crdlm_pointers_TexImage3DEXT( struct instanceTexImage3DEXT *instance, GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels, CRClientState *c )
467 if (instance && size > 0) {
469 crMemcpy(instance->pixels, pixels, size);
473 instance->pixels, format, type, NULL,
481 int crdlm_pointers_CompressedTexImage3DARB(struct instanceCompressedTexImage3DARB *instance, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imagesize, const GLvoid *data)
485 if (instance && size > 0) {
486 crMemcpy(instance->data, data, size);
492 int crdlm_pointers_TexParameterfv( struct instanceTexParameterfv *instance, GLenum target, GLenum pname, const GLfloat *params )
495 if (instance) crMemcpy(instance->params, params, size);
498 int crdlm_pointers_TexParameteriv( struct instanceTexParameteriv *instance, GLenum target, GLenum pname, const GLint *params )
501 if (instance) crMemcpy(instance->params, params, size);
504 int crdlm_pointers_TexSubImage1D( struct instanceTexSubImage1D *instance, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels, CRClientState *c )
508 if (instance && size > 0) {
509 crPixelCopy1D(instance->pixels, format, type,
515 int crdlm_pointers_TexSubImage2D( struct instanceTexSubImage2D *instance, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels, CRClientState *c )
519 if (instance && size > 0) {
521 instance->pixels, format, type, NULL,
527 int crdlm_pointers_TexSubImage3D( struct instanceTexSubImage3D *instance, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, CRClientState *c )
542 if (instance && size > 0) {
544 crMemcpy(instance->pixels, pixels, size);
548 instance->pixels, format, type, NULL,
556 int crdlm_pointers_CompressedTexSubImage1DARB(struct instanceCompressedTexSubImage1DARB *instance, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imagesize, const GLvoid *data)
560 if (instance && size > 0) {
561 crMemcpy(instance->data, data, size);
567 int crdlm_pointers_CompressedTexSubImage2DARB(struct instanceCompressedTexSubImage2DARB *instance, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imagesize, const GLvoid *data)
571 if (instance && size > 0) {
572 crMemcpy(instance->data, data, size);
577 int crdlm_pointers_CompressedTexSubImage3DARB(struct instanceCompressedTexSubImage3DARB *instance, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imagesize, const GLvoid *data)
581 if (instance && size > 0) {
582 crMemcpy(instance->data, data, size);
588 int crdlm_pointers_Rectdv(struct instanceRectdv *instance, const GLdouble *v1, const GLdouble *v2)
591 if (instance) {
592 instance->data[0] = v1[0];
593 instance->data[1] = v1[1];
594 instance->data[2] = v2[0];
595 instance->data[3] = v2[1];
596 instance->v1 = &instance->data[0];
597 instance->v2 = &instance->data[2];
601 int crdlm_pointers_Rectfv(struct instanceRectfv *instance, const GLfloat *v1, const GLfloat *v2)
604 if (instance) {
605 instance->data[0] = v1[0];
606 instance->data[1] = v1[1];
607 instance->data[2] = v2[0];
608 instance->data[3] = v2[1];
609 instance->v1 = &instance->data[0];
610 instance->v2 = &instance->data[2];
614 int crdlm_pointers_Rectiv(struct instanceRectiv *instance, const GLint *v1, const GLint *v2)
617 if (instance) {
618 instance->data[0] = v1[0];
619 instance->data[1] = v1[1];
620 instance->data[2] = v2[0];
621 instance->data[3] = v2[1];
622 instance->v1 = &instance->data[0];
623 instance->v2 = &instance->data[2];
627 int crdlm_pointers_Rectsv(struct instanceRectsv *instance, const GLshort *v1, const GLshort *v2)
630 if (instance) {
631 instance->data[0] = v1[0];
632 instance->data[1] = v1[1];
633 instance->data[2] = v2[0];
634 instance->data[3] = v2[1];
635 instance->v1 = &instance->data[0];
636 instance->v2 = &instance->data[2];
641 int crdlm_pointers_PrioritizeTextures(struct instancePrioritizeTextures *instance, GLsizei n, const GLuint *textures, const GLclampf *priorities)
644 if (instance) {
645 instance->textures = (GLuint *)&instance->data[0];
646 instance->priorities = (GLclampf *)(((char *)&instance->data[0]) + n * sizeof(GLuint));
648 crMemcpy(instance->textures, textures, n * sizeof(GLuint));
649 crMemcpy(instance->priorities, priorities, n * sizeof(GLclampf));
668 int crdlm_pointers_CombinerParameterivNV(struct instanceCombinerParameterivNV *instance, GLenum pname, const GLint *params)
671 if (instance && size > 0) crMemcpy(instance->params, params, size);
674 int crdlm_pointers_CombinerParameterfvNV(struct instanceCombinerParameterfvNV *instance, GLenum pname, const GLfloat *params)
677 if (instance && size > 0) crMemcpy(instance->params, params, size);
690 int crdlm_pointers_CombinerStageParameterfvNV(struct instanceCombinerStageParameterfvNV *instance, GLenum stage, GLenum pname, const GLfloat *params)
693 if (instance && size > 0) crMemcpy(instance->params, params, size);
705 int crdlm_pointers_ExecuteProgramNV(struct instanceExecuteProgramNV *instance, GLenum target, GLuint id, const GLfloat *params)
708 if (instance && size > 0) crMemcpy(instance->params, params, size);
712 int crdlm_pointers_RequestResidentProgramsNV(struct instanceRequestResidentProgramsNV *instance, GLsizei n, const GLuint *ids)
715 if (instance && size > 0) crMemcpy(instance->ids, ids, size);
719 int crdlm_pointers_LoadProgramNV(struct instanceLoadProgramNV *instance, GLenum target, GLuint id, GLsizei len, const GLubyte *program)
722 if (instance && size > 0) crMemcpy(instance->program, program, size);
726 int crdlm_pointers_ProgramNamedParameter4dNV(struct instanceProgramNamedParameter4dNV *instance, GLuint id, GLsizei len, const GLubyte * name, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
733 int crdlm_pointers_ProgramNamedParameter4dvNV(struct instanceProgramNamedParameter4dvNV *instance, GLuint id, GLsizei len, const GLubyte * name, const GLdouble * v)
740 int crdlm_pointers_ProgramNamedParameter4fNV(struct instanceProgramNamedParameter4fNV *instance, GLuint id, GLsizei len, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
747 int crdlm_pointers_ProgramNamedParameter4fvNV(struct instanceProgramNamedParameter4fvNV *instance, GLuint id, GLsizei len, const GLubyte * name, const GLfloat * v)
754 int crdlm_pointers_ProgramStringARB(struct instanceProgramStringARB *instance, GLenum target, GLenum format, GLsizei len, const GLvoid * string)
757 if (instance && size > 0) crMemcpy(instance->string, string, size);
761 int crdlm_pointers_CallLists(struct instanceCallLists *instance, GLsizei n, GLenum type, const GLvoid *lists )
799 if (instance && size > 0) crMemcpy(instance->lists, lists, size);
804 int crdlm_pointers_VertexAttribs1dvNV(struct instanceVertexAttribs1dvNV *instance, GLuint index, GLsizei n, const GLdouble *v)
809 int crdlm_pointers_VertexAttribs1fvNV(struct instanceVertexAttribs1fvNV *instance, GLuint index, GLsizei n, const GLfloat *v)
814 int crdlm_pointers_VertexAttribs1svNV(struct instanceVertexAttribs1svNV *instance, GLuint index, GLsizei n, const GLshort *v)
819 int crdlm_pointers_VertexAttribs2dvNV(struct instanceVertexAttribs2dvNV *instance, GLuint index, GLsizei n, const GLdouble *v)
824 int crdlm_pointers_VertexAttribs2fvNV(struct instanceVertexAttribs2fvNV *instance, GLuint index, GLsizei n, const GLfloat *v)
829 int crdlm_pointers_VertexAttribs2svNV(struct instanceVertexAttribs2svNV *instance, GLuint index, GLsizei n, const GLshort *v)
834 int crdlm_pointers_VertexAttribs3dvNV(struct instanceVertexAttribs3dvNV *instance, GLuint index, GLsizei n, const GLdouble *v)
839 int crdlm_pointers_VertexAttribs3fvNV(struct instanceVertexAttribs3fvNV *instance, GLuint index, GLsizei n, const GLfloat *v)
844 int crdlm_pointers_VertexAttribs3svNV(struct instanceVertexAttribs3svNV *instance, GLuint index, GLsizei n, const GLshort *v)
849 int crdlm_pointers_VertexAttribs4dvNV(struct instanceVertexAttribs4dvNV *instance, GLuint index, GLsizei n, const GLdouble *v)
854 int crdlm_pointers_VertexAttribs4fvNV(struct instanceVertexAttribs4fvNV *instance, GLuint index, GLsizei n, const GLfloat *v)
859 int crdlm_pointers_VertexAttribs4svNV(struct instanceVertexAttribs4svNV *instance, GLuint index, GLsizei n, const GLshort *v)
864 int crdlm_pointers_VertexAttribs4ubvNV(struct instanceVertexAttribs4ubvNV *instance, GLuint index, GLsizei n, const GLubyte *v)
869 int crdlm_pointers_ZPixCR( struct instanceZPixCR *instance, GLsizei width,
875 if (instance && size > 0) {
876 crMemcpy(instance->pixels,pixels,length);
886 * All non-pointer structure fields are already assifned to *instance in out/<os.arch>/<build type>/obj/VBoxOGLgen/dlm_generated.c.
888 * This size will be added to sizeof(*instance) when dlm_generated.c will dynamically allocate memory for it. Also,
889 * data from pointers shouls be copied to *instance in case if instance != NULL. Each of functions below is called
891 * - first time with instance = NULL in order to get actual size of data provided by pointer
892 * - the second time with valid instance in order to copy data into it.
895 int crdlm_pointers_BindAttribLocation(struct instanceBindAttribLocation *instance, GLuint program, GLuint index, const char * name)
898 if (instance && name && cbExtraSpace)
900 crMemcpy(instance->name, name, cbExtraSpace);
906 int crdlm_pointers_DeleteFramebuffersEXT(struct instanceDeleteFramebuffersEXT *instance, GLsizei n, const GLuint * framebuffers)
910 if (instance && framebuffers && cbExtraSpace)
911 crMemcpy(instance->framebuffers, framebuffers, cbExtraSpace);
916 int crdlm_pointers_DeleteRenderbuffersEXT(struct instanceDeleteRenderbuffersEXT *instance, GLsizei n, const GLuint * renderbuffers)
920 if (instance && renderbuffers && cbExtraSpace)
921 crMemcpy(instance->renderbuffers, renderbuffers, cbExtraSpace);
926 int crdlm_pointers_DrawBuffers(struct instanceDrawBuffers *instance, GLsizei n, const GLenum* bufs)
930 if (instance && bufs && cbExtraSpace)
931 crMemcpy(instance->bufs, bufs, cbExtraSpace);
936 int crdlm_pointers_ShaderSource(struct instanceShaderSource *instance, GLuint shader, GLsizei count, const char ** string, const GLint * length)
955 if (instance)
958 crMemcpy(instance->string, *string, cbStrings);
960 crMemcpy(instance->length, length, cbLenghts);
966 int crdlm_pointers_StringMarkerGREMEDY(struct instanceStringMarkerGREMEDY *instance, GLsizei len, const GLvoid* string)
971 if (instance && string && cbExtraSpace)
972 crMemcpy(instance->string, string, cbExtraSpace);
980 if (instance && cbExtraSpace && value) \
981 crMemcpy(instance->value, value, cbExtraSpace); \
984 int crdlm_pointers_Uniform1fv(struct instanceUniform1fv *instance, GLint location, GLsizei count, const GLfloat * value)
989 int crdlm_pointers_Uniform1iv(struct instanceUniform1iv *instance, GLint location, GLsizei count, const GLint * value)
994 int crdlm_pointers_Uniform2fv(struct instanceUniform2fv *instance, GLint location, GLsizei count, const GLfloat * value)
999 int crdlm_pointers_Uniform2iv(struct instanceUniform2iv *instance, GLint location, GLsizei count, const GLint * value)
1004 int crdlm_pointers_Uniform3fv(struct instanceUniform3fv *instance, GLint location, GLsizei count, const GLfloat * value)
1009 int crdlm_pointers_Uniform3iv(struct instanceUniform3iv *instance, GLint location, GLsizei count, const GLint * value)
1014 int crdlm_pointers_Uniform4fv(struct instanceUniform4fv *instance, GLint location, GLsizei count, const GLfloat * value)
1019 int crdlm_pointers_Uniform4iv(struct instanceUniform4iv *instance, GLint location, GLsizei count, const GLint * value)
1029 if (instance && value && cbExtraSpace) \
1030 crMemcpy(instance->value, value, cbExtraSpace); \
1033 int crdlm_pointers_UniformMatrix2fv(struct instanceUniformMatrix2fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1038 int crdlm_pointers_UniformMatrix2x3fv(struct instanceUniformMatrix2x3fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1043 int crdlm_pointers_UniformMatrix2x4fv(struct instanceUniformMatrix2x4fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1048 int crdlm_pointers_UniformMatrix3fv(struct instanceUniformMatrix3fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1053 int crdlm_pointers_UniformMatrix3x2fv(struct instanceUniformMatrix3x2fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1058 int crdlm_pointers_UniformMatrix3x4fv(struct instanceUniformMatrix3x4fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1063 int crdlm_pointers_UniformMatrix4fv(struct instanceUniformMatrix4fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1068 int crdlm_pointers_UniformMatrix4x2fv(struct instanceUniformMatrix4x2fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1073 int crdlm_pointers_UniformMatrix4x3fv(struct instanceUniformMatrix4x3fv *instance, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value)
1088 int crdlm_pointers_VBoxConCreate(struct instanceVBoxConCreate *instance, struct VBOXUHGSMI * pHgsmi)
1094 int crdlm_pointers_VBoxCreateContext(struct instanceVBoxCreateContext *instance, GLint con, const char * dpyName, GLint visual, GLint shareCtx)
1098 if (instance && dpyName && cbExtraSpace)
1099 crMemcpy(instance->dpyName, dpyName, cbExtraSpace);
1104 int crdlm_pointers_VBoxPackSetInjectThread(struct instanceVBoxPackSetInjectThread *instance, struct VBOXUHGSMI * pHgsmi)
1110 int crdlm_pointers_VBoxPresentComposition(struct instanceVBoxPresentComposition *instance, GLint win,
1117 int crdlm_pointers_VBoxWindowCreate(struct instanceVBoxWindowCreate *instance, GLint con, const char * dpyName, GLint visBits)
1121 if (instance && dpyName && cbExtraSpace)
1122 crMemcpy(instance->dpyName, dpyName, cbExtraSpace);