Added rcGetGLString token to renderControl to query a GL string constant from the current context from the host. Implement glGetString functinality in EGL so that the string value can be cached in the context structure and also implementation can be shared between GLESv1 and GLESv2. Also, fixed clientAPI context initialization check in eglMakeCurrent. The check was for the previously bounded context instead for the newly bounded context. Change-Id: I41c0b4ad462c9ad5bd5c66719b41509bb1b7a947
40 lines
779 B
Plaintext
40 lines
779 B
Plaintext
GLOBAL
|
|
base_opcode 10000
|
|
encoder_headers <stdint.h> <EGL/egl.h> "glUtils.h"
|
|
|
|
rcGetEGLVersion
|
|
dir major out
|
|
len major sizeof(EGLint)
|
|
dir minor out
|
|
len minor sizeof(EGLint)
|
|
|
|
rcQueryEGLString
|
|
dir buffer out
|
|
len buffer bufferSize
|
|
|
|
rcGetGLString
|
|
dir buffer out
|
|
len buffer bufferSize
|
|
|
|
rcGetNumConfigs
|
|
dir numAttribs out
|
|
len numAttribs sizeof(uint32_t)
|
|
|
|
rcGetConfigs
|
|
dir buffer out
|
|
len buffer bufSize
|
|
|
|
rcChooseConfig
|
|
dir attribs in
|
|
len attribs attribs_size
|
|
dir configs out
|
|
len configs configs_size
|
|
|
|
rcReadColorBuffer
|
|
dir pixels out
|
|
len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
|
|
|
|
rcUpdateColorBuffer
|
|
dir pixels in
|
|
len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
|