summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Vorobiov <s.vorobiov@samsung.com>2013-11-05 19:51:43 +0400
committerStanislav Vorobiov <s.vorobiov@samsung.com>2013-11-05 19:51:43 +0400
commit78edda1401c2f98294d36387e76d0f87c0b91972 (patch)
treef64dfff7785e69012665c5ea7845100d71bb517d
parent2a84bba11dc517a5f64075ec9068e82f00ef26ef (diff)
downloademulator-yagl-78edda1401c2f98294d36387e76d0f87c0b91972.tar.gz
emulator-yagl-78edda1401c2f98294d36387e76d0f87c0b91972.tar.bz2
emulator-yagl-78edda1401c2f98294d36387e76d0f87c0b91972.zip
YaGL: GL_EXT_draw_buffers implemented
Change-Id: I1a15a6e8b7bf7be93c44122efee97a9887931645
-rw-r--r--GLES_common/yagl_gles_calls.c182
-rw-r--r--GLES_common/yagl_gles_calls.in1
-rw-r--r--GLES_common/yagl_gles_context.c44
-rw-r--r--GLES_common/yagl_gles_context.h6
-rw-r--r--GLES_common/yagl_gles_framebuffer.c106
-rw-r--r--GLES_common/yagl_gles_framebuffer.h35
-rw-r--r--GLES_common/yagl_gles_types.h10
-rw-r--r--GLES_common/yagl_gles_validate.c10
-rw-r--r--GLES_common/yagl_gles_validate.h1
-rw-r--r--GLES_common/yagl_host_gles_calls.c518
-rw-r--r--GLES_common/yagl_host_gles_calls.h255
-rw-r--r--GLESv1_CM/yagl_gles1_context.c2
-rw-r--r--GLESv2/yagl_gles2_context.c2
13 files changed, 665 insertions, 507 deletions
diff --git a/GLES_common/yagl_gles_calls.c b/GLES_common/yagl_gles_calls.c
index fb27f6c..31e64a8 100644
--- a/GLES_common/yagl_gles_calls.c
+++ b/GLES_common/yagl_gles_calls.c
@@ -1057,7 +1057,8 @@ GLenum glCheckFramebufferStatus(GLenum target)
goto out;
}
- for (i = 0; i < YAGL_NUM_GLES_FRAMEBUFFER_ATTACHMENTS; ++i) {
+ for (i = 0; i < (yagl_gles_framebuffer_attachment_color0 +
+ ctx->max_color_attachments); ++i) {
if (framebuffer_obj->attachment_states[i].type != GL_NONE) {
missing = 0;
break;
@@ -1069,7 +1070,8 @@ GLenum glCheckFramebufferStatus(GLenum target)
goto out;
}
- for (i = 0; i < YAGL_NUM_GLES_FRAMEBUFFER_ATTACHMENTS; ++i) {
+ for (i = 0; i < (yagl_gles_framebuffer_attachment_color0 +
+ ctx->max_color_attachments); ++i) {
switch (framebuffer_obj->attachment_states[i].type) {
case GL_TEXTURE:
texture_obj = (struct yagl_gles_texture*)yagl_sharegroup_acquire_object(ctx->base.sg,
@@ -1636,6 +1638,7 @@ void glFramebufferRenderbuffer(GLenum target,
{
struct yagl_gles_framebuffer *framebuffer_obj = NULL;
struct yagl_gles_renderbuffer *renderbuffer_obj = NULL;
+ yagl_gles_framebuffer_attachment framebuffer_attachment;
YAGL_LOG_FUNC_ENTER_SPLIT4(glFramebufferRenderbuffer, GLenum, GLenum, GLenum, GLuint, target, attachment, renderbuffertarget, renderbuffer);
@@ -1658,15 +1661,38 @@ void glFramebufferRenderbuffer(GLenum target,
}
}
- if (!yagl_gles_framebuffer_renderbuffer(framebuffer_obj,
- target,
- attachment,
- renderbuffertarget,
- renderbuffer_obj)) {
+ if (renderbuffer_obj && (renderbuffertarget != GL_RENDERBUFFER)) {
YAGL_SET_ERR(GL_INVALID_ENUM);
goto out;
}
+ if ((ctx->base.client_api == yagl_client_api_gles3) &&
+ (attachment == GL_DEPTH_STENCIL_ATTACHMENT)) {
+ yagl_gles_framebuffer_renderbuffer(framebuffer_obj,
+ target, GL_DEPTH_ATTACHMENT,
+ yagl_gles_framebuffer_attachment_depth,
+ renderbuffertarget,
+ renderbuffer_obj);
+ yagl_gles_framebuffer_renderbuffer(framebuffer_obj,
+ target, GL_STENCIL_ATTACHMENT,
+ yagl_gles_framebuffer_attachment_stencil,
+ renderbuffertarget,
+ renderbuffer_obj);
+ } else {
+ if (!yagl_gles_validate_framebuffer_attachment(attachment,
+ ctx->max_color_attachments,
+ &framebuffer_attachment)) {
+ YAGL_SET_ERR(GL_INVALID_ENUM);
+ goto out;
+ }
+
+ yagl_gles_framebuffer_renderbuffer(framebuffer_obj,
+ target, attachment,
+ framebuffer_attachment,
+ renderbuffertarget,
+ renderbuffer_obj);
+ }
+
out:
yagl_gles_renderbuffer_release(renderbuffer_obj);
yagl_gles_framebuffer_release(framebuffer_obj);
@@ -1682,6 +1708,8 @@ void glFramebufferTexture2D(GLenum target,
{
struct yagl_gles_framebuffer *framebuffer_obj = NULL;
struct yagl_gles_texture *texture_obj = NULL;
+ yagl_gles_framebuffer_attachment framebuffer_attachment;
+ GLenum squashed_textarget;
YAGL_LOG_FUNC_ENTER_SPLIT5(glFramebufferTexture2D, GLenum, GLenum, GLenum, GLuint, GLint, target, attachment, textarget, texture, level);
@@ -1704,16 +1732,52 @@ void glFramebufferTexture2D(GLenum target,
}
}
- if (!yagl_gles_framebuffer_texture2d(framebuffer_obj,
- target,
- attachment,
- textarget,
- level,
- texture_obj)) {
+ if (texture_obj && (level != 0)) {
YAGL_SET_ERR(GL_INVALID_ENUM);
goto out;
}
+ if (!yagl_gles_validate_texture_target_squash(textarget,
+ &squashed_textarget)) {
+ YAGL_SET_ERR(GL_INVALID_ENUM);
+ goto out;
+ }
+
+ if (texture_obj && (yagl_gles_texture_get_target(texture_obj) != squashed_textarget)) {
+ YAGL_SET_ERR(GL_INVALID_ENUM);
+ goto out;
+ }
+
+ if ((ctx->base.client_api == yagl_client_api_gles3) &&
+ (attachment == GL_DEPTH_STENCIL_ATTACHMENT)) {
+ yagl_gles_framebuffer_texture2d(framebuffer_obj,
+ target, GL_DEPTH_ATTACHMENT,
+ yagl_gles_framebuffer_attachment_depth,
+ textarget,
+ level,
+ texture_obj);
+ yagl_gles_framebuffer_texture2d(framebuffer_obj,
+ target, GL_STENCIL_ATTACHMENT,
+ yagl_gles_framebuffer_attachment_stencil,
+ textarget,
+ level,
+ texture_obj);
+ } else {
+ if (!yagl_gles_validate_framebuffer_attachment(attachment,
+ ctx->max_color_attachments,
+ &framebuffer_attachment)) {
+ YAGL_SET_ERR(GL_INVALID_ENUM);
+ goto out;
+ }
+
+ yagl_gles_framebuffer_texture2d(framebuffer_obj,
+ target, attachment,
+ framebuffer_attachment,
+ textarget,
+ level,
+ texture_obj);
+ }
+
out:
yagl_gles_texture_release(texture_obj);
yagl_gles_framebuffer_release(framebuffer_obj);
@@ -2022,6 +2086,7 @@ YAGL_API void glGetFloatv(GLenum pname, GLfloat *params)
void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
{
struct yagl_gles_framebuffer *framebuffer_obj = NULL;
+ yagl_gles_framebuffer_attachment framebuffer_attachment;
YAGL_LOG_FUNC_ENTER_SPLIT4(glGetFramebufferAttachmentParameteriv, GLenum, GLenum, GLenum, GLint*, target, attachment, pname, params);
@@ -2034,10 +2099,48 @@ void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLe
goto out;
}
- if (!yagl_gles_framebuffer_get_attachment_parameter(framebuffer_obj,
- attachment,
- pname,
- params)) {
+ if ((ctx->base.client_api == yagl_client_api_gles3) &&
+ (attachment == GL_DEPTH_STENCIL_ATTACHMENT)) {
+ if (memcmp(&framebuffer_obj->attachment_states[yagl_gles_framebuffer_attachment_depth],
+ &framebuffer_obj->attachment_states[yagl_gles_framebuffer_attachment_stencil],
+ sizeof(struct yagl_gles_framebuffer_attachment_state)) == 0) {
+ YAGL_SET_ERR(GL_INVALID_OPERATION);
+ goto out;
+ }
+ framebuffer_attachment = yagl_gles_framebuffer_attachment_depth;
+ } else if (!yagl_gles_validate_framebuffer_attachment(attachment,
+ ctx->max_color_attachments,
+ &framebuffer_attachment)) {
+ YAGL_SET_ERR(GL_INVALID_ENUM);
+ goto out;
+ }
+
+ switch (pname) {
+ case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:
+ *params = framebuffer_obj->attachment_states[framebuffer_attachment].type;
+ break;
+ case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:
+ *params = framebuffer_obj->attachment_states[framebuffer_attachment].local_name;
+ break;
+ case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:
+ if (framebuffer_obj->attachment_states[framebuffer_attachment].type == GL_TEXTURE) {
+ *params = 0;
+ } else {
+ YAGL_SET_ERR(GL_INVALID_ENUM);
+ goto out;
+ }
+ break;
+ case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:
+ if (framebuffer_obj->attachment_states[framebuffer_attachment].type == GL_TEXTURE) {
+ *params =
+ (framebuffer_obj->attachment_states[framebuffer_attachment].textarget == GL_TEXTURE_2D)
+ ? 0 : framebuffer_obj->attachment_states[framebuffer_attachment].textarget;
+ } else {
+ YAGL_SET_ERR(GL_INVALID_ENUM);
+ goto out;
+ }
+ break;
+ default:
YAGL_SET_ERR(GL_INVALID_ENUM);
goto out;
}
@@ -2465,6 +2568,8 @@ YAGL_API void glBlitFramebuffer(GLint srcX0, GLint srcY0,
YAGL_GET_CTX();
+ yagl_render_invalidate();
+
yagl_host_glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
YAGL_LOG_FUNC_EXIT(NULL);
@@ -2633,6 +2738,49 @@ YAGL_API YAGL_ALIAS(glIsVertexArray, glIsVertexArrayOES);
YAGL_API void glDrawBuffers(GLsizei n, const GLenum *bufs)
{
+ GLsizei i;
+
+ YAGL_LOG_FUNC_ENTER_SPLIT2(glDrawBuffers, GLsizei, const GLenum*, n, bufs);
+
+ YAGL_GET_CTX();
+
+ if ((n < 0) || (n > ctx->max_draw_buffers)) {
+ YAGL_SET_ERR(GL_INVALID_VALUE);
+ goto out;
+ }
+
+ if (ctx->fbo_draw) {
+ for (i = 0; i < n; ++i) {
+ if (bufs[i] == GL_NONE) {
+ continue;
+ }
+
+ if ((bufs[i] < GL_COLOR_ATTACHMENT0) ||
+ (bufs[i] >= (GL_COLOR_ATTACHMENT0 + ctx->max_color_attachments))) {
+ YAGL_SET_ERR(GL_INVALID_OPERATION);
+ goto out;
+ }
+
+ if ((bufs[i] - GL_COLOR_ATTACHMENT0) != i) {
+ YAGL_SET_ERR(GL_INVALID_OPERATION);
+ goto out;
+ }
+ }
+ } else if ((n != 1) || ((bufs[0] != GL_NONE) && (bufs[0] != GL_BACK))) {
+ YAGL_SET_ERR(GL_INVALID_OPERATION);
+ goto out;
+ }
+
+ memcpy(&ctx->draw_buffers[0], bufs, n * sizeof(bufs[0]));
+
+ for (i = n; i < ctx->max_draw_buffers; ++i) {
+ ctx->draw_buffers[i] = GL_NONE;
+ }
+
+ yagl_host_glDrawBuffers(bufs, n);
+
+out:
+ YAGL_LOG_FUNC_EXIT(NULL);
}
YAGL_API YAGL_ALIAS(glDrawBuffers, glDrawBuffersEXT);
diff --git a/GLES_common/yagl_gles_calls.in b/GLES_common/yagl_gles_calls.in
index c5f253d..58a27d6 100644
--- a/GLES_common/yagl_gles_calls.in
+++ b/GLES_common/yagl_gles_calls.in
@@ -55,6 +55,7 @@ void glBindFramebuffer(GLenum target, GLuint framebuffer)
void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
void glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
+void glDrawBuffers(const GLenum *bufs)
# Renderbuffers
void glGenRenderbuffers(const GLuint *renderbuffers)
void glBindRenderbuffer(GLenum target, GLuint renderbuffer)
diff --git a/GLES_common/yagl_gles_context.c b/GLES_common/yagl_gles_context.c
index 5ed0a87..1bb3a52 100644
--- a/GLES_common/yagl_gles_context.c
+++ b/GLES_common/yagl_gles_context.c
@@ -48,6 +48,8 @@ void yagl_gles_context_init(struct yagl_gles_context *ctx,
yagl_client_api client_api,
struct yagl_sharegroup *sg)
{
+ int i;
+
yagl_sharegroup_acquire(sg);
yagl_namespace_init(&ctx->framebuffers);
@@ -90,6 +92,11 @@ void yagl_gles_context_init(struct yagl_gles_context *ctx,
ctx->pack_alignment = 4;
ctx->unpack_alignment = 4;
+ ctx->draw_buffers[0] = GL_BACK;
+ for (i = 1; i < YAGL_MAX_GLES_DRAW_BUFFERS; ++i) {
+ ctx->draw_buffers[i] = GL_NONE;
+ }
+
ctx->dither_enabled = GL_TRUE;
}
@@ -137,6 +144,28 @@ void yagl_gles_context_prepare(struct yagl_gles_context *ctx,
yagl_free(extensions);
+ yagl_host_glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS,
+ &ctx->max_color_attachments, 1, NULL);
+
+ if (ctx->max_color_attachments <= 0) {
+ ctx->max_color_attachments = 1;
+ }
+
+ if (ctx->max_color_attachments > YAGL_MAX_GLES_FRAMEBUFFER_COLOR_ATTACHMENTS) {
+ ctx->max_color_attachments = YAGL_MAX_GLES_FRAMEBUFFER_COLOR_ATTACHMENTS;
+ }
+
+ yagl_host_glGetIntegerv(GL_MAX_DRAW_BUFFERS,
+ &ctx->max_draw_buffers, 1, NULL);
+
+ if (ctx->max_draw_buffers <= 0) {
+ ctx->max_draw_buffers = 1;
+ }
+
+ if (ctx->max_draw_buffers > YAGL_MAX_GLES_DRAW_BUFFERS) {
+ ctx->max_draw_buffers = YAGL_MAX_GLES_DRAW_BUFFERS;
+ }
+
arrays = ctx->create_arrays(ctx);
ctx->vertex_arrays_supported = (yagl_get_host_gl_version() > yagl_gl_2);
@@ -663,7 +692,22 @@ int yagl_gles_context_get_integerv(struct yagl_gles_context *ctx,
return 0;
}
break;
+ case GL_MAX_COLOR_ATTACHMENTS:
+ *params = ctx->max_color_attachments;
+ *num_params = 1;
+ break;
+ case GL_MAX_DRAW_BUFFERS:
+ *params = ctx->max_draw_buffers;
+ *num_params = 1;
+ break;
default:
+ if ((pname >= GL_DRAW_BUFFER0) &&
+ (pname <= (GL_DRAW_BUFFER0 + ctx->max_draw_buffers - 1))) {
+ *params = ctx->draw_buffers[pname - GL_DRAW_BUFFER0];
+ *num_params = 1;
+ break;
+ }
+
processed = 0;
break;
}
diff --git a/GLES_common/yagl_gles_context.h b/GLES_common/yagl_gles_context.h
index eb568f0..b085af0 100644
--- a/GLES_common/yagl_gles_context.h
+++ b/GLES_common/yagl_gles_context.h
@@ -94,6 +94,10 @@ struct yagl_gles_context
int texture_filter_anisotropic;
+ int max_color_attachments;
+
+ int max_draw_buffers;
+
int active_texture_unit;
struct yagl_gles_vertex_array *vao;
@@ -136,6 +140,8 @@ struct yagl_gles_context
int have_viewport;
GLint viewport[4];
+ GLenum draw_buffers[YAGL_MAX_GLES_DRAW_BUFFERS];
+
GLboolean blend_enabled;
GLboolean cull_face_enabled;
GLboolean depth_test_enabled;
diff --git a/GLES_common/yagl_gles_framebuffer.c b/GLES_common/yagl_gles_framebuffer.c
index d2a952e..303901e 100644
--- a/GLES_common/yagl_gles_framebuffer.c
+++ b/GLES_common/yagl_gles_framebuffer.c
@@ -29,7 +29,9 @@ struct yagl_gles_framebuffer *yagl_gles_framebuffer_create(void)
fb->global_name = yagl_get_global_name();
- for (i = 0; i < YAGL_NUM_GLES_FRAMEBUFFER_ATTACHMENTS; ++i) {
+ for (i = 0;
+ i < (yagl_gles_framebuffer_attachment_color0 + YAGL_MAX_GLES_FRAMEBUFFER_COLOR_ATTACHMENTS);
+ ++i) {
fb->attachment_states[i].type = GL_NONE;
}
@@ -52,22 +54,14 @@ void yagl_gles_framebuffer_release(struct yagl_gles_framebuffer *fb)
}
}
-int yagl_gles_framebuffer_renderbuffer(struct yagl_gles_framebuffer *fb,
- GLenum target,
- GLenum attachment,
- GLenum renderbuffer_target,
- struct yagl_gles_renderbuffer *rb)
+void yagl_gles_framebuffer_renderbuffer(struct yagl_gles_framebuffer *fb,
+ GLenum target,
+ GLenum attachment,
+ yagl_gles_framebuffer_attachment framebuffer_attachment,
+ GLenum renderbuffer_target,
+ struct yagl_gles_renderbuffer *rb)
{
- yagl_gles_framebuffer_attachment framebuffer_attachment;
-
- if (!yagl_gles_validate_framebuffer_attachment(attachment,
- &framebuffer_attachment)) {
- return 0;
- }
-
- if (rb && (renderbuffer_target != GL_RENDERBUFFER)) {
- return 0;
- }
+ fb->attachment_states[framebuffer_attachment].textarget = 0;
if (rb) {
fb->attachment_states[framebuffer_attachment].type = GL_RENDERBUFFER;
@@ -81,37 +75,17 @@ int yagl_gles_framebuffer_renderbuffer(struct yagl_gles_framebuffer *fb,
attachment,
renderbuffer_target,
(rb ? rb->global_name : 0));
-
- return 1;
}
-int yagl_gles_framebuffer_texture2d(struct yagl_gles_framebuffer *fb,
- GLenum target,
- GLenum attachment,
- GLenum textarget,
- GLint level,
- struct yagl_gles_texture *texture)
+void yagl_gles_framebuffer_texture2d(struct yagl_gles_framebuffer *fb,
+ GLenum target,
+ GLenum attachment,
+ yagl_gles_framebuffer_attachment framebuffer_attachment,
+ GLenum textarget,
+ GLint level,
+ struct yagl_gles_texture *texture)
{
- yagl_gles_framebuffer_attachment framebuffer_attachment;
- GLenum squashed_textarget;
-
- if (!yagl_gles_validate_framebuffer_attachment(attachment,
- &framebuffer_attachment)) {
- return 0;
- }
-
- if (texture && (level != 0)) {
- return 0;
- }
-
- if (!yagl_gles_validate_texture_target_squash(textarget,
- &squashed_textarget)) {
- return 0;
- }
-
- if (texture && (yagl_gles_texture_get_target(texture) != squashed_textarget)) {
- return 0;
- }
+ fb->attachment_states[framebuffer_attachment].textarget = 0;
if (texture) {
fb->attachment_states[framebuffer_attachment].type = GL_TEXTURE;
@@ -127,50 +101,6 @@ int yagl_gles_framebuffer_texture2d(struct yagl_gles_framebuffer *fb,
textarget,
(texture ? texture->global_name : 0),
level);
-
- return 1;
-}
-
-int yagl_gles_framebuffer_get_attachment_parameter(struct yagl_gles_framebuffer *fb,
- GLenum attachment,
- GLenum pname,
- GLint *value)
-{
- yagl_gles_framebuffer_attachment framebuffer_attachment;
-
- if (!yagl_gles_validate_framebuffer_attachment(attachment,
- &framebuffer_attachment)) {
- return 0;
- }
-
- switch (pname) {
- case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:
- *value = fb->attachment_states[framebuffer_attachment].type;
- break;
- case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:
- *value = fb->attachment_states[framebuffer_attachment].local_name;
- break;
- case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:
- if (fb->attachment_states[framebuffer_attachment].type == GL_TEXTURE) {
- *value = 0;
- } else {
- return 0;
- }
- break;
- case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:
- if (fb->attachment_states[framebuffer_attachment].type == GL_TEXTURE) {
- *value =
- (fb->attachment_states[framebuffer_attachment].textarget == GL_TEXTURE_2D)
- ? 0 : fb->attachment_states[framebuffer_attachment].textarget;
- } else {
- return 0;
- }
- break;
- default:
- return 0;
- }
-
- return 1;
}
void yagl_gles_framebuffer_bind(struct yagl_gles_framebuffer *fb,
diff --git a/GLES_common/yagl_gles_framebuffer.h b/GLES_common/yagl_gles_framebuffer.h
index d3ad19c..20839e7 100644
--- a/GLES_common/yagl_gles_framebuffer.h
+++ b/GLES_common/yagl_gles_framebuffer.h
@@ -22,7 +22,9 @@ struct yagl_gles_framebuffer
yagl_object_name global_name;
- struct yagl_gles_framebuffer_attachment_state attachment_states[YAGL_NUM_GLES_FRAMEBUFFER_ATTACHMENTS];
+ struct yagl_gles_framebuffer_attachment_state
+ attachment_states[yagl_gles_framebuffer_attachment_color0 +
+ YAGL_MAX_GLES_FRAMEBUFFER_COLOR_ATTACHMENTS];
int was_bound;
};
@@ -39,23 +41,20 @@ void yagl_gles_framebuffer_acquire(struct yagl_gles_framebuffer *fb);
*/
void yagl_gles_framebuffer_release(struct yagl_gles_framebuffer *fb);
-int yagl_gles_framebuffer_renderbuffer(struct yagl_gles_framebuffer *fb,
- GLenum target,
- GLenum attachment,
- GLenum renderbuffer_target,
- struct yagl_gles_renderbuffer *rb);
-
-int yagl_gles_framebuffer_texture2d(struct yagl_gles_framebuffer *fb,
- GLenum target,
- GLenum attachment,
- GLenum textarget,
- GLint level,
- struct yagl_gles_texture *texture);
-
-int yagl_gles_framebuffer_get_attachment_parameter(struct yagl_gles_framebuffer *fb,
- GLenum attachment,
- GLenum pname,
- GLint *value);
+void yagl_gles_framebuffer_renderbuffer(struct yagl_gles_framebuffer *fb,
+ GLenum target,
+ GLenum attachment,
+ yagl_gles_framebuffer_attachment framebuffer_attachment,
+ GLenum renderbuffer_target,
+ struct yagl_gles_renderbuffer *rb);
+
+void yagl_gles_framebuffer_texture2d(struct yagl_gles_framebuffer *fb,
+ GLenum target,
+ GLenum attachment,
+ yagl_gles_framebuffer_attachment framebuffer_attachment,
+ GLenum textarget,
+ GLint level,
+ struct yagl_gles_texture *texture);
/*
* Assumes that 'target' is valid.
diff --git a/GLES_common/yagl_gles_types.h b/GLES_common/yagl_gles_types.h
index f6373cd..b283a91 100644
--- a/GLES_common/yagl_gles_types.h
+++ b/GLES_common/yagl_gles_types.h
@@ -13,11 +13,13 @@ typedef enum
typedef enum
{
- yagl_gles_framebuffer_attachment_color0 = 0,
- yagl_gles_framebuffer_attachment_depth = 1,
- yagl_gles_framebuffer_attachment_stencil = 2
+ yagl_gles_framebuffer_attachment_depth = 0,
+ yagl_gles_framebuffer_attachment_stencil = 1,
+ yagl_gles_framebuffer_attachment_color0 = 2
} yagl_gles_framebuffer_attachment;
-#define YAGL_NUM_GLES_FRAMEBUFFER_ATTACHMENTS 3
+#define YAGL_MAX_GLES_FRAMEBUFFER_COLOR_ATTACHMENTS 16
+
+#define YAGL_MAX_GLES_DRAW_BUFFERS 16
#endif
diff --git a/GLES_common/yagl_gles_validate.c b/GLES_common/yagl_gles_validate.c
index e1a108c..e559ef2 100644
--- a/GLES_common/yagl_gles_validate.c
+++ b/GLES_common/yagl_gles_validate.c
@@ -172,12 +172,10 @@ int yagl_gles_validate_texture_target(GLenum target,
}
int yagl_gles_validate_framebuffer_attachment(GLenum attachment,
+ int num_color_attachments,
yagl_gles_framebuffer_attachment *framebuffer_attachment)
{
switch (attachment) {
- case GL_COLOR_ATTACHMENT0:
- *framebuffer_attachment = yagl_gles_framebuffer_attachment_color0;
- break;
case GL_DEPTH_ATTACHMENT:
*framebuffer_attachment = yagl_gles_framebuffer_attachment_depth;
break;
@@ -185,6 +183,12 @@ int yagl_gles_validate_framebuffer_attachment(GLenum attachment,
*framebuffer_attachment = yagl_gles_framebuffer_attachment_stencil;
break;
default:
+ if ((attachment >= GL_COLOR_ATTACHMENT0) &&
+ (attachment <= (GL_COLOR_ATTACHMENT0 + num_color_attachments - 1))) {
+ *framebuffer_attachment = yagl_gles_framebuffer_attachment_color0 +
+ (attachment - GL_COLOR_ATTACHMENT0);
+ break;
+ }
return 0;
}
diff --git a/GLES_common/yagl_gles_validate.h b/GLES_common/yagl_gles_validate.h
index e01fc58..3be790a 100644
--- a/GLES_common/yagl_gles_validate.h
+++ b/GLES_common/yagl_gles_validate.h
@@ -29,6 +29,7 @@ int yagl_gles_validate_texture_target(GLenum target,
yagl_gles_texture_target *texture_target);
int yagl_gles_validate_framebuffer_attachment(GLenum attachment,
+ int num_color_attachments,
yagl_gles_framebuffer_attachment *framebuffer_attachment);
int yagl_gles_validate_texture_target_squash(GLenum target,
diff --git a/GLES_common/yagl_host_gles_calls.c b/GLES_common/yagl_host_gles_calls.c
index 0a695aa..909eed6 100644
--- a/GLES_common/yagl_host_gles_calls.c
+++ b/GLES_common/yagl_host_gles_calls.c
@@ -901,13 +901,31 @@ void yagl_host_glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint sr
}
/*
- * glGenRenderbuffers wrapper. id = 52
+ * glDrawBuffers wrapper. id = 52
+ */
+void yagl_host_glDrawBuffers(const GLenum *bufs, int32_t bufs_count)
+{
+ struct yagl_transport *t = yagl_get_transport();
+
+ yagl_transport_begin(t, yagl_api_id_gles, 52, 2 * 8, 0 * 8 + yagl_transport_array_size(bufs, bufs_count, sizeof(GLenum)));
+ yagl_transport_put_out_array(t, bufs, bufs_count, sizeof(GLenum));
+ if (yagl_transport_direct(t)) {
+ do {
+ yagl_transport_probe_read(bufs, bufs_count * sizeof(GLenum));
+ } while (!yagl_transport_end(t));
+ } else {
+ yagl_transport_end(t);
+ }
+}
+
+/*
+ * glGenRenderbuffers wrapper. id = 53
*/
void yagl_host_glGenRenderbuffers(const GLuint *renderbuffers, int32_t renderbuffers_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 52, 2 * 8, 0 * 8 + yagl_transport_array_size(renderbuffers, renderbuffers_count, sizeof(GLuint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 53, 2 * 8, 0 * 8 + yagl_transport_array_size(renderbuffers, renderbuffers_count, sizeof(GLuint)));
yagl_transport_put_out_array(t, renderbuffers, renderbuffers_count, sizeof(GLuint));
if (yagl_transport_direct(t)) {
do {
@@ -919,26 +937,26 @@ void yagl_host_glGenRenderbuffers(const GLuint *renderbuffers, int32_t renderbuf
}
/*
- * glBindRenderbuffer wrapper. id = 53
+ * glBindRenderbuffer wrapper. id = 54
*/
void yagl_host_glBindRenderbuffer(GLenum target, GLuint renderbuffer)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 53, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 54, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, target);
yagl_transport_put_out_GLuint(t, renderbuffer);
yagl_transport_end(t);
}
/*
- * glRenderbufferStorage wrapper. id = 54
+ * glRenderbufferStorage wrapper. id = 55
*/
void yagl_host_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 54, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 55, 4 * 8, 4 * 8);
yagl_transport_put_out_GLenum(t, target);
yagl_transport_put_out_GLenum(t, internalformat);
yagl_transport_put_out_GLsizei(t, width);
@@ -947,13 +965,13 @@ void yagl_host_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsiz
}
/*
- * glGetRenderbufferParameteriv wrapper. id = 55
+ * glGetRenderbufferParameteriv wrapper. id = 56
*/
void yagl_host_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 55, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 56, 4 * 8, 4 * 8);
yagl_transport_put_out_GLenum(t, target);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_GLint(t, param);
@@ -961,38 +979,38 @@ void yagl_host_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *
}
/*
- * glCreateProgram wrapper. id = 56
+ * glCreateProgram wrapper. id = 57
*/
void yagl_host_glCreateProgram(GLuint program)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 56, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 57, 1 * 8, 1 * 8);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_end(t);
}
/*
- * glCreateShader wrapper. id = 57
+ * glCreateShader wrapper. id = 58
*/
void yagl_host_glCreateShader(GLuint shader, GLenum type)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 57, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 58, 2 * 8, 2 * 8);
yagl_transport_put_out_GLuint(t, shader);
yagl_transport_put_out_GLenum(t, type);
yagl_transport_end(t);
}
/*
- * glShaderSource wrapper. id = 58
+ * glShaderSource wrapper. id = 59
*/
void yagl_host_glShaderSource(GLuint shader, const GLchar *string, int32_t string_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 58, 3 * 8, 1 * 8 + yagl_transport_array_size(string, string_count, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 59, 3 * 8, 1 * 8 + yagl_transport_array_size(string, string_count, sizeof(GLchar)));
yagl_transport_put_out_GLuint(t, shader);
yagl_transport_put_out_array(t, string, string_count, sizeof(GLchar));
if (yagl_transport_direct(t)) {
@@ -1005,51 +1023,51 @@ void yagl_host_glShaderSource(GLuint shader, const GLchar *string, int32_t strin
}
/*
- * glAttachShader wrapper. id = 59
+ * glAttachShader wrapper. id = 60
*/
void yagl_host_glAttachShader(GLuint program, GLuint shader)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 59, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 60, 2 * 8, 2 * 8);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_GLuint(t, shader);
yagl_transport_end(t);
}
/*
- * glDetachShader wrapper. id = 60
+ * glDetachShader wrapper. id = 61
*/
void yagl_host_glDetachShader(GLuint program, GLuint shader)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 60, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 61, 2 * 8, 2 * 8);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_GLuint(t, shader);
yagl_transport_end(t);
}
/*
- * glCompileShader wrapper. id = 61
+ * glCompileShader wrapper. id = 62
*/
void yagl_host_glCompileShader(GLuint shader)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 61, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 62, 1 * 8, 1 * 8);
yagl_transport_put_out_GLuint(t, shader);
yagl_transport_end(t);
}
/*
- * glBindAttribLocation wrapper. id = 62
+ * glBindAttribLocation wrapper. id = 63
*/
void yagl_host_glBindAttribLocation(GLuint program, GLuint index, const GLchar *name, int32_t name_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 62, 4 * 8, 2 * 8 + yagl_transport_array_size(name, name_count, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 63, 4 * 8, 2 * 8 + yagl_transport_array_size(name, name_count, sizeof(GLchar)));
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_GLuint(t, index);
yagl_transport_put_out_array(t, name, name_count, sizeof(GLchar));
@@ -1063,14 +1081,14 @@ void yagl_host_glBindAttribLocation(GLuint program, GLuint index, const GLchar *
}
/*
- * glGetActiveAttrib wrapper. id = 63
+ * glGetActiveAttrib wrapper. id = 64
*/
GLboolean yagl_host_glGetActiveAttrib(GLuint program, GLuint index, GLint *size, GLenum *type, GLchar *name, int32_t name_maxcount, int32_t *name_count)
{
struct yagl_transport *t = yagl_get_transport();
GLboolean retval;
- yagl_transport_begin(t, yagl_api_id_gles, 63, 10 * 8, 8 * 8 + yagl_transport_array_size(name, name_maxcount, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 64, 10 * 8, 8 * 8 + yagl_transport_array_size(name, name_maxcount, sizeof(GLchar)));
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_GLuint(t, index);
yagl_transport_put_in_GLint(t, size);
@@ -1089,14 +1107,14 @@ GLboolean yagl_host_glGetActiveAttrib(GLuint program, GLuint index, GLint *size,
}
/*
- * glGetActiveUniform wrapper. id = 64
+ * glGetActiveUniform wrapper. id = 65
*/
GLboolean yagl_host_glGetActiveUniform(GLuint program, GLuint index, GLint *size, GLenum *type, GLchar *name, int32_t name_maxcount, int32_t *name_count)
{
struct yagl_transport *t = yagl_get_transport();
GLboolean retval;
- yagl_transport_begin(t, yagl_api_id_gles, 64, 10 * 8, 8 * 8 + yagl_transport_array_size(name, name_maxcount, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 65, 10 * 8, 8 * 8 + yagl_transport_array_size(name, name_maxcount, sizeof(GLchar)));
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_GLuint(t, index);
yagl_transport_put_in_GLint(t, size);
@@ -1115,14 +1133,14 @@ GLboolean yagl_host_glGetActiveUniform(GLuint program, GLuint index, GLint *size
}
/*
- * glGetAttribLocation wrapper. id = 65
+ * glGetAttribLocation wrapper. id = 66
*/
int yagl_host_glGetAttribLocation(GLuint program, const GLchar *name, int32_t name_count)
{
struct yagl_transport *t = yagl_get_transport();
int retval;
- yagl_transport_begin(t, yagl_api_id_gles, 65, 5 * 8, 3 * 8 + yagl_transport_array_size(name, name_count, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 66, 5 * 8, 3 * 8 + yagl_transport_array_size(name, name_count, sizeof(GLchar)));
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_array(t, name, name_count, sizeof(GLchar));
yagl_transport_put_in_int(t, &retval);
@@ -1138,13 +1156,13 @@ int yagl_host_glGetAttribLocation(GLuint program, const GLchar *name, int32_t na
}
/*
- * glGetProgramiv wrapper. id = 66
+ * glGetProgramiv wrapper. id = 67
*/
void yagl_host_glGetProgramiv(GLuint program, GLenum pname, GLint *param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 66, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 67, 4 * 8, 4 * 8);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_GLint(t, param);
@@ -1152,14 +1170,14 @@ void yagl_host_glGetProgramiv(GLuint program, GLenum pname, GLint *param)
}
/*
- * glGetProgramInfoLog wrapper. id = 67
+ * glGetProgramInfoLog wrapper. id = 68
*/
GLboolean yagl_host_glGetProgramInfoLog(GLuint program, GLchar *infolog, int32_t infolog_maxcount, int32_t *infolog_count)
{
struct yagl_transport *t = yagl_get_transport();
GLboolean retval;
- yagl_transport_begin(t, yagl_api_id_gles, 67, 5 * 8, 3 * 8 + yagl_transport_array_size(infolog, infolog_maxcount, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 68, 5 * 8, 3 * 8 + yagl_transport_array_size(infolog, infolog_maxcount, sizeof(GLchar)));
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_in_array(t, infolog, infolog_maxcount, infolog_count, sizeof(GLchar));
yagl_transport_put_in_GLboolean(t, &retval);
@@ -1175,13 +1193,13 @@ GLboolean yagl_host_glGetProgramInfoLog(GLuint program, GLchar *infolog, int32_t
}
/*
- * glGetShaderiv wrapper. id = 68
+ * glGetShaderiv wrapper. id = 69
*/
void yagl_host_glGetShaderiv(GLuint shader, GLenum pname, GLint *param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 68, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 69, 4 * 8, 4 * 8);
yagl_transport_put_out_GLuint(t, shader);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_GLint(t, param);
@@ -1189,14 +1207,14 @@ void yagl_host_glGetShaderiv(GLuint shader, GLenum pname, GLint *param)
}
/*
- * glGetShaderInfoLog wrapper. id = 69
+ * glGetShaderInfoLog wrapper. id = 70
*/
GLboolean yagl_host_glGetShaderInfoLog(GLuint shader, GLchar *infolog, int32_t infolog_maxcount, int32_t *infolog_count)
{
struct yagl_transport *t = yagl_get_transport();
GLboolean retval;
- yagl_transport_begin(t, yagl_api_id_gles, 69, 5 * 8, 3 * 8 + yagl_transport_array_size(infolog, infolog_maxcount, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 70, 5 * 8, 3 * 8 + yagl_transport_array_size(infolog, infolog_maxcount, sizeof(GLchar)));
yagl_transport_put_out_GLuint(t, shader);
yagl_transport_put_in_array(t, infolog, infolog_maxcount, infolog_count, sizeof(GLchar));
yagl_transport_put_in_GLboolean(t, &retval);
@@ -1212,13 +1230,13 @@ GLboolean yagl_host_glGetShaderInfoLog(GLuint shader, GLchar *infolog, int32_t i
}
/*
- * glGetUniformfv wrapper. id = 70
+ * glGetUniformfv wrapper. id = 71
*/
void yagl_host_glGetUniformfv(GLboolean tl, GLuint program, uint32_t location, GLfloat *params, int32_t params_maxcount, int32_t *params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 70, 5 * 8, 3 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 71, 5 * 8, 3 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_uint32_t(t, location);
@@ -1233,13 +1251,13 @@ void yagl_host_glGetUniformfv(GLboolean tl, GLuint program, uint32_t location, G
}
/*
- * glGetUniformiv wrapper. id = 71
+ * glGetUniformiv wrapper. id = 72
*/
void yagl_host_glGetUniformiv(GLboolean tl, GLuint program, uint32_t location, GLint *params, int32_t params_maxcount, int32_t *params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 71, 5 * 8, 3 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 72, 5 * 8, 3 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLint)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_uint32_t(t, location);
@@ -1254,14 +1272,14 @@ void yagl_host_glGetUniformiv(GLboolean tl, GLuint program, uint32_t location, G
}
/*
- * glGetUniformLocation wrapper. id = 72
+ * glGetUniformLocation wrapper. id = 73
*/
int yagl_host_glGetUniformLocation(GLuint program, const GLchar *name, int32_t name_count)
{
struct yagl_transport *t = yagl_get_transport();
int retval;
- yagl_transport_begin(t, yagl_api_id_gles, 72, 5 * 8, 3 * 8 + yagl_transport_array_size(name, name_count, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 73, 5 * 8, 3 * 8 + yagl_transport_array_size(name, name_count, sizeof(GLchar)));
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_array(t, name, name_count, sizeof(GLchar));
yagl_transport_put_in_int(t, &retval);
@@ -1277,13 +1295,13 @@ int yagl_host_glGetUniformLocation(GLuint program, const GLchar *name, int32_t n
}
/*
- * glGetVertexAttribfv wrapper. id = 73
+ * glGetVertexAttribfv wrapper. id = 74
*/
void yagl_host_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params, int32_t params_maxcount, int32_t *params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 73, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 74, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
yagl_transport_put_out_GLuint(t, index);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_array(t, params, params_maxcount, params_count, sizeof(GLfloat));
@@ -1297,13 +1315,13 @@ void yagl_host_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params,
}
/*
- * glGetVertexAttribiv wrapper. id = 74
+ * glGetVertexAttribiv wrapper. id = 75
*/
void yagl_host_glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params, int32_t params_maxcount, int32_t *params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 74, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 75, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLint)));
yagl_transport_put_out_GLuint(t, index);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_array(t, params, params_maxcount, params_count, sizeof(GLint));
@@ -1317,25 +1335,25 @@ void yagl_host_glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params, in
}
/*
- * glLinkProgram wrapper. id = 75
+ * glLinkProgram wrapper. id = 76
*/
void yagl_host_glLinkProgram(GLuint program)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 75, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 76, 1 * 8, 1 * 8);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_end(t);
}
/*
- * glUniform1f wrapper. id = 76
+ * glUniform1f wrapper. id = 77
*/
void yagl_host_glUniform1f(GLboolean tl, uint32_t location, GLfloat x)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 76, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 77, 3 * 8, 3 * 8);
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLfloat(t, x);
@@ -1343,13 +1361,13 @@ void yagl_host_glUniform1f(GLboolean tl, uint32_t location, GLfloat x)
}
/*
- * glUniform1fv wrapper. id = 77
+ * glUniform1fv wrapper. id = 78
*/
void yagl_host_glUniform1fv(GLboolean tl, uint32_t location, const GLfloat *v, int32_t v_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 77, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 78, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLfloat)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_array(t, v, v_count, sizeof(GLfloat));
@@ -1363,13 +1381,13 @@ void yagl_host_glUniform1fv(GLboolean tl, uint32_t location, const GLfloat *v, i
}
/*
- * glUniform1i wrapper. id = 78
+ * glUniform1i wrapper. id = 79
*/
void yagl_host_glUniform1i(GLboolean tl, uint32_t location, GLint x)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 78, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 79, 3 * 8, 3 * 8);
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLint(t, x);
@@ -1377,13 +1395,13 @@ void yagl_host_glUniform1i(GLboolean tl, uint32_t location, GLint x)
}
/*
- * glUniform1iv wrapper. id = 79
+ * glUniform1iv wrapper. id = 80
*/
void yagl_host_glUniform1iv(GLboolean tl, uint32_t location, const GLint *v, int32_t v_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 79, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 80, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLint)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_array(t, v, v_count, sizeof(GLint));
@@ -1397,13 +1415,13 @@ void yagl_host_glUniform1iv(GLboolean tl, uint32_t location, const GLint *v, int
}
/*
- * glUniform2f wrapper. id = 80
+ * glUniform2f wrapper. id = 81
*/
void yagl_host_glUniform2f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 80, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 81, 4 * 8, 4 * 8);
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLfloat(t, x);
@@ -1412,13 +1430,13 @@ void yagl_host_glUniform2f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y
}
/*
- * glUniform2fv wrapper. id = 81
+ * glUniform2fv wrapper. id = 82
*/
void yagl_host_glUniform2fv(GLboolean tl, uint32_t location, const GLfloat *v, int32_t v_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 81, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 82, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLfloat)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_array(t, v, v_count, sizeof(GLfloat));
@@ -1432,13 +1450,13 @@ void yagl_host_glUniform2fv(GLboolean tl, uint32_t location, const GLfloat *v, i
}
/*
- * glUniform2i wrapper. id = 82
+ * glUniform2i wrapper. id = 83
*/
void yagl_host_glUniform2i(GLboolean tl, uint32_t location, GLint x, GLint y)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 82, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 83, 4 * 8, 4 * 8);
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLint(t, x);
@@ -1447,13 +1465,13 @@ void yagl_host_glUniform2i(GLboolean tl, uint32_t location, GLint x, GLint y)
}
/*
- * glUniform2iv wrapper. id = 83
+ * glUniform2iv wrapper. id = 84
*/
void yagl_host_glUniform2iv(GLboolean tl, uint32_t location, const GLint *v, int32_t v_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 83, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 84, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLint)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_array(t, v, v_count, sizeof(GLint));
@@ -1467,13 +1485,13 @@ void yagl_host_glUniform2iv(GLboolean tl, uint32_t location, const GLint *v, int
}
/*
- * glUniform3f wrapper. id = 84
+ * glUniform3f wrapper. id = 85
*/
void yagl_host_glUniform3f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y, GLfloat z)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 84, 5 * 8, 5 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 85, 5 * 8, 5 * 8);
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLfloat(t, x);
@@ -1483,13 +1501,13 @@ void yagl_host_glUniform3f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y
}
/*
- * glUniform3fv wrapper. id = 85
+ * glUniform3fv wrapper. id = 86
*/
void yagl_host_glUniform3fv(GLboolean tl, uint32_t location, const GLfloat *v, int32_t v_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 85, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 86, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLfloat)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_array(t, v, v_count, sizeof(GLfloat));
@@ -1503,13 +1521,13 @@ void yagl_host_glUniform3fv(GLboolean tl, uint32_t location, const GLfloat *v, i
}
/*
- * glUniform3i wrapper. id = 86
+ * glUniform3i wrapper. id = 87
*/
void yagl_host_glUniform3i(GLboolean tl, uint32_t location, GLint x, GLint y, GLint z)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 86, 5 * 8, 5 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 87, 5 * 8, 5 * 8);
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLint(t, x);
@@ -1519,13 +1537,13 @@ void yagl_host_glUniform3i(GLboolean tl, uint32_t location, GLint x, GLint y, GL
}
/*
- * glUniform3iv wrapper. id = 87
+ * glUniform3iv wrapper. id = 88
*/
void yagl_host_glUniform3iv(GLboolean tl, uint32_t location, const GLint *v, int32_t v_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 87, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 88, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLint)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_array(t, v, v_count, sizeof(GLint));
@@ -1539,13 +1557,13 @@ void yagl_host_glUniform3iv(GLboolean tl, uint32_t location, const GLint *v, int
}
/*
- * glUniform4f wrapper. id = 88
+ * glUniform4f wrapper. id = 89
*/
void yagl_host_glUniform4f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 88, 6 * 8, 6 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 89, 6 * 8, 6 * 8);
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLfloat(t, x);
@@ -1556,13 +1574,13 @@ void yagl_host_glUniform4f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y
}
/*
- * glUniform4fv wrapper. id = 89
+ * glUniform4fv wrapper. id = 90
*/
void yagl_host_glUniform4fv(GLboolean tl, uint32_t location, const GLfloat *v, int32_t v_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 89, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 90, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLfloat)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_array(t, v, v_count, sizeof(GLfloat));
@@ -1576,13 +1594,13 @@ void yagl_host_glUniform4fv(GLboolean tl, uint32_t location, const GLfloat *v, i
}
/*
- * glUniform4i wrapper. id = 90
+ * glUniform4i wrapper. id = 91
*/
void yagl_host_glUniform4i(GLboolean tl, uint32_t location, GLint x, GLint y, GLint z, GLint w)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 90, 6 * 8, 6 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 91, 6 * 8, 6 * 8);
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLint(t, x);
@@ -1593,13 +1611,13 @@ void yagl_host_glUniform4i(GLboolean tl, uint32_t location, GLint x, GLint y, GL
}
/*
- * glUniform4iv wrapper. id = 91
+ * glUniform4iv wrapper. id = 92
*/
void yagl_host_glUniform4iv(GLboolean tl, uint32_t location, const GLint *v, int32_t v_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 91, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 92, 4 * 8, 2 * 8 + yagl_transport_array_size(v, v_count, sizeof(GLint)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_array(t, v, v_count, sizeof(GLint));
@@ -1613,13 +1631,13 @@ void yagl_host_glUniform4iv(GLboolean tl, uint32_t location, const GLint *v, int
}
/*
- * glUniformMatrix2fv wrapper. id = 92
+ * glUniformMatrix2fv wrapper. id = 93
*/
void yagl_host_glUniformMatrix2fv(GLboolean tl, uint32_t location, GLboolean transpose, const GLfloat *value, int32_t value_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 92, 5 * 8, 3 * 8 + yagl_transport_array_size(value, value_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 93, 5 * 8, 3 * 8 + yagl_transport_array_size(value, value_count, sizeof(GLfloat)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLboolean(t, transpose);
@@ -1634,13 +1652,13 @@ void yagl_host_glUniformMatrix2fv(GLboolean tl, uint32_t location, GLboolean tra
}
/*
- * glUniformMatrix3fv wrapper. id = 93
+ * glUniformMatrix3fv wrapper. id = 94
*/
void yagl_host_glUniformMatrix3fv(GLboolean tl, uint32_t location, GLboolean transpose, const GLfloat *value, int32_t value_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 93, 5 * 8, 3 * 8 + yagl_transport_array_size(value, value_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 94, 5 * 8, 3 * 8 + yagl_transport_array_size(value, value_count, sizeof(GLfloat)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLboolean(t, transpose);
@@ -1655,13 +1673,13 @@ void yagl_host_glUniformMatrix3fv(GLboolean tl, uint32_t location, GLboolean tra
}
/*
- * glUniformMatrix4fv wrapper. id = 94
+ * glUniformMatrix4fv wrapper. id = 95
*/
void yagl_host_glUniformMatrix4fv(GLboolean tl, uint32_t location, GLboolean transpose, const GLfloat *value, int32_t value_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 94, 5 * 8, 3 * 8 + yagl_transport_array_size(value, value_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 95, 5 * 8, 3 * 8 + yagl_transport_array_size(value, value_count, sizeof(GLfloat)));
yagl_transport_put_out_GLboolean(t, tl);
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLboolean(t, transpose);
@@ -1676,50 +1694,50 @@ void yagl_host_glUniformMatrix4fv(GLboolean tl, uint32_t location, GLboolean tra
}
/*
- * glUseProgram wrapper. id = 95
+ * glUseProgram wrapper. id = 96
*/
void yagl_host_glUseProgram(GLuint program)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 95, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 96, 1 * 8, 1 * 8);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_end(t);
}
/*
- * glValidateProgram wrapper. id = 96
+ * glValidateProgram wrapper. id = 97
*/
void yagl_host_glValidateProgram(GLuint program)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 96, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 97, 1 * 8, 1 * 8);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_end(t);
}
/*
- * glVertexAttrib1f wrapper. id = 97
+ * glVertexAttrib1f wrapper. id = 98
*/
void yagl_host_glVertexAttrib1f(GLuint indx, GLfloat x)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 97, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 98, 2 * 8, 2 * 8);
yagl_transport_put_out_GLuint(t, indx);
yagl_transport_put_out_GLfloat(t, x);
yagl_transport_end(t);
}
/*
- * glVertexAttrib1fv wrapper. id = 98
+ * glVertexAttrib1fv wrapper. id = 99
*/
void yagl_host_glVertexAttrib1fv(GLuint indx, const GLfloat *values, int32_t values_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 98, 3 * 8, 1 * 8 + yagl_transport_array_size(values, values_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 99, 3 * 8, 1 * 8 + yagl_transport_array_size(values, values_count, sizeof(GLfloat)));
yagl_transport_put_out_GLuint(t, indx);
yagl_transport_put_out_array(t, values, values_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -1732,13 +1750,13 @@ void yagl_host_glVertexAttrib1fv(GLuint indx, const GLfloat *values, int32_t val
}
/*
- * glVertexAttrib2f wrapper. id = 99
+ * glVertexAttrib2f wrapper. id = 100
*/
void yagl_host_glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 99, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 100, 3 * 8, 3 * 8);
yagl_transport_put_out_GLuint(t, indx);
yagl_transport_put_out_GLfloat(t, x);
yagl_transport_put_out_GLfloat(t, y);
@@ -1746,13 +1764,13 @@ void yagl_host_glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
}
/*
- * glVertexAttrib2fv wrapper. id = 100
+ * glVertexAttrib2fv wrapper. id = 101
*/
void yagl_host_glVertexAttrib2fv(GLuint indx, const GLfloat *values, int32_t values_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 100, 3 * 8, 1 * 8 + yagl_transport_array_size(values, values_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 101, 3 * 8, 1 * 8 + yagl_transport_array_size(values, values_count, sizeof(GLfloat)));
yagl_transport_put_out_GLuint(t, indx);
yagl_transport_put_out_array(t, values, values_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -1765,13 +1783,13 @@ void yagl_host_glVertexAttrib2fv(GLuint indx, const GLfloat *values, int32_t val
}
/*
- * glVertexAttrib3f wrapper. id = 101
+ * glVertexAttrib3f wrapper. id = 102
*/
void yagl_host_glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 101, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 102, 4 * 8, 4 * 8);
yagl_transport_put_out_GLuint(t, indx);
yagl_transport_put_out_GLfloat(t, x);
yagl_transport_put_out_GLfloat(t, y);
@@ -1780,13 +1798,13 @@ void yagl_host_glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
}
/*
- * glVertexAttrib3fv wrapper. id = 102
+ * glVertexAttrib3fv wrapper. id = 103
*/
void yagl_host_glVertexAttrib3fv(GLuint indx, const GLfloat *values, int32_t values_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 102, 3 * 8, 1 * 8 + yagl_transport_array_size(values, values_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 103, 3 * 8, 1 * 8 + yagl_transport_array_size(values, values_count, sizeof(GLfloat)));
yagl_transport_put_out_GLuint(t, indx);
yagl_transport_put_out_array(t, values, values_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -1799,13 +1817,13 @@ void yagl_host_glVertexAttrib3fv(GLuint indx, const GLfloat *values, int32_t val
}
/*
- * glVertexAttrib4f wrapper. id = 103
+ * glVertexAttrib4f wrapper. id = 104
*/
void yagl_host_glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 103, 5 * 8, 5 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 104, 5 * 8, 5 * 8);
yagl_transport_put_out_GLuint(t, indx);
yagl_transport_put_out_GLfloat(t, x);
yagl_transport_put_out_GLfloat(t, y);
@@ -1815,13 +1833,13 @@ void yagl_host_glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GL
}
/*
- * glVertexAttrib4fv wrapper. id = 104
+ * glVertexAttrib4fv wrapper. id = 105
*/
void yagl_host_glVertexAttrib4fv(GLuint indx, const GLfloat *values, int32_t values_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 104, 3 * 8, 1 * 8 + yagl_transport_array_size(values, values_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 105, 3 * 8, 1 * 8 + yagl_transport_array_size(values, values_count, sizeof(GLfloat)));
yagl_transport_put_out_GLuint(t, indx);
yagl_transport_put_out_array(t, values, values_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -1834,13 +1852,13 @@ void yagl_host_glVertexAttrib4fv(GLuint indx, const GLfloat *values, int32_t val
}
/*
- * glGetIntegerv wrapper. id = 105
+ * glGetIntegerv wrapper. id = 106
*/
void yagl_host_glGetIntegerv(GLenum pname, GLint *params, int32_t params_maxcount, int32_t *params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 105, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 106, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLint)));
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_array(t, params, params_maxcount, params_count, sizeof(GLint));
if (yagl_transport_direct(t)) {
@@ -1853,13 +1871,13 @@ void yagl_host_glGetIntegerv(GLenum pname, GLint *params, int32_t params_maxcoun
}
/*
- * glGetFloatv wrapper. id = 106
+ * glGetFloatv wrapper. id = 107
*/
void yagl_host_glGetFloatv(GLenum pname, GLfloat *params, int32_t params_maxcount, int32_t *params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 106, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 107, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_array(t, params, params_maxcount, params_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -1872,13 +1890,13 @@ void yagl_host_glGetFloatv(GLenum pname, GLfloat *params, int32_t params_maxcoun
}
/*
- * glGetString wrapper. id = 107
+ * glGetString wrapper. id = 108
*/
void yagl_host_glGetString(GLenum name, GLchar *str, int32_t str_maxcount, int32_t *str_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 107, 3 * 8, 1 * 8 + yagl_transport_array_size(str, str_maxcount, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 108, 3 * 8, 1 * 8 + yagl_transport_array_size(str, str_maxcount, sizeof(GLchar)));
yagl_transport_put_out_GLenum(t, name);
yagl_transport_put_in_array(t, str, str_maxcount, str_count, sizeof(GLchar));
if (yagl_transport_direct(t)) {
@@ -1891,14 +1909,14 @@ void yagl_host_glGetString(GLenum name, GLchar *str, int32_t str_maxcount, int32
}
/*
- * glIsEnabled wrapper. id = 108
+ * glIsEnabled wrapper. id = 109
*/
GLboolean yagl_host_glIsEnabled(GLenum cap)
{
struct yagl_transport *t = yagl_get_transport();
GLboolean retval;
- yagl_transport_begin(t, yagl_api_id_gles, 108, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 109, 3 * 8, 3 * 8);
yagl_transport_put_out_GLenum(t, cap);
yagl_transport_put_in_GLboolean(t, &retval);
yagl_transport_end(t);
@@ -1907,13 +1925,13 @@ GLboolean yagl_host_glIsEnabled(GLenum cap)
}
/*
- * glDeleteObjects wrapper. id = 109
+ * glDeleteObjects wrapper. id = 110
*/
void yagl_host_glDeleteObjects(const GLuint *objects, int32_t objects_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 109, 2 * 8, 0 * 8 + yagl_transport_array_size(objects, objects_count, sizeof(GLuint)));
+ yagl_transport_begin(t, yagl_api_id_gles, 110, 2 * 8, 0 * 8 + yagl_transport_array_size(objects, objects_count, sizeof(GLuint)));
yagl_transport_put_out_array(t, objects, objects_count, sizeof(GLuint));
if (yagl_transport_direct(t)) {
do {
@@ -1925,51 +1943,51 @@ void yagl_host_glDeleteObjects(const GLuint *objects, int32_t objects_count)
}
/*
- * glBlendEquation wrapper. id = 110
+ * glBlendEquation wrapper. id = 111
*/
void yagl_host_glBlendEquation(GLenum mode)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 110, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 111, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, mode);
yagl_transport_end(t);
}
/*
- * glBlendEquationSeparate wrapper. id = 111
+ * glBlendEquationSeparate wrapper. id = 112
*/
void yagl_host_glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 111, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 112, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, modeRGB);
yagl_transport_put_out_GLenum(t, modeAlpha);
yagl_transport_end(t);
}
/*
- * glBlendFunc wrapper. id = 112
+ * glBlendFunc wrapper. id = 113
*/
void yagl_host_glBlendFunc(GLenum sfactor, GLenum dfactor)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 112, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 113, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, sfactor);
yagl_transport_put_out_GLenum(t, dfactor);
yagl_transport_end(t);
}
/*
- * glBlendFuncSeparate wrapper. id = 113
+ * glBlendFuncSeparate wrapper. id = 114
*/
void yagl_host_glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 113, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 114, 4 * 8, 4 * 8);
yagl_transport_put_out_GLenum(t, srcRGB);
yagl_transport_put_out_GLenum(t, dstRGB);
yagl_transport_put_out_GLenum(t, srcAlpha);
@@ -1978,13 +1996,13 @@ void yagl_host_glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha
}
/*
- * glBlendColor wrapper. id = 114
+ * glBlendColor wrapper. id = 115
*/
void yagl_host_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 114, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 115, 4 * 8, 4 * 8);
yagl_transport_put_out_GLclampf(t, red);
yagl_transport_put_out_GLclampf(t, green);
yagl_transport_put_out_GLclampf(t, blue);
@@ -1993,25 +2011,25 @@ void yagl_host_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclamp
}
/*
- * glClear wrapper. id = 115
+ * glClear wrapper. id = 116
*/
void yagl_host_glClear(GLbitfield mask)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 115, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 116, 1 * 8, 1 * 8);
yagl_transport_put_out_GLbitfield(t, mask);
yagl_transport_end(t);
}
/*
- * glClearColor wrapper. id = 116
+ * glClearColor wrapper. id = 117
*/
void yagl_host_glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 116, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 117, 4 * 8, 4 * 8);
yagl_transport_put_out_GLclampf(t, red);
yagl_transport_put_out_GLclampf(t, green);
yagl_transport_put_out_GLclampf(t, blue);
@@ -2020,37 +2038,37 @@ void yagl_host_glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclamp
}
/*
- * glClearDepthf wrapper. id = 117
+ * glClearDepthf wrapper. id = 118
*/
void yagl_host_glClearDepthf(GLclampf depth)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 117, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 118, 1 * 8, 1 * 8);
yagl_transport_put_out_GLclampf(t, depth);
yagl_transport_end(t);
}
/*
- * glClearStencil wrapper. id = 118
+ * glClearStencil wrapper. id = 119
*/
void yagl_host_glClearStencil(GLint s)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 118, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 119, 1 * 8, 1 * 8);
yagl_transport_put_out_GLint(t, s);
yagl_transport_end(t);
}
/*
- * glColorMask wrapper. id = 119
+ * glColorMask wrapper. id = 120
*/
void yagl_host_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 119, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 120, 4 * 8, 4 * 8);
yagl_transport_put_out_GLboolean(t, red);
yagl_transport_put_out_GLboolean(t, green);
yagl_transport_put_out_GLboolean(t, blue);
@@ -2059,173 +2077,173 @@ void yagl_host_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboo
}
/*
- * glCullFace wrapper. id = 120
+ * glCullFace wrapper. id = 121
*/
void yagl_host_glCullFace(GLenum mode)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 120, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 121, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, mode);
yagl_transport_end(t);
}
/*
- * glDepthFunc wrapper. id = 121
+ * glDepthFunc wrapper. id = 122
*/
void yagl_host_glDepthFunc(GLenum func)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 121, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 122, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, func);
yagl_transport_end(t);
}
/*
- * glDepthMask wrapper. id = 122
+ * glDepthMask wrapper. id = 123
*/
void yagl_host_glDepthMask(GLboolean flag)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 122, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 123, 1 * 8, 1 * 8);
yagl_transport_put_out_GLboolean(t, flag);
yagl_transport_end(t);
}
/*
- * glDepthRangef wrapper. id = 123
+ * glDepthRangef wrapper. id = 124
*/
void yagl_host_glDepthRangef(GLclampf zNear, GLclampf zFar)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 123, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 124, 2 * 8, 2 * 8);
yagl_transport_put_out_GLclampf(t, zNear);
yagl_transport_put_out_GLclampf(t, zFar);
yagl_transport_end(t);
}
/*
- * glEnable wrapper. id = 124
+ * glEnable wrapper. id = 125
*/
void yagl_host_glEnable(GLenum cap)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 124, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 125, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, cap);
yagl_transport_end(t);
}
/*
- * glDisable wrapper. id = 125
+ * glDisable wrapper. id = 126
*/
void yagl_host_glDisable(GLenum cap)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 125, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 126, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, cap);
yagl_transport_end(t);
}
/*
- * glFlush wrapper. id = 126
+ * glFlush wrapper. id = 127
*/
void yagl_host_glFlush()
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 126, 0 * 8, 0 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 127, 0 * 8, 0 * 8);
yagl_transport_end(t);
yagl_transport_sync(t);
}
/*
- * glFrontFace wrapper. id = 127
+ * glFrontFace wrapper. id = 128
*/
void yagl_host_glFrontFace(GLenum mode)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 127, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 128, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, mode);
yagl_transport_end(t);
}
/*
- * glGenerateMipmap wrapper. id = 128
+ * glGenerateMipmap wrapper. id = 129
*/
void yagl_host_glGenerateMipmap(GLenum target)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 128, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 129, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, target);
yagl_transport_end(t);
}
/*
- * glHint wrapper. id = 129
+ * glHint wrapper. id = 130
*/
void yagl_host_glHint(GLenum target, GLenum mode)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 129, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 130, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, target);
yagl_transport_put_out_GLenum(t, mode);
yagl_transport_end(t);
}
/*
- * glLineWidth wrapper. id = 130
+ * glLineWidth wrapper. id = 131
*/
void yagl_host_glLineWidth(GLfloat width)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 130, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 131, 1 * 8, 1 * 8);
yagl_transport_put_out_GLfloat(t, width);
yagl_transport_end(t);
}
/*
- * glPixelStorei wrapper. id = 131
+ * glPixelStorei wrapper. id = 132
*/
void yagl_host_glPixelStorei(GLenum pname, GLint param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 131, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 132, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_GLint(t, param);
yagl_transport_end(t);
}
/*
- * glPolygonOffset wrapper. id = 132
+ * glPolygonOffset wrapper. id = 133
*/
void yagl_host_glPolygonOffset(GLfloat factor, GLfloat units)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 132, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 133, 2 * 8, 2 * 8);
yagl_transport_put_out_GLfloat(t, factor);
yagl_transport_put_out_GLfloat(t, units);
yagl_transport_end(t);
}
/*
- * glScissor wrapper. id = 133
+ * glScissor wrapper. id = 134
*/
void yagl_host_glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 133, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 134, 4 * 8, 4 * 8);
yagl_transport_put_out_GLint(t, x);
yagl_transport_put_out_GLint(t, y);
yagl_transport_put_out_GLsizei(t, width);
@@ -2234,13 +2252,13 @@ void yagl_host_glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
}
/*
- * glStencilFunc wrapper. id = 134
+ * glStencilFunc wrapper. id = 135
*/
void yagl_host_glStencilFunc(GLenum func, GLint ref, GLuint mask)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 134, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 135, 3 * 8, 3 * 8);
yagl_transport_put_out_GLenum(t, func);
yagl_transport_put_out_GLint(t, ref);
yagl_transport_put_out_GLuint(t, mask);
@@ -2248,25 +2266,25 @@ void yagl_host_glStencilFunc(GLenum func, GLint ref, GLuint mask)
}
/*
- * glStencilMask wrapper. id = 135
+ * glStencilMask wrapper. id = 136
*/
void yagl_host_glStencilMask(GLuint mask)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 135, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 136, 1 * 8, 1 * 8);
yagl_transport_put_out_GLuint(t, mask);
yagl_transport_end(t);
}
/*
- * glStencilOp wrapper. id = 136
+ * glStencilOp wrapper. id = 137
*/
void yagl_host_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 136, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 137, 3 * 8, 3 * 8);
yagl_transport_put_out_GLenum(t, fail);
yagl_transport_put_out_GLenum(t, zfail);
yagl_transport_put_out_GLenum(t, zpass);
@@ -2274,26 +2292,26 @@ void yagl_host_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
}
/*
- * glSampleCoverage wrapper. id = 137
+ * glSampleCoverage wrapper. id = 138
*/
void yagl_host_glSampleCoverage(GLclampf value, GLboolean invert)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 137, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 138, 2 * 8, 2 * 8);
yagl_transport_put_out_GLclampf(t, value);
yagl_transport_put_out_GLboolean(t, invert);
yagl_transport_end(t);
}
/*
- * glViewport wrapper. id = 138
+ * glViewport wrapper. id = 139
*/
void yagl_host_glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 138, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 139, 4 * 8, 4 * 8);
yagl_transport_put_out_GLint(t, x);
yagl_transport_put_out_GLint(t, y);
yagl_transport_put_out_GLsizei(t, width);
@@ -2302,13 +2320,13 @@ void yagl_host_glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
}
/*
- * glStencilFuncSeparate wrapper. id = 139
+ * glStencilFuncSeparate wrapper. id = 140
*/
void yagl_host_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 139, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 140, 4 * 8, 4 * 8);
yagl_transport_put_out_GLenum(t, face);
yagl_transport_put_out_GLenum(t, func);
yagl_transport_put_out_GLint(t, ref);
@@ -2317,26 +2335,26 @@ void yagl_host_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint
}
/*
- * glStencilMaskSeparate wrapper. id = 140
+ * glStencilMaskSeparate wrapper. id = 141
*/
void yagl_host_glStencilMaskSeparate(GLenum face, GLuint mask)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 140, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 141, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, face);
yagl_transport_put_out_GLuint(t, mask);
yagl_transport_end(t);
}
/*
- * glStencilOpSeparate wrapper. id = 141
+ * glStencilOpSeparate wrapper. id = 142
*/
void yagl_host_glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 141, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 142, 4 * 8, 4 * 8);
yagl_transport_put_out_GLenum(t, face);
yagl_transport_put_out_GLenum(t, fail);
yagl_transport_put_out_GLenum(t, zfail);
@@ -2345,83 +2363,83 @@ void yagl_host_glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenu
}
/*
- * glPointSize wrapper. id = 142
+ * glPointSize wrapper. id = 143
*/
void yagl_host_glPointSize(GLfloat size)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 142, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 143, 1 * 8, 1 * 8);
yagl_transport_put_out_GLfloat(t, size);
yagl_transport_end(t);
}
/*
- * glAlphaFunc wrapper. id = 143
+ * glAlphaFunc wrapper. id = 144
*/
void yagl_host_glAlphaFunc(GLenum func, GLclampf ref)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 143, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 144, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, func);
yagl_transport_put_out_GLclampf(t, ref);
yagl_transport_end(t);
}
/*
- * glMatrixMode wrapper. id = 144
+ * glMatrixMode wrapper. id = 145
*/
void yagl_host_glMatrixMode(GLenum mode)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 144, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 145, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, mode);
yagl_transport_end(t);
}
/*
- * glLoadIdentity wrapper. id = 145
+ * glLoadIdentity wrapper. id = 146
*/
void yagl_host_glLoadIdentity()
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 145, 0 * 8, 0 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 146, 0 * 8, 0 * 8);
yagl_transport_end(t);
}
/*
- * glPopMatrix wrapper. id = 146
+ * glPopMatrix wrapper. id = 147
*/
void yagl_host_glPopMatrix()
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 146, 0 * 8, 0 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 147, 0 * 8, 0 * 8);
yagl_transport_end(t);
}
/*
- * glPushMatrix wrapper. id = 147
+ * glPushMatrix wrapper. id = 148
*/
void yagl_host_glPushMatrix()
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 147, 0 * 8, 0 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 148, 0 * 8, 0 * 8);
yagl_transport_end(t);
}
/*
- * glRotatef wrapper. id = 148
+ * glRotatef wrapper. id = 149
*/
void yagl_host_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 148, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 149, 4 * 8, 4 * 8);
yagl_transport_put_out_GLfloat(t, angle);
yagl_transport_put_out_GLfloat(t, x);
yagl_transport_put_out_GLfloat(t, y);
@@ -2430,13 +2448,13 @@ void yagl_host_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
}
/*
- * glTranslatef wrapper. id = 149
+ * glTranslatef wrapper. id = 150
*/
void yagl_host_glTranslatef(GLfloat x, GLfloat y, GLfloat z)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 149, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 150, 3 * 8, 3 * 8);
yagl_transport_put_out_GLfloat(t, x);
yagl_transport_put_out_GLfloat(t, y);
yagl_transport_put_out_GLfloat(t, z);
@@ -2444,13 +2462,13 @@ void yagl_host_glTranslatef(GLfloat x, GLfloat y, GLfloat z)
}
/*
- * glScalef wrapper. id = 150
+ * glScalef wrapper. id = 151
*/
void yagl_host_glScalef(GLfloat x, GLfloat y, GLfloat z)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 150, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 151, 3 * 8, 3 * 8);
yagl_transport_put_out_GLfloat(t, x);
yagl_transport_put_out_GLfloat(t, y);
yagl_transport_put_out_GLfloat(t, z);
@@ -2458,13 +2476,13 @@ void yagl_host_glScalef(GLfloat x, GLfloat y, GLfloat z)
}
/*
- * glOrthof wrapper. id = 151
+ * glOrthof wrapper. id = 152
*/
void yagl_host_glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 151, 6 * 8, 6 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 152, 6 * 8, 6 * 8);
yagl_transport_put_out_GLfloat(t, left);
yagl_transport_put_out_GLfloat(t, right);
yagl_transport_put_out_GLfloat(t, bottom);
@@ -2475,13 +2493,13 @@ void yagl_host_glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top
}
/*
- * glColor4f wrapper. id = 152
+ * glColor4f wrapper. id = 153
*/
void yagl_host_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 152, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 153, 4 * 8, 4 * 8);
yagl_transport_put_out_GLfloat(t, red);
yagl_transport_put_out_GLfloat(t, green);
yagl_transport_put_out_GLfloat(t, blue);
@@ -2490,13 +2508,13 @@ void yagl_host_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha
}
/*
- * glColor4ub wrapper. id = 153
+ * glColor4ub wrapper. id = 154
*/
void yagl_host_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 153, 4 * 8, 4 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 154, 4 * 8, 4 * 8);
yagl_transport_put_out_GLubyte(t, red);
yagl_transport_put_out_GLubyte(t, green);
yagl_transport_put_out_GLubyte(t, blue);
@@ -2505,13 +2523,13 @@ void yagl_host_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alph
}
/*
- * glNormal3f wrapper. id = 154
+ * glNormal3f wrapper. id = 155
*/
void yagl_host_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 154, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 155, 3 * 8, 3 * 8);
yagl_transport_put_out_GLfloat(t, nx);
yagl_transport_put_out_GLfloat(t, ny);
yagl_transport_put_out_GLfloat(t, nz);
@@ -2519,26 +2537,26 @@ void yagl_host_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
}
/*
- * glPointParameterf wrapper. id = 155
+ * glPointParameterf wrapper. id = 156
*/
void yagl_host_glPointParameterf(GLenum pname, GLfloat param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 155, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 156, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_GLfloat(t, param);
yagl_transport_end(t);
}
/*
- * glPointParameterfv wrapper. id = 156
+ * glPointParameterfv wrapper. id = 157
*/
void yagl_host_glPointParameterfv(GLenum pname, const GLfloat *params, int32_t params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 156, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 157, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_array(t, params, params_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -2551,26 +2569,26 @@ void yagl_host_glPointParameterfv(GLenum pname, const GLfloat *params, int32_t p
}
/*
- * glFogf wrapper. id = 157
+ * glFogf wrapper. id = 158
*/
void yagl_host_glFogf(GLenum pname, GLfloat param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 157, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 158, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_GLfloat(t, param);
yagl_transport_end(t);
}
/*
- * glFogfv wrapper. id = 158
+ * glFogfv wrapper. id = 159
*/
void yagl_host_glFogfv(GLenum pname, const GLfloat *params, int32_t params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 158, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 159, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_array(t, params, params_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -2583,13 +2601,13 @@ void yagl_host_glFogfv(GLenum pname, const GLfloat *params, int32_t params_count
}
/*
- * glFrustumf wrapper. id = 159
+ * glFrustumf wrapper. id = 160
*/
void yagl_host_glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 159, 6 * 8, 6 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 160, 6 * 8, 6 * 8);
yagl_transport_put_out_GLfloat(t, left);
yagl_transport_put_out_GLfloat(t, right);
yagl_transport_put_out_GLfloat(t, bottom);
@@ -2600,13 +2618,13 @@ void yagl_host_glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat t
}
/*
- * glLightf wrapper. id = 160
+ * glLightf wrapper. id = 161
*/
void yagl_host_glLightf(GLenum light, GLenum pname, GLfloat param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 160, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 161, 3 * 8, 3 * 8);
yagl_transport_put_out_GLenum(t, light);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_GLfloat(t, param);
@@ -2614,13 +2632,13 @@ void yagl_host_glLightf(GLenum light, GLenum pname, GLfloat param)
}
/*
- * glLightfv wrapper. id = 161
+ * glLightfv wrapper. id = 162
*/
void yagl_host_glLightfv(GLenum light, GLenum pname, const GLfloat *params, int32_t params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 161, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 162, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, light);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_array(t, params, params_count, sizeof(GLfloat));
@@ -2634,13 +2652,13 @@ void yagl_host_glLightfv(GLenum light, GLenum pname, const GLfloat *params, int3
}
/*
- * glGetLightfv wrapper. id = 162
+ * glGetLightfv wrapper. id = 163
*/
void yagl_host_glGetLightfv(GLenum light, GLenum pname, GLfloat *params, int32_t params_maxcount, int32_t *params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 162, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 163, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, light);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_array(t, params, params_maxcount, params_count, sizeof(GLfloat));
@@ -2654,26 +2672,26 @@ void yagl_host_glGetLightfv(GLenum light, GLenum pname, GLfloat *params, int32_t
}
/*
- * glLightModelf wrapper. id = 163
+ * glLightModelf wrapper. id = 164
*/
void yagl_host_glLightModelf(GLenum pname, GLfloat param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 163, 2 * 8, 2 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 164, 2 * 8, 2 * 8);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_GLfloat(t, param);
yagl_transport_end(t);
}
/*
- * glLightModelfv wrapper. id = 164
+ * glLightModelfv wrapper. id = 165
*/
void yagl_host_glLightModelfv(GLenum pname, const GLfloat *params, int32_t params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 164, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 165, 3 * 8, 1 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_array(t, params, params_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -2686,13 +2704,13 @@ void yagl_host_glLightModelfv(GLenum pname, const GLfloat *params, int32_t param
}
/*
- * glMaterialf wrapper. id = 165
+ * glMaterialf wrapper. id = 166
*/
void yagl_host_glMaterialf(GLenum face, GLenum pname, GLfloat param)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 165, 3 * 8, 3 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 166, 3 * 8, 3 * 8);
yagl_transport_put_out_GLenum(t, face);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_GLfloat(t, param);
@@ -2700,13 +2718,13 @@ void yagl_host_glMaterialf(GLenum face, GLenum pname, GLfloat param)
}
/*
- * glMaterialfv wrapper. id = 166
+ * glMaterialfv wrapper. id = 167
*/
void yagl_host_glMaterialfv(GLenum face, GLenum pname, const GLfloat *params, int32_t params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 166, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 167, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_count, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, face);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_out_array(t, params, params_count, sizeof(GLfloat));
@@ -2720,13 +2738,13 @@ void yagl_host_glMaterialfv(GLenum face, GLenum pname, const GLfloat *params, in
}
/*
- * glGetMaterialfv wrapper. id = 167
+ * glGetMaterialfv wrapper. id = 168
*/
void yagl_host_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params, int32_t params_maxcount, int32_t *params_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 167, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 168, 4 * 8, 2 * 8 + yagl_transport_array_size(params, params_maxcount, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, face);
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_array(t, params, params_maxcount, params_count, sizeof(GLfloat));
@@ -2740,37 +2758,37 @@ void yagl_host_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params, int32
}
/*
- * glShadeModel wrapper. id = 168
+ * glShadeModel wrapper. id = 169
*/
void yagl_host_glShadeModel(GLenum mode)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 168, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 169, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, mode);
yagl_transport_end(t);
}
/*
- * glLogicOp wrapper. id = 169
+ * glLogicOp wrapper. id = 170
*/
void yagl_host_glLogicOp(GLenum opcode)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 169, 1 * 8, 1 * 8);
+ yagl_transport_begin(t, yagl_api_id_gles, 170, 1 * 8, 1 * 8);
yagl_transport_put_out_GLenum(t, opcode);
yagl_transport_end(t);
}
/*
- * glMultMatrixf wrapper. id = 170
+ * glMultMatrixf wrapper. id = 171
*/
void yagl_host_glMultMatrixf(const GLfloat *m, int32_t m_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 170, 2 * 8, 0 * 8 + yagl_transport_array_size(m, m_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 171, 2 * 8, 0 * 8 + yagl_transport_array_size(m, m_count, sizeof(GLfloat)));
yagl_transport_put_out_array(t, m, m_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
do {
@@ -2782,13 +2800,13 @@ void yagl_host_glMultMatrixf(const GLfloat *m, int32_t m_count)
}
/*
- * glLoadMatrixf wrapper. id = 171
+ * glLoadMatrixf wrapper. id = 172
*/
void yagl_host_glLoadMatrixf(const GLfloat *m, int32_t m_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 171, 2 * 8, 0 * 8 + yagl_transport_array_size(m, m_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 172, 2 * 8, 0 * 8 + yagl_transport_array_size(m, m_count, sizeof(GLfloat)));
yagl_transport_put_out_array(t, m, m_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
do {
@@ -2800,13 +2818,13 @@ void yagl_host_glLoadMatrixf(const GLfloat *m, int32_t m_count)
}
/*
- * glClipPlanef wrapper. id = 172
+ * glClipPlanef wrapper. id = 173
*/
void yagl_host_glClipPlanef(GLenum plane, const GLfloat *equation, int32_t equation_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 172, 3 * 8, 1 * 8 + yagl_transport_array_size(equation, equation_count, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 173, 3 * 8, 1 * 8 + yagl_transport_array_size(equation, equation_count, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, plane);
yagl_transport_put_out_array(t, equation, equation_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -2819,13 +2837,13 @@ void yagl_host_glClipPlanef(GLenum plane, const GLfloat *equation, int32_t equat
}
/*
- * glGetClipPlanef wrapper. id = 173
+ * glGetClipPlanef wrapper. id = 174
*/
void yagl_host_glGetClipPlanef(GLenum pname, GLfloat *eqn, int32_t eqn_maxcount, int32_t *eqn_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 173, 3 * 8, 1 * 8 + yagl_transport_array_size(eqn, eqn_maxcount, sizeof(GLfloat)));
+ yagl_transport_begin(t, yagl_api_id_gles, 174, 3 * 8, 1 * 8 + yagl_transport_array_size(eqn, eqn_maxcount, sizeof(GLfloat)));
yagl_transport_put_out_GLenum(t, pname);
yagl_transport_put_in_array(t, eqn, eqn_maxcount, eqn_count, sizeof(GLfloat));
if (yagl_transport_direct(t)) {
@@ -2838,13 +2856,13 @@ void yagl_host_glGetClipPlanef(GLenum pname, GLfloat *eqn, int32_t eqn_maxcount,
}
/*
- * glUpdateOffscreenImageYAGL wrapper. id = 174
+ * glUpdateOffscreenImageYAGL wrapper. id = 175
*/
void yagl_host_glUpdateOffscreenImageYAGL(GLuint texture, uint32_t width, uint32_t height, uint32_t bpp, const void *pixels, int32_t pixels_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 174, 6 * 8, 4 * 8 + yagl_transport_array_size(pixels, pixels_count, 1));
+ yagl_transport_begin(t, yagl_api_id_gles, 175, 6 * 8, 4 * 8 + yagl_transport_array_size(pixels, pixels_count, 1));
yagl_transport_put_out_GLuint(t, texture);
yagl_transport_put_out_uint32_t(t, width);
yagl_transport_put_out_uint32_t(t, height);
@@ -2860,13 +2878,13 @@ void yagl_host_glUpdateOffscreenImageYAGL(GLuint texture, uint32_t width, uint32
}
/*
- * glGenUniformLocationYAGL wrapper. id = 175
+ * glGenUniformLocationYAGL wrapper. id = 176
*/
void yagl_host_glGenUniformLocationYAGL(uint32_t location, GLuint program, const GLchar *name, int32_t name_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 175, 4 * 8, 2 * 8 + yagl_transport_array_size(name, name_count, sizeof(GLchar)));
+ yagl_transport_begin(t, yagl_api_id_gles, 176, 4 * 8, 2 * 8 + yagl_transport_array_size(name, name_count, sizeof(GLchar)));
yagl_transport_put_out_uint32_t(t, location);
yagl_transport_put_out_GLuint(t, program);
yagl_transport_put_out_array(t, name, name_count, sizeof(GLchar));
@@ -2880,13 +2898,13 @@ void yagl_host_glGenUniformLocationYAGL(uint32_t location, GLuint program, const
}
/*
- * glDeleteUniformLocationsYAGL wrapper. id = 176
+ * glDeleteUniformLocationsYAGL wrapper. id = 177
*/
void yagl_host_glDeleteUniformLocationsYAGL(const uint32_t *locations, int32_t locations_count)
{
struct yagl_transport *t = yagl_get_transport();
- yagl_transport_begin(t, yagl_api_id_gles, 176, 2 * 8, 0 * 8 + yagl_transport_array_size(locations, locations_count, sizeof(uint32_t)));
+ yagl_transport_begin(t, yagl_api_id_gles, 177, 2 * 8, 0 * 8 + yagl_transport_array_size(locations, locations_count, sizeof(uint32_t)));
yagl_transport_put_out_array(t, locations, locations_count, sizeof(uint32_t));
if (yagl_transport_direct(t)) {
do {
diff --git a/GLES_common/yagl_host_gles_calls.h b/GLES_common/yagl_host_gles_calls.h
index 7ff9923..670fb95 100644
--- a/GLES_common/yagl_host_gles_calls.h
+++ b/GLES_common/yagl_host_gles_calls.h
@@ -263,627 +263,632 @@ void yagl_host_glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenu
void yagl_host_glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
/*
- * glGenRenderbuffers wrapper. id = 52
+ * glDrawBuffers wrapper. id = 52
+ */
+void yagl_host_glDrawBuffers(const GLenum *bufs, int32_t bufs_count);
+
+/*
+ * glGenRenderbuffers wrapper. id = 53
*/
void yagl_host_glGenRenderbuffers(const GLuint *renderbuffers, int32_t renderbuffers_count);
/*
- * glBindRenderbuffer wrapper. id = 53
+ * glBindRenderbuffer wrapper. id = 54
*/
void yagl_host_glBindRenderbuffer(GLenum target, GLuint renderbuffer);
/*
- * glRenderbufferStorage wrapper. id = 54
+ * glRenderbufferStorage wrapper. id = 55
*/
void yagl_host_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
/*
- * glGetRenderbufferParameteriv wrapper. id = 55
+ * glGetRenderbufferParameteriv wrapper. id = 56
*/
void yagl_host_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *param);
/*
- * glCreateProgram wrapper. id = 56
+ * glCreateProgram wrapper. id = 57
*/
void yagl_host_glCreateProgram(GLuint program);
/*
- * glCreateShader wrapper. id = 57
+ * glCreateShader wrapper. id = 58
*/
void yagl_host_glCreateShader(GLuint shader, GLenum type);
/*
- * glShaderSource wrapper. id = 58
+ * glShaderSource wrapper. id = 59
*/
void yagl_host_glShaderSource(GLuint shader, const GLchar *string, int32_t string_count);
/*
- * glAttachShader wrapper. id = 59
+ * glAttachShader wrapper. id = 60
*/
void yagl_host_glAttachShader(GLuint program, GLuint shader);
/*
- * glDetachShader wrapper. id = 60
+ * glDetachShader wrapper. id = 61
*/
void yagl_host_glDetachShader(GLuint program, GLuint shader);
/*
- * glCompileShader wrapper. id = 61
+ * glCompileShader wrapper. id = 62
*/
void yagl_host_glCompileShader(GLuint shader);
/*
- * glBindAttribLocation wrapper. id = 62
+ * glBindAttribLocation wrapper. id = 63
*/
void yagl_host_glBindAttribLocation(GLuint program, GLuint index, const GLchar *name, int32_t name_count);
/*
- * glGetActiveAttrib wrapper. id = 63
+ * glGetActiveAttrib wrapper. id = 64
*/
GLboolean yagl_host_glGetActiveAttrib(GLuint program, GLuint index, GLint *size, GLenum *type, GLchar *name, int32_t name_maxcount, int32_t *name_count);
/*
- * glGetActiveUniform wrapper. id = 64
+ * glGetActiveUniform wrapper. id = 65
*/
GLboolean yagl_host_glGetActiveUniform(GLuint program, GLuint index, GLint *size, GLenum *type, GLchar *name, int32_t name_maxcount, int32_t *name_count);
/*
- * glGetAttribLocation wrapper. id = 65
+ * glGetAttribLocation wrapper. id = 66
*/
int yagl_host_glGetAttribLocation(GLuint program, const GLchar *name, int32_t name_count);
/*
- * glGetProgramiv wrapper. id = 66
+ * glGetProgramiv wrapper. id = 67
*/
void yagl_host_glGetProgramiv(GLuint program, GLenum pname, GLint *param);
/*
- * glGetProgramInfoLog wrapper. id = 67
+ * glGetProgramInfoLog wrapper. id = 68
*/
GLboolean yagl_host_glGetProgramInfoLog(GLuint program, GLchar *infolog, int32_t infolog_maxcount, int32_t *infolog_count);
/*
- * glGetShaderiv wrapper. id = 68
+ * glGetShaderiv wrapper. id = 69
*/
void yagl_host_glGetShaderiv(GLuint shader, GLenum pname, GLint *param);
/*
- * glGetShaderInfoLog wrapper. id = 69
+ * glGetShaderInfoLog wrapper. id = 70
*/
GLboolean yagl_host_glGetShaderInfoLog(GLuint shader, GLchar *infolog, int32_t infolog_maxcount, int32_t *infolog_count);
/*
- * glGetUniformfv wrapper. id = 70
+ * glGetUniformfv wrapper. id = 71
*/
void yagl_host_glGetUniformfv(GLboolean tl, GLuint program, uint32_t location, GLfloat *params, int32_t params_maxcount, int32_t *params_count);
/*
- * glGetUniformiv wrapper. id = 71
+ * glGetUniformiv wrapper. id = 72
*/
void yagl_host_glGetUniformiv(GLboolean tl, GLuint program, uint32_t location, GLint *params, int32_t params_maxcount, int32_t *params_count);
/*
- * glGetUniformLocation wrapper. id = 72
+ * glGetUniformLocation wrapper. id = 73
*/
int yagl_host_glGetUniformLocation(GLuint program, const GLchar *name, int32_t name_count);
/*
- * glGetVertexAttribfv wrapper. id = 73
+ * glGetVertexAttribfv wrapper. id = 74
*/
void yagl_host_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params, int32_t params_maxcount, int32_t *params_count);
/*
- * glGetVertexAttribiv wrapper. id = 74
+ * glGetVertexAttribiv wrapper. id = 75
*/
void yagl_host_glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params, int32_t params_maxcount, int32_t *params_count);
/*
- * glLinkProgram wrapper. id = 75
+ * glLinkProgram wrapper. id = 76
*/
void yagl_host_glLinkProgram(GLuint program);
/*
- * glUniform1f wrapper. id = 76
+ * glUniform1f wrapper. id = 77
*/
void yagl_host_glUniform1f(GLboolean tl, uint32_t location, GLfloat x);
/*
- * glUniform1fv wrapper. id = 77
+ * glUniform1fv wrapper. id = 78
*/
void yagl_host_glUniform1fv(GLboolean tl, uint32_t location, const GLfloat *v, int32_t v_count);
/*
- * glUniform1i wrapper. id = 78
+ * glUniform1i wrapper. id = 79
*/
void yagl_host_glUniform1i(GLboolean tl, uint32_t location, GLint x);
/*
- * glUniform1iv wrapper. id = 79
+ * glUniform1iv wrapper. id = 80
*/
void yagl_host_glUniform1iv(GLboolean tl, uint32_t location, const GLint *v, int32_t v_count);
/*
- * glUniform2f wrapper. id = 80
+ * glUniform2f wrapper. id = 81
*/
void yagl_host_glUniform2f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y);
/*
- * glUniform2fv wrapper. id = 81
+ * glUniform2fv wrapper. id = 82
*/
void yagl_host_glUniform2fv(GLboolean tl, uint32_t location, const GLfloat *v, int32_t v_count);
/*
- * glUniform2i wrapper. id = 82
+ * glUniform2i wrapper. id = 83
*/
void yagl_host_glUniform2i(GLboolean tl, uint32_t location, GLint x, GLint y);
/*
- * glUniform2iv wrapper. id = 83
+ * glUniform2iv wrapper. id = 84
*/
void yagl_host_glUniform2iv(GLboolean tl, uint32_t location, const GLint *v, int32_t v_count);
/*
- * glUniform3f wrapper. id = 84
+ * glUniform3f wrapper. id = 85
*/
void yagl_host_glUniform3f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y, GLfloat z);
/*
- * glUniform3fv wrapper. id = 85
+ * glUniform3fv wrapper. id = 86
*/
void yagl_host_glUniform3fv(GLboolean tl, uint32_t location, const GLfloat *v, int32_t v_count);
/*
- * glUniform3i wrapper. id = 86
+ * glUniform3i wrapper. id = 87
*/
void yagl_host_glUniform3i(GLboolean tl, uint32_t location, GLint x, GLint y, GLint z);
/*
- * glUniform3iv wrapper. id = 87
+ * glUniform3iv wrapper. id = 88
*/
void yagl_host_glUniform3iv(GLboolean tl, uint32_t location, const GLint *v, int32_t v_count);
/*
- * glUniform4f wrapper. id = 88
+ * glUniform4f wrapper. id = 89
*/
void yagl_host_glUniform4f(GLboolean tl, uint32_t location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
/*
- * glUniform4fv wrapper. id = 89
+ * glUniform4fv wrapper. id = 90
*/
void yagl_host_glUniform4fv(GLboolean tl, uint32_t location, const GLfloat *v, int32_t v_count);
/*
- * glUniform4i wrapper. id = 90
+ * glUniform4i wrapper. id = 91
*/
void yagl_host_glUniform4i(GLboolean tl, uint32_t location, GLint x, GLint y, GLint z, GLint w);
/*
- * glUniform4iv wrapper. id = 91
+ * glUniform4iv wrapper. id = 92
*/
void yagl_host_glUniform4iv(GLboolean tl, uint32_t location, const GLint *v, int32_t v_count);
/*
- * glUniformMatrix2fv wrapper. id = 92
+ * glUniformMatrix2fv wrapper. id = 93
*/
void yagl_host_glUniformMatrix2fv(GLboolean tl, uint32_t location, GLboolean transpose, const GLfloat *value, int32_t value_count);
/*
- * glUniformMatrix3fv wrapper. id = 93
+ * glUniformMatrix3fv wrapper. id = 94
*/
void yagl_host_glUniformMatrix3fv(GLboolean tl, uint32_t location, GLboolean transpose, const GLfloat *value, int32_t value_count);
/*
- * glUniformMatrix4fv wrapper. id = 94
+ * glUniformMatrix4fv wrapper. id = 95
*/
void yagl_host_glUniformMatrix4fv(GLboolean tl, uint32_t location, GLboolean transpose, const GLfloat *value, int32_t value_count);
/*
- * glUseProgram wrapper. id = 95
+ * glUseProgram wrapper. id = 96
*/
void yagl_host_glUseProgram(GLuint program);
/*
- * glValidateProgram wrapper. id = 96
+ * glValidateProgram wrapper. id = 97
*/
void yagl_host_glValidateProgram(GLuint program);
/*
- * glVertexAttrib1f wrapper. id = 97
+ * glVertexAttrib1f wrapper. id = 98
*/
void yagl_host_glVertexAttrib1f(GLuint indx, GLfloat x);
/*
- * glVertexAttrib1fv wrapper. id = 98
+ * glVertexAttrib1fv wrapper. id = 99
*/
void yagl_host_glVertexAttrib1fv(GLuint indx, const GLfloat *values, int32_t values_count);
/*
- * glVertexAttrib2f wrapper. id = 99
+ * glVertexAttrib2f wrapper. id = 100
*/
void yagl_host_glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y);
/*
- * glVertexAttrib2fv wrapper. id = 100
+ * glVertexAttrib2fv wrapper. id = 101
*/
void yagl_host_glVertexAttrib2fv(GLuint indx, const GLfloat *values, int32_t values_count);
/*
- * glVertexAttrib3f wrapper. id = 101
+ * glVertexAttrib3f wrapper. id = 102
*/
void yagl_host_glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z);
/*
- * glVertexAttrib3fv wrapper. id = 102
+ * glVertexAttrib3fv wrapper. id = 103
*/
void yagl_host_glVertexAttrib3fv(GLuint indx, const GLfloat *values, int32_t values_count);
/*
- * glVertexAttrib4f wrapper. id = 103
+ * glVertexAttrib4f wrapper. id = 104
*/
void yagl_host_glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
/*
- * glVertexAttrib4fv wrapper. id = 104
+ * glVertexAttrib4fv wrapper. id = 105
*/
void yagl_host_glVertexAttrib4fv(GLuint indx, const GLfloat *values, int32_t values_count);
/*
- * glGetIntegerv wrapper. id = 105
+ * glGetIntegerv wrapper. id = 106
*/
void yagl_host_glGetIntegerv(GLenum pname, GLint *params, int32_t params_maxcount, int32_t *params_count);
/*
- * glGetFloatv wrapper. id = 106
+ * glGetFloatv wrapper. id = 107
*/
void yagl_host_glGetFloatv(GLenum pname, GLfloat *params, int32_t params_maxcount, int32_t *params_count);
/*
- * glGetString wrapper. id = 107
+ * glGetString wrapper. id = 108
*/
void yagl_host_glGetString(GLenum name, GLchar *str, int32_t str_maxcount, int32_t *str_count);
/*
- * glIsEnabled wrapper. id = 108
+ * glIsEnabled wrapper. id = 109
*/
GLboolean yagl_host_glIsEnabled(GLenum cap);
/*
- * glDeleteObjects wrapper. id = 109
+ * glDeleteObjects wrapper. id = 110
*/
void yagl_host_glDeleteObjects(const GLuint *objects, int32_t objects_count);
/*
- * glBlendEquation wrapper. id = 110
+ * glBlendEquation wrapper. id = 111
*/
void yagl_host_glBlendEquation(GLenum mode);
/*
- * glBlendEquationSeparate wrapper. id = 111
+ * glBlendEquationSeparate wrapper. id = 112
*/
void yagl_host_glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
/*
- * glBlendFunc wrapper. id = 112
+ * glBlendFunc wrapper. id = 113
*/
void yagl_host_glBlendFunc(GLenum sfactor, GLenum dfactor);
/*
- * glBlendFuncSeparate wrapper. id = 113
+ * glBlendFuncSeparate wrapper. id = 114
*/
void yagl_host_glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
/*
- * glBlendColor wrapper. id = 114
+ * glBlendColor wrapper. id = 115
*/
void yagl_host_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/*
- * glClear wrapper. id = 115
+ * glClear wrapper. id = 116
*/
void yagl_host_glClear(GLbitfield mask);
/*
- * glClearColor wrapper. id = 116
+ * glClearColor wrapper. id = 117
*/
void yagl_host_glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/*
- * glClearDepthf wrapper. id = 117
+ * glClearDepthf wrapper. id = 118
*/
void yagl_host_glClearDepthf(GLclampf depth);
/*
- * glClearStencil wrapper. id = 118
+ * glClearStencil wrapper. id = 119
*/
void yagl_host_glClearStencil(GLint s);
/*
- * glColorMask wrapper. id = 119
+ * glColorMask wrapper. id = 120
*/
void yagl_host_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
/*
- * glCullFace wrapper. id = 120
+ * glCullFace wrapper. id = 121
*/
void yagl_host_glCullFace(GLenum mode);
/*
- * glDepthFunc wrapper. id = 121
+ * glDepthFunc wrapper. id = 122
*/
void yagl_host_glDepthFunc(GLenum func);
/*
- * glDepthMask wrapper. id = 122
+ * glDepthMask wrapper. id = 123
*/
void yagl_host_glDepthMask(GLboolean flag);
/*
- * glDepthRangef wrapper. id = 123
+ * glDepthRangef wrapper. id = 124
*/
void yagl_host_glDepthRangef(GLclampf zNear, GLclampf zFar);
/*
- * glEnable wrapper. id = 124
+ * glEnable wrapper. id = 125
*/
void yagl_host_glEnable(GLenum cap);
/*
- * glDisable wrapper. id = 125
+ * glDisable wrapper. id = 126
*/
void yagl_host_glDisable(GLenum cap);
/*
- * glFlush wrapper. id = 126
+ * glFlush wrapper. id = 127
*/
void yagl_host_glFlush();
/*
- * glFrontFace wrapper. id = 127
+ * glFrontFace wrapper. id = 128
*/
void yagl_host_glFrontFace(GLenum mode);
/*
- * glGenerateMipmap wrapper. id = 128
+ * glGenerateMipmap wrapper. id = 129
*/
void yagl_host_glGenerateMipmap(GLenum target);
/*
- * glHint wrapper. id = 129
+ * glHint wrapper. id = 130
*/
void yagl_host_glHint(GLenum target, GLenum mode);
/*
- * glLineWidth wrapper. id = 130
+ * glLineWidth wrapper. id = 131
*/
void yagl_host_glLineWidth(GLfloat width);
/*
- * glPixelStorei wrapper. id = 131
+ * glPixelStorei wrapper. id = 132
*/
void yagl_host_glPixelStorei(GLenum pname, GLint param);
/*
- * glPolygonOffset wrapper. id = 132
+ * glPolygonOffset wrapper. id = 133
*/
void yagl_host_glPolygonOffset(GLfloat factor, GLfloat units);
/*
- * glScissor wrapper. id = 133
+ * glScissor wrapper. id = 134
*/
void yagl_host_glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
/*
- * glStencilFunc wrapper. id = 134
+ * glStencilFunc wrapper. id = 135
*/
void yagl_host_glStencilFunc(GLenum func, GLint ref, GLuint mask);
/*
- * glStencilMask wrapper. id = 135
+ * glStencilMask wrapper. id = 136
*/
void yagl_host_glStencilMask(GLuint mask);
/*
- * glStencilOp wrapper. id = 136
+ * glStencilOp wrapper. id = 137
*/
void yagl_host_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass);
/*
- * glSampleCoverage wrapper. id = 137
+ * glSampleCoverage wrapper. id = 138
*/
void yagl_host_glSampleCoverage(GLclampf value, GLboolean invert);
/*
- * glViewport wrapper. id = 138
+ * glViewport wrapper. id = 139
*/
void yagl_host_glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
/*
- * glStencilFuncSeparate wrapper. id = 139
+ * glStencilFuncSeparate wrapper. id = 140
*/
void yagl_host_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
/*
- * glStencilMaskSeparate wrapper. id = 140
+ * glStencilMaskSeparate wrapper. id = 141
*/
void yagl_host_glStencilMaskSeparate(GLenum face, GLuint mask);
/*
- * glStencilOpSeparate wrapper. id = 141
+ * glStencilOpSeparate wrapper. id = 142
*/
void yagl_host_glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
/*
- * glPointSize wrapper. id = 142
+ * glPointSize wrapper. id = 143
*/
void yagl_host_glPointSize(GLfloat size);
/*
- * glAlphaFunc wrapper. id = 143
+ * glAlphaFunc wrapper. id = 144
*/
void yagl_host_glAlphaFunc(GLenum func, GLclampf ref);
/*
- * glMatrixMode wrapper. id = 144
+ * glMatrixMode wrapper. id = 145
*/
void yagl_host_glMatrixMode(GLenum mode);
/*
- * glLoadIdentity wrapper. id = 145
+ * glLoadIdentity wrapper. id = 146
*/
void yagl_host_glLoadIdentity();
/*
- * glPopMatrix wrapper. id = 146
+ * glPopMatrix wrapper. id = 147
*/
void yagl_host_glPopMatrix();
/*
- * glPushMatrix wrapper. id = 147
+ * glPushMatrix wrapper. id = 148
*/
void yagl_host_glPushMatrix();
/*
- * glRotatef wrapper. id = 148
+ * glRotatef wrapper. id = 149
*/
void yagl_host_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
/*
- * glTranslatef wrapper. id = 149
+ * glTranslatef wrapper. id = 150
*/
void yagl_host_glTranslatef(GLfloat x, GLfloat y, GLfloat z);
/*
- * glScalef wrapper. id = 150
+ * glScalef wrapper. id = 151
*/
void yagl_host_glScalef(GLfloat x, GLfloat y, GLfloat z);
/*
- * glOrthof wrapper. id = 151
+ * glOrthof wrapper. id = 152
*/
void yagl_host_glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
/*
- * glColor4f wrapper. id = 152
+ * glColor4f wrapper. id = 153
*/
void yagl_host_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
/*
- * glColor4ub wrapper. id = 153
+ * glColor4ub wrapper. id = 154
*/
void yagl_host_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
/*
- * glNormal3f wrapper. id = 154
+ * glNormal3f wrapper. id = 155
*/
void yagl_host_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
/*
- * glPointParameterf wrapper. id = 155
+ * glPointParameterf wrapper. id = 156
*/
void yagl_host_glPointParameterf(GLenum pname, GLfloat param);
/*
- * glPointParameterfv wrapper. id = 156
+ * glPointParameterfv wrapper. id = 157
*/
void yagl_host_glPointParameterfv(GLenum pname, const GLfloat *params, int32_t params_count);
/*
- * glFogf wrapper. id = 157
+ * glFogf wrapper. id = 158
*/
void yagl_host_glFogf(GLenum pname, GLfloat param);
/*
- * glFogfv wrapper. id = 158
+ * glFogfv wrapper. id = 159
*/
void yagl_host_glFogfv(GLenum pname, const GLfloat *params, int32_t params_count);
/*
- * glFrustumf wrapper. id = 159
+ * glFrustumf wrapper. id = 160
*/
void yagl_host_glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
/*
- * glLightf wrapper. id = 160
+ * glLightf wrapper. id = 161
*/
void yagl_host_glLightf(GLenum light, GLenum pname, GLfloat param);
/*
- * glLightfv wrapper. id = 161
+ * glLightfv wrapper. id = 162
*/
void yagl_host_glLightfv(GLenum light, GLenum pname, const GLfloat *params, int32_t params_count);
/*
- * glGetLightfv wrapper. id = 162
+ * glGetLightfv wrapper. id = 163
*/
void yagl_host_glGetLightfv(GLenum light, GLenum pname, GLfloat *params, int32_t params_maxcount, int32_t *params_count);
/*
- * glLightModelf wrapper. id = 163
+ * glLightModelf wrapper. id = 164
*/
void yagl_host_glLightModelf(GLenum pname, GLfloat param);
/*
- * glLightModelfv wrapper. id = 164
+ * glLightModelfv wrapper. id = 165
*/
void yagl_host_glLightModelfv(GLenum pname, const GLfloat *params, int32_t params_count);
/*
- * glMaterialf wrapper. id = 165
+ * glMaterialf wrapper. id = 166
*/
void yagl_host_glMaterialf(GLenum face, GLenum pname, GLfloat param);
/*
- * glMaterialfv wrapper. id = 166
+ * glMaterialfv wrapper. id = 167
*/
void yagl_host_glMaterialfv(GLenum face, GLenum pname, const GLfloat *params, int32_t params_count);
/*
- * glGetMaterialfv wrapper. id = 167
+ * glGetMaterialfv wrapper. id = 168
*/
void yagl_host_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params, int32_t params_maxcount, int32_t *params_count);
/*
- * glShadeModel wrapper. id = 168
+ * glShadeModel wrapper. id = 169
*/
void yagl_host_glShadeModel(GLenum mode);
/*
- * glLogicOp wrapper. id = 169
+ * glLogicOp wrapper. id = 170
*/
void yagl_host_glLogicOp(GLenum opcode);
/*
- * glMultMatrixf wrapper. id = 170
+ * glMultMatrixf wrapper. id = 171
*/
void yagl_host_glMultMatrixf(const GLfloat *m, int32_t m_count);
/*
- * glLoadMatrixf wrapper. id = 171
+ * glLoadMatrixf wrapper. id = 172
*/
void yagl_host_glLoadMatrixf(const GLfloat *m, int32_t m_count);
/*
- * glClipPlanef wrapper. id = 172
+ * glClipPlanef wrapper. id = 173
*/
void yagl_host_glClipPlanef(GLenum plane, const GLfloat *equation, int32_t equation_count);
/*
- * glGetClipPlanef wrapper. id = 173
+ * glGetClipPlanef wrapper. id = 174
*/
void yagl_host_glGetClipPlanef(GLenum pname, GLfloat *eqn, int32_t eqn_maxcount, int32_t *eqn_count);
/*
- * glUpdateOffscreenImageYAGL wrapper. id = 174
+ * glUpdateOffscreenImageYAGL wrapper. id = 175
*/
void yagl_host_glUpdateOffscreenImageYAGL(GLuint texture, uint32_t width, uint32_t height, uint32_t bpp, const void *pixels, int32_t pixels_count);
/*
- * glGenUniformLocationYAGL wrapper. id = 175
+ * glGenUniformLocationYAGL wrapper. id = 176
*/
void yagl_host_glGenUniformLocationYAGL(uint32_t location, GLuint program, const GLchar *name, int32_t name_count);
/*
- * glDeleteUniformLocationsYAGL wrapper. id = 176
+ * glDeleteUniformLocationsYAGL wrapper. id = 177
*/
void yagl_host_glDeleteUniformLocationsYAGL(const uint32_t *locations, int32_t locations_count);
diff --git a/GLESv1_CM/yagl_gles1_context.c b/GLESv1_CM/yagl_gles1_context.c
index 8b9cb61..5e84507 100644
--- a/GLESv1_CM/yagl_gles1_context.c
+++ b/GLESv1_CM/yagl_gles1_context.c
@@ -312,7 +312,7 @@ static GLchar *yagl_gles1_context_get_extensions(struct yagl_gles_context *ctx)
"GL_OES_depth_texture "
"GL_OES_framebuffer_object GL_OES_depth24 GL_OES_depth32 "
"GL_OES_rgb8_rgba8 GL_OES_stencil1 GL_OES_stencil4 "
- "GL_OES_stencil8 GL_OES_EGL_image GL_ANGLE_framebuffer_blit ";
+ "GL_OES_stencil8 GL_OES_EGL_image GL_ANGLE_framebuffer_blit GL_EXT_draw_buffers ";
const GLchar *packed_depth_stencil = "GL_OES_packed_depth_stencil ";
const GLchar *texture_npot = "GL_OES_texture_npot ";
const GLchar *texture_filter_anisotropic = "GL_EXT_texture_filter_anisotropic ";
diff --git a/GLESv2/yagl_gles2_context.c b/GLESv2/yagl_gles2_context.c
index 1efc132..b32f886 100644
--- a/GLESv2/yagl_gles2_context.c
+++ b/GLESv2/yagl_gles2_context.c
@@ -112,7 +112,7 @@ static GLchar *yagl_gles2_context_get_extensions(struct yagl_gles_context *ctx)
const GLchar *mandatory_extensions =
"GL_OES_EGL_image GL_OES_depth24 GL_OES_depth32 "
"GL_OES_texture_float GL_OES_texture_float_linear "
- "GL_EXT_texture_format_BGRA8888 GL_OES_depth_texture GL_ANGLE_framebuffer_blit ";
+ "GL_EXT_texture_format_BGRA8888 GL_OES_depth_texture GL_ANGLE_framebuffer_blit GL_EXT_draw_buffers ";
const GLchar *packed_depth_stencil = "GL_OES_packed_depth_stencil ";
const GLchar *texture_npot = "GL_OES_texture_npot ";
const GLchar *texture_rectangle = "GL_ARB_texture_rectangle ";