Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs #73

Merged
merged 6 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://github.com/JuliaGL/ModernGL.jl/workflows/CI/badge.svg?branch=master)](https://github.com/JuliaGL/ModernGL.jl/actions)

OpenGL bindings for OpenGL 3.0 and upwards. As OpenGL 3.0 has a lot of overlaps with OpenGL 2.1, OpenGL 2.1 is partly supported as well.
OpenGL bindings for OpenGL 3.0 through 4.6. As OpenGL 3.0 has a lot of overlaps with OpenGL 2.1, OpenGL 2.1 is partly supported as well.

The philosophy is to keep this library strictly a low-level wrapper, so you won't find any error handling (besides for the function loading itself) or abstractions in this package.

Expand Down
16 changes: 16 additions & 0 deletions src/glConstants.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,13 @@ const GL_RESET_NOTIFICATION_STRATEGY = convert(
const GL_LOSE_CONTEXT_ON_RESET = convert(GLenum, 0x8252)
const GL_NO_RESET_NOTIFICATION = convert(GLenum, 0x8261)
const GL_CONTEXT_LOST = convert(GLenum, 0x0507)
const GL_MAP_PERSISTENT_BIT = convert(GLbitfield, 0x0040)
const GL_MAP_COHERENT_BIT = convert(GLbitfield, 0x0080)
const GL_DYNAMIC_STORAGE_BIT = convert(GLbitfield, 0x0100)
const GL_CLIENT_STORAGE_BIT = convert(GLbitfield, 0x0200)
const GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT = convert(GLbitfield, 0x000004000)
const GL_BUFFER_IMMUTABLE_STORAGE = convert(GLenum, 0x821F)
const GL_BUFFER_STORAGE_FLAGS = convert(GLenum, 0x8220)
const GL_QUERY_BUFFER = convert(GLenum, 0x9192)
const GL_LOCATION_COMPONENT = convert(GLenum, 0x934A)
const GL_TRANSFORM_FEEDBACK_BUFFER_INDEX = convert(GLenum, 0x934B)
Expand Down Expand Up @@ -1752,6 +1759,10 @@ const GL_TEXTURE_MAX_ANISOTROPY = convert(
const GL_MAX_TEXTURE_MAX_ANISOTROPY = convert(GLenum, 0x84FF)
const GL_POLYGON_OFFSET_CLAMP = convert(GLenum, 0x8E1B)
const GL_CONTEXT_FLAG_NO_ERROR_BIT = convert(GLbitfield, 0x00000008)
const GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = convert(GLenum, 0x8E8E)
const GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = convert(GLenum, 0x8E8F)
const GL_COMPRESSED_RGBA_BPTC_UNORM = convert(GLenum, 0x8E8C)
const GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = convert(GLenum, 0x8E8D)
end #Enum macro end

export GL_MAP1_GRID_SEGMENTS
Expand Down Expand Up @@ -3472,6 +3483,9 @@ export GL_GUILTY_CONTEXT_RESET, GL_INNOCENT_CONTEXT_RESET, GL_UNKNOWN_CONTEXT_RE
GL_CONTEXT_ROBUST_ACCESS, GL_RESET_NOTIFICATION_STRATEGY,
GL_LOSE_CONTEXT_ON_RESET, GL_NO_RESET_NOTIFICATION,
GL_CONTEXT_LOST
export GL_MAP_PERSISTENT_BIT, GL_MAP_COHERENT_BIT, GL_DYNAMIC_STORAGE_BIT,
GL_CLIENT_STORAGE_BIT, GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT,
GL_BUFFER_IMMUTABLE_STORAGE, GL_BUFFER_STORAGE_FLAGS
export GL_SPIR_V_BINARY, GL_SPIR_V_EXTENSIONS, GL_NUM_SPIR_V_EXTENSIONS
export GL_VERTICES_SUBMITTED, GL_PRIMITIVES_SUBMITTED, GL_VERTEX_SHADER_INVOCATIONS,
GL_TESS_CONTROL_SHADER_PATCHES, GL_TESS_EVALUATION_SHADER_INVOCATIONS,
Expand All @@ -3481,3 +3495,5 @@ export GL_TRANSFORM_FEEDBACK_OVERFLOW, GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW
export GL_TEXTURE_MAX_ANISOTROPY, GL_MAX_TEXTURE_MAX_ANISOTROPY
export GL_POLYGON_OFFSET_CLAMP
export GL_CONTEXT_FLAG_NO_ERROR_BIT
export GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT, GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT,
GL_COMPRESSED_RGBA_BPTC_UNORM, GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM
2 changes: 1 addition & 1 deletion src/glTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const GLhalf = Cushort
const GLenum = Cuint
const GLboolean = Cuchar
const GLclampf = Cfloat
const GLsizei = Cssize_t
const GLsizei = Cint
const GLsync = Ptr{Cvoid}
const GLuint64 = Culonglong
const GLclampd = Cdouble
Expand Down