summaryrefslogtreecommitdiffstats
path: root/ppapi/c/dev/ppb_opengles2ext_dev.h
blob: 2aa172fabc18c8e070996711aeab19dc35357245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file is auto-generated from
// gpu/command_buffer/build_gles2_cmd_buffer.py
// DO NOT EDIT!

// OpenGL ES interface.
#ifndef C_DEV_PPB_OPENGLES2EXT_DEV_H_
#define C_DEV_PPB_OPENGLES2EXT_DEV_H_

#include "ppapi/c/pp_resource.h"
#include "ppapi/c/ppb_opengles2.h"

#define PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE_1_0 \
    "PPB_OpenGLES2InstancedArrays(Dev);1.0"
#define PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE \
    PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE_1_0

struct PPB_OpenGLES2InstancedArrays_Dev {
  void (*DrawArraysInstancedANGLE)(
      PP_Resource context, GLenum mode, GLint first, GLsizei count,
      GLsizei primcount);
  void (*DrawElementsInstancedANGLE)(
      PP_Resource context, GLenum mode, GLsizei count, GLenum type,
      const void* indices, GLsizei primcount);
  void (*VertexAttribDivisorANGLE)(
      PP_Resource context, GLuint index, GLuint divisor);
};

#define PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE_1_0 \
    "PPB_OpenGLES2FramebufferBlit(Dev);1.0"
#define PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE \
    PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE_1_0

struct PPB_OpenGLES2FramebufferBlit_Dev {
  void (*BlitFramebufferEXT)(
      PP_Resource context, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
      GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask,
      GLenum filter);
};

#define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0 \
    "PPB_OpenGLES2FramebufferMultisample(Dev);1.0"
#define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE \
    PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0

struct PPB_OpenGLES2FramebufferMultisample_Dev {
  void (*RenderbufferStorageMultisampleEXT)(
      PP_Resource context, GLenum target, GLsizei samples,
      GLenum internalformat, GLsizei width, GLsizei height);
};

#define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0 \
    "PPB_OpenGLES2ChromiumEnableFeature(Dev);1.0"
#define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE \
    PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0

struct PPB_OpenGLES2ChromiumEnableFeature_Dev {
  GLboolean (*EnableFeatureCHROMIUM)(PP_Resource context, const char* feature);
};

#define PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0 \
    "PPB_OpenGLES2ChromiumMapSub(Dev);1.0"
#define PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE \
    PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0

struct PPB_OpenGLES2ChromiumMapSub_Dev {
  void* (*MapBufferSubDataCHROMIUM)(
      PP_Resource context, GLuint target, GLintptr offset, GLsizeiptr size,
      GLenum access);
  void (*UnmapBufferSubDataCHROMIUM)(PP_Resource context, const void* mem);
  void* (*MapTexSubImage2DCHROMIUM)(
      PP_Resource context, GLenum target, GLint level, GLint xoffset,
      GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,
      GLenum access);
  void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem);
};

#endif  // C_DEV_PPB_OPENGLES2EXT_DEV_H_