glfw: correct comment style
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
73055427ad
commit
161b0a540f
3 changed files with 18 additions and 18 deletions
|
|
@ -20,19 +20,19 @@ pub const LinuxWindowManager = enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const Options = struct {
|
pub const Options = struct {
|
||||||
// Not supported on macOS.
|
/// Not supported on macOS.
|
||||||
vulkan: bool = true,
|
vulkan: bool = true,
|
||||||
|
|
||||||
// Only respected on macOS.
|
/// Only respected on macOS.
|
||||||
metal: bool = true,
|
metal: bool = true,
|
||||||
|
|
||||||
// Deprecated on macOS.
|
/// Deprecated on macOS.
|
||||||
opengl: bool = false,
|
opengl: bool = false,
|
||||||
|
|
||||||
// Not supported on macOS.
|
/// Not supported on macOS.
|
||||||
gles: bool = false,
|
gles: bool = false,
|
||||||
|
|
||||||
// Only respected on Linux.
|
/// Only respected on Linux.
|
||||||
linux_window_manager: LinuxWindowManager = .X11,
|
linux_window_manager: LinuxWindowManager = .X11,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -216,7 +216,7 @@ fn includeSdkMacOS(b: *Builder, step: *std.build.LibExeObjStep) void {
|
||||||
b.sysroot = sdk_sysroot; // TODO(slimsag): leaks, b.sysroot doesn't get free'd by builder?
|
b.sysroot = sdk_sysroot; // TODO(slimsag): leaks, b.sysroot doesn't get free'd by builder?
|
||||||
}
|
}
|
||||||
|
|
||||||
// Caller owns returned memory.
|
/// Caller owns returned memory.
|
||||||
fn getSdkRoot(allocator: *std.mem.Allocator, comptime name: []const u8) ![]const u8 {
|
fn getSdkRoot(allocator: *std.mem.Allocator, comptime name: []const u8) ![]const u8 {
|
||||||
const app_data_dir = try std.fs.getAppDataDir(allocator, "mach");
|
const app_data_dir = try std.fs.getAppDataDir(allocator, "mach");
|
||||||
var sdk_root_dir = try std.fs.path.join(allocator, &.{ app_data_dir, name });
|
var sdk_root_dir = try std.fs.path.join(allocator, &.{ app_data_dir, name });
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
const c = @cImport(@cInclude("GLFW/glfw3.h"));
|
const c = @cImport(@cInclude("GLFW/glfw3.h"));
|
||||||
|
|
||||||
// The key or mouse button was released.
|
/// The key or mouse button was released.
|
||||||
pub const release = C.GLFW_RELEASE;
|
pub const release = C.GLFW_RELEASE;
|
||||||
|
|
||||||
// The key or mouse button was pressed.
|
/// The key or mouse button was pressed.
|
||||||
pub const press = C.GLFW_RELEASE;
|
pub const press = C.GLFW_RELEASE;
|
||||||
|
|
||||||
// The key was held down until it repeated.
|
/// The key was held down until it repeated.
|
||||||
pub const repeat = C.GLFW_REPEAT;
|
pub const repeat = C.GLFW_REPEAT;
|
||||||
|
|
|
||||||
|
|
@ -2,17 +2,17 @@
|
||||||
|
|
||||||
const c = @cImport(@cInclude("GLFW/glfw3.h"));
|
const c = @cImport(@cInclude("GLFW/glfw3.h"));
|
||||||
|
|
||||||
// The major version number of the GLFW library.
|
/// The major version number of the GLFW library.
|
||||||
//
|
///
|
||||||
// This is incremented when the API is changed in non-compatible ways.
|
/// This is incremented when the API is changed in non-compatible ways.
|
||||||
pub const major = c.GLFW_VERSION_MAJOR;
|
pub const major = c.GLFW_VERSION_MAJOR;
|
||||||
|
|
||||||
// The minor version number of the GLFW library.
|
/// The minor version number of the GLFW library.
|
||||||
//
|
///
|
||||||
// This is incremented when features are added to the API but it remains backward-compatible.
|
/// This is incremented when features are added to the API but it remains backward-compatible.
|
||||||
pub const minor = c.GLFW_VERSION_MINOR;
|
pub const minor = c.GLFW_VERSION_MINOR;
|
||||||
|
|
||||||
// The revision number of the GLFW library.
|
/// The revision number of the GLFW library.
|
||||||
//
|
///
|
||||||
// This is incremented when a bug fix release is made that does not contain any API changes.
|
/// This is incremented when a bug fix release is made that does not contain any API changes.
|
||||||
pub const revision = c.GLFW_VERSION_REVISION;
|
pub const revision = c.GLFW_VERSION_REVISION;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue