summaryrefslogtreecommitdiff
path: root/GLESv1_CM
diff options
context:
space:
mode:
authorStanislav Vorobiov <s.vorobiov@samsung.com>2013-11-20 11:59:52 +0400
committerStanislav Vorobiov <s.vorobiov@samsung.com>2014-01-16 13:47:53 +0400
commit28c5d5b569547541c4cb9a564c777068b417c89c (patch)
treebe796349fece9d74b4b6cf2132a7d9af03c74557 /GLESv1_CM
parentd8417747313998a714295d34162585a75afbfc2e (diff)
downloademulator-yagl-28c5d5b569547541c4cb9a564c777068b417c89c.tar.gz
emulator-yagl-28c5d5b569547541c4cb9a564c777068b417c89c.tar.bz2
emulator-yagl-28c5d5b569547541c4cb9a564c777068b417c89c.zip
YaGL: Basic GL_OES_texture_3D functionality implemented
Change-Id: I764c9ab539a0b0736506648d3d72b0a6deef2711
Diffstat (limited to 'GLESv1_CM')
-rw-r--r--GLESv1_CM/yagl_gles1_context.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/GLESv1_CM/yagl_gles1_context.c b/GLESv1_CM/yagl_gles1_context.c
index 227363a..b637194 100644
--- a/GLESv1_CM/yagl_gles1_context.c
+++ b/GLESv1_CM/yagl_gles1_context.c
@@ -24,6 +24,7 @@
static const GLchar *blend_subtract_ext = "GL_OES_blend_subtract";
static const GLchar *blend_equation_separate_ext = "GL_OES_blend_equation_separate";
static const GLchar *blend_func_separate_ext = "GL_OES_blend_func_separate";
+static const GLchar *blend_minmax_ext = "GL_EXT_blend_minmax";
static const GLchar *element_index_uint_ext = "GL_OES_element_index_uint";
static const GLchar *texture_mirrored_repeat_ext = "GL_OES_texture_mirrored_repeat";
static const GLchar *texture_format_bgra8888_ext = "GL_EXT_texture_format_BGRA8888";
@@ -61,6 +62,7 @@ static const GLchar **yagl_gles1_context_get_extensions(struct yagl_gles1_contex
extensions[i++] = blend_subtract_ext;
extensions[i++] = blend_equation_separate_ext;
extensions[i++] = blend_func_separate_ext;
+ extensions[i++] = blend_minmax_ext;
extensions[i++] = element_index_uint_ext;
extensions[i++] = texture_mirrored_repeat_ext;
extensions[i++] = texture_format_bgra8888_ext;
@@ -1286,6 +1288,23 @@ static int yagl_gles1_context_acquire_binded_buffer(struct yagl_gles_context *ct
return 0;
}
+static int yagl_gles1_context_validate_texture_target(struct yagl_gles_context *ctx,
+ GLenum target,
+ yagl_gles_texture_target *texture_target)
+{
+ return 0;
+}
+
+static int yagl_gles1_context_get_stride(struct yagl_gles_context *ctx,
+ GLsizei alignment,
+ GLsizei width,
+ GLenum format,
+ GLenum type,
+ GLsizei *stride)
+{
+ return 0;
+}
+
struct yagl_client_context *yagl_gles1_context_create(struct yagl_sharegroup *sg)
{
struct yagl_gles1_context *gles1_ctx;
@@ -1313,6 +1332,8 @@ struct yagl_client_context *yagl_gles1_context_create(struct yagl_sharegroup *sg
gles1_ctx->base.bind_buffer = &yagl_gles1_context_bind_buffer;
gles1_ctx->base.unbind_buffer = &yagl_gles1_context_unbind_buffer;
gles1_ctx->base.acquire_binded_buffer = &yagl_gles1_context_acquire_binded_buffer;
+ gles1_ctx->base.validate_texture_target = &yagl_gles1_context_validate_texture_target;
+ gles1_ctx->base.get_stride = &yagl_gles1_context_get_stride;
YAGL_LOG_FUNC_EXIT("%p", gles1_ctx);