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 {
|
||||
// Not supported on macOS.
|
||||
/// Not supported on macOS.
|
||||
vulkan: bool = true,
|
||||
|
||||
// Only respected on macOS.
|
||||
/// Only respected on macOS.
|
||||
metal: bool = true,
|
||||
|
||||
// Deprecated on macOS.
|
||||
/// Deprecated on macOS.
|
||||
opengl: bool = false,
|
||||
|
||||
// Not supported on macOS.
|
||||
/// Not supported on macOS.
|
||||
gles: bool = false,
|
||||
|
||||
// Only respected on Linux.
|
||||
/// Only respected on Linux.
|
||||
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?
|
||||
}
|
||||
|
||||
// Caller owns returned memory.
|
||||
/// Caller owns returned memory.
|
||||
fn getSdkRoot(allocator: *std.mem.Allocator, comptime name: []const u8) ![]const u8 {
|
||||
const app_data_dir = try std.fs.getAppDataDir(allocator, "mach");
|
||||
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"));
|
||||
|
||||
// The key or mouse button was released.
|
||||
/// The key or mouse button was released.
|
||||
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;
|
||||
|
||||
// The key was held down until it repeated.
|
||||
/// The key was held down until it repeated.
|
||||
pub const repeat = C.GLFW_REPEAT;
|
||||
|
|
|
|||
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
const c = @cImport(@cInclude("GLFW/glfw3.h"));
|
||||
|
||||
// The major version number of the GLFW library.
|
||||
//
|
||||
// This is incremented when the API is changed in non-compatible ways.
|
||||
/// The major version number of the GLFW library.
|
||||
///
|
||||
/// This is incremented when the API is changed in non-compatible ways.
|
||||
pub const major = c.GLFW_VERSION_MAJOR;
|
||||
|
||||
// The minor version number of the GLFW library.
|
||||
//
|
||||
// This is incremented when features are added to the API but it remains backward-compatible.
|
||||
/// The minor version number of the GLFW library.
|
||||
///
|
||||
/// This is incremented when features are added to the API but it remains backward-compatible.
|
||||
pub const minor = c.GLFW_VERSION_MINOR;
|
||||
|
||||
// The revision number of the GLFW library.
|
||||
//
|
||||
// This is incremented when a bug fix release is made that does not contain any API changes.
|
||||
/// The revision number of the GLFW library.
|
||||
///
|
||||
/// This is incremented when a bug fix release is made that does not contain any API changes.
|
||||
pub const revision = c.GLFW_VERSION_REVISION;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue