mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: simplify the type system; an initial version of the V interpreter
This commit is contained in:
@@ -301,4 +301,4 @@ pub enum Action {
|
||||
load
|
||||
dontcare
|
||||
_num
|
||||
}
|
||||
}
|
||||
|
@@ -53,4 +53,4 @@ fn C.sg_query_buffer_defaults(desc &C.sg_buffer) C.sg_buffer_desc
|
||||
fn C.sg_query_image_defaults(desc &C.sg_image) C.sg_image_desc
|
||||
fn C.sg_query_shader_defaults(desc &C.sg_shader) C.sg_shader_desc
|
||||
fn C.sg_query_pipeline_defaults(desc &C.sg_pipeline) C.sg_pipeline_desc
|
||||
fn C.sg_query_pass_defaults(desc &C.sg_pass) C.sg_pass_desc
|
||||
fn C.sg_query_pass_defaults(desc &C.sg_pass) C.sg_pass_desc
|
||||
|
@@ -457,4 +457,4 @@ pub mut:
|
||||
// layer int
|
||||
// slice int
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
@@ -9,4 +9,4 @@ pub fn create_clear_pass(r, g, b, a f32) C.sg_pass_action {
|
||||
mut pass_action := sg_pass_action{}
|
||||
pass_action.colors[0] = color_action
|
||||
return pass_action
|
||||
}
|
||||
}
|
||||
|
@@ -155,4 +155,4 @@ pub enum KeyCode {
|
||||
right_alt = 346
|
||||
right_super = 347
|
||||
menu = 348
|
||||
}
|
||||
}
|
||||
|
@@ -3,4 +3,4 @@ module sfons
|
||||
fn C.sfons_create(width int, height int, flags int) &C.FONScontext
|
||||
fn C.sfons_destroy(ctx &FONScontext)
|
||||
fn C.sfons_rgba(r byte, g byte, b byte, a byte) u32
|
||||
fn C.sfons_flush(ctx &FONScontext)
|
||||
fn C.sfons_flush(ctx &FONScontext)
|
||||
|
@@ -86,4 +86,4 @@ fn C.sgl_v3f_t2f_c1i(x f32, y f32, z f32, u f32, v f32, rgba u32)
|
||||
fn C.sgl_end()
|
||||
|
||||
/* render everything */
|
||||
fn C.sgl_draw()
|
||||
fn C.sgl_draw()
|
||||
|
@@ -21,4 +21,4 @@ pub struct C.sgl_desc_t {
|
||||
depth_format C.sg_pixel_format
|
||||
sample_count int
|
||||
face_winding C.sg_face_winding /* default front face winding is CCW */
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user