1
0
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:
Alexander Medvednikov
2020-01-22 21:34:38 +01:00
parent 932392a7fd
commit 9f4661391d
33 changed files with 847 additions and 517 deletions

View File

@@ -301,4 +301,4 @@ pub enum Action {
load
dontcare
_num
}
}

View File

@@ -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

View File

@@ -457,4 +457,4 @@ pub mut:
// layer int
// slice int
// }
}
}

View File

@@ -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
}
}

View File

@@ -155,4 +155,4 @@ pub enum KeyCode {
right_alt = 346
right_super = 347
menu = 348
}
}

View File

@@ -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)

View File

@@ -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()

View File

@@ -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 */
}
}