Cargo Features

gles30 has no features set by default.

[dependencies]
gles30 = { version = "0.5.2", features = ["global_loader", "struct_loader", "GL_KHR_debug", "debug_trace_calls", "debug_automatic_glGetError", "inline", "inline_always", "bytemuck", "log", "chlorine"] }
global_loader

Load and call GL globally

Affects gles30::global_commands

struct_loader

Load and call GL as a struct

Affects gles30::struct_commands

GL_KHR_debug

Enable loading/usage of GL_KHR_debug enums/commands

Affects gles30::enums.GL_BUFFER_KHR, gles30::enums.GL_CONTEXT_FLAG_DEBUG_BIT_KHR, gles30::enums.GL_DEBUG_CALLBACK_FUNCTION_KHR, gles30::enums.GL_DEBUG_CALLBACK_USER_PARAM_KHR, gles30::enums.GL_DEBUG_GROUP_STACK_DEPTH_KHR, gles30::enums.GL_DEBUG_LOGGED_MESSAGES_KHR, gles30::enums.GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR, gles30::enums.GL_DEBUG_OUTPUT_KHR, gles30::enums.GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR, gles30::enums.GL_DEBUG_SEVERITY_HIGH_KHR, gles30::enums.GL_DEBUG_SEVERITY_LOW_KHR, gles30::enums.GL_DEBUG_SEVERITY_MEDIUM_KHR, gles30::enums.GL_DEBUG_SEVERITY_NOTIFICATION_KHR, gles30::enums.GL_DEBUG_SOURCE_API_KHR, gles30::enums.GL_DEBUG_SOURCE_APPLICATION_KHR, gles30::enums.GL_DEBUG_SOURCE_OTHER_KHR

debug_trace_calls

w/debug_assertions: trace! each call to GL before making the GL call.

debug_automatic_glGetError

w/debug_assertions: Call glGetError after every GL call and error! if necessary.

inline

Tag all GL funcitons as #[inline]

inline_always

Tag all GL funcitons as #[inline(always)]

Features from optional dependencies

bytemuck implicit feature

Enables bytemuck

Enables bytemuck::Zeroable on the GlFns struct.

log implicit feature

Enables log

Logging features below use this crate (otherwise println / eprintln)

chlorine implicit feature

Enables chlorine

Uses this for C types (otherwise std::os::raw)