Cargo Features

[dependencies]
imgui-glow-renderer = { version = "0.13.0", default-features = false, features = ["gl_extensions_support", "debug_message_insert_support", "bind_vertex_array_support", "vertex_offset_support", "clip_origin_support", "bind_sampler_support", "polygon_mode_support", "primitive_restart_support"] }
default = bind_sampler_support, bind_vertex_array_support, clip_origin_support, debug_message_insert_support, gl_extensions_support, polygon_mode_support, primitive_restart_support, vertex_offset_support

Features here are used to opt-out of compiling code that depends on certain OpenGL features. If the features are enabled, the renderer will check that the feature is supported before attempting to use it. Only opt-out of any of these if you are certain you will only target platforms that lack the corresponding feature.

gl_extensions_support default

Enable checking for OpenGL extensions

debug_message_insert_support default

Support for gl.debug_message_insert

bind_vertex_array_support default

Support for glBindVertexArray

Affects imgui-glow-renderer::Renderer.vertex_array_object

vertex_offset_support default

Support for glDrawElementsBaseVertex

clip_origin_support default

Support for GL_CLIP_ORIGIN

bind_sampler_support default

Support for glBindSampler

polygon_mode_support default

Support for glPolygonMode

primitive_restart_support default

Support for GL_PRIMITIVE_RESTART