mirror of
https://github.com/raylib-zig/raylib-zig.git
synced 2025-12-06 06:13:08 +00:00
Compare commits
No commits in common. "33f216d4fc6c5e5799a1a5bacd1f35fecab71577" and "c84506a92d58745611dc565590a33a701f59d9d7" have entirely different histories.
33f216d4fc
...
c84506a92d
@ -56,7 +56,7 @@ pub fn main() anyerror!void {
|
||||
// TODO: Update `title` state variables here!
|
||||
|
||||
// Press ENTER to change to `gameplay` state
|
||||
if (rl.isKeyPressed(.enter) or rl.isGestureDetected(.{ .tap = true })) {
|
||||
if (rl.isKeyPressed(.enter) or rl.isGestureDetected(.tap)) {
|
||||
current_screen = .gameplay;
|
||||
}
|
||||
},
|
||||
@ -64,7 +64,7 @@ pub fn main() anyerror!void {
|
||||
// TODO: Update `gameplay` state variables here!
|
||||
|
||||
// Press ENTER to change to `ending` state
|
||||
if (rl.isKeyPressed(.enter) or rl.isGestureDetected(.{ .tap = true })) {
|
||||
if (rl.isKeyPressed(.enter) or rl.isGestureDetected(.tap)) {
|
||||
current_screen = .ending;
|
||||
}
|
||||
},
|
||||
@ -72,7 +72,7 @@ pub fn main() anyerror!void {
|
||||
// TODO: Update `ending` state variables here!
|
||||
|
||||
// Press ENTER to return to `title` state
|
||||
if (rl.isKeyPressed(.enter) or rl.isGestureDetected(.{ .tap = true })) {
|
||||
if (rl.isKeyPressed(.enter) or rl.isGestureDetected(.tap)) {
|
||||
current_screen = .title;
|
||||
}
|
||||
},
|
||||
|
||||
@ -1877,39 +1877,7 @@ pub const MaterialMapIndex = enum(c_int) {
|
||||
brdf = 10,
|
||||
};
|
||||
|
||||
pub const ShaderLocationIndex = enum(c_int) {
|
||||
vertex_position = 0,
|
||||
vertex_texcoord01 = 1,
|
||||
vertex_texcoord02 = 2,
|
||||
vertex_normal = 3,
|
||||
vertex_tangent = 4,
|
||||
vertex_color = 5,
|
||||
matrix_mvp = 6,
|
||||
matrix_view = 7,
|
||||
matrix_projection = 8,
|
||||
matrix_model = 9,
|
||||
matrix_normal = 10,
|
||||
vector_view = 11,
|
||||
color_diffuse = 12,
|
||||
color_specular = 13,
|
||||
color_ambient = 14,
|
||||
map_albedo = 15,
|
||||
map_metalness = 16,
|
||||
map_normal = 17,
|
||||
map_roughness = 18,
|
||||
map_occlusion = 19,
|
||||
map_emission = 20,
|
||||
map_height = 21,
|
||||
map_cubemap = 22,
|
||||
map_irradiance = 23,
|
||||
map_prefilter = 24,
|
||||
map_brdf = 25,
|
||||
vertex_boneids = 26,
|
||||
vertex_boneweights = 27,
|
||||
bone_matrices = 28,
|
||||
shader_loc_vertex_instance_tx = 29,
|
||||
//
|
||||
};
|
||||
pub const ShaderLocationIndex = enum(c_int) { vertex_position = 0, vertex_texcoord01 = 1, vertex_texcoord02 = 2, vertex_normal = 3, vertex_tangent = 4, vertex_color = 5, matrix_mvp = 6, matrix_view = 7, matrix_projection = 8, matrix_model = 9, matrix_normal = 10, vector_view = 11, color_diffuse = 12, color_specular = 13, color_ambient = 14, map_albedo = 15, map_metalness = 16, map_normal = 17, map_roughness = 18, map_occlusion = 19, map_emission = 20, map_height = 21, map_cubemap = 22, map_irradiance = 23, map_prefilter = 24, map_brdf = 25, vertex_boneids = 26, vertex_boneweights = 27, bone_matrices = 28, shader_loc_vertex_instance_tx };
|
||||
|
||||
pub const ShaderUniformDataType = enum(c_int) {
|
||||
float = 0,
|
||||
@ -1998,23 +1966,18 @@ pub const BlendMode = enum(c_int) {
|
||||
custom_separate = 7,
|
||||
};
|
||||
|
||||
pub const Gesture = packed struct {
|
||||
tap: bool = false,
|
||||
doubletap: bool = false,
|
||||
hold: bool = false,
|
||||
drag: bool = false,
|
||||
swipe_right: bool = false,
|
||||
swipe_left: bool = false,
|
||||
swipe_up: bool = false,
|
||||
swipe_down: bool = false,
|
||||
pinch_in: bool = false,
|
||||
pinch_out: bool = false,
|
||||
__reserved1: bool = false,
|
||||
__reserved2: bool = false,
|
||||
__reserved3: bool = false,
|
||||
__reserved4: bool = false,
|
||||
__reserved5: bool = false,
|
||||
__reserved6: bool = false,
|
||||
pub const Gesture = enum(c_int) {
|
||||
none = 0,
|
||||
tap = 1,
|
||||
doubletap = 2,
|
||||
hold = 4,
|
||||
drag = 8,
|
||||
swipe_right = 16,
|
||||
swipe_left = 32,
|
||||
swipe_up = 64,
|
||||
swipe_down = 128,
|
||||
pinch_in = 256,
|
||||
pinch_out = 512,
|
||||
};
|
||||
|
||||
pub const CameraMode = enum(c_int) {
|
||||
|
||||
@ -1877,39 +1877,7 @@ pub const MaterialMapIndex = enum(c_int) {
|
||||
brdf = 10,
|
||||
};
|
||||
|
||||
pub const ShaderLocationIndex = enum(c_int) {
|
||||
vertex_position = 0,
|
||||
vertex_texcoord01 = 1,
|
||||
vertex_texcoord02 = 2,
|
||||
vertex_normal = 3,
|
||||
vertex_tangent = 4,
|
||||
vertex_color = 5,
|
||||
matrix_mvp = 6,
|
||||
matrix_view = 7,
|
||||
matrix_projection = 8,
|
||||
matrix_model = 9,
|
||||
matrix_normal = 10,
|
||||
vector_view = 11,
|
||||
color_diffuse = 12,
|
||||
color_specular = 13,
|
||||
color_ambient = 14,
|
||||
map_albedo = 15,
|
||||
map_metalness = 16,
|
||||
map_normal = 17,
|
||||
map_roughness = 18,
|
||||
map_occlusion = 19,
|
||||
map_emission = 20,
|
||||
map_height = 21,
|
||||
map_cubemap = 22,
|
||||
map_irradiance = 23,
|
||||
map_prefilter = 24,
|
||||
map_brdf = 25,
|
||||
vertex_boneids = 26,
|
||||
vertex_boneweights = 27,
|
||||
bone_matrices = 28,
|
||||
shader_loc_vertex_instance_tx = 29,
|
||||
//
|
||||
};
|
||||
pub const ShaderLocationIndex = enum(c_int) { vertex_position = 0, vertex_texcoord01 = 1, vertex_texcoord02 = 2, vertex_normal = 3, vertex_tangent = 4, vertex_color = 5, matrix_mvp = 6, matrix_view = 7, matrix_projection = 8, matrix_model = 9, matrix_normal = 10, vector_view = 11, color_diffuse = 12, color_specular = 13, color_ambient = 14, map_albedo = 15, map_metalness = 16, map_normal = 17, map_roughness = 18, map_occlusion = 19, map_emission = 20, map_height = 21, map_cubemap = 22, map_irradiance = 23, map_prefilter = 24, map_brdf = 25, vertex_boneids = 26, vertex_boneweights = 27, bone_matrices = 28, shader_loc_vertex_instance_tx };
|
||||
|
||||
pub const ShaderUniformDataType = enum(c_int) {
|
||||
float = 0,
|
||||
@ -1998,23 +1966,18 @@ pub const BlendMode = enum(c_int) {
|
||||
custom_separate = 7,
|
||||
};
|
||||
|
||||
pub const Gesture = packed struct {
|
||||
tap: bool = false,
|
||||
doubletap: bool = false,
|
||||
hold: bool = false,
|
||||
drag: bool = false,
|
||||
swipe_right: bool = false,
|
||||
swipe_left: bool = false,
|
||||
swipe_up: bool = false,
|
||||
swipe_down: bool = false,
|
||||
pinch_in: bool = false,
|
||||
pinch_out: bool = false,
|
||||
__reserved1: bool = false,
|
||||
__reserved2: bool = false,
|
||||
__reserved3: bool = false,
|
||||
__reserved4: bool = false,
|
||||
__reserved5: bool = false,
|
||||
__reserved6: bool = false,
|
||||
pub const Gesture = enum(c_int) {
|
||||
none = 0,
|
||||
tap = 1,
|
||||
doubletap = 2,
|
||||
hold = 4,
|
||||
drag = 8,
|
||||
swipe_right = 16,
|
||||
swipe_left = 32,
|
||||
swipe_up = 64,
|
||||
swipe_down = 128,
|
||||
pinch_in = 256,
|
||||
pinch_out = 512,
|
||||
};
|
||||
|
||||
pub const CameraMode = enum(c_int) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user