glfw: make Window hints a proper enum
Helps hexops/mach#37 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2e6b73b388
commit
65d8d2d10f
2 changed files with 166 additions and 84 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
const c = @import("c.zig").c;
|
||||
|
||||
// Input focus window hint and attribute
|
||||
// Input focus window attribute
|
||||
|
||||
/// Input focus window hit or window attribute.
|
||||
pub const focused = c.GLFW_FOCUSED;
|
||||
|
|
@ -10,115 +10,64 @@ pub const focused = c.GLFW_FOCUSED;
|
|||
/// Window iconification window attribute.
|
||||
pub const iconified = c.GLFW_ICONIFIED;
|
||||
|
||||
// Window resize-ability window hint and attribute
|
||||
// Window resize-ability window attribute
|
||||
pub const resizable = c.GLFW_RESIZABLE;
|
||||
|
||||
/// Window visibility window hint and attribute
|
||||
/// Window visibility window attribute
|
||||
pub const visible = c.GLFW_VISIBLE;
|
||||
|
||||
/// Window decoration window hint and attribute
|
||||
/// Window decoration window attribute
|
||||
pub const decorated = c.GLFW_DECORATED;
|
||||
|
||||
/// Window auto-iconification window hint and attribute
|
||||
/// Window auto-iconification window attribute
|
||||
pub const auto_iconify = c.GLFW_AUTO_ICONIFY;
|
||||
|
||||
/// Window decoration window hint and attribute
|
||||
/// Window decoration window attribute
|
||||
pub const floating = c.GLFW_FLOATING;
|
||||
|
||||
/// Window maximization window hint and attribute
|
||||
/// Window maximization window attribute
|
||||
pub const maximized = c.GLFW_MAXIMIZED;
|
||||
|
||||
/// Cursor centering window hint
|
||||
pub const center = c.GLFW_CENTER_CURSOR;
|
||||
|
||||
/// Window framebuffer transparency hint and attribute
|
||||
/// Window framebuffer transparency attribute
|
||||
pub const transparent_framebuffer = c.GLFW_TRANSPARENT_FRAMEBUFFER;
|
||||
|
||||
/// Mouse cursor hover window attribute.
|
||||
pub const hovered = c.GLFW_HOVERED;
|
||||
|
||||
/// Input focus on calling show window hint and attribute
|
||||
/// Input focus on calling show window attribute
|
||||
pub const focus_on_show = c.GLFW_FOCUS_ON_SHOW;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const red_bits = c.GLFW_RED_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const green_bits = c.GLFW_GREEN_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const blue_bits = c.GLFW_BLUE_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const alpha_bits = c.GLFW_ALPHA_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const depth_bits = c.GLFW_DEPTH_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const stencil_bits = c.GLFW_STENCIL_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const accum_red_bits = c.GLFW_ACCUM_RED_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const accum_green_bits = c.GLFW_ACCUM_GREEN_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const accum_blue_bits = c.GLFW_ACCUM_BLUE_BITS;
|
||||
|
||||
/// Framebuffer bit depth hint.
|
||||
pub const accum_alpha_bits = c.GLFW_ACCUM_ALPHA_BITS;
|
||||
|
||||
/// Framebuffer auxiliary buffer hint.
|
||||
pub const aux_buffers = c.GLFW_AUX_BUFFERS;
|
||||
|
||||
/// OpenGL stereoscopic rendering hint.
|
||||
pub const stereo = c.GLFW_STEREO;
|
||||
|
||||
/// Framebuffer MSAA samples hint.
|
||||
pub const samples = c.GLFW_SAMPLES;
|
||||
|
||||
/// Framebuffer sRGB hint.
|
||||
pub const srgb_capable = c.GLFW_SRGB_CAPABLE;
|
||||
|
||||
/// Monitor refresh rate hint.
|
||||
pub const refresh_rate = c.GLFW_REFRESH_RATE;
|
||||
|
||||
/// Framebuffer double buffering hint.
|
||||
pub const doublebuffer = c.GLFW_DOUBLEBUFFER;
|
||||
|
||||
/// Context client API hint and attribute.
|
||||
/// Context client API attribute.
|
||||
pub const client_api = c.GLFW_CLIENT_API;
|
||||
|
||||
/// Context client API major version hint and attribute.
|
||||
/// Context client API major version attribute.
|
||||
pub const context_version_major = c.GLFW_CONTEXT_VERSION_MAJOR;
|
||||
|
||||
/// Context client API minor version hint and attribute.
|
||||
/// Context client API minor version attribute.
|
||||
pub const context_version_minor = c.GLFW_CONTEXT_VERSION_MINOR;
|
||||
|
||||
/// Context client API revision number hint and attribute.
|
||||
/// Context client API revision number attribute.
|
||||
pub const context_revision = c.GLFW_CONTEXT_REVISION;
|
||||
|
||||
/// Context robustness hint and attribute.
|
||||
/// Context robustness attribute.
|
||||
pub const context_robustness = c.GLFW_CONTEXT_ROBUSTNESS;
|
||||
|
||||
/// OpenGL forward-compatibility hint and attribute.
|
||||
/// OpenGL forward-compatibility attribute.
|
||||
pub const opengl_forward_compat = c.GLFW_OPENGL_FORWARD_COMPAT;
|
||||
|
||||
/// Debug mode context hint and attribute.
|
||||
/// Debug mode context attribute.
|
||||
pub const opengl_debug_context = c.GLFW_OPENGL_DEBUG_CONTEXT;
|
||||
|
||||
/// OpenGL profile hint and attribute.
|
||||
/// OpenGL profile attribute.
|
||||
pub const opengl_profile = c.GLFW_OPENGL_PROFILE;
|
||||
|
||||
/// Context flush-on-release hint and attribute.
|
||||
/// Context flush-on-release attribute.
|
||||
pub const context_release_behavior = c.GLFW_CONTEXT_RELEASE_BEHAVIOR;
|
||||
|
||||
/// Context error suppression hint and attribute.
|
||||
/// Context error suppression attribute.
|
||||
pub const context_no_error = c.GLFW_CONTEXT_NO_ERROR;
|
||||
|
||||
/// Context creation API hint and attribute.
|
||||
/// Context creation API attribute.
|
||||
pub const context_creation_api = c.GLFW_CONTEXT_CREATION_API;
|
||||
|
||||
/// Window content area scaling window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue