[GB.OPENGL]

* BUG: Add synonymous starting with an underscore for constants beginning 
  with a digit.

[GB.OPENGL.GLSL]
* BUG: Remove the "GL_" prefix in all constants.


git-svn-id: svn://localhost/gambas/trunk@5084 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2012-08-27 03:02:43 +00:00
parent 43c441d15c
commit 4d8d507276
2 changed files with 20 additions and 15 deletions

View file

@ -522,6 +522,11 @@ GB_DESC Cgl[] =
GB_CONSTANT("3D_COLOR", "i", GL_3D_COLOR),
GB_CONSTANT("3D_COLOR_TEXTURE", "i", GL_3D_COLOR_TEXTURE),
GB_CONSTANT("4D_COLOR_TEXTURE", "i", GL_4D_COLOR_TEXTURE),
GB_CONSTANT("_2D", "i", GL_2D),
GB_CONSTANT("_3D", "i", GL_3D),
GB_CONSTANT("_3D_COLOR", "i", GL_3D_COLOR),
GB_CONSTANT("_3D_COLOR_TEXTURE", "i", GL_3D_COLOR_TEXTURE),
GB_CONSTANT("_4D_COLOR_TEXTURE", "i", GL_4D_COLOR_TEXTURE),
GB_CONSTANT("POINT_TOKEN", "i", GL_POINT_TOKEN),
GB_CONSTANT("LINE_TOKEN", "i", GL_LINE_TOKEN),
GB_CONSTANT("LINE_RESET_TOKEN", "i", GL_LINE_RESET_TOKEN),

View file

@ -94,21 +94,21 @@ GB_DESC Cgl[] =
GB_STATIC_METHOD("VertexAttrib4fv", NULL, GLVERTEXATTRIB4FV, "(Index)i(V)Float[]"),
/* Contants */
GB_CONSTANT("GL_ACTIVE_ATTRIBUTES", "i", GL_ACTIVE_ATTRIBUTES),
GB_CONSTANT("GL_ACTIVE_ATTRIBUTE_MAX_LENGTH", "i", GL_ACTIVE_ATTRIBUTE_MAX_LENGTH),
GB_CONSTANT("GL_ACTIVE_UNIFORMS", "i", GL_ACTIVE_UNIFORMS),
GB_CONSTANT("GL_ACTIVE_UNIFORM_MAX_LENGTH", "i", GL_ACTIVE_UNIFORM_MAX_LENGTH),
GB_CONSTANT("GL_ATTACHED_SHADERS", "i", GL_ATTACHED_SHADERS),
GB_CONSTANT("GL_COMPILE_STATUS", "i", GL_COMPILE_STATUS),
GB_CONSTANT("GL_CURRENT_PROGRAM", "i", GL_CURRENT_PROGRAM),
GB_CONSTANT("GL_DELETE_STATUS", "i", GL_DELETE_STATUS),
GB_CONSTANT("GL_FRAGMENT_SHADER", "i", GL_FRAGMENT_SHADER),
GB_CONSTANT("GL_INFO_LOG_LENGTH", "i", GL_INFO_LOG_LENGTH),
GB_CONSTANT("GL_LINK_STATUS", "i", GL_LINK_STATUS),
GB_CONSTANT("GL_SHADER_SOURCE_LENGTH", "i", GL_SHADER_SOURCE_LENGTH),
GB_CONSTANT("GL_SHADER_TYPE", "i", GL_SHADER_TYPE),
GB_CONSTANT("GL_VALIDATE_STATUS", "i", GL_VALIDATE_STATUS),
GB_CONSTANT("GL_VERTEX_SHADER", "i", GL_VERTEX_SHADER),
GB_CONSTANT("ACTIVE_ATTRIBUTES", "i", GL_ACTIVE_ATTRIBUTES),
GB_CONSTANT("ACTIVE_ATTRIBUTE_MAX_LENGTH", "i", GL_ACTIVE_ATTRIBUTE_MAX_LENGTH),
GB_CONSTANT("ACTIVE_UNIFORMS", "i", GL_ACTIVE_UNIFORMS),
GB_CONSTANT("ACTIVE_UNIFORM_MAX_LENGTH", "i", GL_ACTIVE_UNIFORM_MAX_LENGTH),
GB_CONSTANT("ATTACHED_SHADERS", "i", GL_ATTACHED_SHADERS),
GB_CONSTANT("COMPILE_STATUS", "i", GL_COMPILE_STATUS),
GB_CONSTANT("CURRENT_PROGRAM", "i", GL_CURRENT_PROGRAM),
GB_CONSTANT("DELETE_STATUS", "i", GL_DELETE_STATUS),
GB_CONSTANT("FRAGMENT_SHADER", "i", GL_FRAGMENT_SHADER),
GB_CONSTANT("INFO_LOG_LENGTH", "i", GL_INFO_LOG_LENGTH),
GB_CONSTANT("LINK_STATUS", "i", GL_LINK_STATUS),
GB_CONSTANT("SHADER_SOURCE_LENGTH", "i", GL_SHADER_SOURCE_LENGTH),
GB_CONSTANT("SHADER_TYPE", "i", GL_SHADER_TYPE),
GB_CONSTANT("VALIDATE_STATUS", "i", GL_VALIDATE_STATUS),
GB_CONSTANT("VERTEX_SHADER", "i", GL_VERTEX_SHADER),
GB_END_DECLARE
};